/*
Theme Name: Quality Bouwbedrijf
Author: Quality Bouwbedrijf
Description: A clean, responsive company theme with a completed-project portfolio.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: quality
*/
:root{--yellow:#ffc20a;--ink:#161918;--muted:#626861;--line:#dfe2dc;--paper:#fff;--soft:#f4f5f1}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Poppins,Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-size:1rem;line-height:1.65}a{color:inherit}img{max-width:100%;height:auto;display:block}button,input,textarea{font:inherit}.wrap{width:min(1200px,calc(100% - 48px));margin:auto}.skip{position:absolute;left:16px;top:-100px;background:var(--yellow);padding:12px;z-index:20}.skip:focus{top:12px}:focus-visible{outline:3px solid #966d00;outline-offset:5px}.header{border-bottom:1px solid var(--line);background:white}.header-inner{min-height:96px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{text-decoration:none;display:flex;align-items:center;gap:14px;font-size:1.12rem;font-weight:800;line-height:1.2}.brand img{width:58px;height:58px;object-fit:contain}.brand small{display:block;font-size:.875rem;font-weight:400;letter-spacing:.04em;margin-top:5px}.nav{display:flex;gap:26px;align-items:center;flex-wrap:wrap}.nav a{text-decoration:none;font-size:.9375rem;font-weight:600}.button{display:inline-flex;padding:14px 23px;text-decoration:none;background:var(--yellow);color:var(--ink);font-weight:700;border:1px solid transparent;border-radius:3px;align-items:center;justify-content:center}.button:hover{background:#ffd24d}.button.secondary{background:transparent;border-color:#acb0a8}.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.875rem;font-weight:700;margin:0 0 22px}.eyebrow:before{content:'';display:inline-block;background:var(--yellow);width:28px;height:3px;vertical-align:middle;margin-right:12px}h1,h2,h3{line-height:1.08;letter-spacing:-.02em;margin:0 0 24px}h1{font-size:clamp(2.8rem,6.5vw,5.6rem);max-width:900px}h2{font-size:clamp(2rem,4vw,3.4rem)}h3{font-size:1.45rem;letter-spacing:-.01em}.hero{padding:90px 0 78px;background:var(--soft)}.hero p.lead{max-width:590px;color:var(--muted);font-size:1.18rem;margin:24px 0 30px}.actions{display:flex;gap:14px;flex-wrap:wrap}.hero-photo{margin-top:44px;max-height:540px;width:100%;object-fit:cover}.section{padding:80px 0}.section-title{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:36px}.section-title h2{margin-bottom:0}.section-title p{max-width:360px;color:var(--muted);margin:0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.service{border-top:2px solid var(--ink);padding:26px 0}.number{font-size:.875rem;color:var(--muted);display:block;margin-bottom:24px}.service p{color:var(--muted)}.projects{background:var(--ink);color:white}.projects .section-title p{color:#bbc0b8}.project{text-decoration:none;display:block}.project img{aspect-ratio:4/3;object-fit:cover;width:100%;margin-bottom:22px;background:#30352f}.project h3{margin-bottom:8px}.project p{color:#bbc0b8;font-size:.9375rem;margin-top:0}.empty{padding:36px;border:1px solid #555b52;color:#c8cec5}.about{display:grid;grid-template-columns:1fr 1fr;gap:70px}.about p{margin-top:0;color:var(--muted)}.contact{background:var(--yellow);padding:64px 0}.contact-inner{display:flex;justify-content:space-between;align-items:center;gap:32px}.contact h2{max-width:600px;margin-bottom:16px}.contact p{margin:0}.contact .button{background:var(--ink);color:white}.footer{padding:28px 0;color:var(--muted);font-size:.875rem}.footer-inner{display:flex;justify-content:space-between;gap:20px}.article{max-width:850px;padding-top:60px;padding-bottom:80px}.article h1{font-size:clamp(2.4rem,5vw,4.2rem)}.article .featured{margin:30px 0}.content>*{max-width:100%}.content a{text-decoration:underline}.content .wp-block-gallery img{object-fit:cover}.preview-note{padding:12px 24px;background:#fff2bf;text-align:center;font-size:.875rem} .photo-slot{aspect-ratio:16/7;background:#e4e7df;display:flex;align-items:center;justify-content:center;padding:30px;color:#555e52;border:1px dashed #a2ab9a;margin-top:44px;text-align:center}.project-slot{aspect-ratio:4/3;background:#30362f;display:flex;align-items:center;justify-content:center;margin-bottom:22px;border:1px dashed #64705d;color:#bcc6b5;padding:20px;text-align:center}.draft-label{font-size:.875rem;color:var(--muted);margin-top:16px}@media(max-width:760px){.header-inner{padding:18px 0;align-items:start;flex-direction:column;gap:18px}.nav{gap:18px}.nav .button{padding:8px 13px}.wrap{width:calc(100% - 36px)}.hero{padding:54px 0}.section{padding:54px 0}.grid,.about{grid-template-columns:1fr}.about{gap:20px}.section-title,.contact-inner{align-items:start;flex-direction:column}.section-title p{max-width:none}.footer-inner{flex-direction:column;gap:6px}.photo-slot{aspect-ratio:4/3}.contact{padding:46px 0}.nav a{font-size:.875rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.menu{list-style:none;padding:0;margin:0}.menu li{margin:0}

.hero-promise{font-size:1.15rem;font-weight:700;max-width:640px;margin:26px 0 0}.hero h1{font-size:clamp(2.4rem,5.7vw,4.8rem);max-width:1050px;overflow-wrap:break-word}

/* Split homepage introduction */
.hero-split{display:grid;grid-template-columns:1.05fr 1fr;gap:56px;align-items:center}
.hero-split h1{font-size:clamp(2.4rem,4.3vw,3.8rem);line-height:1.08;margin-bottom:24px}
.hero-split h1 br{display:none}
.hero-split .hero-promise{margin-top:0;font-size:1.0625rem}
.hero-split .lead{font-size:1.0625rem;line-height:1.7;margin:20px 0 28px}
.hero-split .hero-photo{margin:0;width:100%;height:570px;max-height:none;object-fit:cover;object-position:45% center;border-radius:4px}
.hero-visual{position:relative;padding-bottom:18px;padding-right:18px}
.hero-visual:after{content:'';position:absolute;right:0;bottom:0;width:60%;height:44%;background:var(--yellow);z-index:0;border-radius:4px}
.hero-visual img{position:relative;z-index:1}
@media(max-width:900px){.hero-split{grid-template-columns:1fr;gap:36px}.hero-split h1{max-width:700px;font-size:clamp(2.4rem,7vw,3.8rem)}.hero-split .hero-photo{height:auto;max-height:460px;aspect-ratio:16/10}.hero-split .lead{max-width:680px}.hero-visual{padding-right:12px;padding-bottom:12px}}

.services-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.service-card{border:1px solid var(--line);border-radius:4px;overflow:hidden;background:white;display:flex;flex-direction:column}
.service-card>img{width:100%;aspect-ratio:16/9;object-fit:cover;object-position:center}
.service-card-body{padding:28px;display:flex;flex-direction:column;flex:1}
.service-card h3{margin-bottom:14px;font-size:1.65rem;line-height:1.2}
.service-card p{margin:0 0 22px;color:var(--muted)}
.service-card a{font-weight:700;text-underline-offset:5px;margin-top:auto;align-self:flex-start}
.service-card a:hover{color:#7a5900}
@media(max-width:760px){.services-grid{grid-template-columns:1fr;gap:24px}.service-card-body{padding:24px}.service-card h3{font-size:1.45rem}}

/* Compact service cards */
.services-grid{gap:20px}
.service-card>img{aspect-ratio:2.6/1}
.service-card-body{padding:20px}
.service-card h3{font-size:1.35rem;margin-bottom:10px;letter-spacing:-.02em}
.service-card p{font-size:1rem;line-height:1.55;margin-bottom:16px}
.service-card a{font-size:.9375rem}
@media(max-width:760px){.services-grid{gap:18px}.service-card>img{aspect-ratio:2.6/1}.service-card-body{padding:18px}.service-card h3{font-size:1.3rem}}

/* Three open service columns, based on the supplied reference */
.services-section .section-title{display:block;margin-bottom:36px}
.services-section .section-title .eyebrow{margin-bottom:30px}
.services-section .section-title h2{font-size:clamp(1.85rem,3.3vw,2.65rem);margin-bottom:14px;line-height:1.15}
.services-section .section-title>p{max-width:750px;color:var(--ink)}
.services-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.service-card{border:0;border-radius:0;background:transparent;overflow:visible}
.service-card>img{aspect-ratio:4/3;border-radius:2px}
.service-card-body{padding:24px 0 0}
.service-card h3{font-size:clamp(1.25rem,1.8vw,1.55rem);margin-bottom:12px}
.service-card p{line-height:1.55;color:var(--ink);margin-bottom:18px}
@media(max-width:760px){.services-grid{grid-template-columns:1fr;gap:32px}.service-card>img{aspect-ratio:16/9}.service-card-body{padding:18px 0 0}.services-section .section-title .eyebrow{margin-bottom:24px}}

/* Brand-color outline for the three service cards */
.services-section .service-card{border:1px solid var(--yellow);border-radius:3px;overflow:hidden}
.services-section .service-card-body{padding:20px}
@media(max-width:760px){.services-section .service-card-body{padding:18px}}

.gallery-page{padding-top:32px;padding-bottom:64px}.back-link{display:inline-block;margin-bottom:24px;text-underline-offset:5px;font-size:.9375rem}.gallery-cover{width:100%;max-height:620px;object-fit:cover;border-radius:3px}.gallery-intro{max-width:800px;padding:40px 0 28px}.gallery-intro h1{font-size:clamp(2rem,4.3vw,3.5rem)}.gallery-intro p:last-child{color:var(--muted);font-size:1.0625rem}.masonry-gallery,.project-gallery-content .wp-block-gallery{display:block;column-count:3;column-gap:20px}.masonry-gallery figure,.project-gallery-content .wp-block-gallery.has-nested-images figure.wp-block-image{display:block;width:100%!important;break-inside:avoid;margin:0 0 20px!important}.masonry-gallery img,.project-gallery-content .wp-block-gallery.has-nested-images figure.wp-block-image img{width:100%;height:auto!important;object-fit:contain;border-radius:3px}.project-gallery-content>p{max-width:800px;color:var(--muted)}.gallery-contact{border-top:1px solid var(--line);margin-top:40px;padding-top:36px}.gallery-contact h2{font-size:1.75rem;letter-spacing:-.01em}.project:hover h3{text-decoration:underline;text-underline-offset:5px}
@media(max-width:900px){.masonry-gallery,.project-gallery-content .wp-block-gallery{column-count:2}}
@media(max-width:540px){.masonry-gallery,.project-gallery-content .wp-block-gallery{column-count:1}.gallery-intro{padding-top:28px}.gallery-cover{max-height:420px}.gallery-contact h2{font-size:1.5rem}}

.contact-heading{max-width:820px;margin-bottom:36px}.contact-heading h2{max-width:none}.contact-heading>p:last-child{max-width:750px;font-size:1.125rem;line-height:1.6}
.contact-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:start}.contact-card{background:white;color:var(--ink);border-radius:8px;padding:36px}.contact-card h3{font-size:1.75rem;line-height:1.2;margin-bottom:20px}.contact-card .form-hint{font-size:.875rem;color:var(--muted);margin:0 0 20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-field{margin-bottom:20px}.form-field label{display:block;font-weight:600;font-size:.9375rem;margin-bottom:7px}.form-field input,.form-field textarea{display:block;width:100%;min-width:0;border:1px solid #b9bfb5;border-radius:3px;background:white;color:var(--ink);padding:12px;font-size:1rem;line-height:1.5}.form-field textarea{resize:vertical}.form-field input::placeholder,.form-field textarea::placeholder{color:#6d7469}.contact .contact-card .button{background:var(--yellow);color:var(--ink);cursor:pointer}.contact .contact-card .button:hover{background:#ffd24d}.contact .contact-card .button:disabled{opacity:.55;cursor:default}.contact-card form>.form-hint{margin:18px 0 0}.contact-phone{display:inline-block;font-size:clamp(1.5rem,3vw,2.3rem);font-weight:800;line-height:1.2;text-decoration:none;margin-bottom:22px;letter-spacing:normal}.contact-phone:hover{text-decoration:underline}.phone-card>p:not(.eyebrow){color:var(--muted)}.phone-card .contact-area{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.form-feedback{margin:18px 0;padding:14px;background:#fff5cb;border-left:3px solid var(--yellow);font-size:.9375rem}.form-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media(max-width:760px){.contact-grid{grid-template-columns:1fr;gap:20px}.contact-card{padding:24px}.contact-card h3{font-size:1.5rem}.contact-heading>p:last-child{font-size:1rem}}
@media(max-width:420px){.form-row{grid-template-columns:1fr;gap:0}}

/* Consistent spacing across homepage, galleries and contact */
:root{--section-space:72px;--layout-gap:28px}
.section,.contact{padding-block:var(--section-space)}
.hero{padding-block:var(--section-space)}
.section-title,.services-section .section-title,.contact-heading{margin-bottom:32px}
.section-title .eyebrow,.services-section .section-title .eyebrow,.contact-heading .eyebrow,.phone-card .eyebrow{margin:0 0 16px}
.section-title h2,.services-section .section-title h2,.contact-heading h2{margin-bottom:16px}
.section-title>p,.contact-heading>p:last-child{margin:0}
.services-grid,.contact-grid{gap:var(--layout-gap)}
.services-section .service-card-body{padding:22px;gap:0}
.service-card h3{line-height:1.25;min-height:2.5em;margin-bottom:12px}
.service-card p{margin-bottom:20px}
.project img{margin-bottom:20px}.project h3{line-height:1.25;margin-bottom:10px}.project p{margin-bottom:0}
.about{gap:48px}.about .eyebrow{margin:0 0 16px}.about h2{margin-bottom:0}.about>p,.about>div>p:last-child{margin-bottom:0}
.contact-card{padding:32px}.contact-card h3{margin:0 0 20px}.phone-card h3{margin-bottom:12px}
.contact-phone{margin-bottom:20px}.form-row{gap:16px}.form-field{margin-bottom:20px}.form-field label{margin-bottom:8px}
.contact .form-feedback{margin:20px 0 0}.contact-card form>.form-hint{margin:16px 0 0}
.gallery-intro{padding:36px 0 28px}.gallery-intro .eyebrow{margin-bottom:16px}.gallery-intro h1{margin-bottom:20px}.gallery-intro p:last-child{margin-bottom:0}
@media(max-width:760px){:root{--section-space:48px;--layout-gap:24px}.hero-split{gap:32px}.section-title,.services-section .section-title,.contact-heading{margin-bottom:28px}.services-section .service-card-body{padding:20px}.service-card h3{min-height:0}.contact-card{padding:24px}.about{gap:24px}.gallery-intro{padding:28px 0 24px}}
@media(max-width:420px){.form-row{gap:0}.contact-card{padding:20px}}

/* Comfortable Poppins spacing in running text and controls */
body{letter-spacing:normal}input,textarea,button,.button,.nav a{letter-spacing:normal}

.hero-split h1{font-weight:600;letter-spacing:.005em}

.project-category{display:block;font-size:.875rem;color:var(--yellow);margin:0 0 10px;line-height:1.5}

.project-testimonial{margin-top:40px;padding:32px;background:var(--soft);border-left:3px solid var(--yellow);border-radius:3px}.project-testimonial .eyebrow{margin-bottom:16px}.project-testimonial h2{font-size:1.75rem;line-height:1.3;margin-bottom:20px}.project-testimonial blockquote{margin:0;max-width:800px}.project-testimonial blockquote p{font-size:1.125rem;line-height:1.8;margin:0;color:var(--ink);overflow-wrap:anywhere}.project-testimonial blockquote footer{margin-top:18px;font-size:.9375rem;font-weight:600;color:var(--muted)}@media(max-width:760px){.project-testimonial{padding:24px;margin-top:28px}}
