/* ==========================================================================
   FURNITURE PAGE — layered on top of styles.css: reuses the storefront's
   theme color variables (var(--text-main), var(--accent-primary), etc.),
   font stack (var(--font-display)/var(--font-sans)), .container, and
   .btn/.btn-primary/.btn-secondary so this page matches the rest of the
   site's look — only layout/spacing for this page's own sections lives here.
   Class names are prefixed "fh-" (Furniture Hub) to avoid colliding with
   about-us.css's "au2-" / policy.css's "pp-" prefixes on shared pages.

   Iteration 2 note: the page now has TWO distinct step sequences —
   .fh-workflow (the 7-stage production process, "how we make it": a
   connected vertical timeline) and .fh-enquiry-grid (the 5-step "what
   happens after you contact us" sequence: an unconnected card grid).
   The two use deliberately different visual treatments so visitors don't
   mistake one for the other — see Iteration 2 spec.
   ========================================================================== */

/* ---- Hero ---- */

.fh-hero {
  position: relative;
  padding: 7rem 0 5rem;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-elevated);
}

/* The photo layer. Kept as a real <img> rather than a CSS background so the
   admin's zoom/position crop can be applied as a transform (see
   applyFurnitureHeroCrop() in furniture.html) — the same reason the homepage
   hero uses an <img>. The dark scrim above it is what keeps the white
   headline/copy readable over an arbitrary uploaded photo. */
.fh-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fh-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
}

.fh-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.72), rgba(15, 20, 25, 0.55));
}

[data-theme="artisan-light"] .fh-hero-media::after,
[data-theme="coral-bloom"] .fh-hero-media::after,
[data-theme="sky-linen"] .fh-hero-media::after,
[data-theme="golden-meadow"] .fh-hero-media::after,
[data-theme="lavender-mist"] .fh-hero-media::after {
  background: linear-gradient(180deg, rgba(20, 16, 14, 0.6), rgba(20, 16, 14, 0.45));
}

.fh-hero .container {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.fh-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
}

.fh-hero-copy {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin: 0 auto 32px;
}

.fh-hero-copy p {
  margin: 0 0 16px;
}

.fh-hero-copy p:last-child {
  margin-bottom: 0;
}

/* ---- Shared section scaffolding ---- */

.fh-section {
  padding: 5rem 0;
}

.fh-section-alt {
  background-color: var(--bg-surface);
}

/* Smaller supporting sections (timeline/pricing expectation-setting) —
   deliberately less vertical weight than the main story sections, per the
   Iteration 2 goal of keeping craftsmanship/customisation as the page's
   dominant beats. */
.fh-section-compact {
  padding: 3rem 0;
}

.fh-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.fh-section-compact .fh-section-head {
  margin-bottom: 1.5rem;
}

.fh-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0 0 12px;
}

.fh-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0 0 14px;
}

.fh-section-compact .fh-section-title {
  font-size: 26px;
}

.fh-section-copy {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.fh-section-copy p {
  margin: 0 0 18px;
}

.fh-section-copy p:last-child {
  margin-bottom: 0;
}

.fh-section-copy strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Bulleted factor list used by the pricing-explanation section */
.fh-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.fh-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.fh-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

/* ---- Workflow (7-stage production process — "How We Make It") ---- */

.fh-workflow {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.fh-workflow::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--border-strong) 90%);
}

.fh-workflow-step {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 3rem;
}

.fh-workflow-step:last-child {
  padding-bottom: 0;
}

.fh-workflow-num {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.fh-workflow-content {
  padding-top: 8px;
  flex: 1 1 auto;
}

.fh-workflow-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-main);
  margin: 0 0 8px;
}

.fh-workflow-content p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.fh-workflow-content p:last-child {
  margin-bottom: 0;
}

/* The craftsmanship stage (05) is the visual centrepiece of the production
   workflow, per Iteration 2 — an accent card + icon badge, not a photo (no
   real in-house craftsmanship photography exists yet to draw from; using a
   generic stock photo here was explicitly ruled out). */
.fh-workflow-step--feature .fh-workflow-content {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  padding-top: 20px;
  box-shadow: var(--shadow-sm);
}

.fh-workflow-step--feature .fh-workflow-label {
  font-size: 1.4rem;
}

.fh-workflow-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-base);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

/* ---- What can we make? (category card grid) ---- */

/* minmax/max-width tuned so the 8 cards land as an even 4x2 on desktop
   rather than a ragged 5+3. */
.fh-make-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.fh-make-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px 22px;
  text-align: left;
  transition: var(--transition);
}

.fh-make-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.fh-make-icon {
  display: inline-block;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.fh-make-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0 0 8px;
}

.fh-make-card p {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.fh-make-card--custom {
  background-color: transparent;
  border-style: dashed;
}

/* ---- What happens after you contact us? (5-step enquiry sequence) ----
   Deliberately an unconnected card grid (no timeline line, square-ish
   numerals instead of circular badges) so it reads as a different kind of
   sequence from .fh-workflow above. */

.fh-enquiry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.fh-enquiry-card {
  padding: 6px 4px;
}

.fh-enquiry-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent-primary);
  margin: 0 0 10px;
}

.fh-enquiry-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 0 0 8px;
}

.fh-enquiry-card p {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Videos (admin-managed, see furniture.html's own script) ---- */

.fh-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.fh-video-card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Responsive 16:9 box — avoids the iframe's own fixed width/height attributes
   dictating layout, same technique used for any embedded-video aspect box. */
.fh-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.fh-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* A vertical video (Shorts / phone-recorded) gets its own true 9:16 frame
   instead of being letterboxed inside the 16:9 box above. Capped and
   centered so it doesn't stretch to a wide grid column's full width — sized
   deliberately large (2026-08-23, was 340px) per direct feedback that the
   first pass looked like a small thumbnail rather than a real video. Uses
   min() so it still shrinks to fit on a narrow phone instead of overflowing.
   `width: 100%` is not redundant with `max-width` here — a grid item with a
   non-zero auto margin drops its default stretch sizing and becomes
   shrink-to-fit, and this card's only content (.fh-video-embed's iframe) is
   position:absolute and contributes zero intrinsic size, so a shrink-to-fit
   box with no explicit width collapses to a near-zero sliver regardless of
   whatever max-width says — confirmed live via Playwright, the card
   rendered ~120px wide even at max-width:560px until width:100% was added. */
.fh-video-card--vertical {
  width: 100%;
  max-width: min(476px, 75vw); /* 15% smaller than the 560px/88vw it shipped at */
  margin-left: auto;
  margin-right: auto;
}

.fh-video-embed--vertical {
  padding-top: 177.78%;
}

.fh-video-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  margin: 0;
  padding: 14px 18px;
}

/* ---- You stay involved ---- */

.fh-involve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 980px;
  margin: 0 auto;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  box-shadow: var(--shadow-sm);
}

.fh-involve-icons {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.fh-involve-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-base);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.fh-involve-text {
  flex: 1 1 auto;
  max-width: 620px;
}

.fh-involve-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--text-main);
  margin: 0 0 16px;
}

/* The page's key differentiator sentence — kept prominent per Iteration 2. */
.fh-involve-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--accent-primary);
  margin: 0 0 18px;
}

.fh-involve-text p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.fh-involve-text p:last-child {
  margin-bottom: 0;
}

/* ---- Closing CTA ---- */

.fh-closing {
  text-align: center;
}

.fh-cta {
  text-align: center;
  margin-top: 2rem;
}

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

@media (max-width: 768px) {
  .fh-involve {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .fh-involve-icons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .fh-hero {
    padding: 4.5rem 0 3rem;
  }

  .fh-hero-title {
    font-size: 34px;
  }

  .fh-hero-copy {
    font-size: 16px;
  }

  .fh-section {
    padding: 3.5rem 0;
  }

  .fh-section-compact {
    padding: 2.25rem 0;
  }

  .fh-section-title {
    font-size: 26px;
  }

  .fh-section-compact .fh-section-title {
    font-size: 22px;
  }

  .fh-workflow::before {
    left: 23px;
  }

  .fh-workflow-num {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
  }

  .fh-workflow-step {
    gap: 16px;
    padding-bottom: 2.25rem;
  }

  .fh-workflow-step--feature .fh-workflow-content {
    padding: 16px 18px;
  }

  .fh-workflow-step--feature .fh-workflow-label {
    font-size: 1.15rem;
  }

  .fh-make-grid,
  .fh-enquiry-grid {
    grid-template-columns: 1fr;
  }

  .fh-involve-quote {
    font-size: 19px;
  }
}
