/* SK Natuursteen & tegels - demo homepage */

@font-face { font-family: "General Sans"; src: url("../assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../assets/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #ededea;
  --surface: #f7f7f5;
  --ink: #1d1f21;
  --ink-2: #4a4d51;
  --ink-3: #64676b;
  --line: #cfcfca;
  --accent: #5f4831;       /* brons uit het logo */
  --accent-hover: #4b3825;
  --on-accent: #ffffff;
  --dark: #1d1f21;
  --on-dark: #f2f2ef;
  --on-dark-2: #b9bab6;
  --error: #a3261b;

  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
html { accent-color: var(--accent); caret-color: var(--accent); }
a, button, input, select, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(95, 72, 49, 0.18); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
address { font-style: normal; }
svg { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.section { padding-block: var(--section); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Buttons: alles recht, net als gezaagde steen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out), transform .1s ease-out;
}
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(20, 21, 22, 0.28); color: #fff; border-color: rgba(255,255,255,0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn-ghost:focus-visible, .hero :focus-visible { outline-color: #fff; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent); text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-hover); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.site-header.is-solid { background: rgba(237, 237, 234, 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; position: relative; width: 172px; height: 40px; flex: none; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s var(--ease-out); }
.brand-dark { opacity: 0; }
.is-solid .brand-dark, .menu-open .brand-dark { opacity: 1; }
.is-solid .brand-light, .menu-open .brand-light { opacity: 0; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav-list a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; padding-block: 8px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out); }
.nav-list a:not(.btn):hover { background-size: 100% 1px; }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .header-phone span, .header-cta { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; }
  .header-phone svg { width: 22px; height: 22px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .3s var(--ease-out); }
  .menu-toggle-bars::before { content: ""; position: absolute; top: 7px; left: 0; }
  .menu-toggle-bars { transform: translateY(-3.5px); }
  .menu-open .menu-toggle-bars { transform: translateY(0) rotate(45deg); }
  .menu-open .menu-toggle-bars::before { transform: translateY(-7px) rotate(-90deg); }
  .nav-list {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); color: var(--ink);
    padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s linear .25s;
  }
  .menu-open .nav-list { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; padding-top: 20px; }
  .nav-list a:not(.btn) { display: block; padding-block: 16px; font-size: 20px; background: none; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile .btn { width: 100%; min-height: 52px; }
  .site-header.menu-open { background: var(--bg); color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; background: var(--dark); }
.js-motion .hero { height: 210vh; height: 210svh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-quarry, .hero-window, .hero-window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-quarry { transform-origin: 50% 40%; }
.hero-window { clip-path: inset(100% 0 0 0); will-change: clip-path; }
.hero-window img { transform: scale(1.12); transform-origin: 50% 60%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,19,20,0.55) 0%, rgba(18,19,20,0) 22%),
    linear-gradient(0deg, rgba(18,19,20,0.82) 0%, rgba(18,19,20,0.45) 38%, rgba(18,19,20,0) 64%);
}
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(40px, 8vh, 88px); color: #fff; }
.hero-title { font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; max-width: 14ch; }
.hero-line { display: block; }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; max-width: 34ch; color: rgba(255,255,255,0.9); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Zonder JS of met reduced motion: interieur direct zichtbaar */
.no-motion .hero-window { clip-path: inset(0); }
.no-motion .hero-window img { transform: none; }

@media (max-width: 599px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; }
.intro-statement { grid-column: 1 / span 10; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.muted { color: var(--ink-3); }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; }
.fact { border-top: 1px solid var(--ink); padding-top: 20px; }
.fact dt { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -0.01em; }
.fact dd { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; max-width: 26ch; }
@media (max-width: 899px) {
  .intro-statement { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
@media (max-width: 479px) {
  .facts { grid-template-columns: 1fr; }
}

/* ---------- Materialen ---------- */
.section-title { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.section-lead { margin-top: 20px; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; }
.materials { background: var(--surface); }
.stone-list { list-style: none; margin: 56px auto 0; }
.stone { border-top: 1px solid var(--line); }
.stone:last-child { border-bottom: 1px solid var(--line); }
.stone-link {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 160px minmax(0, 4fr) minmax(0, 6fr) 32px; align-items: center; gap: 32px;
  padding-block: 26px; text-decoration: none;
  transition: color .45s var(--ease-out);
}
.stone-swatch {
  grid-column: 1; height: 64px; overflow: hidden; position: relative;
}
.stone-swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.stone-name { font-size: clamp(28px, 3.4vw, 48px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.stone-desc { color: var(--ink-2); max-width: 52ch; transition: color .45s var(--ease-out); }
.stone-arrow { width: 26px; height: 26px; justify-self: end; transition: transform .45s var(--ease-out); }

@media (min-width: 900px) and (hover: hover) {
  /* Bij hover groeit het staaltje uit tot de volle breedte van de rij */
  .stone-swatch { position: absolute; inset: 0; height: auto; z-index: -1;
    clip-path: inset(calc(50% - 32px) calc(100% - 160px) calc(50% - 32px) 0);
    transition: clip-path .7s var(--ease-out); }
  .stone-swatch::after { content: ""; position: absolute; inset: 0; background: rgba(18,19,20,0); transition: background-color .5s var(--ease-out); }
  .stone-link:hover .stone-swatch, .stone-link:focus-visible .stone-swatch { clip-path: inset(0 0 0 0); }
  .stone-link:hover .stone-swatch::after, .stone-link:focus-visible .stone-swatch::after { background: rgba(18,19,20,0.62); }
  .stone-link:hover, .stone-link:focus-visible { color: #fff; }
  .stone-link:hover .stone-desc, .stone-link:focus-visible .stone-desc { color: rgba(255,255,255,0.9); }
  .stone-link:hover .stone-arrow, .stone-link:focus-visible .stone-arrow { transform: translateX(-12px); }
  .stone-name { grid-column: 2; padding-left: 0; }
  .stone-link > .stone-name { transition: transform .6s var(--ease-out); }
  .stone-link:hover > .stone-name, .stone-link:focus-visible > .stone-name { transform: translateX(16px); }
}
@media (max-width: 899px) {
  .stone-link { grid-template-columns: 1fr 28px; gap: 10px 16px; padding-block: 24px; }
  .stone-swatch { grid-column: 1 / -1; height: 72px; }
  .stone-name { grid-column: 1; }
  .stone-arrow { grid-column: 2; grid-row: 2; }
  .stone-desc { grid-column: 1 / -1; }
}

/* ---------- Toepassingen (bento) ---------- */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.tile { text-decoration: none; display: block; }
.tile figure { margin: 0; height: 100%; display: flex; flex-direction: column; }
.tile-img { overflow: hidden; background: var(--line); flex: 1; min-height: 220px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile figcaption { padding-top: 18px; }
.tile h3 { font-size: 22px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.tile p { color: var(--ink-2); margin-top: 4px; font-size: 16px; max-width: 44ch; }
.tile:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.tile-xl { grid-column: 1 / span 7; grid-row: span 2; }
.tile-xl .tile-img { min-height: 520px; }
.tile:nth-child(2), .tile:nth-child(3) { grid-column: span 5; }
.tile-wide { grid-column: span 6; }
.tile-wide .tile-img { aspect-ratio: 16 / 9; flex: none; }
@media (max-width: 899px) {
  .bento { grid-template-columns: 1fr; gap: 40px; }
  .tile-xl, .tile:nth-child(2), .tile:nth-child(3), .tile-wide { grid-column: 1 / -1; grid-row: auto; }
  .tile-xl .tile-img, .tile-img { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
}

/* ---------- Eigen import ---------- */
.import { padding-top: 0; }
.import-band { height: clamp(260px, 42vw, 560px); overflow: hidden; background: var(--dark); }
.import-band img { width: 100%; height: 125%; object-fit: cover; }
.import-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; padding-top: clamp(56px, 8vw, 104px); }
.import-grid .section-title { grid-column: 1 / span 5; }
.import-text { grid-column: 7 / span 6; display: grid; gap: 18px; font-size: 18px; color: var(--ink-2); }
.import-aside { grid-column: 7 / span 6; border-top: 1px solid var(--accent); padding-top: 20px; }
.import-aside h3 { font-size: 20px; }
.import-aside p { color: var(--ink-2); margin-top: 6px; }
@media (max-width: 899px) {
  .import-grid .section-title, .import-text, .import-aside { grid-column: 1 / -1; }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--surface); }
.reviews-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; align-items: start; }
.score { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); }
.score-num { font-size: clamp(96px, 13vw, 184px); line-height: 0.9; letter-spacing: -0.05em; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.score-title { font-size: clamp(22px, 2vw, 28px); margin-top: 16px; letter-spacing: -0.01em; }
.score .text-link { margin-top: 16px; font-size: 15px; }
.quotes { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote { margin: 0; padding: 28px; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote:nth-child(even) { margin-top: 48px; margin-bottom: -48px; }
.quote blockquote { margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: -0.005em; }
.quote figcaption { display: flex; flex-direction: column; font-size: 15px; }
.quote figcaption span { color: var(--ink-3); }
@media (max-width: 899px) {
  .score { grid-column: 1 / -1; position: static; }
  .quotes { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .quote:nth-child(even) { margin: 0; }
}

/* ---------- Merken ---------- */
.brands { border-block: 1px solid var(--line); overflow: hidden; padding-block: 28px; }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 48s linear infinite; }
.marquee-track span { font-size: clamp(20px, 2vw, 26px); font-weight: 500; color: var(--ink-3); letter-spacing: -0.01em; white-space: nowrap; }
.brands:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- Bezoek ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: start; }
.visit-info { grid-column: 1 / span 6; }
.visit-blocks { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.visit-block h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 12px; }
.visit-block h3 svg { width: 20px; height: 20px; }
.visit-block address, .visit-block p { font-size: 17px; }
.visit-block .small { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.visit-contact a { text-decoration: none; font-weight: 500; }
.visit-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.visit-contact p:first-of-type a { font-size: 24px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hours { margin: 0; display: grid; gap: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.hours div { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; text-align: right; }

.form { grid-column: 8 / span 5; background: var(--surface); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; }
.form-title { font-size: 24px; letter-spacing: -0.01em; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 15px; font-weight: 500; }
.optional { color: var(--ink-3); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #8d8f8b; border-radius: 0;
  padding: 12px 14px; min-height: 48px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { resize: vertical; min-height: 112px; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95, 72, 49, 0.25); }
input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; }
.form-status { padding: 16px; background: var(--bg); border-top: 1px solid var(--accent); font-size: 15px; }
@media (max-width: 899px) {
  .visit-info, .form { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .visit-blocks, .field-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding-top: clamp(64px, 8vw, 104px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px 24px; }
.footer-brand img { width: 240px; height: auto; }
.footer-title { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--on-dark-2); margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; }
.footer-bottom { margin-top: 64px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,0.14); font-size: 14px; color: var(--on-dark-2); }
@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; padding-inline: var(--gutter); }
  .marquee-track span:nth-child(n+15) { display: none; }
}
