/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --cream:          #F2EDD7;
  --cream-warm:     #EDE3C4;
  --leaf-dark:      #2D5020;
  --leaf-mid:       #3E7035;
  --leaf-light:     #5C9148;
  --leaf-pale:      #A8C88A;
  --marigold:       #E07818;
  --marigold-light: #F4A840;
  --brass:          #C8992A;
  --brass-light:    #E0B84A;
  --kumkum:         #C43218;
  --kumkum-light:   #E06048;
  --banana-flower:  #8A2820;
  --terracotta:     #7A2E18;
  --terracotta-dk:  #5E2010;
  --turmeric:       #D4820A;
  --kolam-sand:     #D4B880;
  --stone:          #D4C4A8;
  --temple-stone:   #7A6848;
  --ink:            #1E1408;
  --ink-soft:       #3A2A14;

  --font-display: 'DM Serif Display', serif;
  --font-body:    'Cormorant Garamond', serif;
  --font-label:   'Josefin Sans', sans-serif;

  --col-w: 430px;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: none;
  max-width: 100%;
}
html::-webkit-scrollbar { display: none; }
body::-webkit-scrollbar { display: none; }
body { scrollbar-width: none; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(to right, var(--terracotta), var(--brass));
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

body {
  background: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font-body);
  color: var(--ink);
}

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

a { text-decoration: none; }

/* ============================================================
   Desktop blurred sidebars
   ============================================================ */
.sidebar {
  display: none;
  position: fixed;
  top: 0; bottom: 0;
  z-index: 200;
  pointer-events: none;
  background: rgba(12, 7, 2, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (min-width: 431px) {
  .sidebar { display: block; }
  .sidebar--left  { left: 0; right: calc(50% + calc(var(--col-w) / 2)); }
  .sidebar--right { left: calc(50% + calc(var(--col-w) / 2)); right: 0; }
}

/* ============================================================
   Sky — uses sky.png (user-cropped to preferred height)
   ============================================================ */
.sky-layer {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--col-w), 100vw);
  height: 100vh;
  z-index: 0;
  background: url('/assets/sky.webp') no-repeat top center / 100% auto;
  background-color: var(--cream);
}

/* ============================================================
   Site wrap
   ============================================================ */
.site-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--col-w);
  margin: 0 auto;
  overflow-x: clip;
}

/* ============================================================
   Marigold parallax layer — floats above sections decoratively
   ============================================================ */
.lamp-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.lamp-layer--content {
  z-index: 10000;
}

.lamp {
  position: absolute;
  will-change: transform;
}

/* ============================================================
   Section base
   ============================================================ */
section {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ============================================================
   Shared utilities
   ============================================================ */
.spacer-lg { height: 36px; }
.spacer-sm { height: 20px; }

.label-sm {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--temple-stone);
  line-height: 2;
}

.ornament {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 10px;
  color: var(--brass);
  padding: 20px 0;
}

.brass-text        { color: var(--brass); }
.leaf-pale-text    { color: var(--leaf-pale); }
.cream-text        { color: var(--cream); }
.brass-light-text  { color: var(--brass-light); }

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

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.1;
}

/* Color utilities need higher specificity to override .section-title's color */
.section-title.cream-text       { color: var(--cream); }
.section-title.brass-light-text { color: var(--brass-light); }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ============================================================
   Section 1 — Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  background: transparent;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.sky-zone {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10000;
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 10px 20px;
  transition: opacity 0.4s ease;
}
.scroll-hint--pinned {
  position: fixed !important;
  top: 16px;
  bottom: auto;
  z-index: 10001;
}

.scroll-hint__label {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.65;
}

.scroll-hint__track {
  width: 2px;
  height: 44px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  position: relative;
  overflow: hidden;
  opacity: 0.35;
}

.scroll-hint__dot {
  width: 4px;
  height: 10px;
  background: var(--terracotta);
  border-radius: 2px;
  position: absolute;
  left: -1px;
  animation: scroll-drop 1.6s ease-in-out infinite;
}

@keyframes scroll-drop {
  0%   { top: -10px; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { top: 36px;  opacity: 0; }
}

.scroll-hint:active {
  transform: translateX(-50%) scale(0.88);
  transition: transform 0.1s ease;
}

.scroll-hint:active .scroll-hint__label {
  color: var(--terracotta);
}

/* When pinned over the golden temple, flip to cream; JS drives the shadow dynamically */
.scroll-hint--pinned .scroll-hint__label {
  color: var(--cream);
  opacity: 1;
}
.scroll-hint--pinned .scroll-hint__track {
  background: linear-gradient(to bottom, rgba(255, 245, 220, 0.7), transparent);
  opacity: 0.8;
}
.scroll-hint--pinned .scroll-hint__dot {
  background: var(--brass-light);
}

/* Ripple on touch */
.scroll-hint__ripple {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(122, 46, 24, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.scroll-hint.touched .scroll-hint__ripple {
  animation: ripple-out 0.5s ease-out forwards;
}

@keyframes ripple-out {
  to { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.eyebrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  text-align: center;
  gap: 0;
}

.eyebrow-name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  line-height: 1.15;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.8);
}

.eyebrow-weds {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  letter-spacing: 0.22em;
  color: var(--brass);
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6);
}

.temple-wrap {
  position: relative;
  width: 100%;
  z-index: 2;
}

.temple-img {
  width: 100%;
  height: auto;
  display: block;
}

.temple-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}

/* ============================================================
   Section 2 — Invite Text
   ============================================================ */
.invite {
  position: relative;
  background-color: var(--cream);
  padding: 72px 28px 96px;
  text-align: center;
}

.invite::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/kolam-tile.webp') repeat;
  background-size: 320px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.invite-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin: 0 auto;
}

.couple-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.person-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bride-name {
  font-family: var(--font-display);
  font-size: 62px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.05;
}

.ampersand {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--kumkum);
  line-height: 1;
  margin: 10px 0;
}

/* Icons flanking the name, same height as the name text */
.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.name-icon {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}

.groom-name {
  font-family: var(--font-display);
  font-size: 62px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.05;
}

.name-native {
  display: block;
  font-family: sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 400;
  color: var(--temple-stone);
  line-height: 1.2;
  margin-top: 2px;
}

.person-parents {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

.venue-block {
  text-align: center;
  margin-top: 4px;
}

.venue-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--terracotta);
  line-height: 1.2;
}

.venue-address {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--temple-stone);
  margin-top: 4px;
  line-height: 1.5;
}

.maps-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 22px;
  border: 1px solid var(--brass);
  border-radius: 24px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  transition: background 0.2s, color 0.2s;
}

.maps-btn:hover {
  background: var(--brass);
  color: var(--cream);
}

.occasion-dates {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--terracotta);
  margin-top: 4px;
  line-height: 1.3;
}

.date-arrow {
  font-size: 38px;
  color: var(--terracotta);
  margin-top: 12px;
  animation: bounce-down 1.5s ease-in-out infinite;
  display: block;
  line-height: 1;
}

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

/* ============================================================
   Elephant dividers — sharp 50/50 colour split
   Kolam pattern overlaid on both halves
   ============================================================ */
.elephant-divider {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 160px;
}

/* Kolam tile on top of both colour bands */
.elephant-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/kolam-tile.webp') repeat;
  background-size: 320px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.elephant-divider img {
  position: relative;
  z-index: 1;
  height: 140px;
  width: auto;
  flex-shrink: 0;
}

/* Names (cream) → Events (leaf-dark) */
.elephant-divider:not([class*="--"]) {
  background: linear-gradient(to bottom, var(--cream) 50%, var(--leaf-dark) 50%);
}

/* Events (leaf-dark) → Info (cream-warm) */
.elephant-divider--from-green {
  background: linear-gradient(to bottom, var(--leaf-dark) 50%, var(--cream-warm) 50%);
}

/* Info (cream-warm) → Countdown (leaf-dark) */
.elephant-divider--from-warm {
  background: linear-gradient(to bottom, var(--cream-warm) 50%, var(--leaf-dark) 50%);
}

/* ============================================================
   Section 3 — Events
   ============================================================ */
.events {
  position: relative;
  background-color: var(--leaf-dark);
  padding: 72px 6px 80px;
}

.events::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/kolam-tile.webp') repeat;
  background-size: 320px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.events .section-header {
  position: relative;
  z-index: 1;
}

.events-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
  margin: 0 auto;
}

/* Event: full leaf-frame image with text overlaid inside the arch opening */
.event-frame {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.frame-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text sits inside the arch opening */
.frame-content {
  position: absolute;
  top: 18%;
  left: 10%;
  right: 10%;
  bottom: 4%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.event-name {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--cream);
  line-height: 1.3;
  text-align: center;
}

.event-date {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
  line-height: 2;
}

.event-venue {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--kolam-sand);
  line-height: 1.8;
}

.event-route {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kumkum);
  margin-top: 4px;
}

.event-route:hover { text-decoration: underline; }

.event-dress {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-light);
  opacity: 0.75;
  line-height: 2;
}

.event-maps-link {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
  text-decoration: none;
  opacity: 0.85;
  margin-top: 2px;
  display: inline-block;
}
.event-maps-link:hover { opacity: 1; text-decoration: underline; }

/* ============================================================
   Section 4 — Things to Know
   ============================================================ */
.info {
  position: relative;
  background-color: var(--cream-warm);
  padding: 72px 24px 80px;
}

.info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/kolam-tile.webp') repeat;
  background-size: 320px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.info .section-header {
  position: relative;
  z-index: 1;
}

.contact-row {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto 20px;
}

.contact-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: rgba(30, 20, 8, 0.35);
  border: 1px solid var(--brass);
  border-radius: 14px;
  text-align: center;
}

.contact-btn:hover {
  background: #25D366;
  border-color: #25D366;
}

.contact-btn:hover .contact-person,
.contact-btn:hover .contact-wa {
  color: #fff;
}

.contact-person {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--cream);
  line-height: 1;
}

.contact-role {
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-light);
  opacity: 0.8;
}

.contact-wa {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf-pale);
  margin-top: 2px;
}

.info-grid {
  position: relative;
  z-index: 1;
  max-width: 380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--kolam-sand);
  border-radius: 12px;
  padding: 18px 16px;
}

.info-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.info-card h3 {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--temple-stone);
  margin-bottom: 6px;
}

.info-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============================================================
   Section 5 — Countdown + Footer
   ============================================================ */
.countdown-footer {
  position: relative;
  background: var(--leaf-dark);
  padding: 80px 24px 60px;
  text-align: center;
}

.countdown-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/kolam-tile.webp') repeat;
  background-size: 320px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.countdown-footer > * {
  position: relative;
  z-index: 1;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 40px;
  width: 100%;
}

.timer-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 153, 42, 0.3);
  border-radius: 12px;
  padding: 14px 8px;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.timer-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 44px);
  color: var(--brass-light);
  line-height: 1;
}

.timer-label {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.65;
}

.footer-love {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--cream);
  opacity: 0.6;
}

.footer-spacer { height: 48px; }

.footer-copy-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-copy {
  display: inline-block;
  position: relative;
  clip-path: inset(0 round 20px);
  font-family: var(--font-label);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(200, 153, 42, 0.35);
  border-radius: 20px;
  padding: 9px 20px;
  opacity: 0;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.footer-copy--visible {
  animation: badge-appear 0.9s ease-out forwards;
}

/* Golden light sweep — fast across, then pauses, repeats every 2 s */
.footer-copy--visible::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 215, 100, 0.52) 50%,
    transparent 100%
  );
  animation: badge-shimmer 2s ease-in-out 0.75s infinite;
}

@keyframes badge-appear {
  0%   { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  100% { opacity: 0.88; transform: translateY(0); filter: blur(0); }
}

@keyframes badge-shimmer {
  0%     { left: -65%; }
  37.5%  { left: 125%; } /* sweep completes in 0.75 s (37.5% of 2 s) */
  100%   { left: 125%; } /* sits off-screen for remaining 1.25 s */
}

/* ── Music tooltip ── */
.music-tooltip {
  position: fixed;
  bottom: 36px;
  left: 84px;
  z-index: 999999;
  background: rgba(14, 8, 4, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brass-light);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid rgba(200, 153, 42, 0.3);
  white-space: nowrap;
  pointer-events: none;
  animation: tooltip-lifecycle 10s ease forwards;
}
.music-tooltip::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid rgba(14, 8, 4, 0.82);
}
.music-tooltip--hidden { display: none; }

@keyframes tooltip-lifecycle {
  0%   { opacity: 0; transform: translateX(6px); }
  12%  { opacity: 1; transform: translateX(0); }
  75%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(6px); }
}

/* ── Music toggle button ── */
.music-btn {
  position: fixed;
  bottom: 28px;
  left: 20px;
  z-index: 999999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(200, 153, 42, 0.45);
  background: rgba(14, 8, 4, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--brass-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  transition: border-color 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.music-btn:hover { border-color: var(--brass); }

.music-btn__icon {
  width: 20px;
  height: 20px;
  display: none;
}
.music-btn--waiting .music-btn__icon--on { display: block; }
.music-btn--on      .music-btn__icon--on  { display: block; }
.music-btn--off     .music-btn__icon--off { display: block; }
.music-btn--off { opacity: 0.55; }

/* Waiting state: thick pulsing border + outward ripple ring */
.music-btn--waiting {
  border-color: var(--brass);
  animation: music-pulse 1.6s ease-in-out infinite;
}
.music-btn--waiting::before,
.music-btn--waiting::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brass);
  animation: music-ripple 2s ease-out infinite;
  pointer-events: none;
}
.music-btn--waiting::after {
  animation-delay: 1s;
}

@keyframes music-pulse {
  0%, 100% { border-color: rgba(200, 153, 42, 0.5); }
  50%       { border-color: var(--brass); box-shadow: 0 0 10px rgba(200,153,42,0.4); }
}
@keyframes music-ripple {
  0%   { transform: scale(1);    opacity: 0.7; }
  100% { transform: scale(2.2);  opacity: 0;   }
}
