/* ============================================================
   Rumbie & Munya — wedding invitation
   Palette from the dress code card: blush pink / rose pink /
   sage green / emerald green / metallic gold
   Type: Cormorant Garamond (display) + Karla (body)
   Signature: the arch — every framed moment sits under one
   ============================================================ */

:root {
  --ink: #0c4534;          /* emerald green */
  --ink-soft: #1a5a45;
  --ivory: #fdf4f1;        /* blush-tinted ivory */
  --ivory-deep: #f7e3df;
  --champagne: #c9a13b;    /* metallic gold */
  --champagne-soft: #e0c169;
  --rose: #e0989e;         /* rose pink */
  --blush: #f5cfd0;        /* blush pink */
  --sage: #a9bda4;         /* sage green */
  --text: #2e463b;
  --text-faint: #75827a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Karla", "Segoe UI", sans-serif;
  --arch: 12rem 12rem 0.4rem 0.4rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- shared type ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1rem;
}

.eyebrow-light { color: var(--champagne-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.4rem;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--champagne);
}

.title-light { color: var(--ivory); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-gold {
  background: var(--champagne);
  color: var(--ink);
}

.btn-gold:hover { background: var(--champagne-soft); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--champagne);
}

.btn-outline:hover { background: var(--champagne); color: var(--ink); }

.btn-wide { width: 100%; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  color: var(--ivory);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(253, 244, 241, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(12, 69, 52, 0.08);
  backdrop-filter: blur(8px);
}

.nav-monogram {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 2rem);
  align-items: center;
}

.nav-links a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 1; }

.nav-rsvp {
  border: 1px solid var(--champagne);
  color: var(--champagne-soft);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

.nav.scrolled .nav-rsvp { color: var(--ink); background: var(--champagne); border-color: var(--champagne); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-rsvp) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 161, 59, 0.16), transparent 60%),
    var(--ink);
  color: var(--ivory);
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
}

.hero-arch {
  position: absolute;
  left: 50%;
  bottom: -12vh;
  transform: translateX(-50%);
  width: min(78vw, 620px);
  height: min(100vh, 760px);
  border: 1px solid rgba(201, 161, 59, 0.35);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.hero-arch::before {
  content: "";
  position: absolute;
  inset: 22px 22px 0;
  border: 1px solid rgba(201, 161, 59, 0.18);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow { color: var(--champagne-soft); margin-bottom: 2rem; }

.hero-names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  line-height: 1.06;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero-names .amp {
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--champagne);
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--champagne);
  margin: 2rem 0 1.6rem;
  width: min(320px, 70vw);
}

.hero-rule span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, rgba(201, 161, 59, 0.6));
}

.hero-rule span:last-child { --dir: left; }

.hero-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--ivory);
}

.hero-venue {
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne-soft);
  margin-top: 0.6rem;
}

.countdown {
  display: flex;
  gap: clamp(1.4rem, 5vw, 3rem);
  margin: 2.4rem 0 2.6rem;
}

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

.count-unit span {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.1;
}

.count-unit small {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.3rem;
}

/* ---------- sections ---------- */

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.4rem, 5vw, 3rem);
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.section-story .story-text {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2.5rem;
  align-items: end;
}

.gallery-item {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ivory-deep);
  box-shadow: 0 18px 40px -22px rgba(12, 69, 52, 0.45);
}

.gallery-item:nth-child(3n + 2) { transform: translateY(1.6rem); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.045); }

.gallery-empty {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .gallery-item:nth-child(3n + 2) { transform: none; }
}

/* ---------- details ---------- */

.section-details { max-width: 900px; }

.detail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}

.detail-card {
  background: #fffaf8;
  border: 1px solid rgba(201, 161, 59, 0.35);
  border-radius: var(--arch);
  padding: 3.2rem 2rem 2.6rem;
  color: var(--champagne);
}

.detail-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 1.1rem 0 0.4rem;
}

.detail-time {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
}

.detail-note {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: var(--text-faint);
}

/* ---------- dress code ---------- */

.dress-code {
  margin-top: 3.2rem;
  padding-top: 2.6rem;
  border-top: 1px solid rgba(201, 161, 59, 0.3);
}

.dress-code h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.dress-code > p {
  max-width: 480px;
  margin: 0 auto 1.8rem;
  color: var(--text-faint);
  font-size: 0.98rem;
}

.swatches {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 4vw, 2.4rem);
}

.swatches li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(12, 69, 52, 0.12);
  box-shadow: inset 0 -6px 12px rgba(12, 69, 52, 0.08);
}

.swatch-gold {
  background: linear-gradient(135deg, #b8912e 0%, #ecd188 45%, #c9a13b 70%, #a8842a 100%);
}

/* ---------- venue / map ---------- */

.venue-address {
  color: var(--text-faint);
  margin-bottom: 2.2rem;
  font-size: 1.02rem;
}

.map-frame {
  border-radius: var(--arch);
  overflow: hidden;
  border: 1px solid rgba(201, 161, 59, 0.4);
  box-shadow: 0 24px 50px -28px rgba(12, 69, 52, 0.5);
  margin-bottom: 2rem;
}

#map {
  height: clamp(340px, 55vh, 480px);
  width: 100%;
  filter: saturate(0.85);
}

.marker-heart {
  font-size: 1.9rem;
  line-height: 1;
  color: #c96b74;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* ---------- rsvp ---------- */

.section-rsvp { max-width: 760px; }

.rsvp-card {
  background:
    radial-gradient(ellipse 100% 50% at 50% 0%, rgba(201, 161, 59, 0.14), transparent 55%),
    var(--ink);
  border-radius: var(--arch);
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.6rem, 5vw, 3.5rem) clamp(2.6rem, 5vw, 3.5rem);
  color: var(--ivory);
}

.rsvp-deadline-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--champagne-soft);
  margin-bottom: 2.2rem;
}

#rsvp-form { text-align: left; }

.field { margin-bottom: 1.4rem; }

.field label, .field legend {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.field .optional { text-transform: none; letter-spacing: 0.05em; font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ivory);
  background: rgba(253, 244, 241, 0.06);
  border: 1px solid rgba(253, 244, 241, 0.22);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input::placeholder, .field textarea::placeholder { color: rgba(253, 244, 241, 0.35); }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--champagne);
  background: rgba(253, 244, 241, 0.1);
}

.field select { appearance: none; }
.field select option { color: var(--ink); }

.field-attending { border: none; }

.radio-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.radio-pill {
  flex: 1;
  min-width: 180px;
  cursor: pointer;
}

.radio-pill input { position: absolute; opacity: 0; }

.radio-pill span {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(253, 244, 241, 0.25);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.radio-pill input:checked + span {
  background: var(--champagne);
  border-color: var(--champagne);
  color: var(--ink);
  font-weight: 600;
}

.radio-pill input:focus-visible + span {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

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

.rsvp-thanks { padding: 2rem 0 1rem; }

.thanks-heart { font-size: 2.4rem; color: var(--rose); margin-bottom: 0.6rem; }

.rsvp-thanks h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.rsvp-thanks p:last-child { color: rgba(253, 244, 241, 0.75); }

/* ---------- footer ---------- */

.footer {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background: var(--ivory-deep);
}

.footer-monogram {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.footer-date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--champagne);
  margin: 0.3rem 0 1rem;
}

.footer-note { font-size: 0.8rem; color: var(--text-faint); }
.footer-note a { color: var(--text-faint); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-item img { transition: none; }
  .btn { transition: none; }
}
