/* ============================================
   Z's 35th Birthday — Turks & Caicos
   Playful & Personal · Tropical Warmth
   ============================================ */

/* --- VARIABLES --- */
:root {
  --turquoise:     #2EC4B6;
  --turquoise-deep:#1A9E93;
  --turquoise-light:#E0F7F5;
  --coral:         #FF6B6B;
  --coral-light:   #FFE0E0;
  --sunset-orange: #F7A072;
  --sand:          #FFF9F5;
  --sand-dark:     #F5EDE4;
  --cream:         #FFFDF8;
  --tropical-green:#4ECDC4;
  --gold:          #D4A843;
  --gold-light:    #F5E6C8;
  --text-dark:     #2D3436;
  --text-medium:   #636E72;
  --text-light:    #B2BEC3;
  --white:         #FFFFFF;

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent:   'Caveat', cursive;

  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);
  --shadow-card:   0 4px 16px rgba(0,0,0,0.10);

  --nav-height:    56px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--sand);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* --- ANIMATIONS --- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card entrance animations — stagger fade in.
   NOTE: We intentionally do NOT apply `transform` on .baseball-card because
   iOS Safari breaks perspective/preserve-3d when the perspective container
   itself is transformed. Opacity-only entrance keeps flip working on all devices. */
.baseball-card.card-animate-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.baseball-card.card-animate-in.card-visible {
  opacity: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Happening Now pulse */
@keyframes happening-now-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
  50%  { box-shadow: 0 0 16px 4px rgba(247, 160, 114, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
}

@keyframes happening-now-badge {
  0%   { opacity: 1; }
  50%  { opacity: 0.7; }
  100% { opacity: 1; }
}

/* emoji-float removed */

/* Cheese rain */
@keyframes cheese-fall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.6; }
}

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 249, 245, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(46, 196, 182, 0.1);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 249, 245, 0.92);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-medium);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
  position: relative;
}

.nav-link:hover {
  color: var(--turquoise-deep);
  background: rgba(46, 196, 182, 0.08);
}

.nav-link.active {
  color: var(--turquoise-deep);
  background: rgba(46, 196, 182, 0.12);
  font-weight: 600;
}

/* --- HERO (compact header) --- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(46, 196, 182, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(247, 160, 114, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 107, 107, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #E8F8F5 0%, #FFF9F5 40%, #FFECD2 100%);
  z-index: 0;
}

/* floating emoji styles removed */

.hero-content {
  position: relative;
  z-index: 1;
  padding: 68px 24px 60px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-divider {
  font-size: 14px;
  color: var(--sunset-orange);
  letter-spacing: 12px;
  margin-bottom: 8px;
}

.hero-date {
  font-family: var(--font-heading);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* --- COUNTDOWN TIMER --- */
.countdown {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 20px);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 800;
  line-height: 1;
  color: var(--turquoise-deep);
  min-width: 2ch;
  text-align: center;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: clamp(10px, 2vw, 13px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-medium);
  margin-top: 4px;
}

.countdown-separator {
  font-family: var(--font-heading);
  font-size: clamp(18px, 4vw, 32px);
  font-weight: 300;
  color: var(--sunset-orange);
  opacity: 0.5;
  line-height: 1;
  padding-bottom: 14px;
}

/* During trip / after trip message */
.countdown-message {
  font-family: var(--font-heading);
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 700;
  color: var(--turquoise-deep);
  line-height: 1.3;
}

.countdown-message-sub {
  font-family: var(--font-accent);
  font-size: clamp(18px, 4vw, 28px);
  color: var(--sunset-orange);
  margin-top: 8px;
}

/* scroll hint styles removed */

/* --- ANIMATED CRASHING WAVES --- */
.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  /* Double-wide SVG so translateX oscillation stays seamless */
  width: 200%;
  display: block;
}

/* Back wave — deep teal, slowest drift */
.wave-back {
  height: 70px;
  bottom: 18px;
  animation: wave-drift-back 12s ease-in-out infinite alternate;
  will-change: transform;
  opacity: 0.85;
}

/* Mid wave — turquoise, medium speed */
.wave-mid {
  height: 55px;
  bottom: 8px;
  animation: wave-drift-mid 8s ease-in-out infinite alternate;
  will-change: transform;
  opacity: 0.9;
}

/* Foam layer — white crests, gentle shimmer */
.wave-foam {
  height: 35px;
  bottom: 4px;
  animation: wave-drift-foam 6s ease-in-out infinite alternate;
  will-change: transform;
  opacity: 0.7;
}

/* Front wave — sand-blend, subtle bob */
.wave-front {
  height: 40px;
  position: relative;
  animation: wave-drift-front 10s ease-in-out infinite alternate;
  will-change: transform;
}

/* --- Wave keyframes (translateX oscillation at different speeds/amplitudes) --- */
@keyframes wave-drift-back {
  0%   { transform: translateX(0)      translateY(0);   }
  100% { transform: translateX(-8%)    translateY(-3px); }
}

@keyframes wave-drift-mid {
  0%   { transform: translateX(0)      translateY(0);   }
  100% { transform: translateX(-12%)   translateY(-4px); }
}

@keyframes wave-drift-foam {
  0%   { transform: translateX(0)      translateY(0);   }
  100% { transform: translateX(-6%)    translateY(-2px); }
}

@keyframes wave-drift-front {
  0%   { transform: translateX(0)      translateY(0);   }
  100% { transform: translateX(-10%)   translateY(-2px); }
}

/* Reduce motion for accessibility / low-power devices */
@media (prefers-reduced-motion: reduce) {
  .wave-back, .wave-mid, .wave-foam, .wave-front {
    animation: none;
  }
}

/* --- SECTION TRANSITIONS (smooth gradient blending) --- */
.section {
  padding: 80px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-emoji {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-accent);
  font-size: 20px;
  color: var(--text-medium);
}

/* Cheese trigger */
.cheese-trigger {
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s;
}
.cheese-trigger:hover {
  transform: scale(1.3);
}
.cheese-trigger:active {
  transform: scale(0.9);
}

/* --- LETTER (merged section, no header) --- */
.section-letter {
  background: var(--sand);
  padding-top: 8px;
}

.section-letter::before {
  display: none;
}

.letter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  max-width: 740px;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(46, 196, 182, 0.1);
}

.letter-body p {
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-sign-off {
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-medium);
  text-align: right;
}

.letter-sign-off .cursive {
  font-family: var(--font-accent);
  font-size: 28px;
  color: var(--coral);
}

/* --- PRINCIPLES --- */
.section-principles {
  background: linear-gradient(180deg, var(--sand) 0%, var(--turquoise-light) 50%, var(--sand) 100%);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(46, 196, 182, 0.08);
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.principle-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.principle-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.principle-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-medium);
}

/* --- PEOPLE / BASEBALL CARDS --- */
.section-people {
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-dark) 50%, var(--sand) 100%);
  padding-bottom: 120px;
  overflow: visible;
  min-height: auto;
  position: relative;
  z-index: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 20px;
  overflow: visible;
  position: relative;
}

@media (min-width: 480px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Card container — perspective only, NO transforms or overflow on this element */
.baseball-card {
  -webkit-perspective: 1000px;
  perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  aspect-ratio: 5 / 7;
  /* Prevent iOS touch delay and ensure taps register */
  touch-action: manipulation;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  /* Ensure no flattening from parent */
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
}

.baseball-card.flipped .card-inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  /* IMPORTANT: NO overflow:hidden here — it breaks preserve-3d on iOS Safari */
  overflow: visible;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* --- FRONT --- */
.card-front {
  border: 3px solid var(--sand-dark);
  /* Clip to rounded rect since we can't use overflow:hidden (iOS 3D bug) */
  -webkit-clip-path: inset(0 round var(--radius-lg));
  clip-path: inset(0 round var(--radius-lg));
}

.card-front-photo {
  width: calc(100% - 20px);
  aspect-ratio: 1 / 1;
  margin: 10px auto 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.card-front-photo img.card-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  z-index: 1;
}

.card-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.card-front-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 12px 14px;
  margin-top: 4px;
  text-align: center;
}

.card-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.card-hint {
  font-family: var(--font-accent);
  font-size: 15px;
  color: var(--turquoise-deep);
}

/* --- BACK --- */
.card-back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  border: 3px solid var(--coral);
  /* Clip to rounded rect since we can't use overflow:hidden (iOS 3D bug) */
  -webkit-clip-path: inset(0 round var(--radius-lg));
  clip-path: inset(0 round var(--radius-lg));
}

.card-back-photo {
  width: calc(100% - 44px);
  aspect-ratio: 1 / 0.95;
  margin: 8px auto 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.card-back-photo img.card-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  z-index: 1;
}

.card-back-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.card-back-content {
  flex: 1;
  padding: 10px 12px 12px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.card-back-content .card-name {
  font-size: 15px;
  margin-bottom: 2px;
}

.card-ask-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 3px;
}

.card-ask-text {
  font-family: var(--font-accent);
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-dark);
}

/* --- ITINERARY --- */
.section-itinerary {
  background: linear-gradient(180deg, var(--sand) 0%, #FFF3E6 50%, var(--sand) 100%);
  margin-top: 0;
  overflow: visible;
  clear: both;
}

.itinerary-days {
  max-width: 800px;
  margin: 0 auto;
}

.day-block {
  margin-bottom: 20px;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.day-header:hover {
  box-shadow: var(--shadow-sm);
}

.day-badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.day-header-text {
  flex: 1;
}

.day-label {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.day-date {
  font-size: 14px;
  color: var(--text-medium);
}

.day-toggle {
  font-size: 24px;
  color: var(--text-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.day-block.open .day-toggle {
  transform: rotate(180deg);
}

/* Day colors */
.day-block[data-day="1"] .day-header { background: rgba(46, 196, 182, 0.08); }
.day-block[data-day="1"] .day-badge  { background: var(--turquoise); }
.day-block[data-day="1"] .timeline-dot { background: var(--turquoise); }

.day-block[data-day="2"] .day-header { background: rgba(247, 160, 114, 0.10); }
.day-block[data-day="2"] .day-badge  { background: var(--sunset-orange); }
.day-block[data-day="2"] .timeline-dot { background: var(--sunset-orange); }

.day-block[data-day="3"] .day-header { background: rgba(255, 107, 107, 0.08); }
.day-block[data-day="3"] .day-badge  { background: var(--coral); }
.day-block[data-day="3"] .timeline-dot { background: var(--coral); }

.day-block[data-day="4"] .day-header { background: rgba(78, 205, 196, 0.08); }
.day-block[data-day="4"] .day-badge  { background: var(--tropical-green); }
.day-block[data-day="4"] .timeline-dot { background: var(--tropical-green); }

/* Timeline content */
.day-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.day-block.open .day-content {
  max-height: 3000px;
}

.timeline {
  padding: 16px 0 16px 40px;
  position: relative;
  margin-left: 26px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: var(--sand-dark);
  border-radius: 1px;
}

.timeline-event {
  position: relative;
  padding: 0 0 28px 28px;
}

.timeline-event:last-child {
  padding-bottom: 8px;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--sand-dark);
}

/* Happening now styles */
.timeline-event.happening-now {
  animation: happening-now-pulse 2s ease-in-out infinite;
  border-radius: var(--radius-sm);
  padding-left: 28px;
  margin-left: -8px;
  padding-right: 8px;
  padding-top: 8px;
  margin-top: -8px;
}

.timeline-event.happening-now .timeline-dot {
  box-shadow: 0 0 0 2px var(--coral), 0 0 8px rgba(255, 107, 107, 0.4);
  width: 14px;
  height: 14px;
  top: 12px;
  left: -33px;
}

.happening-now-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--sunset-orange));
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
  animation: happening-now-badge 1.5s ease-in-out infinite;
}

.event-time {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.event-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.event-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-medium);
}

/* --- DETAILS --- */
.section-details {
  background: var(--sand);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-card-gifts {
    grid-column: span 2;
  }
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(46, 196, 182, 0.08);
}

.detail-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.detail-card ul {
  list-style: none;
  padding: 0;
}

.detail-card li {
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-medium);
  position: relative;
  padding-left: 20px;
}

.detail-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--turquoise);
  font-weight: 700;
}

.gifts-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-medium);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* --- FOOTER --- */
.footer {
  background: var(--text-dark);
  color: var(--white);
  text-align: center;
  padding: 48px 24px;
}

.footer-text {
  font-family: var(--font-accent);
  font-size: 24px;
  margin-bottom: 8px;
}

.footer-sub {
  font-size: 14px;
  color: var(--text-light);
}

/* --- SUN WITH LIGHT SHADOW --- */
.sun-container {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  pointer-events: none;
}

/* The sun glow / light wash — big soft radial from upper right */
.sun-container::before {
  content: '';
  position: fixed;
  top: -20%;
  right: -10%;
  width: 80vw;
  height: 70vh;
  background: radial-gradient(
    ellipse at 85% 15%,
    rgba(255, 214, 102, 0.14) 0%,
    rgba(247, 160, 114, 0.08) 30%,
    rgba(255, 200, 80, 0.04) 55%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 998;
}

/* The sun circle */
.sun {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    #FFE566 0%,
    #FFD740 30%,
    #F5B731 60%,
    #E8A317 100%
  );
  box-shadow:
    0 0 20px 8px rgba(255, 214, 64, 0.35),
    0 0 60px 20px rgba(255, 200, 80, 0.18),
    0 0 100px 40px rgba(247, 160, 114, 0.08);
  z-index: 999;
  animation: sun-glow 4s ease-in-out infinite alternate;
}

@keyframes sun-glow {
  0% {
    box-shadow:
      0 0 20px 8px rgba(255, 214, 64, 0.35),
      0 0 60px 20px rgba(255, 200, 80, 0.18),
      0 0 100px 40px rgba(247, 160, 114, 0.08);
  }
  100% {
    box-shadow:
      0 0 24px 10px rgba(255, 214, 64, 0.4),
      0 0 70px 24px rgba(255, 200, 80, 0.22),
      0 0 110px 45px rgba(247, 160, 114, 0.1);
  }
}

/* Mobile — smaller sun */
@media (max-width: 767px) {
  .sun {
    width: 48px;
    height: 48px;
    top: 12px;
    right: 12px;
    box-shadow:
      0 0 14px 6px rgba(255, 214, 64, 0.3),
      0 0 40px 14px rgba(255, 200, 80, 0.15),
      0 0 70px 28px rgba(247, 160, 114, 0.06);
  }

  .sun-container::before {
    width: 90vw;
    height: 50vh;
  }

  @keyframes sun-glow {
    0% {
      box-shadow:
        0 0 14px 6px rgba(255, 214, 64, 0.3),
        0 0 40px 14px rgba(255, 200, 80, 0.15),
        0 0 70px 28px rgba(247, 160, 114, 0.06);
    }
    100% {
      box-shadow:
        0 0 18px 8px rgba(255, 214, 64, 0.35),
        0 0 48px 18px rgba(255, 200, 80, 0.18),
        0 0 80px 32px rgba(247, 160, 114, 0.08);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sun {
    animation: none;
  }
}

/* --- CHEESE RAIN OVERLAY --- */
.cheese-rain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
  display: none;
}

.cheese-rain-overlay.active {
  display: block;
}

.cheese-drop {
  position: absolute;
  font-size: 32px;
  top: -40px;
  animation: cheese-fall linear forwards;
  pointer-events: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
  :root {
    --nav-height: 48px;
  }

  .nav-link {
    font-size: 13px;
    padding: 6px 10px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .baseball-card .card-front-photo {
    width: calc(100% - 16px);
    margin: 8px auto 0;
  }

  .baseball-card .card-back-photo {
    width: calc(100% - 32px);
    margin: 6px auto 0;
  }

  .timeline {
    padding-left: 28px;
    margin-left: 20px;
  }

  .timeline-event {
    padding-left: 22px;
  }

  .timeline-dot {
    left: -26px;
  }

  .timeline-event.happening-now .timeline-dot {
    left: -27px;
  }

  /* --- Mobile card text bump --- */
  .card-name {
    font-size: 20px;
  }

  .card-back-content .card-name {
    font-size: 17px;
  }

  .card-ask-label {
    font-size: 12px;
  }

  .card-ask-text {
    font-size: 20px;
  }

  .card-hint {
    /* stays small — no bump needed */
  }

  /* floating emoji responsive removed */

  /* Aggressive mobile fix: ensure People section fully contains all cards */
  .section-people {
    padding-bottom: 140px;
    overflow: visible !important;
  }

  .cards-grid {
    margin-bottom: 30px;
    overflow: visible !important;
  }
}

@media (max-width: 380px) {
  .nav-link {
    font-size: 12px;
    padding: 5px 8px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
