/* ============================================================
   零境匯 SnackVerse — vanilla stylesheet
   Animation craft follows Emil Kowalski's design-eng philosophy:
   custom easing curves, correct enter/exit easing, transform+opacity
   only, interruptible transitions, reduced-motion + touch-hover gating.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f5f2ee;
  --ink: #3d3d3d;
  --navy: #1a1a2e;
  --navy-2: #2d2d44;
  --navy-3: #363650;
  --gold: #c9a96e;
  --gold-hover: #b8956a;
  --clay: #c0786a;
  --card: #ffffff;

  --text-muted: #a0988a;
  --text-soft: #908878;
  --text-body: #4a4540;

  /* Emil's strong easing curves — the built-in CSS easings lack punch */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);        /* enter/exit UI */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* on-screen movement */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);     /* iOS-like drawer */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);  /* subtle overshoot */

  --radius: 0.625rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Noto Sans TC', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4,
p,
ul,
figure,
blockquote {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

/* ---------- Layout helpers ---------- */
.container-max {
  margin-inline: auto;
  max-width: 1440px;
}

.section-padding {
  padding: 200px 60px;
}

@media (max-width: 1024px) {
  .container-max {
    max-width: 740px;
  }
  .section-padding {
    padding: 100px 30px;
  }
}

.narrow {
  max-width: 800px;
  margin-inline: auto;
}

/* ---------- Buttons ----------
   Every pressable element gets scale(0.97) on :active — instant feedback
   so the UI feels like it is truly listening (Emil: buttons must feel
   responsive to press). Press feedback lives at 100–160ms. */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-weight: 700;
  transition: background-color 200ms ease, color 200ms ease,
    transform 140ms var(--ease-out);
}

.btn-primary:active,
.btn-secondary:active,
.btn-outline:active,
.nav-cta:active {
  transform: scale(0.97);
}

.btn-primary {
  padding: 20px 48px;
  font-size: 1.125rem;
  background-color: var(--gold);
  color: var(--navy);
}
.btn-secondary {
  padding: 20px 40px;
  font-size: 1.125rem;
  background-color: var(--navy);
  color: #fff;
}
.btn-outline {
  padding: 16px 40px;
  font-size: 1rem;
  border: 2px solid var(--clay);
  color: var(--clay);
  background-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--gold-hover);
  }
  .btn-secondary:hover {
    background-color: var(--navy-2);
  }
  .btn-outline:hover {
    background-color: var(--clay);
    color: var(--navy);
  }
}

.btn-sm {
  padding: 12px 28px;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
}

/* text link with growing dot */
.text-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clay);
  margin-top: 24px;
}
.text-link-btn .dot {
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background-color: var(--clay);
  transition: width 300ms var(--ease-out), height 300ms var(--ease-out);
}
.text-link-btn .label {
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link-btn:hover .dot {
    width: 32px;
    height: 32px;
  }
  .text-link-btn:hover .label {
    transform: translateX(8px);
  }
}

/* ============================================================
   NAVBAR
   Color/appearance change only — no movement. This bar reacts on
   every scroll, so animating position would be noise.
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Bar stays full-width; content caps at 1440px, keeping 60px min side padding */
  padding-block: 0;
  padding-inline: max(60px, calc((100% - 1440px) / 2));
  background-color: transparent;
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
.nav.scrolled,
.nav.nav-solid {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 10;
  color: #fff;
  transition: color 300ms ease;
}
.nav.scrolled .nav-logo,
.nav.nav-solid .nav-logo {
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-link {
  font-size: 1rem;
  color: #fff;
  transition: color 300ms ease, opacity 300ms ease;
}
.nav.scrolled .nav-link,
.nav.nav-solid .nav-link {
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    opacity: 0.7;
  }
}

.nav-cta {
  padding: 14px 28px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  background-color: var(--gold);
  color: var(--navy);
  transition: background-color 200ms ease, transform 140ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    background-color: var(--gold-hover);
  }
}

.nav-burger {
  display: none;
  z-index: 10;
  color: #fff;
}
.nav.scrolled .nav-burger,
.nav.nav-solid .nav-burger {
  color: var(--ink);
}
.nav-burger svg {
  display: block;
}

/* mobile menu — a full-screen overlay. It appears occasionally, so a
   standard entrance is warranted: fade + slight rise, ease-out. */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background-color: var(--navy);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.mobile-menu .btn-primary {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .nav-links,
  .nav-cta-wrap {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
}

/* ============================================================
   SCROLL REVEAL
   Base state for JS-driven reveals. We animate transform + opacity
   only (GPU compositing, skips layout/paint). The .is-visible class is
   toggled by IntersectionObserver; per-item stagger is set inline via
   --reveal-delay (kept to 30–80ms between siblings).
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal.from-left {
  transform: translateX(-28px);
}
.reveal.from-right {
  transform: translateX(48px);
}
.reveal.scale-in {
  transform: scale(0.95); /* never scale(0) — nothing appears from nothing */
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  /* Guarantee room for the tall hero text + bottom CTA on short viewports;
     below this the section grows past the fold instead of overlapping. */
  min-height: 660px;
  overflow: hidden;
  /* Lay the title + CTA out in a column so the button always sits below the
     text. (They used to be independently absolute-positioned and collided on
     short viewports.) */
  display: flex;
  flex-direction: column;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 40%, #3d2e1e 100%);
}
#carousel-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
}
.hero-mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  pointer-events: none;
  z-index: 2;
}
.hero-mask.top {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
}
.hero-mask.bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.hero-title {
  position: relative;
  z-index: 3;
  /* Fill the space above the CTA and center the text within it */
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  /* Clear the fixed 80px navbar so the text never tucks under it */
  padding-top: 80px;
  /* Align hero text to the same 1440px column as the nav + body content */
  margin-left: max(60px, calc((100% - 1440px) / 2));
}
.hero-line {
  display: block;
  color: #fff;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.hero-line.lg {
  font-size: 90px;
}
.hero-line.md {
  font-size: 70px;
}
.hero-line.sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-mobile {
  display: none;
}

.hero-cta {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  margin-left: max(60px, calc((100% - 1440px) / 2));
  margin-bottom: 60px;
}
.hero-cta .btn-primary {
  padding: 24px 48px;
  font-size: 1.125rem;
}

@media (max-width: 767px) {
  .hero {
    /* Mobile uses its own centered title and hides the desktop CTA, so the
       short-viewport safeguard isn't needed here. */
    min-height: 0;
  }
  .hero-title,
  .hero-cta {
    display: none;
  }
  .hero-title-mobile {
    display: block;
    position: absolute;
    top: 50%;
    left: 32px;
    right: 32px;
    z-index: 3;
    transform: translateY(-50%);
    text-align: center;
  }
  .hero-title-mobile h1 {
    color: #fff;
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.25;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  }
  .hero-title-mobile p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    font-size: 1rem;
  }
}

/* ============================================================
   Generic sections
   ============================================================ */
.sec-navy {
  background-color: var(--navy);
}
.sec-cream {
  background-color: var(--bg);
}

.sec-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 55px);
  letter-spacing: -0.03em;
}
.sec-title.on-dark {
  color: #fff;
}
.sec-title.on-light {
  color: var(--ink);
}
.sec-sub {
  text-align: center;
  margin-top: 16px;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 100px;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.about-title {
  color: #fff;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.03em;
  font-size: clamp(40px, 5vw, 70px);
}
.about-text {
  align-self: center;
  font-size: 20px;
  line-height: 180%;
  color: #b0a898;
}

/* ============================================================
   PRODUCT CAROUSEL (home)
   Slide transitions use CSS transitions (not keyframes) so rapid
   arrow presses retarget smoothly instead of restarting from zero.
   ============================================================ */
.products-wrap {
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
}
.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  overflow: hidden;
  padding: 16px 0;
}
.carousel-card {
  flex-shrink: 0;
  cursor: pointer;
  transition: width 500ms var(--ease-out), opacity 500ms var(--ease-out),
    transform 500ms var(--ease-out);
}
.carousel-card img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.carousel-meta {
  margin-top: 20px;
  text-align: center;
  /* fade the meta in/out with the centering transition */
  transition: opacity 300ms var(--ease-out);
}
.carousel-meta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.carousel-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.origin-chip {
  padding: 4px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--clay);
}
.carousel-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.carousel-desc {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--text-muted);
}

.carousel-arrow {
  position: absolute;
  top: 33%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: var(--navy);
  transition: background-color 300ms ease, transform 200ms var(--ease-out);
}
.carousel-arrow.left {
  left: 0;
}
.carousel-arrow.right {
  right: 0;
}
.carousel-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .carousel-arrow:hover {
    background-color: var(--gold);
    transform: translateY(-50%) scale(1.1);
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: #d0c8bc;
  transition: background-color 300ms ease, transform 300ms var(--ease-out);
}
.carousel-dot.active {
  background-color: var(--navy);
  transform: scale(1.3);
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 1200px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-card {
  text-align: center;
}
.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}
.step-circle span {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
}
.step-card h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-top: 32px;
}
.step-card p {
  margin-top: 16px;
  font-size: 18px;
  line-height: 160%;
  color: #908878;
}
.step-rule {
  width: 60px;
  height: 2px;
  margin: 32px auto 0;
  background-color: var(--gold);
}

/* ============================================================
   PROMO
   ============================================================ */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 64px auto 0;
}
@media (min-width: 768px) {
  .promo-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.promo-card {
  border-radius: 24px;
  padding: 48px;
  background-color: var(--card);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .promo-card:hover {
    transform: translateY(-4px);
  }
}
.promo-icon {
  font-size: 3rem;
  margin-bottom: 24px;
}
.promo-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
}
.promo-card p {
  margin-top: 16px;
  font-size: 18px;
  color: #6a6358;
  line-height: 160%;
}

/* ============================================================
   FAQ — accordion
   maxHeight + opacity transition; content revealed on toggle.
   ============================================================ */
.faq-list {
  max-width: 900px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.faq-q .q-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e0d8cc;
  transition: color 300ms ease;
}
.faq-q .q-plus {
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .faq-q:hover .q-text {
    color: var(--gold);
  }
}
.faq-item.open .q-plus {
  transform: rotate(45deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 400ms var(--ease-out), opacity 400ms var(--ease-out);
}
.faq-item.open .faq-a {
  max-height: 320px;
  opacity: 1;
}
.faq-a p {
  padding-top: 16px;
  font-size: 16px;
  line-height: 160%;
  color: #908878;
}

/* ============================================================
   CORPORATE PLANS
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 64px auto 0;
}
@media (min-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.plan-card {
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  background-color: var(--bg);
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .plan-card:hover {
    transform: translateY(-4px);
  }
}
.plan-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.plan-rule {
  width: 40px;
  height: 2px;
  margin: 20px auto;
  background-color: var(--clay);
}
.plan-count-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.plan-count {
  font-size: 40px;
  font-weight: 700;
  color: var(--clay);
}
.plan-unit {
  font-size: 1rem;
  color: var(--navy);
}
.plan-target {
  margin-top: 16px;
  font-size: 16px;
  color: #6a6358;
  line-height: 160%;
}
.plan-card .btn-secondary {
  margin-top: 32px;
  padding: 16px;
  font-size: 1rem;
}
.corp-cta {
  text-align: center;
  margin-top: 64px;
}

/* ============================================================
   MODAL (3D card detail)
   Modals stay transform-origin: center (they're not anchored to a
   trigger). Enter with a gentle spring overshoot; overlay fades.
   Uses transitions + a mounted class so it's interruptible.
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms var(--ease-out);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 16px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #fff;
  padding: 40px;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 400ms var(--ease-spring), opacity 250ms var(--ease-out);
}
.modal-overlay.open .modal-card {
  transform: scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f2f2f2;
  transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.modal-close:active {
  transform: scale(0.9);
}
@media (hover: hover) and (pointer: fine) {
  .modal-close:hover {
    transform: rotate(90deg);
  }
}
.modal-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}
.modal-origin {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--clay);
}
.modal-card img {
  width: 100%;
  margin-top: 16px;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.modal-desc {
  margin-top: 16px;
  font-size: 1rem;
  color: #5a5348;
  line-height: 160%;
}
.modal-price {
  margin-top: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clay);
}
.modal-card .btn-primary {
  margin-top: 20px;
  padding: 16px;
  font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--navy);
  color: #fff;
  padding: 100px 60px 40px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 64px;
  justify-content: space-between;
}
@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
  }
}
.footer-brand a {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gold);
}
.footer-tag {
  margin-top: 12px;
  font-size: 1rem;
  color: #a0988a;
}
.footer-blurb {
  margin-top: 24px;
  font-size: 0.875rem;
  max-width: 20rem;
  color: #8a8278;
  line-height: 1.8;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}
@media (min-width: 1024px) {
  .footer-cols {
    gap: 96px;
  }
}
.footer-col h4 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--gold);
}
.footer-col li {
  line-height: 200%;
}
.footer-link {
  display: inline-block;
  font-size: 1rem;
  color: #8a8278;
  transition: color 300ms ease, transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer-link:hover {
    color: #fff;
  }
}
.footer-bottom {
  margin-top: 64px;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
.footer-copy {
  font-size: 0.875rem;
  color: #6a645c;
}
.footer-pays {
  display: flex;
  gap: 16px;
}
.footer-pays span {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.06);
  color: #6a645c;
}

/* ============================================================
   SHOPLIST PAGE
   ============================================================ */
.shop-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--gold);
}
.deco-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.deco-ring {
  position: absolute;
  border-radius: 9999px;
  /* slow, decorative rotation — constant motion uses linear */
  animation: ringspin 40s linear infinite;
}
.deco-ring:nth-child(2) {
  animation-duration: 55s;
  animation-direction: reverse;
}
.deco-ring:nth-child(3) {
  animation-duration: 70s;
}
@keyframes ringspin {
  to {
    transform: rotate(360deg);
  }
}
.shop-hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}
.shop-hero-inner h1 {
  font-weight: 700;
  font-size: clamp(48px, 7vw, 80px);
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 120%;
}
.shop-hero-inner p {
  margin-top: 16px;
  font-size: 22px;
  color: #3d2e1e;
}

/* Store list tracks the header's 1440px width band (was 1200px), paired with
   .stores-section's constant 60px inline padding so its edges align with the
   nav gutters at every breakpoint (overrides .section-padding's tablet 30px). */
.stores-section {
  padding-inline: 60px;
}
.store-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1440px;
}
.store-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 24px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease;
}
@media (min-width: 768px) {
  .store-card {
    grid-template-columns: 1fr 1.5fr;
  }
}
@media (hover: hover) and (pointer: fine) {
  .store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  }
}
.store-img {
  position: relative;
  min-height: 280px;
}
.store-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.store-body h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}
.store-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.store-row svg {
  color: var(--gold);
  flex-shrink: 0;
}
.store-row span {
  font-size: 1.125rem;
  color: #5a5348;
}
.store-row .lbl {
  font-weight: 700;
  color: var(--navy);
}
.store-body .btn-secondary {
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 28px;
  font-size: 0.875rem;
}

.contact {
  text-align: center;
  background-color: var(--navy);
  padding: 120px 60px;
}
.contact-inner {
  max-width: 800px;
  margin-inline: auto;
}
.contact h2 {
  font-size: 40px;
  font-weight: 700;
  color: #e0d8cc;
}
.contact-rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .contact-rows {
    flex-direction: row;
    gap: 64px;
  }
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-row svg {
  color: var(--gold);
}
.contact-row span {
  font-size: 1.125rem;
  color: #b0a898;
}
.contact-note {
  margin-top: 20px;
  font-size: 1rem;
  color: #7a7268;
}
.contact .btn-primary {
  margin-top: 40px;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background-color: var(--bg);
}
.article-hero-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
  padding: 0 32px;
}
@media (min-width: 768px) {
  .article-hero-text {
    width: 50%;
    /* Align hero text to the 1440px column (viewport-based: this box is 50% wide) */
    padding-left: max(60px, calc((100vw - 1440px) / 2));
  }
}
.article-tag {
  display: inline-block;
  align-self: flex-start;
  border-radius: 9999px;
  padding: 6px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--clay);
}
.article-title {
  font-weight: 700;
  margin-top: 24px;
  font-size: clamp(32px, 4vw, 60px);
  color: #2d2d2d;
  line-height: 130%;
  letter-spacing: -0.03em;
}
.article-date {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-muted);
}
.article-hero-img-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
@media (min-width: 768px) {
  .article-hero-img-wrap {
    width: 50%;
  }
}
.article-hero-img-wrap .fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, var(--bg) 0%, transparent 30%);
}
.article-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  background-color: var(--bg);
  padding: 120px 60px 200px;
}
/* Body content tracks the header's width band at every breakpoint: keep the
   1440px cap (matching the nav gutters) instead of narrowing to the tablet
   .container-max 740px cap, so content edges stay aligned with the header. */
.article-body .container-max {
  max-width: 1440px;
}
.article-lead,
.article-p {
  font-size: 18px;
  line-height: 200%;
  color: var(--text-body);
  margin-bottom: 24px;
}
.article-h2 {
  font-weight: 700;
  margin-top: 80px;
  margin-bottom: 32px;
  font-size: 36px;
  color: var(--navy);
  line-height: 140%;
  letter-spacing: -0.02em;
}
.hl {
  padding: 2px 8px;
  font-weight: 700;
  background-color: var(--gold);
  color: var(--navy);
}
.article-quote {
  margin: 48px 0;
  padding-left: 32px;
  border-left: 4px solid var(--gold);
}
.article-quote p {
  font-size: 22px;
  color: var(--navy-2);
  line-height: 160%;
  font-style: italic;
}
.snack-profile {
  margin: 48px 0;
  border-radius: 20px;
  padding: 40px;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.snack-profile h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--clay);
}
.snack-profile li {
  padding-bottom: 16px;
  font-size: 16px;
  line-height: 180%;
  color: #5a5348;
  border-bottom: 1px solid #ebe7e0;
  margin-bottom: 16px;
}
.snack-profile li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.rec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin-inline: auto;
}
@media (min-width: 768px) {
  .rec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rec-card {
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  background-color: var(--navy-2);
  transition: transform 300ms var(--ease-out), background-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .rec-card:hover {
    transform: translateY(-4px);
    background-color: var(--navy-3);
  }
}
.rec-card svg {
  color: var(--gold);
}
.rec-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 20px;
  color: #e0d8cc;
}
.rec-card p {
  margin-top: 12px;
  font-size: 16px;
  color: #908878;
  line-height: 160%;
}
.rec-card .lbl {
  display: inline-block;
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--clay);
}

/* ============================================================
   REDUCED MOTION
   Reduced motion means fewer, gentler animations — not zero. Keep
   opacity fades (they aid comprehension), drop movement + spin.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transform: none !important;
    transition: opacity 400ms ease;
  }
  .deco-ring {
    animation: none;
  }
  .modal-card {
    transition: opacity 200ms ease;
    transform: none;
  }
  .modal-overlay.open .modal-card {
    transform: none;
  }
  .carousel-arrow:hover,
  .promo-card:hover,
  .plan-card:hover,
  .store-card:hover,
  .rec-card:hover {
    transform: none;
  }
}
