/*
Theme Name: Traiteur Steven
Description: Eigen thema voor Traiteur Steven BV (Rumst).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: traiteur-steven
*/

:root{
  --navy:#001f3d; --navy-2:#0f3a6b; --orange:#dca54a; --gold:#d09a40;
  --hero-top:.22; --hero-bottom:.5; /* donkerte van de overlay: 0 = geen, 1 = zwart */
  --hero-h:46vh; --hero-h-home:78vh; /* hoogte van de hero op mobiel en tablet (en op andere pagina's dan Home) */
  --gold-deep:#9a6f22; --cream:#faf5e5; --border:#f0e6c5; --head:#0f172a; --ink:#4a4a4a; --white:#fff;
  --serif:"EB Garamond",Georgia,"Times New Roman",serif;
  --sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);font-size:1.0625rem;line-height:1.7;color:var(--ink);background:var(--cream)}
img{max-width:100%;height:auto;display:block}
a{color:var(--navy-2)}
a:hover{color:var(--gold)}
h1,h2,h3,h4,h5,h6{font-family:var(--serif);line-height:1.2;color:var(--gold);font-weight:600;margin:0 0 .6em}
h2{font-size:clamp(1.9rem,4vw,2.8rem);color:var(--gold)}
h3{font-size:1.6rem}
h4{font-size:1.5rem}
h5{font-size:1.25rem}
h6{font-size:1rem}
.wrap{width:min(100% - 2.5rem,68rem);margin-inline:auto}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-999px;top:0;background:var(--orange);color:var(--navy);padding:.6rem 1rem;z-index:100}
.skip-link:focus{left:0}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:3px solid var(--gold);box-shadow:0 2px 12px rgba(0,0,0,.12)}
.admin-bar .site-header{top:32px}
.header-inner{display:flex;align-items:stretch;justify-content:space-between;gap:1.5rem;min-height:5rem}
.brand{display:flex;align-items:center;padding:.5rem 0}
.brand img,.brand .custom-logo{height:4rem;width:auto}
.brand-text{font-family:var(--serif);font-size:1.7rem;font-weight:600;color:var(--head);text-decoration:none}
.site-nav{display:flex}
.site-nav .menu{list-style:none;margin:0;padding:0;display:flex;align-items:stretch}
.site-nav .menu>li{display:flex;position:relative}
.site-nav a{color:var(--head);text-decoration:none;font-weight:500;letter-spacing:.02em}
.site-nav .menu>li>a{display:flex;align-items:center;padding:0 1.1rem}
.site-nav a:hover,.site-nav .current-menu-item>a,.site-nav .current-menu-ancestor>a{color:var(--gold)}
.site-nav .menu-item-has-children>a::after{content:"";display:inline-block;margin-left:.5rem;border:.3rem solid transparent;border-top-color:currentColor;transform:translateY(.2rem)}
.site-nav .sub-menu{list-style:none;margin:0;padding:.6rem 0;position:absolute;top:100%;left:50%;transform:translateX(-50%);display:none;grid-auto-flow:column;grid-template-rows:repeat(6,auto);column-gap:1rem;width:max-content;max-width:calc(100vw - 2rem);background:var(--white);border-top:3px solid var(--gold);box-shadow:0 12px 24px rgba(0,0,0,.18)}
.site-nav .sub-menu a{display:block;padding:.55rem 1.4rem;white-space:nowrap;font-weight:400;text-align:left}
.sub-toggle{display:none}
@media (min-width:60.0625rem){
  .site-nav .menu-item-has-children:hover>.sub-menu,
  .site-nav .menu-item-has-children:focus-within>.sub-menu{display:grid}
}
.nav-toggle{display:none;background:none;border:0;padding:.75rem;cursor:pointer;align-self:center}
.nav-toggle .bars,.nav-toggle .bars::before,.nav-toggle .bars::after{display:block;width:1.7rem;height:3px;background:var(--head);border-radius:2px;content:"";position:relative}
.nav-toggle .bars::before{position:absolute;top:-8px}
.nav-toggle .bars::after{position:absolute;top:8px}

/* Hero */
.hero{position:relative;min-height:var(--hero-h);display:flex;align-items:center;justify-content:center;text-align:center;color:var(--white);background:linear-gradient(135deg,var(--navy),var(--navy-2)) center/cover no-repeat}
.hero.has-img{background-image:var(--hero-img)}
@media (max-width:48rem){.hero.has-img{background-image:var(--hero-img-sm)}}
.hero--big{min-height:calc(100vh - 5.1875rem)}
@supports (height:100svh){.hero--big{min-height:calc(100svh - 5.1875rem)}}
.admin-bar .hero--big{min-height:calc(100vh - 5.1875rem - 32px)}
@supports (height:100svh){.admin-bar .hero--big{min-height:calc(100svh - 5.1875rem - 32px)}}
@media (max-width:782px){
  .admin-bar .hero--big{min-height:calc(100vh - 5.1875rem - 46px)}
  @supports (height:100svh){.admin-bar .hero--big{min-height:calc(100svh - 5.1875rem - 46px)}}
}
.hero::before{content:"";position:absolute;inset:0;background:#0b0502;opacity:var(--dim,0);pointer-events:none}
.hero-overlay{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 35%,rgba(220,165,74,.2),rgba(220,165,74,0) 62%),linear-gradient(rgba(38,20,5,var(--hero-top)),rgba(18,9,2,var(--hero-bottom)))}
.hero-inner{position:relative;padding:3rem 0}
.hero h1{color:var(--white);font-size:clamp(3rem,9vw,6.5rem);margin:0;text-shadow:0 2px 18px rgba(0,0,0,.45)}
.hero-sub{font-family:var(--serif);font-size:clamp(1.25rem,2.8vw,1.9rem);margin:1rem auto 0;max-width:46rem}
.hero .btn{margin-top:1.5rem}
.hero h1.size-klein{font-size:clamp(2rem,6vw,4rem)}
.hero h1.size-groot{font-size:clamp(3.5rem,11vw,8.5rem)}
.hero-sub.size-klein{font-size:clamp(1rem,2vw,1.35rem)}
.hero-sub.size-groot{font-size:clamp(1.5rem,3.6vw,2.5rem)}

/* Sections */
.section{padding:clamp(3rem,7vw,6rem) 0}
.section--folders{background:transparent}
.entry>*:first-child{margin-top:0}
.entry .wp-block-columns{gap:3rem;align-items:center}
.entry .wp-block-image img{border-radius:.5rem;box-shadow:0 8px 28px rgba(3,32,61,.18)}
.entry p{margin:0 0 .75rem}
.entry h2,.entry h3,.entry h4{margin-top:1.8rem}
.entry>*:first-child{margin-top:0}
.entry ul,.entry ol{padding-left:1.25rem}
.split.has-media{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(2rem,5vw,4.5rem);align-items:start}
.split-media{position:sticky;top:7rem}
.split-media .folder-slider{max-width:none;margin:0}
.split-media .folder-slide img{width:100%;aspect-ratio:4/5;object-fit:cover}
.split-media .folder-btn.prev{left:.75rem}
.split-media .folder-btn.next{right:.75rem}
.wp-block-details{background:var(--white);border:1px solid var(--border);border-radius:.5rem;margin:0 0 .75rem;padding:0}
.wp-block-details summary{position:relative;cursor:pointer;list-style:none;padding:1rem 3.25rem 1rem 1.25rem;font-family:var(--serif);font-size:1.45rem;font-weight:600;line-height:1.2;color:var(--gold)}
.wp-block-details summary::-webkit-details-marker{display:none}
.wp-block-details summary::after{content:"";position:absolute;right:1.4rem;top:50%;width:.6rem;height:.6rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg);transition:transform .2s}
.wp-block-details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.wp-block-details summary:hover{color:var(--head)}
.wp-block-details>:not(summary){padding-left:1.25rem;padding-right:1.25rem}
.wp-block-details>ul,.wp-block-details>ol{padding-left:2.5rem}
.wp-block-details>:last-child{margin-bottom:1rem}
.entry .kolommen{columns:2;column-gap:3rem}
.entry .kolommen-3{columns:3;column-gap:2.5rem}
.entry .kolommen li,.entry .kolommen-3 li{break-inside:avoid;margin-bottom:.4rem}
.entry .zonder-bolletjes{list-style:none;padding-left:0}
.entry .team{margin:2rem auto 3rem;gap:2rem;align-items:flex-start;max-width:46rem}
.entry .team-3,.entry .team-4{max-width:none}
.entry .team .wp-block-image{margin:0 0 1rem}
.entry .team .wp-block-image img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:.4rem}
.entry .team h3{text-align:center;margin:.25rem 0 .15rem}
.entry .team .team-functie{text-align:center;margin:0}
.entry .kader{background:var(--white);border-top:4px solid var(--gold);border-radius:.5rem;padding:1.5rem 1.75rem;margin:2rem 0}
.entry .kader>*:first-child{margin-top:0}
.entry .kader>*:last-child{margin-bottom:0}
.entry .lijsten{gap:2rem;align-items:flex-start;margin:1rem auto 2rem;max-width:52rem;text-align:center}
.entry .lijsten h4{margin-top:0}
.entry .lijsten ul{list-style:none;padding-left:0}
.entry .lijsten li{margin-bottom:.3rem}
.entry .foto-strook{max-width:46rem;margin:0 auto 2rem}
.entry .foto-strook img{width:100%;height:auto;aspect-ratio:16/9;max-height:15rem;object-fit:cover}
.entry .prijslijst{margin:0 0 1.5rem}
.entry .prijslijst table{width:100%;table-layout:auto;border-collapse:collapse}
.entry .prijslijst td,.entry .prijslijst th{border:0;border-bottom:1px dotted #cfc3a0;padding:.5rem .25rem;text-align:left;vertical-align:baseline}
.entry .prijslijst td:last-child,.entry .prijslijst th:last-child{text-align:right;white-space:nowrap;padding-left:1.5rem;font-variant-numeric:tabular-nums}
.entry .prijslijst tr:last-child td{border-bottom:0}
.entry .tekst-foto{align-items:flex-start;gap:clamp(2rem,5vw,4.5rem);margin-bottom:3.5rem}
.entry .wp-block-columns.tekst-foto{align-items:stretch}
.entry .tekst-foto>.wp-block-column{align-self:stretch}
.entry .tekst-foto .photo-carousel{position:sticky;top:7rem}
.entry .tekst-foto .folder-slide img{max-height:calc(100vh - 11rem);min-height:18rem}
.admin-bar .split-media,.admin-bar .tekst-foto .photo-carousel{top:9.5rem}
.fotocarousel .wp-block-image:not(:first-child){display:none}
.photo-carousel .folder-slider{max-width:none;margin:0}
.photo-carousel .folder-slide img{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;border-radius:.4rem}
.photo-carousel .folder-btn.prev{left:.75rem}
.photo-carousel .folder-btn.next{right:.75rem}
.entry .lead{font-family:var(--serif);font-size:1.5rem;color:var(--gold)}
.btn,.wp-block-button__link{display:inline-block;background:var(--gold);color:#fff!important;font-weight:600;text-decoration:none;padding:.85rem 1.6rem;border:0;border-radius:.4rem;cursor:pointer;font-size:1rem}
.btn:hover,.wp-block-button__link:hover{background:var(--navy);color:var(--cream)!important}

/* Folder slider */
.folder-intro{max-width:44rem;margin:0 auto 1.75rem;text-align:center;font-family:var(--serif);font-size:clamp(1.25rem,2.4vw,1.55rem);line-height:1.45;color:var(--head)}
.folder-intro p{margin:0 0 .8rem}
.folder-slider{position:relative;max-width:56rem;margin:2rem auto 0}
.folder-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:1rem}
.folder-track::-webkit-scrollbar{display:none}
.folder-slide{flex:0 0 100%;scroll-snap-align:center}
.folder-slide a{display:block;cursor:zoom-in}
.folder-slide img{width:100%;border-radius:.4rem;box-shadow:0 8px 28px rgba(0,0,0,.2)}
.folder-btn{position:absolute;top:50%;transform:translateY(-50%);width:3rem;height:3rem;padding:0;display:grid;place-items:center;border-radius:50%;border:0;background:var(--navy);color:var(--cream);cursor:pointer;opacity:.92}
.folder-btn:hover{background:var(--orange);color:var(--navy)}
.folder-btn.prev{left:-1.5rem}.folder-btn.next{right:-1.5rem}
.folder-dots{display:flex;justify-content:center;gap:.5rem;margin-top:1rem}
.folder-dots button{width:.7rem;height:.7rem;padding:0;border-radius:50%;border:0;background:#c9c3b3;cursor:pointer}
.folder-dots button.on{background:var(--orange)}
.folder-hint{text-align:center;font-size:.9rem;opacity:.7;margin-top:.5rem}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:200;display:flex;align-items:center;justify-content:center;padding:1rem;cursor:zoom-out}
.lightbox img{max-width:96vw;max-height:92vh;width:auto;height:auto;object-fit:contain}

/* Contact */
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:2rem;margin-bottom:2.5rem}
.info-card{background:var(--white);padding:1.5rem;border-radius:.5rem;border-top:4px solid var(--gold)}
.info-card h3{color:var(--gold);margin-bottom:.4rem}
.info-card p{margin:.2rem 0}
.info-card a{color:inherit;text-decoration:none}
.info-card a:hover{color:var(--gold)}
.info-card .social{color:var(--gold)}
.map-consent{display:grid;place-items:center;text-align:center;background:var(--white);border-top:4px solid var(--gold);border-radius:.5rem;padding:2rem 1.5rem;min-height:14rem;margin:0 0 2.5rem}
.map-consent p{margin:.4rem 0}
.map-consent .map-open{margin-left:1rem;color:var(--gold-deep)}
.pay-card{background:var(--white);padding:1.5rem 1.75rem;border-radius:.5rem;border-top:4px solid var(--gold);margin-bottom:2.5rem}
.pay-card h3{color:var(--gold);margin-bottom:.5rem}
.pay-card p{margin:0 0 .9rem}
.pay-card p:last-child{margin-bottom:0}
.map{display:block;border:0;width:100%;height:22rem;border-radius:.5rem;margin:0 0 2.5rem}
.quote-form{background:var(--white);padding:clamp(1.25rem,4vw,2.5rem);border-radius:.5rem;margin-top:3rem}
.quote-form .row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.quote-form label{display:block;font-weight:600;margin:1rem 0 .3rem}
.quote-form input,.quote-form select,.quote-form textarea{width:100%;padding:.7rem .8rem;border:1px solid var(--border);border-radius:.35rem;font:inherit;background:var(--cream)}
.quote-form .hp{position:absolute;left:-9999px}
.notice{padding:1rem 1.25rem;border-radius:.4rem;margin-bottom:1.5rem;font-weight:600}
.notice.ok{background:#e3f3e1;color:#1d5a1a}.notice.err{background:#fde8e6;color:#8a1f15}

/* Footer */
.site-footer{color:var(--ink)}
.footer-main{background:var(--border);padding:3rem 0}
.footer-bottom{background:var(--white);border-top:3px solid var(--gold);padding:1rem 0}
.footer-grid{display:flex;flex-wrap:wrap;justify-content:space-evenly;align-items:flex-start;gap:2.5rem 3rem}
.footer-logo img{width:7.5rem;height:7.5rem;object-fit:contain}
.site-footer h3{color:var(--head);font-size:1.4rem;margin-bottom:.6rem}
.site-footer p{margin:.25rem 0}
.site-footer a{text-decoration:none}
.social{display:flex;align-items:center;gap:.55rem;color:var(--gold);font-weight:500;margin:.3rem 0;text-decoration:none}
.social:hover{color:var(--head)}
.footer-col a:not(.social){color:inherit}
.footer-col a:not(.social):hover{color:var(--gold)}
.copy{margin:0;font-size:.9rem;text-align:center}
.copy a{color:var(--gold-deep)}
.copy a:hover{color:var(--head)}
.site-footer .social{color:var(--gold-deep)}
.site-footer .social:hover{color:var(--head)}

@media (max-width:60rem){
  .admin-bar .site-header{top:46px}
  .nav-toggle{display:block}
  .site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--white);padding:.25rem 1.25rem 1rem;border-top:1px solid var(--border);box-shadow:0 12px 24px rgba(0,0,0,.15);max-height:calc(100vh - 6rem);overflow:auto}
  .site-nav.open{display:block}
  .site-nav .menu{flex-direction:column}
  .site-nav .menu>li{display:flex;flex-wrap:wrap;align-items:center;border-bottom:1px solid var(--border)}
  .site-nav .menu>li>a{flex:1;padding:.85rem .25rem}
  .site-nav .menu-item-has-children>a::after{display:none}
  .sub-toggle{display:grid;place-items:center;width:2.75rem;height:2.75rem;padding:0;background:none;border:0;color:var(--head);cursor:pointer}
  .sub-toggle svg{transition:transform .2s}
  .menu-item-has-children.open>.sub-toggle svg{transform:rotate(180deg)}
  .site-nav .sub-menu{position:static;transform:none;display:none;flex:0 0 100%;width:auto;max-width:none;grid-auto-flow:row;grid-template-rows:none;padding:0 0 .5rem 1rem;box-shadow:none;border:0}
  .site-nav .menu-item-has-children.open>.sub-menu{display:block}
  .site-nav .sub-menu a{white-space:normal;padding:.55rem .25rem}
  .folder-btn.prev{left:.25rem}.folder-btn.next{right:.25rem}
  .quote-form .row{grid-template-columns:1fr}
  .footer-grid{flex-direction:column;align-items:flex-start;gap:2rem}
  .split.has-media{grid-template-columns:1fr}
  .split-media{position:static}
}
@media (max-width:40rem){
  .entry .kolommen,.entry .kolommen-3{columns:1}
}
@media (max-width:781px){
  .entry .fotos-links{flex-wrap:wrap-reverse!important}
  .entry .tekst-foto .photo-carousel{position:static}
  .entry .tekst-foto .folder-slide img{max-height:none}
}
/* Op tablet en mobiel blijft de hero van de homepage lager, zodat de foto niet te sterk wordt uitgerokken */
@media (max-width:60rem){
  .hero--big,.admin-bar .hero--big{min-height:var(--hero-h-home)}
}

/* Compactere weergave op mobiel en tablet: kleinere header, lagere hero en iets kleinere tekst */
@media (max-width:60rem){
  body{font-size:1rem}
  .header-inner{min-height:4.25rem}
  .brand img,.brand .custom-logo{height:3.25rem}
  .hero{min-height:clamp(14rem,60vw,24rem)}
  .hero--big,.admin-bar .hero--big{min-height:var(--hero-h-home)}
  .hero-inner{padding:2rem 0}
  .hero h1{font-size:clamp(2.4rem,11vw,3.6rem)}
  .hero-sub{font-size:clamp(1.1rem,4.4vw,1.5rem)}
  h3{font-size:1.4rem}
  .section{padding:2.5rem 0}
}
