/* ============================================================
   ToThal Parket — stylesheet
   Drie stijlrichtingen via [data-theme]: dark · oak · light
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Theme tokens ---------- */
:root {
  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  --section-y: clamp(72px, 11vw, 150px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- DARK — Luxe & exclusief (default, logo DNA) ---- */
[data-theme="dark"] {
  --bg:        #0E0C0A;
  --bg-2:      #15110D;
  --surface:   #1A1611;
  --surface-2: #221C16;
  --ink:       #EFE9DD;
  --ink-soft:  #C6BCAC;
  --muted:     #8C8273;
  --line:      rgba(239, 233, 221, 0.12);
  --line-2:    rgba(239, 233, 221, 0.07);
  --accent:    #C8A45C;   /* brass */
  --accent-2:  #E2C589;
  --on-accent: #1A1408;
  --hero-grad: linear-gradient(180deg, rgba(14,12,10,0) 0%, rgba(14,12,10,0.55) 60%, var(--bg) 100%);
  --ph-a: #211B14;
  --ph-b: #2A2219;
  --shadow: 0 30px 60px -30px rgba(0,0,0,0.8);
  --coin-bg: #0B0A08;
}

/* ---- OAK — Warm & ambachtelijk ---- */
[data-theme="oak"] {
  --bg:        #F3ECE0;
  --bg-2:      #ECE2D2;
  --surface:   #FBF6EC;
  --surface-2: #FFFFFF;
  --ink:       #2B2117;
  --ink-soft:  #5A4A39;
  --muted:     #897760;
  --line:      rgba(43, 33, 23, 0.14);
  --line-2:    rgba(43, 33, 23, 0.07);
  --accent:    #A86B33;   /* cognac oak */
  --accent-2:  #8A551F;
  --on-accent: #FBF6EC;
  --hero-grad: linear-gradient(180deg, rgba(243,236,224,0) 0%, rgba(243,236,224,0.5) 62%, var(--bg) 100%);
  --ph-a: #E3D5BF;
  --ph-b: #D8C6AA;
  --shadow: 0 28px 50px -28px rgba(91, 66, 40, 0.4);
  --coin-bg: #14110D;
}

/* ---- LIGHT — Strak & verfijnd ---- */
[data-theme="light"] {
  --bg:        #F6F5F1;
  --bg-2:      #EEEDE7;
  --surface:   #FFFFFF;
  --surface-2: #FBFBF9;
  --ink:       #1D1C19;
  --ink-soft:  #4C4A44;
  --muted:     #807E76;
  --line:      rgba(29, 28, 25, 0.13);
  --line-2:    rgba(29, 28, 25, 0.06);
  --accent:    #5E6B57;   /* sage */
  --accent-2:  #46523F;
  --on-accent: #F6F5F1;
  --hero-grad: linear-gradient(180deg, rgba(246,245,241,0) 0%, rgba(246,245,241,0.5) 62%, var(--bg) 100%);
  --ph-a: #E6E5DF;
  --ph-b: #DBDAD2;
  --shadow: 0 28px 50px -30px rgba(40, 40, 35, 0.25);
  --coin-bg: #14130F;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--bg-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; }
.h-display { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.h-section  { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h-card     { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); font-weight: 300; max-width: 46ch; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95em 1.6em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 1em; height: 1em; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center;
  padding-block: 16px;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-2);
  padding-block: 10px;
}
/* Transparent state sits over the hero photo — use a scrim + light text in every theme */
.header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(8,7,5,0.46) 0%, rgba(8,7,5,0.14) 62%, rgba(8,7,5,0) 100%);
}
.header:not(.scrolled) .brand__name { color: #F5EFE3; }
.header:not(.scrolled) .brand__name span { color: rgba(245,239,227,0.62); }
.header:not(.scrolled) .nav a { color: rgba(245,239,227,0.88); }
.header:not(.scrolled) .nav a:hover { color: #fff; }
.header:not(.scrolled) .header__phone { color: #F5EFE3; }
.header:not(.scrolled) .burger span { background: #F5EFE3; }
.header__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.coin {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--coin-bg);
  display: grid; place-items: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}
.coin img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.brand__name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1; }
.brand__name span { display: block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.42em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 4px; transition: color 0.25s; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width 0.3s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header__cta { display: flex; align-items: center; gap: 18px; }
.header__phone { font-size: 0.9rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.header__phone svg { width: 15px; height: 15px; color: var(--accent); }
.burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(48px, 8vh, 96px); padding-top: 140px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.hero__media .ph { width: 100%; height: 100%; border-radius: 0; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(8,7,5,0.80) 0%, rgba(8,7,5,0.46) 42%, rgba(8,7,5,0.12) 68%, rgba(8,7,5,0) 86%),
  linear-gradient(0deg, rgba(8,7,5,0.60) 0%, rgba(8,7,5,0) 42%); }
.hero .eyebrow { color: #E7CB8E; }
.hero h1 { color: #F5EFE3; }
.hero .lede { color: rgba(245,239,227,0.90); }
.hero__inner { position: relative; z-index: 1; }
.hero h1 { margin: 0.4em 0 0; max-width: 16ch; }
.hero .lede { margin-top: 1.4em; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4em; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vh, 96px); z-index: 1;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(245,239,227,0.7);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; }
.hero__scroll::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--accent), transparent); }
@media (max-width: 820px) { .hero__scroll { display: none; } }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px);
  border-radius: var(--r-md);
}
.ph__label {
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--ink-soft); background: color-mix(in srgb, var(--bg) 72%, transparent);
  padding: 5px 10px; border-radius: 100px; backdrop-filter: blur(4px);
  border: 1px solid var(--line-2);
}

/* ---------- Marquee / trust ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__cell { padding: 30px var(--gutter); border-left: 1px solid var(--line-2); }
.strip__cell:first-child { border-left: 0; }
.strip__k { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.strip__v { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 760px) { .strip__inner { grid-template-columns: repeat(2, 1fr); } .strip__cell:nth-child(odd) { border-left: 0; } .strip__cell { border-top: 1px solid var(--line-2); } }

/* ---------- Section head ---------- */
.shead { max-width: var(--maxw); margin: 0 auto; }
.shead h2 { margin-top: 0.45em; max-width: 18ch; }
.shead p { margin-top: 1em; }

/* ---------- Services grid ---------- */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(40px, 6vw, 72px); background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.svc { background: var(--surface); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; min-height: 280px; transition: background-color 0.4s var(--ease); position: relative; }
.svc:hover { background: var(--surface-2); }
.svc__num { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.svc h3 { margin-top: auto; }
.svc p { font-size: 0.95rem; color: var(--ink-soft); }
.svc__mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.svc__mark svg { width: 18px; height: 18px; }
@media (max-width: 920px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-services { grid-template-columns: 1fr; } }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split--rev { grid-template-columns: 0.95fr 1.05fr; }
.split__media { aspect-ratio: 4/5; }
.split__media .ph { height: 100%; }
.split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
.split ul { list-style: none; margin-top: 1.8em; display: grid; gap: 2px; }
.split li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.split li:last-child { border-bottom: 1px solid var(--line-2); }
.split li b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; display: block; margin-bottom: 3px; }
.split li span { font-size: 0.92rem; color: var(--muted); }
.split li i { color: var(--accent); font-style: normal; font-family: var(--mono); font-size: 0.8rem; padding-top: 3px; }
@media (max-width: 880px) { .split, .split--rev { grid-template-columns: 1fr; } .split__media { order: -1; aspect-ratio: 16/11; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(40px, 6vw, 72px); }
.step { padding-top: 26px; border-top: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { font-size: 1.35rem; margin: 18px 0 10px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Projects gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 64px); }
.tile { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; }
.tile .ph { width: 100%; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.8s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%); pointer-events: none; }
.tile--focal { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.tile--pos-left img { object-position: left center; }
.tile--pos-right img { object-position: right center; }
.tile--pos-floor img { object-position: center 78%; }
.tile__cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; }
.tile__cap b { font-family: var(--serif); font-size: 1.15rem; display: block; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.6); }
.tile__cap span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.82); }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } .tile--focal { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .tile--focal { aspect-ratio: 4/3; } }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; gap: 14px 14px; margin-top: clamp(36px, 5vw, 56px); }
.brand-chip {
  font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.02em;
  padding: 14px 26px; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-soft); transition: 0.35s var(--ease);
}
.brand-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; }
.cta__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; padding: clamp(44px, 6vw, 80px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta h2 { margin: 0.3em 0 0; }
.contact-card { display: grid; gap: 16px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.contact-row:first-child { border-top: 0; }
.contact-row .ic { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.contact-row .ic svg { width: 18px; height: 18px; }
.contact-row small { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-row a, .contact-row b { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
@media (max-width: 820px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px) 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .coin { width: 54px; height: 54px; }
.footer p { color: var(--muted); font-size: 0.92rem; margin-top: 18px; max-width: 34ch; }
.footer h4 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; font-size: 0.94rem; color: var(--ink-soft); margin: 0 0 10px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 720px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Style switcher ---------- */
.switcher {
  position: fixed; z-index: 60; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px;
  box-shadow: var(--shadow);
}
.switcher__label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding: 0 8px 0 10px; }
.switcher button {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 0; cursor: pointer; padding: 8px 14px; border-radius: 100px;
  transition: color 0.3s, background-color 0.3s; display: flex; align-items: center; gap: 7px;
}
.switcher button .dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(125,125,125,0.4); }
.switcher button[data-set="dark"] .dot { background: #0E0C0A; }
.switcher button[data-set="oak"] .dot { background: #A86B33; }
.switcher button[data-set="light"] .dot { background: #EDEBE4; }
.switcher button.active { background: var(--accent); color: var(--on-accent); }
.switcher button.active .dot { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5); }
@media (max-width: 600px) { .switcher__label { display: none; } .switcher button { padding: 8px 10px; } .switcher button span.txt { display: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 940px) {
  .nav, .header__phone { display: none; }
  .burger { display: flex; }
  .nav.open { display: flex; position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 28px; z-index: 55; }
  .nav.open a { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
}
/* On phones the "Offerte aanvragen" button crowds out the burger — hide it;
   the menu, hero buttons and contact section still surface the CTA. */
@media (max-width: 600px) {
  .header__cta .btn--primary { display: none; }
}
