/* ==========================================================================
   Sanatan & Apurba — wedding site
   Palette: ocean blues, warm sand, terracotta and saffron, with sunset accents.
   Mobile first: base styles target phones, media queries widen for larger screens.
   ========================================================================== */

:root {
  --ocean-deep: #0b3d5c;
  --ocean: #135e82;
  --ocean-mid: #2a86a8;
  --ocean-light: #7cc3d6;
  --foam: #e6f5f7;
  --sand: #f3e2c3;
  --sand-light: #fbf3e4;
  --paper: #fdf8ef;
  --terracotta: #b8532e;
  --terracotta-dark: #933f20;
  --saffron: #e89a2c;
  /* warm sunset accents */
  --sunset-gold: #f6b44b;
  --sunset-coral: #ef7b5a;
  --sunset-rose: #d9667e;
  --dusk: #5b3f7e;
  --ink: #2a2622;
  --ink-soft: #5b534b;
  --line: #e4d3b4;
  --success: #2f6b3a;
  --error: #a3261b;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 22px rgba(11, 61, 92, 0.1);
  --gutter: 16px;
  --header-h: 52px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--ocean); }
a:hover { color: var(--terracotta); }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ocean-deep);
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(2rem, 7vw, 2.8rem);
  text-align: center;
}

h3 { font-size: 1.6rem; }

.icon { width: 1.4em; height: 1.4em; flex: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ocean-deep);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container.narrow { max-width: 680px; }

.section { padding: 48px 0; }
.section-sand { background: var(--sand-light); }

.lede {
  text-align: center;
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 auto 1.5em;
}

.small { font-size: 0.875rem; }

.tba {
  color: var(--ink-soft);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 61, 92, 0.94);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  padding: 0 0 0 var(--gutter);
  max-width: 1080px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.nav-brand .icon { color: var(--saffron); }
.nav-brand span { display: none; }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-width: 0;
  /* Fade at the right edge hints that the links scroll sideways */
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  display: block;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 999px;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.nav-cta {
  flex: none;
  margin-right: var(--gutter);
  padding: 8px 16px;
  color: #fff;
  background: var(--terracotta);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--terracotta-dark); color: #fff; }

@media (min-width: 720px) {
  .nav-brand span { display: inline; }
  .nav-links { justify-content: flex-end; -webkit-mask-image: none; mask-image: none; }
}

/* --------------------------------------------------------------------------
   Hero: luxury beach at golden hour
   Layers (back to front): sky → sun → sea (reflection, sparkles) → shore
   (waves with foam, sand) → palms → content. Every animation below uses
   only transform or opacity so it stays smooth on phones.
   -------------------------------------------------------------------------- */

.hero {
  --sea-h: 38%;
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #4b8fbf;
  isolation: isolate;
}

/* Sky: two gradients; the sunset one fades in and out on a long loop */
.hero-sky { position: absolute; inset: 0; z-index: 0; }
.sky { position: absolute; inset: 0; }
.sky-morning {
  background: linear-gradient(180deg, #3f82b3 0%, #7fb6d6 40%, #cfe3e6 58%, #f6dcc0 64%);
}
.sky-sunset {
  background: linear-gradient(180deg, #2f2757 0%, #7d4a86 26%, #d0657a 44%, #f08a5d 55%, #f7b267 64%);
  opacity: 0.55; /* static golden hour when motion is reduced */
  animation: sky-cycle 60s ease-in-out infinite;
}
@keyframes sky-cycle {
  0%, 100% { opacity: 0; }
  40%, 70% { opacity: 1; }
}

/* Sun sits on the horizon and dips behind the sea */
.sun-wrap {
  position: absolute;
  left: 78%;
  bottom: calc(var(--sea-h) - 34px);
  width: 88px;
  height: 88px;
  margin-left: -44px;
}
.sun {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fffbe6 0%, #ffe39a 38%, #f9b54c 70%, #f39a3b 100%);
  box-shadow: 0 0 40px 14px rgba(255, 200, 110, 0.45), 0 0 110px 40px rgba(255, 170, 90, 0.25);
  transform: translateY(0);
  animation: sun-cycle 60s ease-in-out infinite;
}
.sun-warm {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffe0b0 0%, #ff9a5a 55%, #ef6a45 100%);
  opacity: 0.5;
  animation: sky-cycle 60s ease-in-out infinite;
}
@keyframes sun-cycle {
  0%, 100% { transform: translateY(-34px); }
  40%, 70% { transform: translateY(6px); }
}

/* Seagulls glide across the sky, flapping gently */
.gull {
  position: absolute;
  left: 0;
  width: 26px;
  color: #22384a;
  opacity: 0.7;
  animation: glide 42s linear infinite;
}
.gull svg { display: block; width: 100%; height: auto; transform-origin: 50% 70%; animation: flap 1.1s ease-in-out infinite alternate; }
.gull-1 { top: 13%; transform: translateX(14vw); animation-delay: -8s; }
.gull-2 { top: 19%; width: 20px; transform: translateX(26vw); animation-duration: 52s; animation-delay: -30s; }
.gull-3 { top: 9%; width: 16px; transform: translateX(64vw); animation-duration: 60s; animation-delay: -44s; opacity: 0.5; }
.gull-2 svg { animation-duration: 0.9s; }
@keyframes glide {
  from { transform: translate3d(-12vw, 0, 0); }
  50%  { transform: translate3d(48vw, -14px, 0); }
  to   { transform: translate3d(112vw, 6px, 0); }
}
@keyframes flap {
  from { transform: scaleY(1); }
  to   { transform: scaleY(0.55); }
}

/* Sea */
.sea {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sea-h);
  z-index: 1;
  background: linear-gradient(180deg, #5da7c4 0%, #2a86a8 30%, #1d6f95 70%, #135e82 100%);
  overflow: hidden;
}
.sea-warm {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 160, 100, 0.75) 0%, rgba(214, 101, 122, 0.25) 45%, rgba(214, 101, 122, 0) 80%);
  opacity: 0.55;
  animation: sky-cycle 60s ease-in-out infinite;
}

/* The sun's path on the water: stacked bars that shimmer */
.reflection {
  position: absolute;
  top: 2px;
  left: 78%;
  width: 0;
  height: 62%;
}
.reflection i {
  position: absolute;
  left: 0;
  top: calc(var(--i) * 12.5%);
  width: calc(26px + var(--i) * 12px);
  height: 2px;
  margin-left: calc((26px + var(--i) * 12px) / -2 + var(--x, 0px));
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 196, 110, 0), rgba(255, 210, 130, 0.9) 35%, rgba(255, 236, 190, 0.95) 50%, rgba(255, 210, 130, 0.9) 65%, rgba(255, 196, 110, 0));
  opacity: 0.55;
  animation: shimmer 2.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.37s);
}
@keyframes shimmer {
  from { opacity: 0.15; transform: translateX(-5px) scaleX(0.55); }
  to   { opacity: 0.8; transform: translateX(5px) scaleX(1.05); }
}

/* Sparkles on the water */
.sparkles i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.6;
  transform: scale(var(--s));
  animation: sparkle 4s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  50%      { opacity: 0.9; transform: scale(var(--s)) rotate(45deg); }
}

/* Palm fronds framing the top corners */
.palm {
  position: absolute;
  top: -18px;
  z-index: 3;
  width: min(46vw, 330px);
  color: #0d2b35;
  opacity: 0.92;
  pointer-events: none;
}
.palm svg { display: block; width: 100%; height: auto; animation: sway 7s ease-in-out infinite alternate; }
.palm-left { left: -14px; }
.palm-left svg { transform-origin: 0 0; }
.palm-right { right: -14px; }
.palm-right svg { transform-origin: 100% 0; animation-duration: 8.5s; animation-delay: -3s; }
@keyframes sway {
  from { transform: rotate(-1.8deg); }
  to   { transform: rotate(1.8deg); }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 4;
  padding: 72px var(--gutter) 96px;
  max-width: 640px;
}
.hero-content::before {
  /* soft scrim so white text stays readable on the pale morning sky */
  content: "";
  position: absolute;
  inset: 12% -10% 18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(11, 45, 70, 0.34), rgba(11, 45, 70, 0));
}

.hero-kicker {
  margin: 0 0 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff3dc;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-title {
  color: #fff;
  font-size: clamp(2.9rem, 13vw, 5.6rem);
  font-weight: 500;
  margin: 0;
  text-shadow: 0 2px 22px rgba(20, 20, 50, 0.45);
}

.hero-wheel {
  width: 46px;
  height: 46px;
  color: var(--sunset-gold);
  margin: 12px auto 4px;
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3));
  animation: spin 60s linear infinite;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 6.5vw, 2.4rem);
  margin: 0;
  color: #fff3dc;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-place {
  margin: 0.2em 0 1em;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Countdown */
.countdown { margin: 0 auto 1.3em; }
.countdown-when {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #fff3dc;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.countdown-label {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff3dc;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 64px));
  justify-content: center;
  gap: 8px;
}
.countdown-grid div {
  padding: 8px 0 6px;
  border-radius: 12px;
  background: rgba(11, 45, 70, 0.5);
  border: 1px solid rgba(255, 243, 220, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.countdown-grid span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-grid small {
  display: block;
  margin-top: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.countdown.is-done .countdown-grid { display: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Shore: stacked waves + sand. Each wave SVG is 200% wide and holds two
   identical periods, so sliding it by -50% loops seamlessly. */
.shore {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 2;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 90px;
  will-change: transform;
}
.wave path { fill: currentColor; }
.wave .foam {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 16 7 3 9;
  opacity: 0.75;
}

.wave-back  { bottom: 82px; color: #2a86a8; opacity: 0.6;  animation: drift 24s linear infinite; }
.wave-mid   { bottom: 66px; color: #1d6f95; opacity: 0.85; animation: drift 16s linear infinite reverse; }
.wave-front { bottom: 50px; color: #7cc3d6; opacity: 0.92; animation: drift 11s linear infinite; }
.wave-foam  { bottom: 40px; color: #e6f5f7; opacity: 0.95; animation: drift 8s linear infinite reverse; }
.wave-back .foam { opacity: 0.35; }
.wave-foam .foam { stroke-width: 2.5; opacity: 0.95; }

.sand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background:
    radial-gradient(circle at 20% 40%, rgba(184, 83, 46, 0.16) 1px, transparent 1.6px) 0 0 / 14px 14px,
    radial-gradient(circle at 70% 70%, rgba(147, 63, 32, 0.12) 1px, transparent 1.6px) 0 0 / 19px 19px,
    linear-gradient(180deg, #ecd3a6 0%, #f3e2c3 55%, var(--paper) 100%);
}
.sand-deco { position: absolute; bottom: 0; left: 50%; width: min(100%, 520px); height: 100%; transform: translateX(-50%); }
.footprints { fill: rgba(140, 88, 48, 0.2); }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 720px) {
  .hero { --sea-h: 36%; }
  .shore { height: 220px; }
  .wave { height: 120px; }
  .wave-back  { bottom: 104px; }
  .wave-mid   { bottom: 84px; }
  .wave-front { bottom: 64px; }
  .wave-foam  { bottom: 52px; }
  .sand { height: 72px; }
  .sun-wrap { width: 150px; height: 150px; margin-left: -75px; bottom: calc(var(--sea-h) - 60px); }
  .reflection i { width: calc(44px + var(--i) * 20px); margin-left: calc((44px + var(--i) * 20px) / -2); height: 4px; }
  .gull { width: 34px; }
}

/* Hero animations pause while it is off screen (saves battery) */
.hero.is-offscreen *,
.hero.is-offscreen *::before { animation-play-state: paused !important; }

/* Static beach for people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave,
  .hero-wheel,
  .sky-sunset,
  .sun,
  .sun-warm,
  .sea-warm,
  .gull,
  .gull svg,
  .reflection i,
  .sparkles i,
  .palm svg { animation: none !important; }
  .sparkles i { opacity: 0.55; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------------------
   Section dividers: wave shapes with Odisha motifs
   - .wave-divider: a wave that carries one section's colour into the next,
     with a dotted crest and a medallion (Konark wheel or temple spire)
   - .patta: a Pattachitra-style border band (lotus petals between lines)
   -------------------------------------------------------------------------- */

.wave-divider {
  position: relative;
  height: 72px;
  background: var(--from, var(--paper));
  color: var(--to, var(--sand-light));
  margin-top: -1px;
}
.wave-divider > svg.wd-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wd-wave .fill { fill: currentColor; }
.wd-wave .crest {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 0.1 9;
  opacity: 0.55;
}
.wd-medallion {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 2px solid var(--saffron);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(184, 83, 46, 0.45), 0 6px 16px rgba(123, 63, 40, 0.18);
  color: var(--terracotta);
}
.wd-medallion svg { width: 34px; height: 34px; }
.wd-medallion svg.spire { width: 28px; height: 32px; color: var(--sunset-coral); }

.patta {
  display: block;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='18'%3E%3Cpath d='M0 1.5h28M0 16.5h28' stroke='%23b8532e' stroke-width='1.3'/%3E%3Cpath d='M5 14Q14 1 23 14Z' fill='%23e89a2c' stroke='%23b8532e' stroke-width='1'/%3E%3Cpath d='M9.5 14Q14 6.5 18.5 14' fill='none' stroke='%23fdf8ef' stroke-width='1'/%3E%3Ccircle cx='14' cy='11.2' r='1.4' fill='%230b3d5c'/%3E%3Ccircle cx='0' cy='9' r='1.6' fill='%23b8532e'/%3E%3Ccircle cx='28' cy='9' r='1.6' fill='%23b8532e'/%3E%3C/svg%3E") repeat-x center / 28px 18px;
}

.patta-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px var(--gutter);
}
.patta-divider .patta { flex: 1; opacity: 0.85; }
.patta-divider .wd-medallion { position: static; margin: 0; flex: none; }

/* --------------------------------------------------------------------------
   Welcome
   -------------------------------------------------------------------------- */

.welcome { text-align: center; padding-top: 40px; }
.couple-full {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ocean-deep);
  margin: 0;
}
.couple-full .amp { color: var(--terracotta); font-style: italic; padding: 0 0.2em; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.card h3 { margin-bottom: 0.3em; }

/* Event cards: an illustrated banner on top, a themed tint below */
.event-card {
  padding: 0;
  border-top: 0;
  display: flex;
  flex-direction: column;
}
.event-banner {
  height: 140px;
  overflow: hidden;
  background: var(--sand);
}
.event-banner > svg,
.event-banner > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-body { padding: 18px 20px 20px; flex: 1; }

.event-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  margin: -0.2em 0 0.6em;
  color: var(--ink-soft);
}

/* Haldi: turmeric and marigold */
.theme-haldi { background: linear-gradient(180deg, #fff8db 0%, #fff 60%); border-color: #f5d27a; }
.theme-haldi h3 { color: #b35c00; }
.theme-haldi .event-date { color: #d9480f; }

/* Sangeet: night-time party lights */
.theme-sangeet {
  background: linear-gradient(180deg, #25124a 0%, #1a0d36 100%);
  border-color: #3d2370;
  color: #efe7ff;
}
.theme-sangeet h3 { color: #fff; }
.theme-sangeet .event-tagline { color: #d0bfff; }
.theme-sangeet .event-date { color: #ffd43b; }
.theme-sangeet .details dt { color: #b197fc; }
.theme-sangeet .tba { color: #c9bde6; }
.theme-sangeet .map-link { color: #fff; border-color: #ff4fa3; }
.theme-sangeet .map-link:hover { background: rgba(255, 79, 163, 0.18); color: #fff; }

/* Wedding: temple red and gold */
.theme-wedding { background: linear-gradient(180deg, #fff4ec 0%, #fff 60%); border-color: #e7b9a6; }
.theme-wedding h3 { color: #8b1a2b; }
.theme-wedding .event-date { color: #a0521b; }
.theme-wedding .map-link { border-color: #e2b04a; color: #8b1a2b; }

/* Reception: food and festivity */
.theme-reception { background: linear-gradient(180deg, #f3f9ee 0%, #fff 60%); border-color: #bcd9b0; }
.theme-reception h3 { color: #2f6b3a; }
.theme-reception .event-date { color: var(--terracotta-dark); }
.theme-reception .map-link { border-color: #8fc27f; color: #2f6b3a; }

/* Twinkling lights and flickering diyas */
.bulb { animation: twinkle 2.2s ease-in-out infinite alternate; }
@keyframes twinkle {
  from { opacity: 0.45; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bulb { animation: none !important; opacity: 1; }
}

.link-row { display: flex; flex-wrap: wrap; gap: 8px; }

.stay-photo { margin: -20px -20px 16px; aspect-ratio: 16 / 9; overflow: hidden; }
.stay-photo img { width: 100%; height: 100%; object-fit: cover; }

.event-date {
  font-weight: 700;
  color: var(--terracotta-dark);
  margin: 0 0 12px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.details {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.95rem;
}
.details dt {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 0.2em;
}
.details dd { margin: 0; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ocean);
  padding: 10px 14px;
  border: 1.5px solid var(--ocean-light);
  border-radius: 999px;
  min-height: 44px;
}
.map-link:hover { background: var(--foam); color: var(--ocean-deep); }
.map-link svg { width: 18px; height: 18px; }

.explore-card { padding: 0; }
.explore-card .explore-media {
  aspect-ratio: 20 / 8;
  background: linear-gradient(135deg, var(--foam), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
}
.explore-card .explore-media > svg { width: 100%; height: 100%; }
.explore-card .explore-media > svg:only-child:not([viewBox]) { width: 56px; height: 56px; opacity: 0.7; }
.explore-card .explore-media img { width: 100%; height: 100%; object-fit: cover; }
.explore-card .explore-body { padding: 18px 20px 20px; }
.explore-card p { margin: 0; }

/* Stay */
.stay-card { text-align: left; margin-bottom: 16px; }
.stay-card .badge {
  display: inline-block;
  background: var(--saffron);
  color: #3a2408;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.stay-note {
  background: var(--foam);
  border-left: 4px solid var(--ocean-mid);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   FAQ accordion (native <details>)
   -------------------------------------------------------------------------- */

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  position: relative;
  min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--terracotta);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details[open] summary { color: var(--ocean-deep); }
.faq-list .faq-answer { padding: 0 18px 18px; margin: 0; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

.gallery button {
  padding: 0;
  border: 0;
  background: var(--sand);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery button:hover img { transform: scale(1.04); }

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
}

.lightbox {
  border: 0;
  padding: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 24, 36, 0.95);
  color: #fff;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop { background: rgba(8, 24, 36, 0.9); }
.lightbox figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 12px 24px;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  border-radius: 6px;
}
.lightbox figcaption { margin-top: 10px; font-size: 0.9rem; text-align: center; }
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 0;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.btn-light { background: var(--sand-light); color: var(--ocean-deep); }
.btn-light:hover { background: #fff; color: var(--terracotta); }
.btn-primary { background: var(--terracotta); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* --------------------------------------------------------------------------
   RSVP form
   -------------------------------------------------------------------------- */

.rsvp-deadline { text-align: center; font-weight: 700; margin-top: -0.8em; }
.rsvp-deadline:empty { display: none; }

.rsvp-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label,
.field legend {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  padding: 0;
}
.req { color: var(--terracotta); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ocean-mid);
  box-shadow: 0 0 0 3px rgba(42, 134, 168, 0.2);
}
.field [aria-invalid="true"] { border-color: var(--error); }

.checks { display: grid; gap: 8px; }
.checks-inline { grid-template-columns: repeat(2, 1fr); }
.check {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 10px 12px;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}
.check input { width: 20px; height: 20px; accent-color: var(--terracotta); margin: 0; flex: none; }
.check:has(input:checked) { border-color: var(--terracotta); background: #fff4ea; }
.check .check-sub { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }

.field-error {
  color: var(--error);
  font-size: 0.875rem;
  margin: 4px 0 0;
  min-height: 0;
}
.field-error:empty { display: none; }

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  border-radius: 10px;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-status.is-success { background: #e7f3e8; color: var(--success); padding: 14px 16px; border: 1px solid #b9dcbc; }
.form-status.is-error { background: #fbeaea; color: var(--error); padding: 14px 16px; border: 1px solid #efc0bb; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--ocean-deep);
  color: var(--sand);
  text-align: center;
  margin-top: 60px;
}
.site-footer a { color: var(--sand); }
.shore-footer {
  position: absolute;
  top: -59px;
  height: 60px;
  bottom: auto;
  overflow: hidden;
}
.shore-footer .wave { bottom: 0; height: 60px; color: var(--ocean-deep); opacity: 1; animation-duration: 18s; }
.footer-inner { padding: 20px var(--gutter) 36px; }
.footer-wheel { width: 40px; height: 40px; color: var(--saffron); margin: 0 auto 8px; display: block; }
.site-footer p { margin: 0.3em 0; font-family: var(--font-serif); font-size: 1.3rem; }
.site-footer p.small { font-family: var(--font-sans); font-size: 0.875rem; }

.noscript {
  background: var(--sand);
  text-align: center;
  padding: 16px;
  margin: 0;
}

/* ==========================================================================
   Luxury beach layer: frosted event cards, icons, motifs, reveal, sticky RSVP
   ========================================================================== */

/* Section headings get a small sunset ornament underneath */
.section h2::after {
  content: "";
  display: block;
  width: 88px;
  height: 10px;
  margin: 10px auto 0;
  background:
    radial-gradient(circle, var(--sunset-coral) 3px, transparent 3.5px) center / 10px 10px no-repeat,
    linear-gradient(90deg, transparent, var(--sunset-gold) 30%, var(--sunset-gold) 42%, transparent 42%, transparent 58%, var(--sunset-gold) 58%, var(--sunset-gold) 70%, transparent) center / 100% 1.5px no-repeat;
}

/* Events: soft sunset glow behind frosted-glass cards */
#events {
  background:
    radial-gradient(45% 32% at 10% 18%, rgba(246, 180, 75, 0.38), rgba(246, 180, 75, 0) 70%),
    radial-gradient(40% 30% at 92% 42%, rgba(239, 123, 90, 0.3), rgba(239, 123, 90, 0) 70%),
    radial-gradient(45% 30% at 18% 78%, rgba(124, 195, 214, 0.4), rgba(124, 195, 214, 0) 70%),
    radial-gradient(40% 26% at 85% 78%, rgba(217, 102, 126, 0.22), rgba(217, 102, 126, 0) 70%),
    var(--paper);
}

.event-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 32px rgba(123, 63, 40, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  backdrop-filter: blur(14px) saturate(1.35);
  border-radius: 20px;
}
.theme-haldi { background: linear-gradient(180deg, rgba(255, 244, 200, 0.72) 0%, rgba(255, 255, 255, 0.55) 60%); }
.theme-sangeet { background: linear-gradient(180deg, rgba(40, 20, 80, 0.86) 0%, rgba(26, 13, 54, 0.82) 100%); border-color: rgba(177, 151, 252, 0.35); }
.theme-wedding { background: linear-gradient(180deg, rgba(255, 232, 222, 0.72) 0%, rgba(255, 255, 255, 0.55) 60%); }
.theme-reception { background: linear-gradient(180deg, rgba(230, 244, 222, 0.72) 0%, rgba(255, 255, 255, 0.55) 60%); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .event-card { background: rgba(255, 255, 255, 0.92); }
  .theme-sangeet { background: #1f0f40; }
}

.event-banner { border-radius: 20px 20px 0 0; }

/* Round icon badge overlapping the banner */
.event-icon {
  position: absolute;
  top: 112px;
  left: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--sunset-gold);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 6px 14px rgba(0, 0, 0, 0.15);
}
.event-icon svg { width: 32px; height: 32px; }
.theme-sangeet .event-icon { background: #2b1655; border-color: #ff4fa3; box-shadow: 0 0 0 4px rgba(255, 79, 163, 0.18), 0 0 18px rgba(255, 79, 163, 0.35); }
.theme-wedding .event-icon { border-color: #c2410c; }
.theme-reception .event-icon { border-color: #6aa84f; }
.event-card .event-body { padding-top: 38px; }

/* Add to calendar */
.cal-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
}
.cal-btn svg { width: 18px; height: 18px; }
.theme-sangeet .cal-btn { color: #fff; border-color: #4dd4ff; }
.theme-wedding .cal-btn { border-color: #e2b04a; color: #8b1a2b; }
.theme-reception .cal-btn { border-color: #8fc27f; color: #2f6b3a; }

/* Primary buttons get a sunset gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--sunset-coral) 100%);
  box-shadow: 0 8px 20px rgba(184, 83, 46, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--terracotta-dark) 0%, var(--terracotta) 100%); }

/* Explore Odisha: cards framed like Pattachitra paintings */
.explore-card {
  border: 2px solid var(--terracotta);
  border-radius: 16px;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5.5px var(--sunset-gold), 0 10px 26px rgba(123, 63, 40, 0.14);
  background: #fffdf8;
}
.explore-card .explore-media { border-radius: 14px 14px 0 0; }
.explore-card .patta { margin: 0 10px; }
.explore-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.explore-card h3::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--paper) 3px, var(--terracotta) 3.5px, var(--terracotta) 5px, transparent 5.5px),
    conic-gradient(from 0deg, var(--sunset-gold) 0 12.5%, var(--terracotta) 0 25%, var(--sunset-gold) 0 37.5%, var(--terracotta) 0 50%, var(--sunset-gold) 0 62.5%, var(--terracotta) 0 75%, var(--sunset-gold) 0 87.5%, var(--terracotta) 0);
}
.explore-card .explore-body { position: relative; }
.explore-card .explore-body::after {
  /* small lotus in the corner, like a painted border motif */
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 26px;
  height: 16px;
  opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 16'%3E%3Cpath d='M13 1C9 5 9 10 13 15 17 10 17 5 13 1Z' fill='%23d9667e'/%3E%3Cpath d='M13 15C8 13 4 9 2 5 7 6 10 9 13 15ZM13 15C18 13 22 9 24 5 19 6 16 9 13 15Z' fill='%23ef7b5a'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Fade-and-slide reveal on scroll (only when motion is allowed) */
.js-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Sticky RSVP button on phones */
.sticky-rsvp {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: min(92vw, 420px);
  margin-left: calc(min(92vw, 420px) / -2);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--sunset-coral) 60%, var(--sunset-gold) 100%);
  box-shadow: 0 10px 26px rgba(123, 40, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.sticky-rsvp:hover { color: #fff; }
.sticky-rsvp.is-hidden {
  opacity: 0;
  transform: translate3d(0, 140%, 0);
  pointer-events: none;
}
.site-footer .footer-inner { padding-bottom: 104px; } /* room for the sticky button */
@media (min-width: 720px) {
  .sticky-rsvp { display: none; }
  .site-footer .footer-inner { padding-bottom: 36px; }
}
