/* ============================================================
   HERO SECTION — Mobile-First, Centered Layout
   ============================================================ */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--navy); display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(247,200,115,.18), transparent 55%),
    linear-gradient(180deg,
      rgba(16,30,54,.55) 0%,
      rgba(16,30,54,.30) 35%,
      rgba(16,30,54,.28) 55%,
      rgba(16,30,54,.55) 85%,
      rgba(11,22,40,.92) 100%),
    url('../assets/hero-mobile.png');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, transparent 0%, rgba(251,246,236,.4) 50%, var(--off-white) 100%);
  z-index: 2;
}

/* Lamplight glows */
.hero-glow {
  position: absolute; top: 18%; left: 50%; transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(247,200,115,.28) 0%, rgba(247,200,115,.08) 40%, transparent 70%);
  border-radius: 50%; filter: blur(70px); pointer-events: none;
  animation: lampflicker 5s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(196,30,58,.18) 0%, transparent 70%);
  border-radius: 50%; filter: blur(60px); pointer-events: none;
}
@keyframes lampflicker {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: .85; transform: translateX(-50%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
}

/* Content — centered stack */
.hero-content {
  position: relative; z-index: 3; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 120px 20px 90px;
}

/* Eyebrow — storybook ribbon */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-condensed); font-weight: 600; font-size: .8rem;
  color: var(--lamplight); text-transform: uppercase; letter-spacing: .18em;
  margin-bottom: 24px;
  padding: 8px 20px;
  background: rgba(11,22,40,.35);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(247,200,115,.3);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* Hidden h1 for accessibility */
.hero h1.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Logo */
.hero-logo {
  display: block; width: 300px; max-width: 75vw; height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.4));
}

/* Subtitle — handwritten storybook feel */
.hero-sub {
  font-family: var(--font-script); font-weight: 600;
  font-size: 1.8rem; color: var(--lamplight); margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.65), 0 0 24px rgba(247,200,115,.35);
  letter-spacing: .01em;
}

/* Description */
.hero-desc {
  font-size: .9rem; color: rgba(255,255,255,.85);
  max-width: 460px; margin-bottom: 32px; line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Buttons */
.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; width: 100%; max-width: 360px;
}
.hero-actions .btn {
  justify-content: center; text-align: center;
  padding: 16px 24px; font-size: .9rem; width: 100%;
}

/* Countdown — cozy lantern-lit tiles */
.hero-countdown-label {
  font-family: var(--font-script); font-weight: 600; font-size: 1.25rem;
  text-transform: none; letter-spacing: .01em;
  color: var(--lamplight); margin-top: 40px; margin-bottom: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4), 0 0 14px rgba(247,200,115,.25);
}
.hero-countdown { display: flex; gap: 10px; }
.cd-item { text-align: center; }
.cd-num {
  font-family: var(--font-impact); font-weight: 700; font-size: 2rem; color: #fff;
  background: linear-gradient(180deg, rgba(247,200,115,.18) 0%, rgba(11,22,40,.55) 100%);
  border: 1px solid rgba(247,200,115,.35);
  border-radius: 14px; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px rgba(0,0,0,.25);
}
.cd-label {
  font-family: var(--font-condensed); font-size: .7rem;
  color: rgba(255,235,210,.8); text-transform: uppercase;
  letter-spacing: .12em; margin-top: 6px;
}

/* ---- Tablet (768px+) — swap to desktop hero image ---- */
@media (min-width: 768px) {
  .hero-bg {
    background-image:
      radial-gradient(ellipse at 50% 40%, rgba(247,200,115,.16), transparent 55%),
      linear-gradient(180deg,
        rgba(16,30,54,.5) 0%,
        rgba(16,30,54,.28) 30%,
        rgba(16,30,54,.25) 50%,
        rgba(16,30,54,.48) 80%,
        rgba(11,22,40,.9) 100%),
      url('../assets/hero.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
  }
  .hero-content { padding: 140px 40px 110px; }
  .hero-logo { width: 380px; margin-bottom: 32px; }
  .hero-sub { font-size: 2.2rem; }
  .hero-desc { font-size: .95rem; }
  .hero-actions {
    flex-direction: row; max-width: none; width: auto; gap: 16px;
  }
  .hero-actions .btn { padding: 18px 40px; font-size: 1rem; width: auto; }
  .cd-num { width: 68px; height: 68px; font-size: 2.2rem; }
  .hero-countdown { gap: 16px; }
  .hero-glow { width: 500px; height: 500px; }
}

/* ---- Desktop (1024px+) ---- */
@media (min-width: 1024px) {
  .hero-content { padding: 160px 40px 130px; }
  .hero-logo { width: 460px; margin-bottom: 36px; }
  .hero-eyebrow { font-size: .9rem; margin-bottom: 28px; }
  .hero-sub { font-size: 2.6rem; margin-bottom: 18px; }
  .hero-desc { font-size: 1rem; max-width: 520px; }
  .hero-actions .btn { padding: 20px 48px; font-size: 1.05rem; }
  .cd-num { width: 72px; height: 72px; font-size: 2.4rem; }
  .hero-countdown { gap: 18px; }
  .hero-countdown-label { font-size: .85rem; margin-top: 48px; }
  .hero-glow { width: 600px; height: 600px; }
  .hero-glow-2 { width: 450px; height: 450px; }
}
