/* ==========================================================
   pages/brand.css — Arturo Fuente + Padrón brand detail pages
   Fixed parallax heroes, vitola showcases, CTAs
   ========================================================== */

/* ── Shared Brand Page Shell ─────────────────────────── */
.brand-page {
  position: relative;
  min-height: 100vh; /* fallback */
  min-height: 100svh;
  background-color: var(--color-surface);
  color: var(--color-on-surface);
  font-family: var(--font-body);
  /* MUST be `clip`, NOT `hidden`.
     overflow-x:hidden silently promotes overflow-y:visible → overflow-y:auto
     (CSS spec §overflow), turning .brand-page into a scroll container that
     allocates ~15px scrollbar gutter space on Windows, causing a lateral
     layout shift whenever the overscroll engine extends the painted area.
     overflow:clip clips both axes without creating a scroll container and
     allocates zero scrollbar space. */
  overflow: clip;
}

.brand-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 50%, rgba(15, 12, 10, 0.35) 80%, rgba(5, 3, 2, 0.98) 115%);
  box-shadow: inset 0 0 clamp(80px, 12vw, 250px) clamp(20px, 4vw, 80px) rgba(5, 3, 2, 0.95);
}

/* ── Arturo Fuente: Fixed Background ─────────────────── */
.af-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  background-color: var(--color-surface);
  background-size: cover;
  background-position: top center;

  /* Starts invisible; eases in after page curtain lifts */
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
              transform 3s cubic-bezier(0.22, 1, 0.36, 1);
}
body.page-loaded .af-fixed-bg {
  opacity: 1;
  transform: scale(1);
}

/* ── Plasencia: Fixed Background ────────────────────── */
.plasencia-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;

  /* Starts invisible; eases in after page curtain lifts */
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
              transform 3s cubic-bezier(0.22, 1, 0.36, 1);
}
body.page-loaded .plasencia-fixed-bg {
  opacity: 1;
  transform: scale(1);
}

/* ── Padrón: Fixed Background ────────────────────────── */
.padron-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
.padron-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Starts invisible; eases in after page curtain lifts */
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
              transform 3s cubic-bezier(0.22, 1, 0.36, 1);
}
body.page-loaded .padron-bg-image {
  opacity: 1;
  transform: scale(1);
}

/* ── Brand Main Content ──────────────────────────────── */
.brand-main {
  position: relative;
  z-index: 20;
  padding: 8rem 1.5rem 10rem;
  max-width: 64rem;
  margin: 0 auto;
  /* Pre-promote to GPU layer for jank-free overscroll transforms */
  will-change: transform;
}

/* ── Brand Header / Overview ─────────────────────────── */
.brand-overview {
  text-align: center;
  margin-bottom: 6rem;
}

.brand-tagline {
  color: #a8a29e;       /* text-stone-400 */
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
/* Padron variant */
.brand-tagline-padron {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: rgba(236, 188, 170, 0.80);    /* text-secondary/80 */
  font-weight: 700;
  margin-bottom: 1rem;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 3.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.brand-divider {
  width: 4rem;
  height: 1px;
  background: rgba(255, 183, 125, 0.30);
  margin: 0 auto 1.5rem;
}

.brand-story {
  max-width: 42rem;
  margin: 0 auto;
  color: rgba(237, 224, 220, 0.80);
  line-height: 1.7;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  font-style: italic;
}
/* Padron variant (not italic) */
.brand-story-padron {
  max-width: 42rem;
  margin: 0 auto;
  font-family: var(--font-body);
  color: rgba(237, 224, 220, 0.90);
  line-height: 1.7;
  font-size: 1.125rem;
  font-weight: 300;
}

/* ── Vitola Showcase Stack ───────────────────────────── */
.vitola-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Reserve CTA ─────────────────────────────────────── */
.brand-cta {
  margin-top: 10rem;
  margin-bottom: 5rem;
  text-align: center;
}

/* Padron: centered main content */
.brand-main-padron {
  position: relative;
  z-index: 20;
  padding: 8rem 1.5rem 10rem;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Pre-promote to GPU layer for jank-free overscroll transforms */
  will-change: transform;
}

.showcase-stack {
  width: 100%;
  max-width: 64rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* ── Responsive ──────────────────────────────────────── */
@media (min-width: 768px) {
  .brand-name {
    font-size: 4.5rem;
  }
}

@media (min-width: 1025px) {
  .brand-name {
    font-size: 6rem;       /* md:text-8xl */
  }
}

/* Tablet & Mobile Layout Compression */
@media (max-width: 1024px) {
  .brand-main, .brand-main-padron {
    padding-top: 5rem;
    padding-bottom: 7rem;
  }
  .brand-overview {
    margin-bottom: 3.5rem;
  }
  .brand-cta {
    margin-top: 5rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 767px) {
  .brand-main, .brand-main-padron {
    padding-top: 4rem;
    padding-bottom: 5.5rem;
  }
  .brand-overview {
    margin-bottom: 2rem;
  }
  .brand-name {
    font-size: 3rem;
  }
  .brand-story, .brand-story-padron {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  .brand-tagline, .brand-tagline-padron {
    margin-bottom: 0.5rem;
  }
  .brand-cta {
    margin-top: 4rem;
  }
}

/* Mobile Bottom Nav Adjustment */
@media (max-width: 1366px) {
  .brand-vignette {
    /* Offset bottom to account for 5rem bottom nav bar, keeping centering optical and visible */
    bottom: 5rem;
  }
}
