@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Core palette */
  --cream: #FDFBF7;
  --cream-dim: #F5F3EF;
  --dusty-rose: #E5989B;
  --dusty-rose-dark: #C87C7F;
  --dusty-rose-light: #FFDADA;
  --sage: #A7C4A0;
  --sage-dark: #4B6547;
  --sage-light: #CDEBC5;
  --gold: #D4A373;
  --gold-dim: #7D562D;
  --gold-light: #FFDCBD;
  --charcoal: #4A4A4A;
  --charcoal-light: #82756A;
  --ink: #1B1C1A;
  --paper: #FFFFFF;
  --line: #D4C4B7;
  --line-light: rgba(212, 196, 183, 0.4);

  /* Shadows */
  --shadow-card: 0px 4px 20px rgba(74, 74, 74, 0.05);
  --shadow-hover: 0px 8px 30px rgba(74, 74, 74, 0.08);

  /* Typography */
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --container-max: 1120px;
  --gutter: 24px;
  --section-padding: 80px;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 163, 115, 0.15);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0px 4px 20px rgba(212, 163, 115, 0.08);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--charcoal-light);
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 8px 24px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold);
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.hero-bg .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(253, 251, 247, 0.3) 0%, rgba(253, 251, 247, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 60px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.hero-divider {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto;
  opacity: 0.7;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--charcoal-light);
  font-style: italic;
  margin-bottom: 4px;
}

.hero-location {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--charcoal-light);
  margin-top: 4px;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.countdown-item {
  text-align: center;
  min-width: 60px;
}

.countdown-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.countdown-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--charcoal-light);
  margin-top: 4px;
  font-weight: 600;
}

/* ── Sections ── */
.section {
  padding: var(--section-padding) 0;
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-label--primary {
  color: var(--gold-dim);
}

.section-label--sage {
  color: var(--sage-dark);
}

.section-label--muted {
  color: var(--charcoal-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-title--center {
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--charcoal-light);
  max-width: 560px;
  text-align: center;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ── Our Story ── */
.story-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.story-text .section-title {
  margin-bottom: 20px;
}

.story-text p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal-light);
  margin-bottom: 16px;
}

.story-text p:last-child {
  font-size: 16px;
}

.story-images {
  position: relative;
  height: 560px;
  width: 100%;
}

.story-img-primary {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 72%;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  z-index: 10;
  transform: rotate(1.5deg);
}

.story-img-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-img-secondary {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 65%;
  height: 64%;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  z-index: 20;
  transform: rotate(-2deg);
}

.story-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Family Section ── */
.family-section {
  background: var(--cream-dim);
  position: relative;
  overflow: hidden;
}

.family-floral {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 380px;
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 800px;
  margin: 0 auto;
}

.family-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.family-role {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  margin-bottom: 16px;
  padding-bottom: 8px;
  display: inline-block;
}

.family-role--parents {
  color: var(--gold-dim);
  border-bottom: 1px solid var(--gold);
}

.family-role--godparents {
  color: var(--sage-dark);
  border-bottom: 1px solid var(--sage);
}

.family-names {
  font-size: 17px;
  line-height: 1.8;
  color: var(--charcoal-light);
}

/* ── Schedule ── */
.schedule-header {
  text-align: center;
  margin-bottom: 48px;
}

.schedule-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.schedule-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.schedule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.schedule-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  background: var(--cream);
}

.schedule-icon--civil {
  border: 1px solid var(--gold);
  color: var(--gold-dim);
}

.schedule-icon--church {
  border: 1px solid var(--sage-dark);
  color: var(--sage-dark);
}

.schedule-icon--party {
  border: 1px solid var(--dusty-rose);
  color: var(--dusty-rose-dark);
}

.schedule-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.schedule-time {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

.schedule-time--civil { color: var(--gold-dim); }
.schedule-time--church { color: var(--sage-dark); }
.schedule-time--party { color: var(--dusty-rose-dark); }

.schedule-location {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal-light);
  line-height: 1.5;
}

.schedule-description {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--charcoal-light);
  margin-top: 8px;
  font-style: italic;
}

.schedule-map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dim);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.schedule-map-link:hover {
  border-color: var(--gold);
}

/* ── RSVP ── */
.rsvp-section {
  background: var(--cream-dim);
  position: relative;
}

.rsvp-outer {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.rsvp-card {
  background: var(--paper);
  padding: 48px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* Corner accents */
.rsvp-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.rsvp-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-bottom: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

.rsvp-header {
  text-align: center;
  margin-bottom: 32px;
}

.rsvp-header .section-title {
  margin-bottom: 8px;
}

.rsvp-header p {
  font-size: 15px;
  color: var(--charcoal-light);
}

.rsvp-card .rsvp-deadline {
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="number"],
.rsvp-form textarea,
.rsvp-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sage);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  padding: 10px 0;
  transition: border-color 0.3s ease;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus,
.rsvp-form select:focus {
  border-bottom-color: var(--gold);
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: var(--charcoal-light);
  opacity: 0.7;
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 60px;
}

.rsvp-choice-row {
  display: flex;
  gap: 10px;
}

.rsvp-choice-label {
  flex: 1;
  display: block;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;
  border: 1.5px solid var(--line);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  background: transparent;
}

.rsvp-choice-label input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rsvp-choice-label:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.rsvp-submit {
  background: var(--dusty-rose);
  color: var(--paper);
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 16px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  margin-top: 8px;
  align-self: center;
}

.rsvp-submit:hover {
  background: var(--dusty-rose-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.rsvp-guests-field {
  transition: opacity 0.3s ease;
}

/* ── Footer ── */
.footer {
  background: var(--cream);
  padding: 64px var(--gutter);
  text-align: center;
  border-top: 1px solid rgba(212, 163, 115, 0.1);
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 6px;
}

.footer-date {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--charcoal-light);
  letter-spacing: 0.04em;
}

.footer-powered {
  margin-top: 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--charcoal-light);
  opacity: 0.5;
}

/* ── Alerts ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Scroll animations ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 56px;
    --gutter: 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line-light);
    z-index: 101;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-backdrop.open {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-images {
    height: 400px;
  }

  .story-img-primary {
    width: 80%;
    height: 65%;
  }

  .story-img-secondary {
    width: 70%;
    height: 55%;
  }

  .family-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .schedule-cards {
    grid-template-columns: 1fr;
  }

  .rsvp-card {
    padding: 32px 24px;
  }

  .rsvp-row {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 14px;
  }

  .countdown-value {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: 32px;
  }

  .hero-content {
    padding: 40px 16px;
  }

  .rsvp-card::before,
  .rsvp-card::after {
    display: none;
  }
}
