/* =========================================================
   Parquet Flooring London — Homepage
   Built from Figma: Desktop 126:170 / Tablet 2:3 / Phone 100:909
   ========================================================= */

/* =========================================================
   Original design fonts
   ---------------------------------------------------------
   Installed (public/fonts/, woff2 + woff):
     • Elegant → big headings & quotes
     • Things  → section titles (regular) & italic arrow-links
   To licence / add:
     • Futura Medium → body text, labels, nav, footer (the ONLY
       Futura weight the design uses). Drop futura-medium.woff2
       (+ .woff) into public/fonts/ and it renders automatically.
   Until Futura is added, the body text uses "Jost" — a free
   Google font modelled on Futura (loaded in home.blade.php head).
   ========================================================= */
@font-face {
  font-family: "Futura";
  src: url("../fonts/futura-medium.woff2") format("woff2"),
       url("../fonts/futura-medium.woff")  format("woff");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Elegant";
  src: url("../fonts/elegant-regular.woff2") format("woff2"),
       url("../fonts/elegant-regular.woff")  format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Things";
  src: url("../fonts/things-regular.woff2") format("woff2"),
       url("../fonts/things-regular.woff")  format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Things";
  src: url("../fonts/things-italic.woff2") format("woff2"),
       url("../fonts/things-italic.woff")  format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  color-scheme: dark;

  /* ---- Site-wide design settings ----------------------------------
     These are the DEFAULTS. Admin → Website Content → Design can override
     the *-rgb colours, the three font stacks and --fs (text scale); the
     overrides are printed in a <style> tag after this file
     (resources/views/partials/design-vars.blade.php).
     Colours are stored as "r, g, b" so translucent shades follow them. */
  --bg-rgb:                 51, 46, 33;      /* #332e21 dark brown background */
  --cream-rgb:              247, 242, 238;   /* #f7f2ee light text on dark */
  --btn-rgb:                245, 245, 245;   /* #f5f5f5 outlined buttons */
  --surface-light-rgb:      239, 228, 220;   /* #efe4dc spec band */
  --surface-cream-rgb:      247, 242, 238;   /* #f7f2ee light listing bands */
  --surface-light-text-rgb: 69, 67, 63;      /* #45433f dark text on light bands */
  --accent-rgb:             127, 76, 58;     /* #7f4c3a rust text (product intro) */
  --accent:                 rgb(var(--accent-rgb));
  --fs: 1;                                   /* text scale (1 = original sizes) */

  --bg:        rgb(var(--bg-rgb));
  --cream:     rgb(var(--cream-rgb));
  --cream-90:  rgba(var(--cream-rgb), 0.9);
  --cream-70:  rgba(var(--cream-rgb), 0.7);
  --rule:      rgba(var(--cream-rgb), 0.28);
  --btn:       rgb(var(--btn-rgb));
  --btn-hover: rgba(var(--cream-rgb), 0.12);

  /* Warm tan/beige sand surface used for content-band sections (PDP spec,
     wood grades). Light against the dark olive to create visual rhythm. */
  --surface-light:        rgb(var(--surface-light-rgb));        /* spec band — warm cream, per Figma */
  --surface-cream:        rgb(var(--surface-cream-rgb));        /* light listing bands (#F7F2EE) */
  --surface-light-text:   rgb(var(--surface-light-text-rgb));   /* warm dark grey text on the cream band */
  --surface-light-mute:   rgba(var(--surface-light-text-rgb), 0.78);
  --surface-light-rule:   rgba(42, 36, 24, 0.18);

  /* Original design fonts first, web-safe fallbacks second */
  --font-display: "Elegant", "Playfair Display", Georgia, "Times New Roman", serif;   /* big headings & quotes */
  --font-title:   "Things", "Playfair Display", Georgia, serif;                        /* section titles & italic links */
  --font-body:    "futura-pt", "Futura", "Jost", "Century Gothic", system-ui, sans-serif; /* body, labels, nav, buttons */

  /* ---- 14-column layout grid (Figma desktop: 1440 frame) ----
     Designer's grid: 40px outer margins, 14 columns, 20px gutters.
       column width = (1440 − 2×40 − 13×20) / 14 = 78.571px
     The page content is inset to COLUMN 2 — that's where the designer
     placed all body text/headings (left edge ≈ 139px), so the page
     "gutter" = margin + 1 column + 1 gutter. Content then spans
     columns 2–13 = 1162.857px (matches the intro/testimonial widths). */
  --grid-margin: 40px;
  --grid-gutter: 20px;
  --grid-col:    calc((1440px - (2 * var(--grid-margin)) - (13 * var(--grid-gutter))) / 14); /* 78.571px */
  --gutter:      calc(var(--grid-margin) + var(--grid-col) + var(--grid-gutter));            /* ≈138.57px = col 2 */
  --content:     calc(1440px - (2 * var(--gutter)));                                         /* ≈1162.86px = cols 2–13 */
  --maxw:   1440px;
}

/* Sub-pages use a slightly wider frame than the homepage — the side padding
   grows from the 88px tablet value up to 112px on wide screens (matches the
   editorial reference). The header reads --gutter too, so Menu / logo /
   Samples move with the content and everything stays on the same line.
   The homepage (body.home) keeps the original Figma 138.57px frame. */
@media (min-width: 1025px) {
  body:not(.home) { --gutter: clamp(88px, 6vw, 112px); }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Global link affordance: any link without our other classes brightens on
   hover so users get a consistent "interactive" cue site-wide. */
a { transition: color 0.25s ease, opacity 0.25s ease; }
a:not(.btn):not(.arrow-link):not(.brand):not(.samples-link):not(.product-card):hover {
  color: #ffffff;
}

/* Section reveal: each <section> fades up gently when it enters view. The
   `is-revealed` class is toggled by an IntersectionObserver in home.js so
   the effect runs once per section without needing per-page hooks. */
@media (prefers-reduced-motion: no-preference) {
  section.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  section.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: calc(16px * var(--fs, 1));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: calc(18px * var(--fs, 1));
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 0 0 28px;
}

/* ---------- Buttons ----------
   Design spec (Figma desktop, all 4 button instances measured):
     • 275 × 45 px  • 2px white border  • no corner radius
     • Futura Medium 16px  • letter-spacing −0.16px (−0.01em)
   The body's line-height (1.6) was inflating button height to ~60px,
   so we set an explicit line-height: 1 and fixed 45px height. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 275px;
  height: 45px;
  padding: 0 24px;
  border: 2px solid var(--btn);
  color: var(--btn);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: calc(16px * var(--fs, 1));
  line-height: 1;
  letter-spacing: -0.01em;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, transform 0.3s ease;
}
/* Filled-on-hover — solid inversion so the button noticeably activates
   instead of barely changing tint. */
.btn:hover {
  background: var(--btn);
  color: var(--bg);
  border-color: var(--btn);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

/* ---------- Arrow links ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: calc(18px * var(--fs, 1));
  letter-spacing: -0.01em;   /* match design's -0.18px tracking */
  color: var(--cream-90);
  transition: gap 0.3s ease, color 0.3s ease;
}
/* Brighter cream + a longer arrow nudge on hover signals "scroll/click me". */
.arrow-link:hover { gap: 16px; color: #ffffff; }
.arrow-link .arrow-icon { transition: transform 0.3s ease; }
.arrow-link:hover .arrow-icon { transform: translateX(2px); }
.arrow-icon { flex: none; }

/* ---------- Thin rule ---------- */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rule);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background-color 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--bg);   /* fallback for browsers without backdrop-filter */
  padding-block: 40px;   /* taller scrolled bar (~116px total, ref: 117px) */
  box-shadow: 0 1px 0 var(--rule);
}
/* Frosted-glass ("ice") scrolled bar — content shows through, softly blurred. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(var(--bg-rgb), 0.66);
    -webkit-backdrop-filter: blur(16px) saturate(1.05);
    backdrop-filter: blur(16px) saturate(1.05);
  }
}
/* legibility for the transparent header over the bright hero photo */
.site-header:not(.is-scrolled) .menu-trigger { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.site-header:not(.is-scrolled) .brand img { filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.4)); }

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: calc(16px * var(--fs, 1));
  cursor: pointer;
}
.menu-bars {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 16px;
}
.menu-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-label { display: inline; }

/* Logo keeps the same size when the header turns solid on scroll. */
.brand img { height: 110px; width: auto; transition: height 0.3s ease; }

/* Logo dead-centre in the header on desktop + tablet; Menu sits left and
   Samples sits right (both via the header's space-between). The brand is
   taken out of flow and absolutely centred so its position is unaffected by
   the differing widths of the Menu / Samples elements. */
@media (min-width: 641px) {
  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    transition: left 0.35s ease, transform 0.35s ease;
  }

  /* Menu open: the panel covers the right side, so the logo glides to the
     left edge (where "Menu" sits) and the "Menu" label fades out — the panel
     has its own close (×) button. */
  .site-header.menu-open .brand {
    left: var(--gutter);
    /* --brand-trim = the logo image's empty left margin (measured in home.js),
       so the visible lettering lines up with the hero text on the gutter. */
    transform: translate(calc(-1 * var(--brand-trim, 0%)), -50%);
  }
  .menu-trigger { transition: opacity 0.2s ease, visibility 0.2s ease; }
  .site-header.menu-open .menu-trigger {
    opacity: 0;
    visibility: hidden;
  }
}

/* Samples link — sits at the right edge of the header (normal flow). */
.samples-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: calc(14px * var(--fs, 1));
  letter-spacing: 0.04em;
  color: var(--cream);
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  z-index: 5;
}
.samples-link:hover { color: var(--cream); border-color: var(--rule); }
.samples-link svg { stroke: currentColor; }
.samples-link__label { white-space: nowrap; }
.samples-link__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--bg);
  font-size: calc(12px * var(--fs, 1));
  font-weight: 600;
  padding: 0 6px;
  margin-left: 4px;
}
.samples-link--active .samples-link__count { background: #d97e63; color: var(--cream); }

/* Mobile: header is centred (logo middle) with hamburger absolute top-right.
   Mirror that by absolutely positioning the heart/Samples icon at top-LEFT.
   (On desktop + tablet Samples is in normal flow at the right edge.) */
@media (max-width: 640px) {
  .samples-link__label { display: none; }
  .samples-link {
    position: absolute;
    left: var(--gutter);
    right: auto;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 6px;
    z-index: 5;
  }
}

/* Filled / "in cart" state for the PDP button */
.btn--secondary { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.btn--secondary:hover { background: rgba(var(--cream-rgb),0.86); }
.pdp-hero__button-form { display: inline-block; margin: 0; }

/* Nav dropdown panel */
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 80vw);
  height: 100vh;
  padding: 120px 48px 48px;
  background: var(--bg);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 90;
}
.nav-panel.is-open { transform: translateX(0); }
.nav-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--cream-90);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-close:hover { color: var(--cream); transform: rotate(90deg); }
.nav-close:focus-visible { outline: 1px solid var(--cream-70); outline-offset: 4px; }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel li { border-bottom: 1px solid var(--rule); }
.nav-panel a {
  display: block;
  padding: 18px 0;
  font-family: var(--font-title);
  font-size: calc(26px * var(--fs, 1));
  color: var(--cream-90);
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.nav-panel a:hover { color: var(--cream); padding-left: 8px; }

/* Menu open state -> turn bars into an X (mobile) */
.menu-trigger[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-trigger[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop: the menu opens as a horizontal bar across the top instead of the
   side panel. The header takes its taller (scrolled) height so the logo fits
   inside the bar; the logo sits on the left (aligned with the hero text, see
   .menu-open .brand), the 6 links spread across, and × closes on the right.
   Tablet + phone keep the slide-in side panel. */
@media (min-width: 1025px) {
  .site-header.menu-open { padding-block: 40px; }
  .site-header.menu-open .brand { z-index: 95; }                 /* above the bar */
  .site-header.menu-open .brand img { filter: none; }

  .nav-panel {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    padding: 0 calc(var(--gutter) + 72px) 0 calc(var(--gutter) + 320px);
    background: var(--bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.25s ease, visibility 0s linear 0.35s;
  }
  .nav-panel.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.35s ease, opacity 0.25s ease;
  }
  .nav-panel ul {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .nav-panel li { border: 0; }
  .nav-panel a {
    padding: 6px 0;
    font-size: calc(clamp(17px, 1.35vw, 21px) * var(--fs, 1));
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .nav-panel a:hover { padding-left: 0; color: var(--cream); border-bottom-color: var(--cream-70); }
  .nav-close {
    top: 50%;
    right: var(--gutter);
    margin-right: -10px;            /* × glyph lines up with the gutter */
    transform: translateY(-50%);
  }
  .nav-close:hover { transform: translateY(-50%) rotate(90deg); }
}

/* =========================================================
   1. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 900px);
  display: flex;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* keep the photo bright like the design — only a soft darkening at the very
   bottom where the white copy sits */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 17, 12, 0.5) 0%, rgba(20, 17, 12, 0.12) 26%, rgba(20, 17, 12, 0) 46%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  padding-bottom: 64px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.hero__title {
  font-size: calc(clamp(2.4rem, 4.6vw, 3.45rem) * var(--fs, 1));
  margin-bottom: 22px;
}
/* keep each intended line intact on larger screens (design = 2 lines) */
@media (min-width: 641px) {
  .hero__title { white-space: nowrap; }
}
.hero__subtitle {
  font-size: calc(18px * var(--fs, 1));
  color: var(--cream-90);
  margin: 0 0 28px;
  max-width: 40ch;
}

/* =========================================================
   2. Intro statement
   ========================================================= */
.intro { padding-block: clamp(56px, 7vw, 110px) clamp(72px, 9vw, 150px); }
.intro .rule { margin-bottom: clamp(40px, 5vw, 64px); }
.intro__text {
  font-size: calc(clamp(1.7rem, 3.6vw, 3.05rem) * var(--fs, 1));
  max-width: var(--content);   /* cols 2–13 */
}

/* =========================================================
   3. Brand strip
   ========================================================= */
.brands { padding-block: 12px 64px; }
.brands__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}
/* Fewer than 5 logos uploaded: roomier gaps between them. */
.brands__row--centered {
  column-gap: clamp(40px, 6vw, 96px);
}
.brands__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}

/* =========================================================
   4. Feature collections
   ========================================================= */
.features { padding-block: clamp(64px, 8vw, 130px); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature { display: flex; flex-direction: column; }
.feature .rule { margin-bottom: 26px; }
.feature__row { flex: 1; display: flex; flex-direction: column; }
.feature__title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: calc(clamp(2rem, 2.9vw, 3.2rem) * var(--fs, 1));   /* scaled up to match the editorial type across the site */
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 20px;
}
.feature__text {
  font-size: calc(18px * var(--fs, 1));
  color: var(--cream-90);
  margin: 0 0 18px;
  max-width: 40ch;
}
.feature .arrow-link { margin-bottom: 28px; }
.feature__image {
  margin-top: auto;
  aspect-ratio: 375 / 479;
  overflow: hidden;
}
.feature__image img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   5. Craft
   Desktop : full-bleed background = chevron image + mirrored copy
   Tablet  : two columns (text left, contained portrait image right)
   Mobile  : stacked (text, then image)
   ========================================================= */
.craft {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(540px, 60vw, 855px);
  overflow: hidden;
}
.craft__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.craft__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* single full-bleed parquet photo, matches the design */
}
/* keep the pattern bright; only a soft left-side darkening for the white copy */
.craft__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 17, 12, 0.6) 0%, rgba(20, 17, 12, 0.25) 32%, rgba(20, 17, 12, 0) 56%);
}
.craft__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: 64px;
}
.craft__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.craft__text {
  font-size: calc(clamp(1.7rem, 3.4vw, 3.05rem) * var(--fs, 1));
  max-width: 472px;   /* narrow column → wraps like the design */
}
.craft__media { display: none; position: relative; }   /* desktop uses the full-bleed bg instead */
.craft__btn-over { display: none; }   /* shown only on mobile, overlaid on the image */

/* ----- Case studies: heading on dark bg, full-width image, centered button ----- */
.cases { padding-top: clamp(72px, 9vw, 140px); }
.cases__title {
  font-size: calc(clamp(1.7rem, 3.4vw, 3.05rem) * var(--fs, 1));
  max-width: 920px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.cases__media { position: relative; width: 100%; }
.cases__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1440 / 577;   /* match the design's staircase framing */
  object-fit: cover;
}
.cases__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 24px;
  text-align: center;
}
.cases__title--over { display: none; }   /* desktop/tablet: only the button overlays */

/* =========================================================
   7. Testimonial
   ========================================================= */
.testimonial {
  padding-block: clamp(96px, 12vw, 180px);
}
.testimonial__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;   /* left-aligned content, like the design */
}
.testimonial__quote {
  font-size: calc(clamp(1.7rem, 3.82vw, 3.43rem) * var(--fs, 1));  /* reaches 55px at 1440 — matches design */
  margin-bottom: 36px;
  text-align: left;
}
.testimonial__author {
  font-weight: 500;
  font-size: calc(18px * var(--fs, 1));
  letter-spacing: -0.01em;       /* match design's -0.18px tracking */
  text-transform: uppercase;     /* design shows "SARAH L." */
  margin: 0;
}
.testimonial__role {
  font-size: calc(18px * var(--fs, 1));
  color: var(--cream-70);
  margin: 2px 0 32px;
}
.testimonial .btn { align-self: center; }   /* button stays centered */

/* =========================================================
   8. Showroom
   ========================================================= */
.showroom { padding-block: clamp(72px, 9vw, 140px); }
.showroom__grid {
  display: grid;
  grid-template-columns: 709fr 564fr;
  gap: 64px;
  align-items: center;
}
.showroom__image { aspect-ratio: 709 / 640; overflow: hidden; }
.showroom__image img { width: 100%; height: 100%; object-fit: cover; }
.showroom__text {
  font-size: calc(clamp(1.7rem, 3.2vw, 2.75rem) * var(--fs, 1));
  margin-bottom: 28px;
}
.showroom__btn { display: none; }   /* desktop uses the arrow-link; tablet/mobile use this button */

/* =========================================================
   9. Journal & Sustainability
   ========================================================= */
.journal { padding-block: clamp(72px, 9vw, 140px); }
.journal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.journal__col { display: flex; flex-direction: column; }
.journal__col .rule { margin-bottom: 26px; }
.journal__col .arrow-link { margin-bottom: 28px; }
.journal__image {
  margin-top: auto;
  aspect-ratio: 709 / 375;
  overflow: hidden;
  display: block;
  cursor: pointer;
}
.journal__image img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding-block: 60px 36px; }
.site-footer .rule { margin-bottom: 56px; }

/* ---------- Footer newsletter signup ---------- */
.footer-newsletter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 48px;
  padding-bottom: 48px;
}
.footer-newsletter__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(clamp(1.6rem, 2.4vw, 2.2rem) * var(--fs, 1));
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.footer-newsletter__text {
  font-family: var(--font-body);
  font-size: calc(15px * var(--fs, 1));
  color: var(--cream-90);
  margin: 0;
  max-width: 46ch;
  line-height: 1.55;
}
.footer-newsletter__action { width: min(420px, 100%); }
.footer-newsletter__form {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  transition: border-color 0.25s ease;
}
.footer-newsletter__form:focus-within { border-color: var(--cream); }
.footer-newsletter__form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: calc(16px * var(--fs, 1));
  padding: 6px 0;
}
.footer-newsletter__form input::placeholder { color: var(--cream-70); }
.footer-newsletter__form button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--cream);
  font-family: var(--font-title);
  font-style: italic;
  font-size: calc(16px * var(--fs, 1));
  white-space: nowrap;
  transition: gap 0.25s ease, color 0.25s ease;
}
.footer-newsletter__form button:hover { gap: 12px; color: #ffffff; }
.footer-newsletter__success {
  font-family: var(--font-title);
  font-style: italic;
  font-size: calc(17px * var(--fs, 1));
  color: var(--cream);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.footer-newsletter__error {
  font-family: var(--font-body);
  font-size: calc(13px * var(--fs, 1));
  color: #ff9b88;
  margin: 8px 0 0;
}
@media (max-width: 640px) {
  .footer-newsletter__action { width: 100%; }
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 40px;
  flex: 1;
}
.footer-col h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: calc(18px * var(--fs, 1));
  margin: 0 0 18px;
  color: var(--cream);
}
.footer-col a {
  display: block;
  font-size: calc(14px * var(--fs, 1));
  color: var(--cream-90);
  padding: 5px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--cream); }
.footer-logo { height: 96px; width: auto; }
/* Footer logo links to the homepage */
.footer-logo-link { display: block; flex: none; line-height: 0; transition: opacity 0.25s ease; }
.footer-logo-link:hover { opacity: 0.8; }
/* Secondary footer row: legal links + badge placeholders */
.site-footer__secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
}
.footer-legal a {
  font-size: calc(14px * var(--fs, 1));
  color: var(--cream-90);
  transition: color 0.2s ease;
}
.footer-legal a:hover { color: var(--cream); }
/* Footer social icons (Instagram / Pinterest / LinkedIn) */
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--cream-90);
  transition: color 0.25s ease, background-color 0.25s ease,
              border-color 0.25s ease, transform 0.25s ease;
}
.footer-social__link:hover {
  color: var(--bg);
  background: var(--cream);
  border-color: var(--cream);
  transform: translateY(-2px);
}
.footer-social__link svg { display: block; }

.site-footer__bottom {
  margin-top: 40px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--cream-70);
}
.site-footer__bottom p { margin: 0; }

/* =========================================================
   Install Gallery / Lightbox modal
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.96);   /* near-black, per Figma lightbox */
  padding: clamp(24px, 3vw, 40px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  padding: 8px;
  transition: opacity 0.2s ease;
  opacity: 0.85;
}
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 24px; right: 28px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; }
.lightbox__nav--prev { left: 28px; }
.lightbox__nav--next { right: 28px; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
}
.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  background: rgba(var(--cream-rgb),0.04);
}
.lightbox__caption {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-body);
  font-size: calc(14px * var(--fs, 1));
  color: var(--cream-90);
  letter-spacing: 0.04em;
}
.lightbox__counter { color: var(--cream-70); }
.lightbox__caption[hidden] { display: none; }

/* Product info panel (Figma "Install Gallery - Lightbox") — overlaid bottom-left
   over the image, with a soft shadow so it stays legible on any photo. */
.lightbox__info {
  position: absolute;
  left: clamp(20px, 9.6vw, 138px);
  bottom: clamp(36px, 8vh, 104px);
  z-index: 3;
  width: min(540px, 80vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.6);
}
.lightbox__info[hidden] { display: none; }
.lightbox__eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: calc(16px * var(--fs, 1));
  color: var(--cream);
  margin: 0 0 8px;
}
.lightbox__eyebrow[hidden] { display: none; }
.lightbox__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(clamp(2.2rem, 4.6vw, 3.4rem) * var(--fs, 1));
  line-height: 1.02;
  color: var(--cream);
  margin: 0 0 16px;
}
.lightbox__metarow {
  font-family: var(--font-body);
  font-size: calc(16px * var(--fs, 1));
  color: var(--cream);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.lightbox__metarow[hidden] { display: none; }
.lightbox__rule {
  display: block;
  width: 177px;
  height: 1px;
  background: rgba(var(--cream-rgb), 0.55);
  margin: 16px 0 22px;
}
/* Add to Samples + Contact Us — outline buttons sharing a row above the CTA. */
.lightbox__actions {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-bottom: 14px;
}
.lightbox__actions[hidden] { display: none; }
.lightbox__samples { flex: 1 1 0; margin: 0; display: flex; }
.lightbox__samples .btn { width: 100%; }
.lightbox__action { flex: 1 1 0; min-width: 0; }
/* Explore Installed Project — filled (dark) button spanning the panel width. */
.lightbox__cta {
  width: 100%;
  min-width: 0;
  background: rgba(28, 25, 19, 0.92);
  border-color: rgba(var(--cream-rgb), 0.35);
  color: var(--cream);
}
.lightbox__cta:hover {
  background: rgba(28, 25, 19, 1);
  border-color: rgba(var(--cream-rgb), 0.6);
  color: var(--cream);
}
.lightbox__cta[hidden] { display: none; }
@media (max-width: 480px) {
  .lightbox__actions { flex-direction: column; }
}

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__info { left: 20px; right: 20px; bottom: 28px; max-width: none; }
  .lightbox__rule { width: 120px; }
}

/* Thumbnails that open the lightbox show a magnifier cursor (no image zoom on hover) */
[data-lightbox-group] { cursor: zoom-in; }

/* =========================================================
   Desktop grid conformance (≥1025px)
   ---------------------------------------------------------
   Snap the multi-column sections to the designer's 14-col grid:
   subdivisions are separated by ONE 20px gutter, so columns land
   on real grid lines (e.g. 3 feature cards = 4 columns / 374px each;
   2 journal halves = 6 columns / 571px each). Tablet & mobile keep
   their own tuned spacing in the max-width blocks below.
   ========================================================= */
@media (min-width: 1025px) {
  .features__grid { gap: var(--grid-gutter); }   /* 20px → cards = 4 cols (374px) */
  .journal__grid  { gap: var(--grid-gutter); }   /* 20px → halves = 6 cols (571px) */
  .footer-cols    { gap: var(--grid-gutter); }   /* link columns align to the grid */
  .cases__title   { max-width: calc(10 * var(--grid-col) + 9 * var(--grid-gutter)); } /* 10 cols ≈ 966px */

  /* Journal: the design uses ASYMMETRIC body-text widths per column —
       left  "Journal"               → 4 cols (≈375px)  wraps "knowledge, / and insights…"
       right "Responsibly Sourced…"  → 6 cols (≈571px)  fits "…with environmental responsibility." on one line
     This is intentional in the Figma layout, not equal halves. */
  .journal__col:first-child  .feature__text { max-width: calc(4 * var(--grid-col) + 3 * var(--grid-gutter)); } /* ≈375px */
  .journal__col:nth-child(2) .feature__text { max-width: calc(6 * var(--grid-col) + 5 * var(--grid-gutter)); } /* ≈571px */

  /* Hero: raise the height cap so on standard desktops it reaches the design's
     ~980px framing (shows the full room) while staying viewport-proportional,
     so the headline never drops below the fold on shorter screens. */
  .hero { min-height: clamp(620px, 92vh, 1040px); }
}

/* =========================================================
   Widescreen homepage (≥1441px) — Element7-style full-bleed
   ---------------------------------------------------------
   The hero, craft and case-studies images already go edge-to-
   edge. On wide screens (e.g. 1920×1080 laptops, 16:9 TVs),
   break the two remaining hero-photo sections out of the
   1440 container so their imagery fills the viewport too:
     • Journal + Responsibly Sourced Wood  → two 50vw images
     • Showroom                            → image to left edge
   Headings + body copy stay constrained to a comfortable
   reading inset so text never spans 1920px. Scoped to
   `body.home` so floors pages keep their boxed layout.
   ========================================================= */
@media (min-width: 1441px) {
  /* ----- Break the boxed 1440 layout: align ALL homepage content to the page
     gutter and let it span the full viewport width, matching the inner
     full-bleed pages. Text blocks lose their 1440 cap so they reach the right
     gutter too. ----- */
  body.home .container {
    max-width: none;
    padding-inline: var(--gutter);
  }
  body.home .intro__text { max-width: none; }

  /* ----- Journal & Sustainability: two full-bleed images with a gap between
     them in the middle (outer edges still bleed to the viewport). ----- */
  body.home .journal .container.journal__grid {
    max-width: none;
    padding-inline: 0;
    gap: var(--grid-gutter);
  }
  body.home .journal__col { padding-inline: var(--gutter); }
  /* Images pinned to the bottom of each column (margin-top: auto) so both
     sit on the same line even when one column has more text. The 40px of
     breathing room moves onto the link above (28px base + 40px). */
  body.home .journal__col > .arrow-link { margin-bottom: 68px; }
  body.home .journal__col > .journal__image {
    margin-inline: calc(-1 * var(--gutter));
    margin-top: auto;
  }

  /* ----- Showroom: image breaks to the left edge ----- */
  body.home .showroom .container.showroom__grid {
    max-width: none;
    padding-inline: 0;
    gap: 0;
  }
  body.home .showroom__image { aspect-ratio: auto; }
  body.home .showroom__image img { aspect-ratio: 709 / 640; }
  body.home .showroom__copy { padding-inline: 80px var(--gutter); }
}

/* =========================================================
   Responsive — Tablet (Figma 834)
   ========================================================= */
@media (max-width: 1024px) {
  /* 12-column grid: 20px margins, 20px gutters (Figma tablet 834).
     Text content is inset to COLUMN 2 (≈88px), like desktop; the feature
     cards and brand strip use the full margin-to-margin band (column 1). */
  :root { --grid-margin: 20px; --gutter: 88px; }

  /* feature cards + brand logos break out to the full 12-col band (col 1) */
  .features__grid,
  .brands__row { padding-inline: var(--grid-margin); }
  .features__grid { gap: var(--grid-gutter); }   /* 20px → cards = 4 cols (≈251px) */

  /* Tablet keeps the written "Menu" like desktop — hamburger is mobile-only. */
  .brand img { height: 80px; }

  .showroom__grid { gap: 40px; }
  /* showroom CTA becomes a button on tablet + mobile (per design) */
  .showroom__link { display: none; }
  .showroom__btn { display: inline-flex; margin-top: 4px; }
  .journal__grid { gap: var(--grid-gutter); }   /* 20px → halves = 6 cols (≈319px) */
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gutter); }

  /* Craft → two columns: text left, contained portrait image right */
  .craft { display: block; min-height: 0; overflow: visible; }
  .craft__bg, .craft__overlay { display: none; }
  .craft__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
    padding-block: clamp(40px, 6vw, 64px);
  }
  .craft__content {
    flex: none;
    justify-content: flex-start;
    gap: 28px;
    text-shadow: none;
  }
  .craft__media { display: block; }
  .craft__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

  /* Cases image becomes contained (with margins) on tablet, like the design */
  .cases__media { padding-inline: var(--gutter); }
  .cases__media img { aspect-ratio: 678 / 345; }
}

/* =========================================================
   Responsive — Mobile (Figma 402)
   ========================================================= */
@media (max-width: 640px) {
  /* 4-column grid: 20px margins, 20px gutters (Figma phone 402).
     Everything sits at column 1 (the 20px margin). */
  :root { --gutter: 20px; }

  body { font-size: calc(15px * var(--fs, 1)); }

  /* Mobile header: one compact row — logo centered INSIDE the bar (not hanging
     into the hero), hamburger right + samples heart left, vertically centred. */
  .menu-bars { display: flex; }
  .menu-label { display: none; }
  .site-header { justify-content: center; padding-top: 16px; padding-bottom: 16px; }
  .menu-trigger { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); }
  .brand img { height: 60px; }
  .site-header.is-scrolled { padding-block: 14px; }
  .nav-panel { width: 100vw; padding-inline: 24px; }

  .hero { min-height: 88vh; }
  .hero__inner { padding-bottom: 48px; }
  .hero__title { font-size: calc(clamp(2rem, 9vw, 2.6rem) * var(--fs, 1)); }

  .btn { min-width: 0; width: 100%; }
  .craft .btn, .testimonial .btn, .cases__btn { width: auto; min-width: 240px; }

  /* Cases → heading overlaid on the image (per phone design) */
  .cases__head { display: none; }
  .cases__media img { aspect-ratio: 1 / 1; }
  .cases__overlay { background: rgba(20, 17, 12, 0.34); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
  .cases__title--over { display: block; margin-bottom: 0; max-width: 100%; }

  /* Craft → stack: text, then image with the button overlaid (per design) */
  .craft__inner { grid-template-columns: 1fr; gap: 32px; }
  .craft__media img { aspect-ratio: 4 / 3; }
  .craft__btn { display: none; }
  .craft__btn-over {
    display: inline-flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  /* Features → two-column zigzag (text + image side by side, alternating) */
  .features__grid { grid-template-columns: 1fr; gap: 40px; }
  .feature__row { flex-direction: row; align-items: center; gap: var(--grid-gutter); }
  .feature__body { flex: 1; min-width: 0; }
  .feature__image { flex: 1; margin-top: 0; aspect-ratio: 1 / 1; }
  .feature:nth-child(even) .feature__row { flex-direction: row-reverse; }
  .feature .arrow-link { margin-bottom: 0; }
  .feature__text { margin-bottom: 14px; }

  .showroom__grid { grid-template-columns: 1fr; }
  .showroom__image { aspect-ratio: 4 / 3; }
  .showroom__btn { width: auto; min-width: 0; align-self: flex-start; }

  /* testimonial button left-aligned on mobile (per design) */
  .testimonial .btn { align-self: flex-start; }

  /* Journal stays two columns on mobile (per design) */
  .journal__grid { grid-template-columns: 1fr 1fr; gap: var(--grid-gutter); }
  .journal__col .arrow-link { margin-bottom: 18px; }
  .journal__image { aspect-ratio: 4 / 3; }

  .brands__row { justify-content: center; gap: 22px var(--grid-gutter); }
  .brands__logo { height: 30px; }

  .site-footer__top { flex-direction: column; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--grid-gutter); }
  /* stop the logo from being stretched to full width by the column's align-items: stretch */
  .footer-logo { height: 72px; width: auto; align-self: center; }
  .footer-logo-link { align-self: center; }   /* the link is now the flex item */
  .site-footer__secondary { flex-direction: column; align-items: flex-start; gap: 28px; }
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}

/* =========================================================
   COOKIE CONSENT BANNER (in home.css so it loads on every
   page, including the standalone homepage)
   ========================================================= */
.cookie-consent {
  position: fixed;
  left: clamp(16px, 4vw, 40px);
  right: clamp(16px, 4vw, 40px);
  bottom: clamp(16px, 4vw, 32px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
  background: rgba(20, 17, 12, 0.97);
  border: 1px solid var(--rule);
  padding: clamp(16px, 2vw, 22px) clamp(20px, 3vw, 32px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-consent.is-visible { opacity: 1; transform: none; }
.cookie-consent[hidden] { display: none; }
.cookie-consent__text {
  font-family: var(--font-body);
  font-size: calc(14px * var(--fs, 1));
  line-height: 1.55;
  color: var(--cream-90);
  margin: 0;
  max-width: 720px;
}
.cookie-consent__text a { color: var(--cream); text-decoration: underline; text-underline-offset: 2px; }
.cookie-consent__actions { display: flex; align-items: center; gap: 18px; }
.cookie-consent__accept.btn { min-width: 0; padding: 0 30px; }
.cookie-consent__decline {
  background: transparent;
  border: 0;
  color: var(--cream-70);
  font-family: var(--font-body);
  font-size: calc(14px * var(--fs, 1));
  letter-spacing: -0.01em;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s ease;
}
.cookie-consent__decline:hover { color: var(--cream); }
@media (max-width: 640px) {
  .cookie-consent { flex-direction: column; align-items: flex-start; }
  .cookie-consent__actions { width: 100%; justify-content: flex-end; }
}
