/* ============================================================================
   Clearbridge — Designsysteem
   Tokens en maten gemeten op vaarnii.com, 30 augustus 2026.
   Zie docs/01-CLONEPLAN.md. Wijk hier niet van af zonder dat document bij te werken.
   ========================================================================= */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Kleur. Vaarnii's set, één stap naar warm omdat teak goudbruin is. */
  --paper: #ffffff;
  --ink: #101010;
  --ink-soft: #6e6a64;
  --panel: #f5f2ed;
  --line: #dcd8d2;
  --line-soft: #ede9e3;
  --accent-cool: #d6d2c8;
  --accent-deep: #6b7264;
  --seamless: #d8d3cb; /* alleen een beeldinstructie, zie BEELDPLAN */

  /* Typografie. Eén familie, één gewicht. Er is geen bold op deze site. */
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
  --t-micro: 12px;
  --t-small: 12.8px;
  --t-body-s: 14px;
  --t-body: 16px;
  --t-intro: 18px;
  --t-section: 25px;
  --t-page: 28px;
  --t-display: 39px;

  --lh-body: 1.4;
  --lh-head: 1.15;

  /* Grid. 12 kolommen van 120px op 1440, full bleed, gap 0. */
  --cols: 12;
  --content-max: 1100px;
  --gutter: 32px;
  --pad-x: 24px;

  /* Ritme */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;
  --sp-7: 140px;

  --header-h: 56px;
  --t-fast: 150ms ease;
}

/* --- Reset -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Er is geen bold. Als er ergens toch een <strong> of <b> staat, blijft die 400. */
strong,
b,
th,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

/* Geen enkele afgeronde hoek, geen enkele schaduw. Dit is de vormtaal. */
* {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* --- Typografische rollen ----------------------------------------------- */

.t-micro {
  font-size: var(--t-micro);
}
.t-small {
  font-size: var(--t-small);
}
.t-body-s {
  font-size: var(--t-body-s);
}
.t-body {
  font-size: var(--t-body);
}
.t-intro {
  font-size: var(--t-intro);
}
.t-section {
  font-size: var(--t-section);
  line-height: var(--lh-head);
}
.t-page {
  font-size: var(--t-page);
  line-height: var(--lh-head);
}
.t-display {
  font-size: var(--t-display);
  line-height: var(--lh-head);
}
.t-soft {
  color: var(--ink-soft);
}

/* --- Layout ------------------------------------------------------------- */

.grid12 {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 0;
}

.content {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.split2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.bleed2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* 5 · SectionRule — de hairline die alles scheidt. De signatuur van dit ontwerp. */
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section {
  padding-block: var(--sp-6);
}
.section-sm {
  padding-block: var(--sp-4);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

/* --- Knoppen en links --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 14px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-body-s);
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.btn:hover {
  background: transparent;
  color: var(--ink);
}
.btn--block {
  width: 100%;
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

/* Tekstlink met pijl. Vaarnii gebruikt dit overal in plaats van een tweede knop. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--t-body-s);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "→";
  transition: transform var(--t-fast);
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* --- 1 · Header --------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding-inline: var(--pad-x);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header__logo {
  font-size: var(--t-intro);
  letter-spacing: -0.01em;
}
.header__nav {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--t-small);
}
.header__nav a:hover {
  border-bottom: 1px solid var(--ink);
}
.header__util {
  display: flex;
  gap: var(--sp-2);
  justify-self: end;
  font-size: var(--t-small);
}
.header__count {
  font-variant-numeric: tabular-nums;
}

/* --- 2 · HeroFull ------------------------------------------------------- */

.hero {
  position: relative;
}
.hero__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  object-fit: cover;
}
.hero__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  color: var(--paper);
  padding: var(--pad-x);
}
.hero__title {
  font-size: var(--t-display);
  line-height: var(--lh-head);
}
.hero__sub {
  font-size: var(--t-body);
}

/* --- 3 · ProductRail + 4 · ProductCard ---------------------------------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail > * {
  scroll-snap-align: start;
}

.rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-3);
  padding-inline: var(--pad-x);
}
.rail-dots {
  display: flex;
  gap: 6px;
}
.rail-dot {
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink);
}
.rail-dot[aria-current="true"] {
  background: var(--ink);
}
.rail-arrows {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--t-intro);
}
.rail-arrows button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.card {
  display: block;
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__media img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.card:hover .card__media img + img {
  opacity: 1;
}
.card__body {
  padding: var(--sp-2) var(--pad-x) var(--sp-4);
}
.card__name {
  font-size: var(--t-body-s);
}
.card__price {
  font-size: var(--t-body-s);
  color: var(--ink-soft);
}

/* --- 6 · EditorialSplit ------------------------------------------------- */

.editorial {
  background: var(--accent-cool);
}
.editorial__inner {
  display: grid;
  grid-template-columns: 534px 534px;
  gap: var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--sp-5) var(--pad-x);
  align-items: center;
}
.editorial__media {
  aspect-ratio: 4 / 5;
  background: var(--panel);
}
.editorial__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* --- 7 · StatementLine -------------------------------------------------- */

.statement {
  max-width: 720px;
  margin-inline: auto;
  padding: var(--sp-7) var(--pad-x);
  text-align: center;
  font-size: var(--t-section);
  line-height: var(--lh-head);
}

/* --- 8 · PdpGallery + 9 · PdpBuyColumn ---------------------------------- */

.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.pdp__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.pdp__shot {
  background: var(--panel);
}
.pdp__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdp__shot--45 {
  aspect-ratio: 4 / 5;
}
.pdp__shot--11 {
  aspect-ratio: 1 / 1;
}
.pdp__shot--wide {
  grid-column: 1 / -1;
  aspect-ratio: 8 / 5;
}

.pdp__buy {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
}
.pdp__name {
  font-size: var(--t-page);
  line-height: var(--lh-head);
}
.pdp__price {
  font-size: var(--t-intro);
  font-variant-numeric: tabular-nums;
}
.pdp__note {
  font-size: var(--t-micro);
  color: var(--ink-soft);
}

/* Configurator */
.opt {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.opt__label {
  font-size: var(--t-micro);
  color: var(--ink-soft);
}
.opt__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.opt__btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  margin: 0 -1px -1px 0;
  background: var(--paper);
  font-size: var(--t-body-s);
  cursor: pointer;
  transition:
    border-color var(--t-fast),
    background var(--t-fast);
}
.opt__btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 1;
}
.opt__btn[disabled] {
  color: var(--line);
  background: var(--line-soft);
  cursor: not-allowed;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--line);
}
.qty button {
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
}
.qty output {
  width: 48px;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

/* --- 10 · Accordion ----------------------------------------------------- */

.acc {
  border-top: 1px solid var(--line);
}
.acc__item {
  border-bottom: 1px solid var(--line);
}
/* De standaard disclosure-driehoek weg; het plusteken hieronder vervangt hem. */
.acc__head {
  list-style: none;
}
.acc__head::-webkit-details-marker {
  display: none;
}

.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: 14px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: var(--t-body-s);
  cursor: pointer;
}
.acc__head::after {
  content: "+";
  font-size: var(--t-body);
}
.acc__item[open] .acc__head::after {
  content: "–";
}
.acc__panel {
  padding-bottom: var(--sp-3);
  font-size: var(--t-body-s);
  color: var(--ink-soft);
}
.acc__panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-body-s);
}
.acc__panel td {
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.acc__panel td:last-child {
  text-align: right;
  color: var(--ink);
}

/* --- 11 · TrustRows ----------------------------------------------------- */

.trust {
  border-top: 1px solid var(--line);
}
.trust__row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-body-s);
}
.trust__icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* --- 12 · InSituCarousel ------------------------------------------------ */

.situ__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 465px;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--pad-x);
  scrollbar-width: none;
}
.situ__track::-webkit-scrollbar {
  display: none;
}
.situ__slide {
  scroll-snap-align: start;
  aspect-ratio: 3 / 2;
  background: var(--panel);
}
.situ__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- 13 · MaterialBlock ------------------------------------------------- */

.material__inner {
  display: grid;
  grid-template-columns: 534px 534px;
  gap: var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.material__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--t-body-s);
}
.material__media {
  aspect-ratio: 1 / 1;
  background: var(--panel);
}

/* --- 14 · WorkshopBlock ------------------------------------------------- */

.workshop {
  background: var(--accent-deep);
  color: var(--paper);
}
.workshop .link-arrow {
  color: var(--paper);
}
.workshop__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.workshop__media {
  aspect-ratio: 3 / 2;
  background: rgba(255, 255, 255, 0.12);
}
.workshop__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-5);
}

/* --- 16 · CartDrawer ---------------------------------------------------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
  z-index: 80;
}
.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(420px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 400ms ease;
}
.drawer.is-open {
  transform: none;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--pad-x);
  border-bottom: 1px solid var(--line);
}
.drawer__items {
  flex: 1;
  overflow-y: auto;
  padding-inline: var(--pad-x);
}
.drawer__foot {
  border-top: 1px solid var(--line);
  padding: var(--sp-3) var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ditem {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--line-soft);
}
.ditem__media {
  aspect-ratio: 4 / 5;
  background: var(--panel);
}
.ditem__name {
  font-size: var(--t-body-s);
}
.ditem__meta {
  font-size: var(--t-micro);
  color: var(--ink-soft);
}

.sumline {
  display: flex;
  justify-content: space-between;
  font-size: var(--t-body-s);
}
.sumline--total {
  font-size: var(--t-body);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-2);
}

/* --- 17 · Footer -------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
}
.footer__news {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--pad-x);
  border-bottom: 1px solid var(--line);
  max-width: var(--content-max);
  margin-inline: auto;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto;
  padding: var(--sp-5) var(--pad-x);
  font-size: var(--t-small);
}
.footer__col h4 {
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}
.footer__col li {
  padding: 3px 0;
}
.footer__col a:hover {
  border-bottom: 1px solid var(--ink);
}
.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  border-top: 1px solid var(--line);
  padding: var(--sp-2) var(--pad-x);
  font-size: var(--t-micro);
  color: var(--ink-soft);
  max-width: var(--content-max);
  margin-inline: auto;
}
.footer__pay {
  display: flex;
  gap: var(--sp-1);
}
.footer__pay img {
  height: 18px;
}

/* --- Hulpklassen -------------------------------------------------------- */

.panel {
  background: var(--panel);
}
.ph {
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: var(--t-micro);
}
.stack {
  display: flex;
  flex-direction: column;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --cols: 6;
    --sp-6: 64px;
    --sp-7: 96px;
  }
  .editorial__inner,
  .material__inner {
    grid-template-columns: 1fr 1fr;
  }
  .pdp__buy {
    padding: var(--sp-4) var(--pad-x);
  }
}

@media (max-width: 768px) {
  :root {
    --cols: 1;
    --t-display: 30px;
    --t-page: 24px;
    --t-section: 21px;
    --pad-x: 16px;
  }

  .header__nav {
    display: none;
  }

  .pdp,
  .editorial__inner,
  .material__inner,
  .workshop__inner,
  .split2,
  .bleed2 {
    grid-template-columns: 1fr;
  }

  .pdp__buy {
    position: static;
  }
  .pdp__gallery {
    grid-template-columns: 1fr;
  }
  .pdp__shot--wide {
    aspect-ratio: 4 / 5;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer__news {
    flex-direction: column;
  }

  .situ__track {
    grid-auto-columns: 82vw;
  }
  .rail {
    grid-auto-columns: 62vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
