/* ==========================================================================
   Aparupa & Harm — Wedding RSVP
   ========================================================================== */

:root {
  --color-maroon: #7a1b2e;
  --color-maroon-dark: #4a0f1c;
  --color-maroon-darker: #34090f;
  --color-gold: #c9a227;
  --color-gold-light: #e8c766;
  --color-marigold: #f4a300;
  --color-ivory: #fff8ee;
  --color-cream: #fbf3e6;
  --color-teal: #0b4f4a;
  --color-indigo: #1a1035;
  --color-indigo-dark: #0f0a20;
  --color-ink: #2a1414;

  --font-script: "Petit Formal Script", cursive;
  --font-serif: "Cormorant Garamond", serif;
  --font-body: "Poppins", sans-serif;

  --motif-dot: var(--color-ivory);
  --motif-center: var(--color-maroon);
  --flame-color: var(--color-marigold);
  --flame-color2: #ffd98e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-serif); margin: 0 0 0.5em; color: var(--color-maroon-dark); }

p { line-height: 1.7; margin: 0 0 1em; }

a { color: inherit; }

.motif { display: block; width: 100%; height: 100%; }

/* ---------------------------------- NAV ---------------------------------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-nav.scrolled {
  background: rgba(74, 15, 28, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  padding: 0.6rem 2rem;
}

.nav-monogram {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-ivory);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--color-ivory);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--color-gold-light); }

.nav-cta {
  border: 1px solid var(--color-gold-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(232, 199, 102, 0.4);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: rgba(255, 248, 238, 0.7);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover { color: var(--color-ivory); }

.lang-switch button.is-active {
  background: var(--color-gold-light);
  color: var(--color-maroon-darker);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-ivory);
  display: block;
}

/* --------------------------------- HERO ---------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, var(--color-maroon) 0%, var(--color-maroon-dark) 55%, var(--color-maroon-darker) 100%);
}

.parallax-layer {
  position: absolute;
  inset: -10% -10% -10% -10%;
  pointer-events: none;
  will-change: transform;
}

.hero-photo {
  background-image:
    linear-gradient(rgba(74, 15, 28, 0.62), rgba(52, 9, 15, 0.8)),
    url("../img/header-web.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.motif--ghost {
  position: absolute;
  color: var(--color-gold-light);
  opacity: 0.18;
}
.motif--mandala-1 { width: 42vw; max-width: 520px; top: -8%; left: -10%; }
.motif--mandala-2 { width: 34vw; max-width: 420px; bottom: -10%; right: -8%; }

.motif--paisley {
  position: absolute;
  color: var(--color-gold);
  opacity: 0.16;
}
.motif--paisley-1 { width: 90px; top: 12%; left: 8%; transform: rotate(-12deg); }
.motif--paisley-2 { width: 130px; bottom: 8%; left: 18%; transform: rotate(160deg); }
.motif--paisley-3 { width: 100px; top: 20%; right: 10%; transform: rotate(20deg); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-ivory);
  padding: 2rem 1.5rem;
  max-width: 700px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.72rem;
  color: var(--color-gold-light);
  margin-bottom: 1.2rem;
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0;
}

.hero-names .script {
  font-family: var(--font-script);
  font-size: clamp(3rem, 9vw, 6rem);
  color: var(--color-gold-light);
  line-height: 1;
}

.hero-names .amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-ivory);
}

.hero-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  margin-top: 0.6rem;
  color: var(--color-ivory);
}

.hero-dateloc {
  margin-top: 1.2rem;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--color-gold-light);
}

.hero-sub {
  margin-top: 1rem;
  color: rgba(255,248,238,0.85);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-maroon-darker);
  font-weight: 600;
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,162,39,0.35); }

.btn--ghost {
  border-color: var(--color-gold-light);
  color: var(--color-ivory);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-gold-light);
  border-radius: 20px;
  z-index: 2;
}

.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--color-gold-light);
  border-radius: 2px;
  animation: scroll-cue-bounce 1.8s ease infinite;
}

@keyframes scroll-cue-bounce {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ------------------------------- COUNTDOWN -------------------------------- */

.countdown {
  position: relative;
  background: var(--color-maroon-dark);
  color: var(--color-ivory);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}

.marigold-border {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-marigold);
}
.marigold-border .motif { width: 26px; height: 26px; }

.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  color: var(--color-gold-light);
  margin-bottom: 1.5rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown-unit .num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-gold-light);
  font-variant-numeric: tabular-nums;
}

.countdown-unit .unit {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,248,238,0.7);
  margin-top: 0.25rem;
}

/* --------------------------------- INTRO ---------------------------------- */

.intro {
  padding: 5rem 1.5rem;
  background: var(--color-cream);
}

.intro-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--color-ink);
}

.motif--lotus {
  width: 70px;
  height: 42px;
  color: var(--color-maroon);
  margin: 0 auto 1.5rem;
  opacity: 0.8;
}

/* -------------------------------- SECTIONS -------------------------------- */

.section {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.section-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.section-inner--narrow { max-width: 640px; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-marigold);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.2rem;
}

.section-lead {
  font-size: 1.05rem;
  max-width: 68ch;
  color: #4a3232;
}

.section-note {
  font-size: 0.9rem;
  font-style: italic;
  color: #6a4a4a;
  border-top: 1px solid rgba(122,27,46,0.15);
  padding-top: 1.2rem;
  margin-top: 2rem;
}

.parallax-bg {
  z-index: 0;
  opacity: 0.5;
}

.section--week {
  background: linear-gradient(180deg, var(--color-cream), #f4e6d0);
}
.section--week .parallax-bg {
  background-image: radial-gradient(circle at 15% 20%, rgba(201,162,39,0.15), transparent 40%),
                     radial-gradient(circle at 85% 80%, rgba(122,27,46,0.1), transparent 40%);
}

.section--travel {
  background: var(--color-ivory);
}

.section--flights {
  background: linear-gradient(180deg, #f4e6d0, var(--color-cream));
}
.section--flights .parallax-bg {
  background-image: radial-gradient(circle at 80% 30%, rgba(11,79,74,0.08), transparent 45%);
}

/* ------------------------------- TIMELINE --------------------------------- */

.timeline {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  border-left: 2px solid var(--color-gold);
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.8rem;
}

.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-marigold);
  box-shadow: 0 0 0 4px var(--color-cream);
}

.timeline-date {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-marigold);
  margin-bottom: 0.3rem;
}

.timeline-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--color-maroon);
}

.timeline-item p { margin: 0; color: #4a3232; }
.timeline-item p + p { margin-top: 0.6rem; }

.timeline-sublist {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.timeline-sublist li {
  padding-left: 1rem;
  border-left: 2px solid rgba(201, 162, 39, 0.4);
  color: #4a3232;
}

.timeline-sublist strong { color: var(--color-maroon); }


/* --------------------------------- TWO COL -------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.two-col h3 { color: var(--color-maroon); font-size: 1.3rem; }

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

/* -------------------------------- DIWALI ---------------------------------- */

.section--diwali {
  background: radial-gradient(circle at 50% 30%, var(--color-indigo), var(--color-indigo-dark));
  color: var(--color-ivory);
}

.section--diwali .parallax-bg {
  background-image:
    radial-gradient(2px 2px at 10% 20%, #fff, transparent),
    radial-gradient(2px 2px at 80% 15%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 30% 75%, #fff, transparent),
    radial-gradient(2px 2px at 90% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 10%, #fff, transparent);
  opacity: 0.5;
}

.diyas {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  bottom: -5% !important;
  top: auto !important;
  height: 30%;
  padding: 0 4%;
}

.motif--diya {
  width: clamp(50px, 8vw, 100px);
  height: auto;
  color: var(--color-maroon);
  opacity: 0.9;
}

.section-eyebrow--light { color: var(--color-marigold); }
.section-title--light { color: var(--color-ivory); }
.section-lead--light { color: rgba(255,248,238,0.85); }

/* --------------------------------- RSVP FORM ------------------------------ */

.section--rsvp {
  background: var(--color-ivory);
}

.rsvp-form {
  margin-top: 2.5rem;
  background: #fff;
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 20px 60px rgba(74,15,28,0.08);
  border: 1px solid rgba(201,162,39,0.2);
}

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

.rsvp-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2.2rem;
}

.rsvp-form legend {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-maroon);
  margin-bottom: 1rem;
  padding: 0;
  border-bottom: 1px solid rgba(201,162,39,0.3);
  padding-bottom: 0.4rem;
  width: 100%;
}

.field { margin-bottom: 1.1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.field label,
.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-maroon-dark);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d9c9a8;
  border-radius: 8px;
  background: var(--color-cream);
  color: var(--color-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
}

.radio-group label, .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--color-ink);
  margin-bottom: 0;
  cursor: pointer;
}

.btn--submit {
  border: none;
  font-size: 1rem;
  width: 100%;
  padding: 1rem;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
  min-height: 1.4em;
}
.form-status.success { color: var(--color-teal); }
.form-status.error { color: var(--color-maroon); }

/* -------------------------------- FOOTER ---------------------------------- */

.site-footer {
  background: var(--color-maroon-darker);
  color: var(--color-ivory);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}

.site-footer .marigold-border { margin-bottom: 1.8rem; }

.footer-names {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--color-gold-light);
  margin-bottom: 0.4rem;
}


/* -------------------------------- REVEAL ---------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------ RESPONSIVE -------------------------------- */

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(74, 15, 28, 0.97);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* --------------------------- REDUCED MOTION ------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax-layer { transform: none !important; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue span { animation: none; }
}
