/* ==========================================================================
   SHARED COMPONENT SYSTEM
   --------------------------------------------------------------------------
   Restyled Nov 2026 to Marketing's approved homepage mockup V3 (Nov 13,
   "R&O Website Mockup V3(1)/…/Riggs & Oakley_Preview_V3.html"), which
   builds on the Oct 30 preview ("Riggs & Oakley_Preview.html" in the
   repository root). The homepage modules below reproduce V3's final cascade
   — its many layered override blocks resolved into one rule per thing; the
   interior-page components (page heads, panels, forms, accordion, tables,
   legal prose) are drawn in the same language, since the mockup covers the
   homepage only.

   Every colour, face and radius resolves from brand.css.

   Contents
     1. Reset & document        8. Collection grid
     2. Typography              9. Comfort & quality modules
     3. Layout                 10. Stay-connected band
     4. Accessibility          11. Interior pages
     5. Buttons & links        12. Forms, accordion, tables, prose
     6. Header & navigation    13. Footer
     7. Hero & story module    14. Motion & print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & document
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* In-page anchors (collections.html#recliners …) land below the sticky bar. */
  scroll-padding-top: calc(var(--header-height) + 15px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brand-ink);
  background: var(--brand-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.menu-open { overflow: hidden; }

::selection { background: var(--brand-selection); color: var(--brand-black); }

main { flex: 1 0 auto; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

/* Every photograph is wrapped in a <picture> by the build. Taking the
   wrapper out of the box tree lets the <img> fill whatever actually sizes it
   (a tile, the hero, a split cell). */
picture { display: contents; }

/* Line icons, as the preview draws them. The logo is an <img>, so this only
   reaches the inline icon set. */
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

figure { margin: 0; }

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: var(--headline-weight);
  color: var(--brand-ink);
  margin: 0 0 .5em;
}
/* V3: regular-weight Cormorant with a light negative track throughout. */
h1, h2 { letter-spacing: var(--headline-tracking); line-height: .99; }
h1 { font-size: clamp(52px, 5.4vw, 86px); line-height: .96; }
h2 { font-size: clamp(43px, 4.1vw, 66px); }
h3 { font-size: clamp(27px, 2.3vw, 36px); letter-spacing: var(--headline-tracking); line-height: 1.05; }
h4 { font-size: clamp(21px, 1.55vw, 25px); letter-spacing: var(--headline-tracking); line-height: 1.15; }

p {
  margin: 0 0 1.2em;
  font-size: 16px;
  line-height: 1.7;
  color: var(--brand-body);
  max-width: 68ch;
}
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--brand-ink); }

/* Kicker: widely tracked Switzer capitals with an optional short rule before
   (eyebrow-rule) or after (eyebrow-line-right). V3 set them at 14px / 500
   for readability (its "V43" pass), stepping down on tablets and phones. */
.eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: var(--eyebrow-tracking);
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--brand-pine);
  margin: 0 0 21px;
  max-width: none;
}
@media (min-width: 681px) and (max-width: 900px) { .eyebrow { font-size: 13px; letter-spacing: .225em; } }
@media (max-width: 680px) { .eyebrow { font-size: 12px; letter-spacing: .205em; } }
.eyebrow-rule,
.eyebrow-line-right { display: flex; align-items: center; gap: 15px; }
.eyebrow-rule::before,
.eyebrow-line-right::after {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 31px;
  height: 1px;
  background: var(--brand-pine);
  opacity: .75;
}

.lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: #343c33;
  max-width: 40ch;
}

.text-center { text-align: center; }
.text-center p, .text-center .lede { margin-inline: auto; }
.text-center .eyebrow-rule { justify-content: center; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.page-container { width: var(--container); margin-inline: auto; }
.page-container--narrow { width: min(var(--container), 860px); }

.section { padding-block: clamp(56px, 7vw, 100px); }
.section--paper { background: var(--brand-paper); }
.section--alt   { background: var(--brand-paper-alt); }
.section--cream { background: var(--brand-cream); }
.section--linen { background: var(--brand-linen); }
.section--shell { background: var(--brand-shell); }

.section-intro { text-align: center; margin: 0 auto 38px; max-width: 900px; }
.section-intro .eyebrow { margin-bottom: 13px; font-size: 15px; letter-spacing: .245em; }
@media (min-width: 681px) and (max-width: 900px) { .section-intro .eyebrow { font-size: 14px; letter-spacing: .23em; } }
@media (max-width: 680px) { .section-intro .eyebrow { font-size: 13px; letter-spacing: .21em; } }
.section-intro h2 { margin: 0; font-size: clamp(47px, 4.5vw, 72px); }
.section-intro p:not(.eyebrow) { margin: 18px auto 0; }

.grid { display: grid; gap: clamp(18px, 2vw, 30px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

.stack-top { margin-top: clamp(36px, 4.5vw, 60px); }

/* --------------------------------------------------------------------------
   4. Accessibility
   -------------------------------------------------------------------------- */

.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 110;
  background: var(--brand-pine);
  color: #fff;
  padding: 12px 18px;
  font: 500 12px var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.skip-link:focus { top: 10px; }

:focus-visible { outline: 2px solid var(--brand-focus); outline-offset: 4px; }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */

/* Pill with a trailing arrow — the preview's one call-to-action style. The
   arrow is a separate span so it can be ↗ on links that leave the site. */
.pill-button,
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  min-height: 47px;
  border-radius: 30px;
  background: var(--brand-pine);
  color: #fff;
  border: 1px solid var(--brand-pine);
  padding: 13px 29px;
  font: 500 10px var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.pill-button span[aria-hidden],
.btn span[aria-hidden] { font-size: 17px; line-height: .75; font-weight: 400; letter-spacing: 0; }
.pill-button:hover,
.btn:hover {
  background: var(--brand-pine-hover);
  border-color: var(--brand-pine-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #303d2825;
}

/* Secondary: same pill, outlined. */
.pill-button--outline,
.btn--outline {
  background: transparent;
  color: var(--brand-pine);
  border-color: #b8bfb0;
}
.pill-button--outline:hover,
.btn--outline:hover { background: #e6eadf; border-color: #81967a; color: var(--brand-pine); box-shadow: none; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.text-center .actions { justify-content: center; }

/* Underlined text link with an arrow. */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--brand-pine);
  color: var(--brand-pine);
  padding: 6px 0 8px;
  font: 500 11px var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.text-link span[aria-hidden] { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.text-link:hover { color: var(--brand-pine-hover); }

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 18px rgba(34, 36, 24, .055);
}

.header-inner {
  height: 100%;
  width: min(100% - 5.3vw, 1620px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* V3 enlarges the two-tone lockup so the MODERN HERITAGE tagline reads: up
   to 270px in the 78px bar on desktop, 226px between 901 and 1180, 195px on
   tablets and phones. (The Oct 30 build capped it at 224px to keep the
   guideline's R-width clear space inside the bar; V3 trades some of that for
   legibility.) */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: clamp(232px, 18.5vw, 270px); height: auto; aspect-ratio: var(--logo-aspect); }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(17px, 2.05vw, 34px);
  margin-left: auto;
}
.desktop-nav a,
.desktop-nav button {
  background: none;
  border: 0;
  white-space: nowrap;
  color: #252920;
  font: 400 15px/1.45 var(--font-ui);
  letter-spacing: .005em;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.desktop-nav a:hover,
.desktop-nav button:hover { color: var(--brand-sage); }

/* V3 drops the header's "Exclusively sold at Sam's Club" pill; the actions
   slot now holds only the menu button below 900px. */
.header-actions { display: flex; align-items: center; }

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--brand-pine);
  padding: 7px;
}
.icon-button svg { width: 22px; height: 22px; }
.icon-button:hover { color: #68835b; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.menu-toggle, .mobile-menu { display: none; }

@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .desktop-nav { gap: clamp(12px, 1.45vw, 19px); }
  .desktop-nav a, .desktop-nav button { font-size: 14px; }
  .brand img { width: 226px; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { width: calc(100% - 42px); }
  .brand img { width: 195px; }

  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    background: #fbfaf7;
    padding: 21px 6vw 34px;
    overflow-y: auto;
    box-shadow: 0 8px 18px #0002;
  }
  .mobile-menu:not([hidden]) { display: block; }
  .mobile-menu a,
  .mobile-menu button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--brand-line);
    padding: 20px 6px;
    text-align: left;
    font: 400 25px var(--font-headline);
    letter-spacing: var(--headline-tracking);
    color: var(--brand-ink);
  }
  .mobile-menu span[aria-hidden] { font: 22px var(--font-ui); color: var(--brand-pine); }
}

@media (max-width: 680px) {
  .header-inner { width: calc(100% - 28px); }
}
@media (max-width: 380px) {
  .header-inner { width: calc(100% - 18px); }
}

/* --------------------------------------------------------------------------
   7. Hero & story module (homepage)
   -------------------------------------------------------------------------- */

/* V3 never crops the hero panorama. Above 1100px the band is a fixed
   height and the photograph sits bottom-right at 82.5% of the width, its
   left and top edges faded into the cream ground, with a wash under the
   copy. At 1100px and below the copy comes first and the whole photograph
   runs full width beneath it. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f6f3ed;
  display: flex;
  flex-direction: column;
}
.hero-media { position: relative; order: 1; }
.hero-media img { width: 100%; height: auto; }
.hero-wash, .hero-bottom-shade { display: none; }
.hero-inner { position: relative; z-index: 2; width: var(--container); margin-inline: auto; padding-block: 58px 38px; }
.hero-content { max-width: 680px; }
.hero h1 {
  font-size: clamp(55px, 6.6vw, 75px);
  line-height: .94;
  margin: 0 0 25px;
  color: var(--brand-heading);
}
.hero-subtitle {
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.42;
  color: #343c33;
  max-width: 350px;
  margin-bottom: 30px;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero h1 { font-size: clamp(57px, 5vw, 78px); }
}

@media (min-width: 1101px) {
  .hero {
    flex-direction: row;
    align-items: center;
    height: clamp(520px, 38.6vw, 675px);
    background: #f5f0e9;
  }
  .hero-media {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    overflow: hidden;
  }
  .hero-media img {
    flex-shrink: 0;
    width: 82.5%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .96) 17%, #000 21%),
      linear-gradient(180deg, transparent 0%, #000 11%, #000 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .96) 17%, #000 21%),
      linear-gradient(180deg, transparent 0%, #000 11%, #000 100%);
    mask-composite: intersect;
  }
  .hero-wash {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,
      rgba(246, 243, 237, .97) 0%,
      rgba(246, 243, 237, .89) 16%,
      rgba(246, 243, 237, .53) 25%,
      rgba(246, 243, 237, .16) 32%,
      transparent 39%);
  }
  .hero-bottom-shade {
    display: block;
    position: absolute;
    inset: auto 0 0;
    height: 14%;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(246, 243, 237, .13), rgba(246, 243, 237, 0) 80%);
  }
  .hero-inner { padding-block: 0; }
  .hero-content { width: 40%; max-width: 525px; padding-top: 16px; }
  .hero h1 { font-size: clamp(55px, 4.7vw, 75px); max-width: 525px; }
}

@media (max-width: 680px) {
  .hero-inner { padding-block: 46px 28px; }
  .hero h1 { font-size: clamp(47px, 10vw, 64px); margin-bottom: 15px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero-subtitle { font-size: 16px; line-height: 1.35; margin-bottom: 20px; max-width: 32ch; }
  .hero .pill-button { font-size: 9px; min-height: 43px; padding: 12px 22px; }
}

/* Two-up: a photograph to the edge on one side, copy on the other. Used by
   the homepage story and quality modules and by interior pages. */
.two-up { display: grid; grid-template-columns: 1fr 1fr; }
.two-up__media { position: relative; overflow: hidden; min-height: 480px; }
.two-up__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.two-up__copy {
  align-self: center;
  padding: 55px clamp(37px, 6.8vw, 120px) 55px clamp(45px, 7vw, 130px);
  max-width: 800px;
}
.two-up__copy h2 { max-width: 620px; margin-bottom: 25px; }
.two-up__copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.76; max-width: 485px; margin-bottom: 27px; }
.two-up__copy .pill-button { min-width: 190px; }

/* V3's slow zoom on the story and quality photographs. (V3 keeps the tile
   and comfort photographs still, so they do not carry .image-zoom.) */
.image-zoom img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.image-zoom:hover img { transform: scale(1.035); }
.two-up--reverse .two-up__media { order: 2; }
@media (min-width: 681px) {
  .two-up--reverse .two-up__copy { padding-left: max(4.5vw, calc((100vw - 1460px) / 2)); justify-self: start; }
}


/* V3 opens a strip of page ground above the story and quality modules. */
.story-section { background: #faf8f5; min-height: 490px; margin-top: 28px; }
@media (min-width: 901px) { .story-section .two-up__media { min-height: 0; height: 480px; align-self: start; } }
@media (min-width: 1700px) { .story-section .two-up__media { height: 560px; } }
@media (max-width: 900px) { .story-section { margin-top: 22px; } }
@media (max-width: 680px) { .story-section { margin-top: 18px; } }

@media (max-width: 1200px) {
  .two-up__copy { padding-left: 5.5vw; padding-right: 5vw; }
  .two-up__copy h2 { font-size: clamp(42px, 4vw, 62px); }
}
@media (max-width: 900px) {
  .story-section { min-height: 0; }
  .two-up__media { min-height: 410px; }
  .two-up__copy { padding: 42px 6vw; }
  .two-up__copy h2 { font-size: clamp(40px, 5vw, 58px); }
  .two-up__copy > p:not(.eyebrow) { font-size: 14px; }
}
@media (max-width: 680px) {
  .two-up { display: flex; flex-direction: column; }
  .two-up--reverse .two-up__media { order: 0; }
  .two-up__media { min-height: 0; aspect-ratio: 1.4; }
  .two-up__copy { padding: 48px 24px 58px; }
  .two-up__copy h2 { font-size: clamp(42px, 10vw, 58px); }
  .two-up__copy > p:not(.eyebrow) { font-size: 15px; max-width: 510px; }
}

/* --------------------------------------------------------------------------
   8. Collection grid
   -------------------------------------------------------------------------- */

.collections-section { padding: 65px 0 64px; background: var(--brand-paper-alt); }
@media (min-width: 1700px) { .collections-section { padding-block: 85px; } }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.45vw, 26px);
  align-items: start;
}

.collection-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--brand-ink);
}
.collection-img {
  display: block;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: .95;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--brand-tile);
}
.collection-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter .4s ease;
}
/* V3: no zoom on hover, so no part of the furniture is ever cropped away;
   a slight lift in colour instead, and the focus ring on the image. */
.collection-card:hover .collection-img img,
.collection-card:focus-visible .collection-img img { filter: saturate(1.035) contrast(1.015); }
.collection-card:focus-visible { outline: none; }
.collection-card:focus-visible .collection-img { outline: 2px solid var(--brand-pine); outline-offset: 3px; }

.collection-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font: 400 clamp(18px, 1.55vw, 25px) var(--font-headline);
  letter-spacing: var(--headline-tracking);
  line-height: 1.15;
}
.collection-caption .arrow {
  font: 300 25px var(--font-ui);
  letter-spacing: 0;
  color: var(--brand-pine);
  transition: transform .25s;
}
.collection-card:hover .arrow { transform: translateX(6px); }

/* A family not yet in the assortment: the image stays, under a light scrim
   with the "Launching Soon" line set in the headline face. */
.soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(33, 41, 30, .23);
  pointer-events: none;
}
.soon-overlay span {
  font: 400 clamp(30px, 2.7vw, 44px)/.98 var(--font-headline);
  letter-spacing: var(--headline-tracking);
  color: #fffdf6;
  text-shadow: 0 2px 15px rgba(16, 24, 15, .28);
}

/* The tiles keep V3's 0.95 frame at every width, one column on phones. */
@media (max-width: 1180px) { .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .collections-section { padding: 55px 0; }
  .section-intro h2 { font-size: clamp(43px, 9vw, 61px); }
  .collection-grid { grid-template-columns: 1fr; gap: 31px; }
}

/* --------------------------------------------------------------------------
   9. Comfort & quality modules
   -------------------------------------------------------------------------- */

/* Comfort band: copy on cream, aligned to the page grid; scene to the right. */
.recliner-feature {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 550px;
  overflow: hidden;
  background: var(--brand-cream);
}
.recliner-text {
  align-self: center;
  padding: 50px 24px 50px max(4.5vw, calc((100vw - 1460px) / 2));
}
.recliner-text h2 { font-size: clamp(60px, 5.55vw, 92px); line-height: .91; margin: 0 0 25px; }
.recliner-text > p:not(.eyebrow) { font-size: 16px; line-height: 1.55; max-width: 350px; margin-bottom: 28px; }
/* The preview lets the 4:3 scene set the band height (648px at 1440). */
.recliner-image { position: relative; min-height: 550px; aspect-ratio: 4 / 3; overflow: hidden; }
.recliner-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }

@media (min-width: 1700px) { .recliner-feature, .recliner-image { min-height: 640px; } }
@media (max-width: 1200px) { .recliner-text h2 { font-size: clamp(56px, 5.6vw, 79px); } }
@media (max-width: 900px) { .recliner-feature, .recliner-image { min-height: 470px; } }
@media (max-width: 680px) {
  .recliner-feature { display: flex; flex-direction: column; }
  .recliner-text { padding: 58px 20px 45px; }
  .recliner-text h2 { font-size: clamp(63px, 13vw, 86px); }
  .recliner-image { min-height: 400px; height: 400px; aspect-ratio: auto; }
  .recliner-image img { object-position: center 38%; }
}

/* Homepage comfort band, as V3 finally draws it: two equal columns, the
   4:3 reading scene contained (never cropped) against the right edge, its
   box reaching under the copy by --comfort-extend and its left edge faded
   into the cream so there is no visible image boundary. At 900px and below
   the copy stacks above the whole photograph. The other bands that share
   .recliner-feature (Our Story, Where to Buy) keep the layout above. */
#comfort { position: relative; isolation: isolate; background: var(--brand-cream); }
#comfort .recliner-text { position: relative; z-index: 2; }
#comfort .recliner-text > p:not(.eyebrow) { font-size: 15px; line-height: 1.5; margin-bottom: 19px; }
#comfort-title { line-height: .94; margin-bottom: 16px; }
#comfort-title span { display: block; white-space: nowrap; }
#comfort .recliner-image { z-index: 1; overflow: hidden; }

@media (min-width: 901px) {
  #comfort {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
  }
  #comfort .recliner-text { padding-block: 34px; }
  #comfort .recliner-text .eyebrow { margin-bottom: 17px; }
  #comfort .recliner-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: calc(100% + var(--comfort-extend));
    margin-left: calc(-1 * var(--comfort-extend));
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  #comfort .recliner-image img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
  }
}
@media (min-width: 1101px) {
  #comfort { --comfort-extend: 160px; height: clamp(580px, 41.5vw, 640px); }
  #comfort-title { font-size: clamp(56px, 4.5vw, 71px); }
  #comfort .recliner-image img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 10%, rgba(0, 0, 0, .04) 13%, rgba(0, 0, 0, .2) 17%, rgba(0, 0, 0, .49) 21%, rgba(0, 0, 0, .78) 25%, #000 29%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 10%, rgba(0, 0, 0, .04) 13%, rgba(0, 0, 0, .2) 17%, rgba(0, 0, 0, .49) 21%, rgba(0, 0, 0, .78) 25%, #000 29%);
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  #comfort { --comfort-extend: 96px; height: clamp(405px, 44.8vw, 500px); }
  #comfort .recliner-text { padding-block: 16px; }
  #comfort .recliner-image img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 2%, rgba(0, 0, 0, .12) 6%, rgba(0, 0, 0, .45) 11%, rgba(0, 0, 0, .8) 16%, #000 21%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 2%, rgba(0, 0, 0, .12) 6%, rgba(0, 0, 0, .45) 11%, rgba(0, 0, 0, .8) 16%, #000 21%);
  }
}
@media (min-width: 681px) and (max-width: 1100px) {
  #comfort-title { font-size: clamp(45px, 5.1vw, 56px); }
}
@media (min-width: 681px) and (max-width: 900px) {
  #comfort-title { margin-bottom: 14px; }
  #comfort .recliner-text > p:not(.eyebrow) { font-size: 14px; line-height: 1.48; margin-bottom: 16px; }
}
@media (max-width: 900px) {
  #comfort { display: flex; flex-direction: column; min-height: 0; }
  #comfort .recliner-text { align-self: stretch; padding: 22px 24px 22px 4.5vw; }
  #comfort .recliner-image { min-height: 0; height: auto; aspect-ratio: auto; }
  /* A 9px cream fade where the photograph meets the copy. */
  #comfort .recliner-image::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: 9px;
    background: linear-gradient(180deg, var(--brand-cream), rgba(247, 243, 238, 0));
  }
  #comfort .recliner-image img { position: static; width: 100%; height: auto; }
}
@media (max-width: 680px) {
  #comfort .recliner-text { padding: 38px 22px 34px; }
  #comfort-title { font-size: clamp(44px, 10.7vw, 58px); margin-bottom: 15px; }
  #comfort .recliner-text > p:not(.eyebrow) { margin-bottom: 20px; }
}

/* Quality module: closeup beside copy and the three-icon value row. V3
   compacts it to a 390-435px band; min-height rather than height, so the
   longer copy the same module carries on Our Story and Collections is never
   clipped. */
.quality-section { background: var(--brand-linen); }
/* V3's strip of page ground between the comfort band and this module. */
#comfort + .quality-section { margin-top: 28px; }
.quality-section .two-up__media { min-height: 0; }
.quality-section .two-up__copy { padding: 28px clamp(32px, 4.7vw, 70px); }
.quality-section h2 { font-size: clamp(50px, 4.35vw, 65px); line-height: .96; margin-bottom: 13px; }
.quality-section .two-up__copy > p:not(.eyebrow) { max-width: 525px; font-size: 15px; line-height: 1.5; margin-bottom: 1em; }
/* The homepage title holds one line, as V3 sets it. */
#quality-title { white-space: nowrap; font-size: clamp(34px, 4.05vw, 59px); }

.quality-values {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 540px;
}
.quality-values > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 13px;
  border-right: 1px solid #dcd5ca;
}
.quality-values > div:last-child { border-right: 0; }
.quality-values svg { width: 34px; height: 34px; margin-bottom: 11px; color: var(--brand-ink); }
.quality-values span {
  font: 500 8px/1.4 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (min-width: 681px) {
  .quality-section { min-height: clamp(390px, 29vw, 435px); }
  .quality-section .eyebrow { margin-bottom: 13px; }
}
@media (max-width: 1100px) {
  #quality-title { font-size: clamp(37px, 4.45vw, 49px); }
}
@media (max-width: 900px) {
  #comfort + .quality-section { margin-top: 22px; }
}
@media (max-width: 680px) {
  #comfort + .quality-section { margin-top: 18px; }
  .quality-section .two-up__media { aspect-ratio: 1.5; }
  .quality-section .two-up__copy { padding: 39px 24px 42px; }
  .quality-section h2 { font-size: clamp(49px, 11.2vw, 61px); margin-bottom: 14px; }
  #quality-title { font-size: clamp(28px, 8vw, 42px); }
  .quality-values { margin-top: 24px; }
}
@media (max-width: 380px) {
  .quality-values > div { padding: 0 5px; }
  .quality-values span { font-size: 7px; }
}

/* --------------------------------------------------------------------------
   10. Stay-connected band (every page, above the footer)
   -------------------------------------------------------------------------- */

.closing-strip { background: var(--brand-linen); border-top: 1px solid var(--brand-line); }
/* On the homepage the band continues the quality module's ground with no
   seam, as V3 draws it. */
main:has(> .quality-section:last-child) + .closing-strip { border-top: 0; }
.closing-strip-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(380px, 1.15fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
  padding: 58px 0 64px;
}
.closing-heading h2 { font-size: clamp(40px, 4.1vw, 66px); margin: 0; max-width: 9.8em; line-height: .98; }
.closing-form-block > p { font-size: 16px; line-height: 1.65; margin: 0 0 22px; max-width: 35em; }
.closing-form-block > .signup-note { margin: 22px 0 0; max-width: 36em; }
.signup-note a { color: var(--brand-pine); text-decoration: underline; text-underline-offset: 3px; }
.signup-nowrap { white-space: nowrap; }

.signup-form {
  display: flex;
  max-width: 100%;
  min-height: 54px;
  padding: 5px 5px 5px 20px;
  border: 1px solid var(--brand-line-strong);
  border-radius: 32px;
  background: #fff;
  transition: border-color .2s ease;
}
.signup-form:focus-within { border-color: var(--brand-pine); }
.signup-form input[type="email"] {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--brand-ink);
  font: 14px var(--font-body);
}
.signup-form input::placeholder { color: #8b8c82; }
.signup-form button {
  flex-shrink: 0;
  background: var(--brand-pine);
  border: 0;
  border-radius: 25px;
  color: #fff;
  padding: 11px 22px;
  font: 500 10px var(--font-ui);
  text-transform: uppercase;
  letter-spacing: .18em;
  white-space: nowrap;
}
.signup-form button span[aria-hidden] { margin-left: 8px; }
.signup-form button:hover { background: #506741; }
.signup-form button:disabled { opacity: .7; cursor: progress; }
.signup-status { font-size: 14px; color: var(--brand-pine); margin: 12px 0 0; }
.signup-status:empty { display: none; }

@media (max-width: 1180px) { .closing-strip-inner { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .closing-strip-inner { padding: 48px 0 55px; gap: 24px; }
  .closing-heading h2 { font-size: clamp(40px, 9.5vw, 57px); max-width: 12em; }
  .closing-form-block > p { font-size: 15px; }
}
@media (max-width: 380px) {
  .signup-form { padding-left: 12px; }
  .signup-form button { padding-inline: 14px; }
  .signup-nowrap { white-space: normal; }
}

/* --------------------------------------------------------------------------
   11. Interior pages
   -------------------------------------------------------------------------- */

/* Page head: the hero's headline treatment on its own sand band. */
.page-head {
  background: linear-gradient(180deg, var(--brand-sand) 0%, #f9f6f1 100%);
  border-bottom: 1px solid var(--brand-line);
  padding: clamp(56px, 7.5vw, 110px) 0 clamp(48px, 6vw, 86px);
}
.page-head h1 { margin: 0 0 22px; color: var(--brand-heading); max-width: 14ch; }
.page-head .lede { max-width: 46ch; }
.page-head.text-center h1 { margin-inline: auto; }
@media (min-width: 1001px) {
  .page-head:not(.text-center) .page-container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(40px, 6vw, 110px);
    align-items: end;
  }
  .page-head:not(.text-center) .eyebrow { grid-column: 1 / -1; }
  .page-head:not(.text-center) h1 { grid-column: 1; margin: 0; }
  .page-head:not(.text-center) .lede { grid-column: 2; margin: 0 0 .35em; }
  .page-head:not(.text-center) .anchor-nav { grid-column: 1 / -1; margin-top: 40px; }
}

/* In-page jump links (collections.html). */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #c9cdbf;
  border-radius: 30px;
  padding: 10px 18px;
  font: 500 10px var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-pine);
  background: rgba(255, 255, 255, .6);
  transition: background .2s, border-color .2s;
}
.anchor-nav a:hover { background: #e6eadf; border-color: #81967a; }

/* Contained split: image and copy inside the page grid. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5.5vw, 96px);
  align-items: center;
}
.split--top { align-items: start; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--brand-tile); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--4x3 img { aspect-ratio: 4 / 3; }
.split__media--square img { aspect-ratio: 1; }
.split__body h2 { margin-bottom: 22px; }
.split__body h3 { margin-bottom: 16px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

.panel {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: clamp(26px, 3vw, 40px);
  height: 100%;
}
.section--alt .panel, .section--shell .panel { background: var(--brand-paper); }
.panel h3 { margin-bottom: 12px; }
.panel h4 { margin-bottom: 10px; }
.panel .eyebrow { margin-bottom: 14px; }
.panel .actions { margin-top: 24px; }
.panel p + .text-link { margin-top: 8px; }

/* Notice for draft legal copy: a panel with a pine edge. */
.notice { border-left: 3px solid var(--brand-pine); }

/* Value row with hairline dividers — the quality icons, at reading size. */
.value-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}
.value-row > div { padding: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 32px); }
.value-row > div + div { border-left: 1px solid var(--brand-line); }
.value-row svg { width: 40px; height: 40px; margin-bottom: 20px; color: var(--brand-pine); }
.value-row h3 { font-size: clamp(24px, 1.9vw, 30px); margin-bottom: 10px; }
.value-row p { font-size: 15px; }
@media (max-width: 1000px) {
  .value-row { grid-template-columns: 1fr 1fr; }
  .value-row > div:nth-child(3) { border-left: 0; }
  .value-row > div:nth-child(n + 3) { border-top: 1px solid var(--brand-line); }
}
@media (max-width: 560px) {
  .value-row { grid-template-columns: 1fr; }
  .value-row > div + div { border-left: 0; border-top: 1px solid var(--brand-line); }
}

/* Diamond bullets, after the interlocking diamonds in the mark. */
.feature-list { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--brand-body);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--brand-pine);
}

/* Figures of mixed source aspect evened into one row. */
.figure-even img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
figcaption {
  font-size: 14px;
  line-height: 1.55;
  color: var(--brand-body);
  margin-top: 12px;
}
figcaption strong { color: var(--brand-pine); font-weight: 600; }

/* At rest / in motion pairs. */
.scene-set {
  display: grid;
  gap: clamp(26px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 901px) {
  .scene-set { grid-template-columns: 1fr 1fr; }
  .scene-set > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - clamp(26px, 3vw, 40px) / 2);
  }
}
.scene-pair__frames { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scene-pair__frame { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.scene-pair__frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scene-pair__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(249, 247, 243, .95);
  color: var(--brand-pine);
  font: 500 9.5px/1.2 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
}

.group-head { margin-bottom: clamp(24px, 3vw, 36px); }
.group-head h3 { margin-bottom: 8px; }
.group-head p { margin: 0; }
.section__more { margin-top: clamp(44px, 5.5vw, 76px); }
/* Gallery rows that close a family section opened by a full-bleed two-up. */
.section__more--end { margin-top: 0; padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 96px); }

/* Family sections on collections.html carry their band colour themselves. */
.section--alt > .two-up, .section--cream > .two-up { background: transparent; }

/* Colorway swatches. Light grounds only, so mid-tones read honestly. */
.swatch-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.swatch { display: grid; gap: 4px; align-content: start; }
.swatch img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.swatch__name { font: 500 21px/1.15 var(--font-headline); letter-spacing: var(--headline-tracking); color: var(--brand-ink); }
.swatch__meta {
  font: 500 9.5px var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-muted);
}
@media (max-width: 1000px) { .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Small note with a rule; used for availability and retailer statements. */
.meta-note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--brand-body);
  border-left: 2px solid var(--brand-line-strong);
  padding-left: 16px;
  max-width: 82ch;
}
.meta-note a { color: var(--brand-pine); text-decoration: underline; text-underline-offset: 3px; }

/* Closing call to action on interior pages. */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { margin-inline: auto; }
.cta-band .actions { justify-content: center; }
.cta-band p a { color: var(--brand-pine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Contact block in a panel (contact page). */
.contact-line { font: 500 clamp(24px, 2vw, 30px)/1.2 var(--font-headline); font-variant-numeric: lining-nums; letter-spacing: var(--headline-tracking); color: var(--brand-pine); }
.contact-line a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-line--email { font-size: clamp(19px, 1.5vw, 23px); word-break: break-word; }

/* --------------------------------------------------------------------------
   12. Forms, accordion, tables, prose
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 22px; }
.form__grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.field { display: grid; gap: 8px; }
.field label,
.field__label {
  font: 500 10.5px var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.field .req { color: var(--brand-pine); }
.field .hint { font-size: 13.5px; line-height: 1.5; color: var(--brand-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 15px var(--font-body);
  color: var(--brand-ink);
  background: #fff;
  border: 1px solid var(--brand-line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b8bfb0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-pine);
  box-shadow: 0 0 0 3px rgba(52, 67, 41, .12);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-pine) 50%),
    linear-gradient(135deg, var(--brand-pine) 50%, transparent 50%);
  background-position: right 20px center, right 15px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 42px;
}
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: #9c3722; }
.form__note { font-size: 13.5px; line-height: 1.6; color: var(--brand-muted); }
.form__note a { color: var(--brand-pine); text-decoration: underline; text-underline-offset: 3px; }
.form__note:empty { display: none; }
.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 22px; }
legend {
  display: block;
  float: left;
  width: 100%;
  padding: 0 0 14px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--brand-line);
  font: 500 10.5px var(--font-ui);
  letter-spacing: var(--eyebrow-tracking);
  text-transform: uppercase;
  color: var(--brand-pine);
}
legend + * { clear: both; }

/* Checkbox list (kept for the hidden swatch form). */
.check-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; background: #fff; border: 1px solid var(--brand-line-strong); cursor: pointer; }
.check:has(input:checked) { border-color: var(--brand-pine); background: var(--brand-cream); }
.check input { accent-color: var(--brand-pine); }
.check .chip--swatch { width: 36px; height: 36px; object-fit: cover; }


.accordion { border-top: 1px solid var(--brand-line); }
.accordion details { border-bottom: 1px solid var(--brand-line); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 24px 52px 24px 0;
  font: 500 clamp(21px, 1.7vw, 26px)/1.2 var(--font-headline);
  letter-spacing: -.015em;
  color: var(--brand-ink);
  transition: color .2s ease;
}
.accordion summary:hover { color: var(--brand-pine); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before,
.accordion summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--brand-pine);
  transition: transform .25s ease;
}
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0deg); }
.accordion details > p { padding-bottom: 24px; margin: 0; }
.accordion a { color: var(--brand-pine); text-decoration: underline; text-underline-offset: 3px; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 34rem; font-size: 15px; }
caption { text-align: left; font-size: 14px; color: var(--brand-muted); padding-bottom: 12px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--brand-line); vertical-align: top; color: var(--brand-body); }
tbody th { color: var(--brand-ink); font-weight: 600; }
thead th {
  font: 500 10.5px var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--brand-pine);
  color: #fff;
  border-bottom: 0;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.prose h2 { font-size: clamp(30px, 2.7vw, 42px); margin: 52px 0 16px; }
.prose h2:first-child,
.prose .eyebrow + h2 { margin-top: 0; }
.table-block { margin: 2rem 0; }

/* Long copy beside a photograph: the photograph holds its place. */
@media (min-width: 901px) {
  .split--top .split__media { position: sticky; top: calc(var(--header-height) + 32px); }
}
.prose h3 { font-size: clamp(22px, 1.8vw, 27px); margin: 30px 0 10px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1.4em; max-width: 68ch; }
.prose li { font-size: 16px; line-height: 1.65; color: var(--brand-body); margin-bottom: 8px; }
.prose li::marker { color: var(--brand-pine); }
.prose a { color: var(--brand-pine); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-pine-hover); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

/* V3 turns the footer light: Corm White ground, the two-tone lockup, olive
   headings and icons, warm dark links. */
.site-footer {
  background: var(--brand-footer-bg);
  color: var(--brand-footer-text);
  margin-top: auto;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) minmax(135px, .78fr) minmax(125px, .83fr) minmax(265px, 1.25fr) minmax(150px, .86fr);
  gap: clamp(18px, 2vw, 31px);
  align-items: start;
  padding-top: 58px;
  padding-bottom: 54px;
}
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--brand-footer-rule);
  padding-right: 28px;
}
.brand-inverse img { width: clamp(195px, 16.3vw, 240px); height: auto; aspect-ratio: var(--logo-aspect); }

/* The four icons span exactly the lockup's width. */
.footer-brand-social { width: clamp(195px, 16.3vw, 240px); max-width: 100%; margin-top: 28px; }
.social-links { display: flex; align-items: center; justify-content: space-between; }
.social-links a {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(71, 80, 38, .36);
  border-radius: 50%;
  color: var(--brand-olive);
  background: rgba(255, 255, 255, .38);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.social-links a:hover { transform: translateY(-2px); background: var(--brand-olive); border-color: var(--brand-olive); color: #fff; }
.social-links svg { width: 17px; height: 17px; stroke-width: 1.8; }

.footer-heading {
  font: 500 10px var(--font-ui);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-olive);
  margin: 7px 0 19px;
}
.footer-column a,
.footer-column p {
  display: block;
  font: 13px/1.75 var(--font-body);
  color: var(--brand-footer-link);
  margin: 0;
  max-width: none;
}
.footer-column p { margin-bottom: 1em; }
.footer-column a:hover { color: var(--brand-olive); text-decoration: underline; text-underline-offset: 3px; }
.footer-care a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer-care a + a { margin-top: 2px; }
.footer-care .footer-care__hours { color: var(--brand-footer-small); }
/* The four support links as a 2x2 grid under the phone and email. */
.footer-care .footer-care__links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  column-gap: clamp(20px, 2.2vw, 36px);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--brand-footer-rule);
}
.footer-care .footer-care__links a { margin-top: 0; }
.footer-stay p { max-width: 270px; }
.footer-column .footer-outlink {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 175px;
  margin-top: 8px;
  padding: 7px 17px;
  border: 1px solid rgba(71, 80, 38, .46);
  border-radius: 25px;
  color: var(--brand-olive);
  background: rgba(255, 255, 255, .32);
  font-weight: 500;
}
.footer-column .footer-outlink:hover { text-decoration: none; background: rgba(71, 80, 38, .065); }
.footer-outlink span[aria-hidden] { font-size: 17px; }

/* Copyright, legal links and back-to-top, under the columns in the same
   block, divided by one hairline (the preview's footer bottom). */
.footer-bottom {
  border-top: 1px solid rgba(71, 80, 38, .2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 21px;
  padding-bottom: 22px;
}
.footer-bottom small,
.footer-bottom a { font: 11px var(--font-ui); color: var(--brand-footer-small); }
.footer-bottom a:hover { color: var(--brand-olive); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom__end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }

@media (min-width: 1181px) {
  .footer-care a[href^="mailto:"] { white-space: nowrap; word-break: normal; font-size: 12px; }
}
/* V3's footer rules as its final cascade resolves them, quirks included:
   three columns under a full-width brand row from 1180px; at 900px the
   brand block spans two rows and Stay connected sits under columns 2-3;
   from 760px the explicit grid is one column, so between 681 and 760px
   Stay connected's "2 / 4" placement opens two implicit columns beside the
   brand block (Shop and Our company side by side, Customer Care and Stay
   connected below them); at 680px everything stacks. */
@media (max-width: 1180px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .footer-brand-block {
    grid-column: 1 / -1;
    border-right: 0;
    padding: 0 0 26px;
    border-bottom: 1px solid var(--brand-footer-rule);
    margin-bottom: 2px;
  }
}
@media (max-width: 900px) {
  .footer-brand-block { grid-row: span 2; }
  .footer-stay { grid-column: 2 / 4; }
}
@media (max-width: 760px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand-block { margin-bottom: 8px; }
}
@media (max-width: 680px) {
  .footer-brand-block { grid-row: auto; }
  .footer-stay { grid-column: 1 / -1; }
  .brand-inverse img, .footer-brand-social { width: 195px; }
  .footer-brand-social { margin-top: 24px; }
  .footer-heading { margin-top: 3px; }
  .footer-column .footer-outlink { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   Dialogs (the V3 mockup's "floating modals")
   -------------------------------------------------------------------------- */

dialog {
  padding: 0;
  max-width: none;
  max-height: none;
  border: 0;
  color: var(--brand-ink);
  background: var(--brand-paper);
  box-shadow: 0 30px 110px #141e1580;
}
dialog::backdrop { background: rgba(20, 28, 16, .64); backdrop-filter: blur(5px); }
.overlay-dialog { width: min(94vw, 790px); max-height: min(89vh, 910px); overflow: auto; border-radius: var(--radius-sm); }
.dialog-frame { padding: clamp(27px, 4vw, 55px); }
.dialog-close {
  width: 41px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #d8d5cc;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-pine);
  font: 29px/1 var(--font-ui);
  transition: background .2s;
}
.dialog-close:hover { background: #e6eadd; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.dialog-actions .pill-button { gap: 12px; padding-inline: 19px; }
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #b8bfb0;
  border-radius: 30px;
  padding: 14px 19px;
  background: transparent;
  color: var(--brand-pine);
  font: 500 12px var(--font-ui);
  transition: background .2s;
}
.outline-button:hover { background: #e6eadf; }

.collection-dialog { width: min(94vw, 990px); }
.collection-dialog-layout { display: grid; grid-template-columns: 49% 51%; min-height: 490px; }
.collection-dialog-image { position: relative; background: #ddd3c6; }
.collection-dialog-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.collection-dialog-content { position: relative; align-self: center; padding: 75px 53px 53px; }
.collection-dialog-content .dialog-close { position: absolute; right: 23px; top: 20px; }
.collection-dialog-content .eyebrow { margin-bottom: 21px; }
.collection-dialog-content h2 { font-size: clamp(46px, 4.6vw, 72px); margin: 0 0 23px; }
.collection-dialog-content p:not(.eyebrow) { font-size: 15px; line-height: 1.65; color: var(--brand-body); margin-bottom: 1em; }
.collection-dialog-content p.collection-explainer { font-size: 12px; color: #84867b; }

.curated-dialog { width: min(92vw, 690px); }
.curated-inner { position: relative; padding: 65px; }
.curated-inner .dialog-close { position: absolute; right: 25px; top: 24px; }
.curated-inner .eyebrow { margin-bottom: 21px; }
.curated-inner h2 { font-size: clamp(49px, 5vw, 70px); max-width: 490px; margin: 0 0 20px; }
.curated-inner > p:not(.eyebrow) { line-height: 1.6; color: var(--brand-body); max-width: 450px; margin-bottom: 1em; }

@media (max-width: 680px) {
  .collection-dialog-layout { display: flex; flex-direction: column; }
  .collection-dialog-image { height: 300px; }
  .collection-dialog-content { align-self: auto; padding: 49px 27px 34px; }
  .collection-dialog-content .dialog-close { position: fixed; right: 4.5vw; top: 6vh; }
  .collection-dialog-content h2 { font-size: 51px; }
  .dialog-actions .pill-button { white-space: normal; }
  .curated-inner { padding: 67px 29px 38px; }
  .curated-inner .dialog-close { right: 17px; top: 15px; }
  .curated-inner h2 { font-size: 52px; }
}

/* --------------------------------------------------------------------------
   14. Motion & print
   -------------------------------------------------------------------------- */

/* Gentle lift as modules enter the viewport. Content is never hidden: with
   no JavaScript (no .js on <html>) nothing moves at all. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(12px); transition: transform .8s ease; }
  .js .reveal.is-visible { transform: none; }
  .collection-card:nth-child(2) { transition-delay: .08s; }
  .collection-card:nth-child(3) { transition-delay: .16s; }
  .collection-card:nth-child(4) { transition-delay: .24s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .closing-strip, .skip-link, .actions { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
