/*
Theme Name: Delleman Tegels
Author: Frank Brinks Online resultaat
Description: Maatwerkthema voor Delleman tegels en natuursteen.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: delleman-tegels
*/
:root{--teal:#2c7070;--red:#bd163b;--sage:#bac48a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:#333;font:16px/1.8 Arial,sans-serif}a{color:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}header{position:absolute;top:18px;left:30px;z-index:5}header img{width:245px;background:white;padding:9px 15px}.hero{height:min(650px,75vw);min-height:430px;display:grid;place-items:center;text-align:center;background:linear-gradient(#0002,#0003),url('assets/hero.webp') center/cover;color:white}.hero h1{font-weight:400;margin:0;font-size:34px}.hero .name{display:block;width:min(660px,80vw);margin:18px auto 5px}.hero p{font-size:24px;margin:0}.down{display:inline-grid;place-items:center;border:1px solid #fff8;border-radius:50%;width:42px;height:42px;text-decoration:none;margin-top:40px;font-size:24px}.section{padding:80px 24px;text-align:center}.inner{max-width:950px;margin:auto}h2{font-size:25px;font-weight:400;letter-spacing:2px;margin:0 0 30px}h3{font-weight:400}p{margin:0 0 20px}.about{background:var(--teal);color:white;padding-bottom:110px;clip-path:polygon(0 0,100% 0,100% 89%,0 100%)}.about p{max-width:790px;margin:0 auto 22px}.btn{display:inline-block;background:var(--red);color:white;text-decoration:none;border:0;padding:12px 28px;font-size:12px;letter-spacing:1.5px;font-family:inherit}.project-heading{padding:45px 20px 40px;text-align:center}.project-heading h2{margin:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.card{position:relative;display:block;overflow:hidden;aspect-ratio:1.07;color:white;text-decoration:none;background:#ddd}.card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}.card span{position:absolute;inset:0;background:linear-gradient(transparent 50%,#0009);display:flex;align-items:end;padding:30px;font-size:21px;opacity:0;transition:opacity .2s}.card:hover img{transform:scale(1.035)}.card:hover span,.card:focus-visible span{opacity:1}.card[hidden]{display:none}.more{background:var(--teal);text-align:center;padding:25px}.more button{border:0;background:none;color:white;padding:12px 30px;font:16px Arial;letter-spacing:.5px}.expertise{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;margin-top:40px}.expertise img{width:135px;max-width:100%;border-radius:50%}.expertise h3{font-size:18px}.expertise p{font-size:14px;line-height:1.8}.concept{background:var(--sage);color:white;clip-path:polygon(0 0,100% 12%,100% 100%,0 100%);padding-top:120px}.concept .inner{max-width:790px}.concept .btn+ .btn{background:#222;margin-left:12px}footer{padding:65px 24px 20px}.footer-grid{max-width:1050px;margin:auto;display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:50px;font-size:14px}footer h2{font-size:16px;letter-spacing:1px}footer a{text-decoration:none}table{width:100%;font-size:14px}td{padding:2px 0}td:last-child{text-align:right}.credit{text-align:center;font-size:11px;color:#888;border-top:1px solid #eee;margin-top:45px;padding-top:18px}.social{display:flex;gap:10px}.social a{background:#222;color:white;min-width:32px;text-align:center}.project-top{padding:110px 24px 45px;text-align:center;background:#f3f2ed}.project-top h1{font-size:36px;font-weight:400;margin:20px 0}.project-top a{font-size:13px;text-decoration:none;letter-spacing:1px}.description{max-width:800px;margin:35px auto 0;white-space:pre-line}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px}.photo{border:0;padding:0;background:#eee;aspect-ratio:1;overflow:hidden}.photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}.photo:hover img{transform:scale(1.03)}.back{text-align:center;padding:50px 20px}.lightbox{position:fixed;inset:0;z-index:20;background:#000e;display:flex;align-items:center;justify-content:center}.lightbox[hidden]{display:none}.lightbox img{max-width:85vw;max-height:85vh;object-fit:contain}.lightbox button{position:absolute;color:white;background:#2229;border:1px solid #fff5;border-radius:50%;width:44px;height:44px;font-size:25px}.close{right:20px;top:20px}.prev{left:15px}.next{right:15px}.counter{position:absolute;bottom:10px;color:white}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:4px}@media(max-width:650px){header{left:15px;top:12px}header img{width:165px}.hero{min-height:390px}.hero h1{font-size:25px}.hero p{font-size:17px}.section{padding:55px 22px}.about{padding-bottom:80px}.card span{opacity:1;font-size:15px;padding:15px;background:linear-gradient(transparent 65%,#0007)}.expertise{grid-template-columns:repeat(2,1fr);gap:25px}.concept{padding-top:90px}.footer-grid{grid-template-columns:1fr;gap:30px}.gallery{grid-template-columns:repeat(2,1fr);gap:6px;padding:6px}.project-top h1{font-size:28px}.section h2{font-size:21px}.concept .btn{margin-bottom:10px}}
/* Homepage header matched to the Duda reference. */
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:url('assets/source-sans-pro-bold.woff2') format('woff2')}
@font-face{font-family:'Quattrocento Sans';font-style:normal;font-weight:700;font-display:swap;src:url('assets/quattrocento-sans-bold.woff2') format('woff2')}
.home header{left:0;top:32px}.home header img{width:clamp(245px,22.3vw,378px);padding:22px 38px 0}.hero{height:52.2vw;min-height:650px;max-height:1000px}.hero>div{padding-top:75px;width:100%}.hero h1{font-family:'Source Sans Pro',Arial,sans-serif;font-size:clamp(40px,3.3vw,56px);font-weight:700;line-height:1.2}.hero .name{width:min(67vw,1140px);margin:45px auto 25px}.hero p{font-family:'Quattrocento Sans',Arial,sans-serif;font-weight:700;font-size:clamp(28px,2.95vw,50px);line-height:1.25}.hero .down{border:0;width:88px;height:88px;margin-top:clamp(70px,8vw,136px)}.down img{display:block;width:100%;height:100%}
@media(max-width:650px){.home header{top:16px}.home header img{width:190px;padding:12px 20px 0}.hero{height:650px;min-height:540px;max-height:85svh}.hero>div{padding:60px 15px 0}.hero h1{font-size:30px}.hero .name{width:90%;margin:30px auto 20px}.hero p{font-size:25px;max-width:440px;margin:auto}.hero .down{width:64px;height:64px;margin-top:65px}}
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:url('assets/source-sans-pro-regular.woff2') format('woff2')}
.about{font-family:'Source Sans Pro',Arial,sans-serif;padding-top:62px;padding-bottom:110px}.about .inner{max-width:1000px}.about h2{font-family:'Source Sans Pro',Arial,sans-serif;font-size:48px;font-weight:400;line-height:1.3;letter-spacing:0;margin-bottom:55px}.about h2:after{content:'';display:block;width:170px;height:2px;background:white;margin:22px auto 0}.about p{max-width:960px;font-size:18px;line-height:2.15;margin-bottom:0}.about p:nth-last-of-type(1){margin-top:44px;margin-bottom:44px}.about .btn{font:400 20px/1.4 'Source Sans Pro',Arial,sans-serif;letter-spacing:0;padding:16px 44px}
@media(max-width:650px){.about{padding-top:45px;padding-bottom:85px}.about h2{font-size:36px;margin-bottom:35px}.about h2:after{width:125px;margin-top:18px}.about p{font-size:17px;line-height:1.9}.about p:nth-last-of-type(1){margin-top:30px;margin-bottom:30px}.about .btn{font-size:18px;padding:14px 30px}}
.about{clip-path:polygon(0 0,100% 0,100% calc(100% - 10vw),0 100%);padding-bottom:calc(100px + 10vw)}.project-heading{padding:45px 20px 125px}.project-heading h2{font-family:'Source Sans Pro',Arial,sans-serif;font-size:48px;font-weight:400;line-height:1.3;letter-spacing:0;color:#111}.project-heading h2:after{content:'';display:block;width:170px;height:2px;background:#888;margin:22px auto 0}@media(max-width:650px){.about{padding-bottom:calc(65px + 10vw)}.project-heading{padding:30px 20px 65px}.project-heading h2{font-size:32px}.project-heading h2:after{width:125px;margin-top:18px}}
@font-face{font-family:Khula;font-style:normal;font-weight:700;font-display:swap;src:url('assets/khula-bold.woff2') format('woff2')}
.hero{background-image:linear-gradient(#0002,#0003),url('assets/hero-sharp.webp')}.card span{background:rgba(43,110,110,.5);display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:10px;font:700 clamp(26px,2.95vw,50px)/1.65 Khula,'Source Sans Pro',sans-serif;text-align:left}.card span:after{content:'';display:block;flex:none;width:28%;height:1px;background:white;margin:16px auto 0}.card:hover img{transform:none}@media(max-width:650px){.card span{font-size:20px;line-height:1.4;padding:12px;background:rgba(43,110,110,.5);opacity:0}.card:focus span,.card:active span{opacity:1}.card span:after{margin-top:12px}}
@font-face{font-family:Khula;font-style:normal;font-weight:400;font-display:swap;src:url('assets/khula-regular.woff2') format('woff2')}
.expertise-section{font-family:Khula,'Source Sans Pro',sans-serif;padding-top:110px;padding-bottom:100px;color:#111}.expertise-section .inner{max-width:1100px}.expertise-section h2{font-family:'Source Sans Pro',Arial,sans-serif;font-weight:400;font-size:48px;letter-spacing:0;line-height:1.3;margin-bottom:32px}.expertise-section h2:after,.concept h2:after{content:'';display:block;width:170px;height:2px;background:#888;margin:22px auto 0}.expertise-section>.inner>p{font-size:18px;line-height:2.15;margin-bottom:40px}.expertise{gap:30px;margin-top:60px}.expertise img{width:208px}.expertise h3{font-family:Khula,sans-serif;font-weight:700;font-size:23px;margin:22px 0 20px}.expertise p{font-size:18px;line-height:2.15}.concept{font-family:Khula,'Source Sans Pro',sans-serif;background:#bac48a;clip-path:polygon(0 0,100% 10vw,100% 100%,0 100%);padding:calc(70px + 10vw) 24px 90px}.concept .inner{max-width:1100px}.concept h2{font-family:Khula,sans-serif;font-weight:400;font-size:48px;line-height:1.3;letter-spacing:0;margin-bottom:35px}.concept h2:after{background:white;margin-top:34px}.concept-columns{display:grid;grid-template-columns:1fr 1fr;gap:32px;text-align:left}.concept-columns p{font-size:18px;line-height:2.15;margin:0}.concept-actions{display:flex;justify-content:center;gap:32px;margin-top:60px}.concept-actions .btn{font-family:'Source Sans Pro',sans-serif;font-size:20px;letter-spacing:0;padding:15px 28px;background:#000;order:2}.concept-actions .btn+.btn{background:var(--red);margin:0;order:1}@media(max-width:650px){.expertise-section{padding-top:65px;padding-bottom:60px}.expertise-section h2,.concept h2{font-size:36px}.expertise-section h2:after,.concept h2:after{width:125px}.expertise-section>.inner>p,.expertise p,.concept-columns p{font-size:17px;line-height:1.9}.expertise h3{font-size:20px}.expertise img{width:150px}.concept{padding-top:calc(50px + 10vw);padding-bottom:60px}.concept-columns{grid-template-columns:1fr;gap:22px}.concept-actions{gap:15px;flex-wrap:wrap;margin-top:35px}.concept-actions .btn{font-size:18px}}
footer{font-family:Khula,'Source Sans Pro',sans-serif;color:#111;padding:110px 0 0}.footer-grid{max-width:1200px;grid-template-columns:1.05fr 1.3fr .85fr;gap:65px;padding:0 24px;font-size:18px}.footer-grid h2{font-family:'Source Sans Pro',Arial,sans-serif;font-size:42px;font-weight:400;letter-spacing:0;line-height:1.3;white-space:nowrap;margin-bottom:26px}.footer-grid h2:after{content:'';display:block;width:170px;height:2px;background:#e1252b;margin-top:28px}.contact-lines{line-height:2.15}.footer-grid table{font-size:18px;line-height:2.15;border-collapse:collapse}.footer-grid td{padding:0}.footer-grid td:last-child{text-align:left;padding-left:35px;white-space:nowrap}.social{display:grid;grid-template-columns:repeat(3,60px);gap:6px 26px}.social a{width:60px;height:60px;display:grid;place-items:center;background:#000;color:#fff}.social svg{width:42px;height:42px}.footer-tagline{text-align:center;background:#f7f7f7;margin-top:22px;padding:24px;font-size:18px}.credit{font-size:18px;color:#111;border:0;margin:0;padding:75px 20px 15px}@media(max-width:1000px){.footer-grid{gap:30px}.footer-grid h2{font-size:30px}.footer-grid,.footer-grid table{font-size:16px}.footer-grid td:last-child{padding-left:15px}.social{grid-template-columns:repeat(3,45px);gap:6px 12px}.social a{width:45px;height:45px}.social svg{width:32px;height:32px}}@media(max-width:650px){footer{padding-top:60px}.footer-grid{grid-template-columns:1fr;max-width:450px;gap:40px}.footer-grid h2{font-size:34px}.footer-grid h2:after{width:125px;margin-top:18px}.footer-grid,.footer-grid table{font-size:17px}.footer-tagline{font-size:17px;margin-top:40px}.credit{font-size:14px;padding-top:45px}}
/* Exact typography measured on the original Duda footer. */
.footer-grid h2{font-family:'Source Sans Pro',Arial,sans-serif;font-size:40px;font-weight:400}.footer-grid>div:first-child h2{font-family:Khula,'Source Sans Pro',sans-serif}.footer-grid,.footer-grid table{font-family:Khula,'Source Sans Pro',sans-serif;font-size:16px;line-height:2.45}.contact-lines{line-height:2.45}.footer-tagline,.credit{font-family:'Source Sans Pro',Arial,sans-serif;font-size:16px}@media(max-width:1000px){.footer-grid h2{font-size:32px}}@media(max-width:650px){.footer-grid h2{font-size:32px}.footer-grid,.footer-grid table{font-size:16px}.credit{font-size:14px}}
.more{padding:90px 20px}.more button{font-family:'Source Sans Pro',Arial,sans-serif;font-size:48px;font-weight:400;line-height:1.4;letter-spacing:0;padding:20px 35px}@media(max-width:650px){.more{padding:60px 20px}.more button{font-size:36px;padding:15px 20px}}
.mobile-menu-button,.mobile-call,.mobile-navigation{display:none}
@media(max-width:767px){body{padding-top:74px;scroll-padding-top:74px}html{scroll-padding-top:74px}header,.home header{position:fixed;top:0;left:0;right:0;height:74px;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:0 3px 8px #0003;z-index:15}header>a:not(.mobile-call){display:flex;align-items:center;justify-content:center}header img,.home header img{width:160px;height:auto;padding:0;background:none}.mobile-menu-button{display:grid;place-items:center;position:absolute;left:12px;top:15px;width:44px;height:44px;border:0;background:none;color:#555;padding:8px}.mobile-menu-button svg{width:28px;height:28px}.mobile-call{display:grid;place-items:center;position:absolute;right:12px;top:15px;width:44px;height:44px;color:var(--red)}.mobile-call svg{width:35px;height:35px}.mobile-navigation:not([hidden]){display:flex;position:absolute;top:74px;left:0;right:0;flex-direction:column;background:white;box-shadow:0 6px 10px #0002;padding:10px 20px 18px}.mobile-navigation a{font-family:'Source Sans Pro',Arial,sans-serif;text-decoration:none;padding:10px 8px;border-bottom:1px solid #eee;color:#333}.mobile-navigation a:hover{color:var(--red)}.project-top{padding-top:40px}}
.project-top{background:#fff;font-family:'Source Sans Pro',Arial,sans-serif;padding-bottom:70px}.project-top h1{font-family:'Source Sans Pro',Arial,sans-serif;font-weight:400;font-size:48px;line-height:1.3;margin:30px auto}.project-top h1:after{content:'';display:block;width:170px;height:2px;background:#df252b;margin:22px auto 0}.description{max-width:1100px;text-align:left;font-size:18px;line-height:1.5;white-space:normal;margin:28px auto 0}.description p{margin:0}.description strong,.description b{font-weight:700}@media(max-width:650px){.project-top{padding-bottom:45px}.project-top h1{font-size:32px}.project-top h1:after{width:125px;margin-top:18px}.description{font-size:17px;line-height:1.6}}
.all-projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:45px 28px;max-width:1320px;margin:0 auto;padding:20px 30px 90px}.project-tile{min-width:0}.tile-photo{display:block;aspect-ratio:1.2;overflow:hidden;background:#eee}.tile-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s}.tile-photo:hover img{transform:scale(1.025)}.tile-content{padding:20px 0 0}.tile-content h2{font-family:Khula,'Source Sans Pro',sans-serif;font-size:25px;font-weight:700;line-height:1.4;letter-spacing:0;margin:0 0 12px}.tile-content h2 a{text-decoration:none}.view-project{font-family:'Source Sans Pro',sans-serif;color:var(--red);font-size:18px;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:3px}.view-project span{margin-left:8px}.all-projects-link{display:block;width:fit-content;margin:15px auto 0;color:white;font:20px 'Source Sans Pro',sans-serif;text-underline-offset:5px}.project-index .project-top p{font-size:18px;max-width:700px;margin:0 auto}.project-index .project-top{padding-bottom:45px}@media(max-width:900px){.all-projects{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.all-projects{grid-template-columns:1fr;padding:15px 20px 60px;gap:35px}.tile-content h2{font-size:24px}.project-index .project-top p{font-size:17px}}

body.admin-bar .mobile-navigation { margin-top: var(--wp-admin--admin-bar--height, 0px); }
.card:focus-visible span { opacity: 1; }

/* Gutenberg wrappers on the editable homepage. */
.hero .wp-block-image.name img { display: block; width: 100%; }
.hero .wp-block-image.down { margin-bottom: 0; margin-inline: auto; }
.expertise .wp-block-image { margin: 0; }
.about-action { justify-content: center; }
.about-action .wp-block-button__link,
.concept-actions .wp-block-button__link {
    display: inline-block;
    border-radius: 0;
    color: #fff;
    text-decoration: none;
}
.about-action .wp-block-button__link {
    background: var(--red);
    font: 400 20px/1.4 'Source Sans Pro', Arial, sans-serif;
    padding: 16px 44px;
}
.concept-actions .wp-block-button__link {
    background: #000;
    font: 400 20px/1.8 'Source Sans Pro', sans-serif;
    padding: 15px 28px;
}
.concept-actions .wp-block-button:first-child { order: 2; }
.concept-actions .wp-block-button + .wp-block-button .wp-block-button__link { background: var(--red); }
@media (max-width: 767px) {
    .about-action .wp-block-button__link { font-size: 18px; padding: 14px 30px; }
    .concept-actions .wp-block-button__link { font-size: 18px; }
}
