:root {
  --bg: #fbf7f2;
  --bg-soft: #f3ece2;
  --bg-dark: #2d2620;
  --ink: #2d2620;
  --muted: #6b5e52;
  --accent: #b8895a;
  --accent-deep: #8a5a2b;
  --rose: #c08a8a;
  --gold: #c9a96a;
  --shadow: 0 10px 30px rgba(60, 40, 20, 0.08);
  --serif: "Cormorant Garamond", "Georgia", serif;
  --script: "Pinyon Script", cursive;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Shared ── */
.section {
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}
.section-sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 3rem;
}
.ornament { font-size: 2rem; color: var(--gold); margin-bottom: 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--accent-deep);
  border: 1.5px solid var(--accent-deep);
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--sans);
}
.btn:hover { background: var(--accent-deep); color: #fff; }
.btn.primary { background: var(--accent-deep); color: #fff; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2.5rem;
  background: rgba(20,13,8,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,169,106,0.15);
  transition: background 0.3s;
}
.site-nav.scrolled { background: rgba(20,13,8,0.95); }
.nav-monogram {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  text-decoration: none;
  transition: background 0.2s;
  gap: 1px;
}
.nav-monogram:hover { background: rgba(201,169,106,0.15); }
.mono-m, .mono-n {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.mono-n { font-style: italic; }
.nav-logo-img { display: none; }
.mono-sep { display: none; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0; padding: 0;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none; border: none;
  color: #fff; font-size: 1.4rem;
  cursor: pointer; padding: 0;
}

/* ── ① Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}
.hero-bg.active { opacity: 1; }
.hero-bg:nth-child(1) { background-image: url('Galleryy/bg1.jpg'); }
.hero-bg:nth-child(2) { background-image: url('Galleryy/bg2.jpg'); }
.hero-bg:nth-child(3) { background-image: url('Galleryy/bg3.jpg'); }
.hero-bg:nth-child(4) { background-image: url('Galleryy/bg4.jpg'); }
.hero-bg:nth-child(5) { background-image: url('Galleryy/bg5.jpg'); }
.hero-bg:nth-child(6) { background-image: url('Galleryy/bg6.jpg'); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(30,18,8,0.78) 0%,
    rgba(30,18,8,0.45) 55%,
    rgba(30,18,8,0.15) 100%);
  z-index: 1;
}
.hero-body {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6rem 4rem 4rem 4rem;
  gap: 2rem;
}
.hero-left { flex: 0 0 auto; max-width: 520px; }
.hero-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  opacity: 0.85;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.couple {
  font-family: var(--script);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25em;
  text-shadow: 0 3px 20px rgba(0,0,0,0.4);
  margin-bottom: 0.6rem;
}
.couple .amp { font-size: 0.7em; color: var(--gold); }
.hero-divider {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 0.5rem 0 0.9rem;
}
.hero-divider span:first-child,
.hero-divider span:last-child {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,106,0.7), transparent);
}
.hero-heart { color: var(--gold); font-size: 0.9rem; }
.hero-invite {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  opacity: 0.9;
  line-height: 1.9;
  margin-bottom: 1.4rem;
}
.hero-date-strip {
  display: flex;
  border: 1px solid rgba(201,169,106,0.5);
  width: fit-content;
  margin-bottom: 1.2rem;
}
.hero-date-strip > div {
  padding: 0.55rem 1.1rem;
  border-right: 1px solid rgba(201,169,106,0.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.68rem; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.88);
  gap: 0.1rem;
}
.hero-date-strip > div:last-child { border-right: none; }
.hds-main strong {
  font-family: var(--serif);
  font-size: 1.9rem; font-weight: 600;
  color: #fff; line-height: 1; display: block;
}
.hero-cd-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0.7rem;
}
.hero-countdown {
  display: flex; gap: 0.5rem;
  margin-bottom: 1.8rem;
}
.hero-countdown > div {
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.55rem 0.8rem;
  text-align: center; min-width: 68px;
}
.hero-countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem; font-weight: 600;
  color: #fff; line-height: 1;
}
.hero-countdown span {
  display: block;
  font-size: 0.58rem; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.65); margin-top: 0.25rem;
}
.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff; text-decoration: none;
  font-size: 0.75rem; letter-spacing: 0.2em;
  transition: all 0.3s;
}
.hero-cta:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); color: var(--gold); }
.hero-right {
  flex: 0 0 200px;
  text-align: right;
  align-self: flex-start;
  margin-top: 6rem;
}
.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  border: none; margin: 0; padding: 0.5rem 0;
  position: relative;
  text-align: center;
}
.hq-mark { display: none; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}

/* ── ② Quote ── */
.quote-sec {
  background: var(--bg-soft);
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.quote-block { max-width: 680px; }
.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}
.quote-text.tamil { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.quote-ref {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.quote-divider { font-size: 2rem; color: var(--gold); }

/* ── ④ Couple Story ── */
.story-sec { background: var(--bg-soft); max-width: none; }
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.t-item {
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}
.t-item:hover { transform: translateY(-6px); }
.t-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.t-year {
  font-family: var(--script);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.t-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.t-item p { color: var(--muted); font-size: 0.95rem; }

/* ── ⑤ Event Timeline ── */
.events-sec { background: var(--bg); max-width: none; }
.events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.event-card {
  background: #fff;
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  transition: transform 0.3s;
}
.event-card:hover { transform: translateY(-6px); }
.event-card.highlight {
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border-top: 3px solid var(--accent-deep);
  transform: scale(1.03);
}
.event-card.highlight-2 {
  background: linear-gradient(180deg, #fff8f0, var(--bg-soft));
  border-top: 3px solid var(--rose);
}
.event-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.event-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.event-date { font-weight: 500; margin-bottom: 0.3rem; }
.event-time { color: var(--accent); margin-bottom: 1rem; font-family: var(--serif); font-size: 1.1rem; }
.event-venue { color: var(--muted); font-size: 0.95rem; }

/* ── ⑥ Gallery ── */
.gallery-sec { background: var(--bg-soft); max-width: none; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.gallery-item { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-item.main-photo { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; min-height: 400px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.placeholder {
  background: var(--bg);
  border: 2px dashed #d8cdbf;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item.placeholder span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── ⑦ Venue & Maps ── */
.venue-sec { background: var(--bg); max-width: none; }
.venues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.venue-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: center;
}
.venue-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}
.venue-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.3rem; }
.venue-event {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 1.2rem !important;
}
.map-wrap { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ── ⑧ RSVP ── */
.rsvp-sec { background: var(--bg-soft); max-width: none; }
.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  text-align: left;
}
.rsvp-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.rsvp-form label.full,
.rsvp-form button { grid-column: 1 / -1; }
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d8cdbf;
  background: #fff;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: normal;
  text-transform: none;
}
.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus { outline: none; border-color: var(--accent); }
.form-note {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent-deep);
  min-height: 1.5em;
}

/* ── ⑨ Footer ── */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  background: var(--bg-dark);
  color: #fbf7f2;
}
.footer .ornament { color: var(--gold); }
.footer-logo {
  width: 100px; height: 100px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 8px rgba(201,169,106,0.4));
}
.thanks {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.signoff {
  font-family: var(--script);
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.footer-sub {
  font-family: var(--serif);
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}
.copyright { font-size: 0.8rem; opacity: 0.5; letter-spacing: 0.1em; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ── Mobile ── */
@media (max-width: 700px) {
  /* Nav */
  .hero-bg:nth-child(1) { background-image: url('hero-mobile.jpg'); }
  .site-nav { padding: 0 1.25rem; justify-content: space-between; background: rgba(20,13,8,0.75) !important; }
  .nav-monogram { width: 36px; height: 36px; }
  .mono-m, .mono-n { font-size: 0.78rem; }
  .nav-toggle { display: block; padding: 0.75rem 0; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(20,13,8,0.97); padding: 0.5rem 0 1rem;
  }
  .site-nav.open .nav-links { display: flex; }
  .site-nav .nav-links a,
  .site-nav.open .nav-links a {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none !important;
    padding: 0.7rem 1.5rem; display: block; font-size: 0.85rem;
  }
  /* Hero */
  .hero-body { flex-direction: column; padding: 5.5rem 1.5rem 3rem; gap: 1.5rem; }
  .hero-left { max-width: 100%; }
  .hero-right { display: none; }
  .couple { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .hero-date-strip > div { padding: 0.45rem 0.7rem; font-size: 0.62rem; }
  .hds-main strong { font-size: 1.5rem; }
  .hero-countdown { gap: 0.35rem; }
  .hero-countdown > div { min-width: 58px; padding: 0.45rem 0.5rem; }
  .hero-countdown strong { font-size: 1.5rem; }
  /* Other sections */
  .event-card.highlight { transform: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
