/* =========================================================================
   Homepage redesign — editorial / "Lago Design" reference concept, v2.
   Loaded ONLY on index.php, after style.css. Uses the same --color-*
   design tokens (so admin theme colours still apply) — this file only
   changes layout, typography, colour and imagery treatment for the front
   page. Every rule below either targets a .lago-* class (already homepage-
   only) or is explicitly scoped under body.page-home, so nothing here can
   ever leak onto collection/product/cart/admin/etc. No PHP or database
   changes required for anything in this file.

   v2 pass applies the "making it feel expensive" playbook: consistent
   product-photo plating, one strict type scale, two-neutrals-plus-one-
   accent colour discipline, slower/softer motion, one consistent corner
   radius, and clamp()-based fluid sizing so it scales cleanly from 320px
   phones up to wide desktop monitors instead of jumping at breakpoints.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&display=swap');

:root {
  --lago-font: 'Jost', 'Roboto', Arial, sans-serif;
}

/* ---------- Homepage type scale / motion tokens ----------
   The homepage previously had its own separate (lighter) colour palette
   here too — now that the whole site runs on one dark palette (see :root
   in style.css), that override has been retired entirely so the homepage
   just inherits the same --color-* tokens as every other page. What's
   left here is genuinely homepage-only: the editorial type scale and
   motion curve, which don't apply anywhere else. */
body.page-home {
  /* One strict type scale, used everywhere below instead of one-off
     pixel values. Display sizes (hero h1, banner h2) stay on their own
     clamp() curves since they're genuinely a different job — headline,
     not UI text — but every label, byline and body-copy size on the page
     now traces back to one of these six values. */
  --lago-fs-2xs: 11px;   /* uppercase micro-labels only (eyebrows, hero badge label) */
  --lago-fs-xs: 12.5px;  /* small ui text, ctas, captions */
  --lago-fs-sm: 14px;    /* secondary copy */
  --lago-fs-base: 16px;  /* body copy */
  --lago-fs-md: 18px;    /* pulled-quote / testimonial copy */
  --lago-fs-lg: 24px;    /* stat numbers */
  --lago-fs-xl: 32px;    /* section titles (desktop) */

  /* One radius value everywhere except genuinely circular elements
     (avatars, icon buttons, the step-number circle) — see section 8 of
     the style guide this implements. */
  --lago-radius: 2px;

  /* The one deliberate motion curve, used for every hover/transition
     below instead of a mix of speeds. */
  --lago-ease: cubic-bezier(.2,.8,.2,1);
}

/* Logo: on every other page it stays exactly as the client set it up
   (brand colours, gold glow, the works). On the homepage only, it's
   pulled down to the same quiet single-tone palette as everything else —
   a loud multi-tone animated mark next to a minimal editorial layout is
   what makes a homepage look inconsistent rather than premium. */
body.page-home .wlu-stroke {
  stroke: var(--color-text);
  filter: drop-shadow(0 2px 3px rgba(33,28,22,0.18));
}
body.page-home .wlu-flash { background: var(--color-text); }
body.page-home .wlu-brand { color: var(--color-text); }
body.page-home .wlu-brand-rule {
  background: linear-gradient(90deg, transparent, var(--color-muted), transparent);
}
body.page-home .wlu-tagline { color: var(--color-muted); }
/* Neutralises the gold glow the finale/breathe keyframes animate via
   filter: drop-shadow(...rgba(169,124,63...)) — !important beats a
   running CSS animation, so this keeps the reveal motion but drops the
   gold sparkle, matching the quieter homepage palette above. */
body.page-home .wlu-finale,
body.page-home .wlu-finale * { filter: none !important; }

/* ---------- Header & nav ----------
   The radius/motion/tap-target polish is now site-wide (in style.css),
   and the header background is now the same dark tone on every page too
   — no homepage-specific override needed any more. What's left here is
   genuinely homepage-only: swapping the nav's font to match the
   editorial homepage type. */
body.page-home .main-nav a {
  font-family: var(--lago-font);
  font-weight: 500;
  letter-spacing: 0.08em;
}
/* Note: the 2px radius, slower dropdown motion, and 44×44 nav-toggle tap
   target that used to be scoped here now live directly in style.css, so
   every page gets them — not just the homepage. */

/* ---------- Shared editorial helpers ---------- */
.lago-eyebrow {
  display: inline-block;
  font-family: var(--lago-font);
  font-size: var(--lago-fs-2xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.lago-eyebrow-light { color: rgba(255,255,255,0.85); }

.lago-section-head {
  max-width: var(--max-width);
  margin: 0 auto clamp(28px, 4vw, 40px);
  padding: 0 24px;
  text-align: center;
}
.lago-section-head .section-title { margin-bottom: 0; }

.section-title {
  font-family: var(--lago-font);
  font-weight: 300;
  font-size: clamp(22px, 4vw, var(--lago-fs-xl));
  letter-spacing: 0.01em;
}

.lago-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lago-font);
  font-size: var(--lago-fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-text);
  background: none;
  transition: gap 0.45s var(--lago-ease), opacity 0.35s var(--lago-ease);
}
.lago-cta:hover { gap: 14px; opacity: 0.75; }
.lago-cta-light { color: #fff; border-color: rgba(255,255,255,0.7); }

/* Section spacing rhythm (clamp(56px, 8vw, 120px)) now lives in style.css
   as the site-wide .section rule, so every page gets it, not just this one.

   Body copy anywhere on the homepage caps its line length so it never
   reads as a full-bleed-wide paragraph on a large monitor. */
body.page-home .lago-promise-text p,
body.page-home .lago-banner-copy p {
  max-width: 60ch;
}

/* ---------- Hero ---------- */
.lago-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-surface);
}
.lago-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.lago-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--color-surface);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
  transition: opacity 0.6s var(--lago-ease);
}
.lago-hero-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(20,16,10,0.06) 0%, rgba(20,16,10,0.05) 40%, rgba(20,16,10,0.55) 100%);
}
.lago-hero-empty {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: var(--lago-fs-sm);
  background: var(--color-surface);
}

.lago-hero-copy {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 620px;
  padding: 0 5% clamp(7%, 9vw, 9%);
  opacity: 0;
  animation: lagoRise 0.8s var(--lago-ease) 0.25s forwards;
}
@keyframes lagoRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lago-hero-copy .lago-eyebrow {
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}
.lago-hero-copy h1 {
  font-family: var(--lago-font);
  font-weight: 300;
  font-size: clamp(30px, 5.4vw, 62px);
  line-height: 1.08;
  margin: 0 0 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.lago-hero-copy p {
  font-size: var(--lago-fs-base);
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0 0 28px;
  max-width: 46ch;
}
.lago-hero-copy .lago-cta {
  color: #fff;
  border-color: rgba(255,255,255,0.75);
}

.lago-hero-badge {
  position: absolute;
  z-index: 2;
  right: 5%;
  top: 8%;
  text-align: right;
  padding: 16px 20px;
  border-radius: var(--lago-radius);
  background: rgba(20,16,10,0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  animation: lagoRise 0.8s var(--lago-ease) 0.5s forwards;
}
.lago-hero-badge-label {
  display: block;
  font-family: var(--lago-font);
  font-size: var(--lago-fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.lago-hero-badge-name {
  display: block;
  font-family: var(--lago-font);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: 10px;
}
.lago-hero-badge-link {
  font-size: var(--lago-fs-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 3px;
  transition: border-color 0.35s var(--lago-ease);
}
.lago-hero-badge-link:hover { border-color: #fff; }

/* Thin stat strip directly under the hero */
.lago-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 30px) 24px;
  border-bottom: 1px solid var(--color-border);
}
.lago-stats div {
  flex: 1 1 140px;
  text-align: center;
  padding: 0 20px;
  border-left: 1px solid var(--color-border);
}
.lago-stats div:first-child { border-left: none; }
.lago-stats strong {
  display: block;
  font-family: var(--lago-font);
  font-weight: 400;
  font-size: var(--lago-fs-lg);
  color: var(--color-text);
  margin-bottom: 4px;
}
.lago-stats span {
  font-size: var(--lago-fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Promise / value prop ---------- */
.lago-promise-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.lago-promise-text h2 {
  font-family: var(--lago-font);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.lago-promise-text p {
  color: var(--color-muted);
  font-size: var(--lago-fs-base);
  line-height: 1.7;
  margin: 0;
}
.lago-promise-stats {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-left: 1px solid var(--color-border);
  padding-left: 40px;
}
.lago-promise-stats strong {
  display: block;
  font-family: var(--lago-font);
  font-weight: 400;
  font-size: var(--lago-fs-lg);
  color: var(--color-text);
}
.lago-promise-stats span {
  font-size: var(--lago-fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Category grid ---------- */
.lago-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.lago-tile-feature {
  grid-column: span 2;
  grid-row: span 2;
}
.lago-category-grid .category-tile-image {
  aspect-ratio: 3/4;
  border-radius: var(--lago-radius);
  overflow: hidden;
}
.lago-category-grid .category-tile-image img {
  transition: transform 0.6s var(--lago-ease);
}
.lago-category-grid .category-tile-image:hover img {
  transform: scale(1.05);
}
.lago-tile-feature .category-tile-image { aspect-ratio: auto; height: 100%; min-height: 100%; }
.lago-tile-feature { display: grid; grid-template-rows: 1fr auto; }
.lago-tile-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.lago-category-grid .category-tile-name {
  margin: 0;
  text-align: left;
  font-family: var(--lago-font);
  font-weight: 500;
  font-size: var(--lago-fs-base);
  letter-spacing: 0.01em;
}
.lago-category-grid .category-tile-cta {
  align-self: auto;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: var(--lago-fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.35s var(--lago-ease), gap 0.35s var(--lago-ease);
}
.lago-category-grid .category-tile-cta:hover { color: var(--color-text); gap: 8px; }

/* ---------- Product grid ----------
   Real product cutouts get a consistent neutral "plate" behind them with
   breathing room around the edges (object-fit: contain + padding) rather
   than filling the frame edge-to-edge — a cutout with visible margin
   around it reads as styled; one that fills the box reads as a
   marketplace listing. A very soft radial glow gives the plate a touch of
   depth without needing a real studio backdrop. Card border is dropped in
   favour of the plate doing the separation. */
.lago-product-grid .product-card {
  border: none;
  border-radius: 0;
  transition: transform 0.45s var(--lago-ease);
}
.lago-product-grid .thumb {
  border-radius: var(--lago-radius);
  background: radial-gradient(circle at 50% 42%, var(--color-bg), var(--color-surface));
  padding: 9%;
}
.lago-product-grid .thumb img {
  object-fit: contain;
  transition: transform 0.5s var(--lago-ease);
}
.lago-product-grid .product-card:hover .thumb img { transform: scale(1.05); }
.lago-product-grid .info { padding: 18px 2px 0; }
.lago-product-grid h3 {
  font-family: var(--lago-font);
  font-weight: 500;
  font-size: var(--lago-fs-base);
}
.lago-product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--lago-fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.35s var(--lago-ease), gap 0.35s var(--lago-ease);
}
.product-card:hover .lago-product-link { color: var(--color-text); gap: 8px; }

/* ---------- Mid-page editorial banner ---------- */
.lago-banner {
  position: relative;
  min-height: 56vh;
  background: var(--color-surface) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lago-banner-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15,12,8,0.42);
}
.lago-banner-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 620px;
  padding: 0 24px;
}
.lago-banner-copy h2 {
  font-family: var(--lago-font);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.lago-banner-copy p {
  font-size: var(--lago-fs-base);
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  margin: 0 auto 28px;
}

/* ---------- Testimonials ----------
   Star colour is pulled from a bright, "foreign" gold to a muted bronze
   in the same family as the accent — legible as a rating without
   introducing a new colour to the palette. */
body.page-home { --lago-star: #9c7b4f; }
.lago-testimonial-grid {
  gap: 0;
}
.lago-testimonial-grid .testimonial-card {
  background: none;
  border-radius: 0;
  border-left: 1px solid var(--color-border);
  padding: 4px 32px;
  text-align: center;
}
.lago-testimonial-grid .testimonial-card:first-child { border-left: none; }
.lago-testimonial-grid .testimonial-card p {
  font-family: var(--lago-font);
  font-weight: 300;
  font-size: var(--lago-fs-md);
  line-height: 1.6;
  color: var(--color-text);
}
.lago-testimonial-grid .stars { color: var(--lago-star); }
.lago-testimonial-grid .author {
  font-size: var(--lago-fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Showroom cards ---------- */
.lago-showroom-grid .showroom-card {
  background: none;
  border: none;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  padding: 24px 0 0;
}
.lago-showroom-grid .showroom-card h3 {
  font-family: var(--lago-font);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: var(--lago-fs-base);
}
.lago-showroom-grid .showroom-card p { font-size: var(--lago-fs-sm); }

/* FAQ toggle motion now lives in style.css as the site-wide .faq-question
   rule, so faq.php gets the same slower easing, not just this page.

   Footer: intentionally NOT touched here. The footer keeps its black
   background / white text everywhere, including the homepage — only its
   heading typography (promoted site-wide in style.css) changed. */

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lago-promise-inner { grid-template-columns: 1fr; gap: 32px; }
  .lago-promise-stats { flex-direction: row; flex-wrap: wrap; border-left: none; padding-left: 0; gap: 28px; border-top: 1px solid var(--color-border); padding-top: 24px; }
  .lago-category-grid { grid-template-columns: repeat(2, 1fr); }
  .lago-tile-feature { grid-column: span 2; grid-row: auto; }
  .lago-tile-feature .category-tile-image { aspect-ratio: 16/9; height: auto; }
}

@media (max-width: 900px) {
  .lago-hero { min-height: 78vh; align-items: flex-end; }
  .lago-hero-copy { padding: 0 6% 9%; }
  /* Keep the "Now Viewing" badge tucked in the top corner (same idea as
     desktop) instead of stretched full-width through the middle of the
     photo — full-width + mid-height is what was landing on top of both
     the headline and the furniture itself. */
  .lago-hero-badge { right: 6%; top: 6%; max-width: 72%; }
  .lago-stats div { flex-basis: 46%; margin-bottom: 12px; }
  .lago-testimonial-grid { grid-template-columns: 1fr; }
  .lago-testimonial-grid .testimonial-card {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding: 28px 8px 0;
  }
  .lago-testimonial-grid .testimonial-card:first-child { border-top: none; }
  .lago-banner { min-height: 46vh; }
}

@media (max-width: 620px) {
  .lago-hero { min-height: 72vh; }
  /* On phones there isn't room for the big headline, the tagline and the
     rotating badge without something covering the product photo — so the
     headline block drops entirely and the photo + badge do the talking. */
  .lago-hero-copy { display: none; }

  /* The floating top-right card (fine on tablet/desktop) reads as a
     disconnected sticker on a narrow phone, especially with the headline
     gone — nothing anchors it to the photo. Docking it as a full-width
     bar along the bottom edge instead makes it read as a caption/label
     for the photo, not an overlay on top of it. */
  .lago-hero-badge {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    max-width: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    padding: 16px 6%;
    border-radius: 0;
    background: linear-gradient(0deg, rgba(20,16,10,0.72), rgba(20,16,10,0.5));
  }
  .lago-hero-badge-label { display: none; }
  .lago-hero-badge-name { margin-bottom: 0; font-size: 16px; }
  .lago-hero-badge-link { flex-shrink: 0; }

  .lago-category-grid { grid-template-columns: 1fr; gap: 16px; }
  .lago-tile-feature { grid-column: span 1; }
  .lago-tile-feature .category-tile-image { aspect-ratio: 4/3; }
  .lago-promise-stats { gap: 18px 28px; }
}

/* Narrowest common phone width (~360-400px). Nothing above this point
   should be causing horizontal scroll by itself, but the hero badge and
   stat strip need a bit more trimming here specifically so nothing wraps
   onto a third line or crowds the screen edge. */
@media (max-width: 400px) {
  .lago-hero-badge { padding: 14px 5%; gap: 10px; }
  .lago-hero-badge-name { font-size: 15px; }
  .lago-stats div { flex-basis: 46%; padding: 0 10px; margin-bottom: 12px; }
  .lago-promise-stats { gap: 16px 24px; }
}
