/* ================================================================
   WEDDING WEBSITE — PLAYFUL LUXE GARDEN THEME
   Palette: Sage Green | Cream | Soft Gold | Blush
================================================================ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  /* Greens */
  --sage:           #87A97B;   /* primary sage */
  --sage-deep:      #5E7F52;   /* deep eucalyptus */
  --sage-mid:       #A8C09A;   /* mid sage */
  --sage-light:     #C7DBBD;   /* soft sage */
  --sage-pale:      #E4EEDC;   /* pale wash */

  /* Creams */
  --cream:          #FBF6E9;   /* main background */
  --cream-warm:     #F5EDD8;   /* warmer cream */
  --cream-deep:     #EDE2C4;   /* deeper cream */
  --ivory:          #FFFDF7;   /* near white */

  /* Accents */
  --gold:           #C9A876;   /* soft champagne gold */
  --gold-light:     #DEC59A;
  --gold-deep:      #A8854D;
  --blush:          #E8C4B8;   /* playful blush */
  --blush-deep:     #C99B8C;

  /* Text */
  --text-dark:      #2C3A26;   /* deep green-brown */
  --text-mid:       #5A6850;
  --text-light:     #8B9682;

  --white:          #FFFFFF;

  /* Typography */
  --font-display:   'Italiana', 'Times New Roman', serif;
  --font-script:    'Petit Formal Script', 'Brush Script MT', cursive;
  --font-body:      'Cormorant Garamond', 'Georgia', serif;
  --font-sans:      'Quicksand', system-ui, sans-serif;

  --max-w:          1100px;
  --section-pad:    100px 24px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a   { color: var(--sage-deep); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-deep); }

/* ================================================================
   PASSWORD GATE
================================================================ */
#password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(199,219,189,.65) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(232,196,184,.4) 0%, transparent 55%),
    linear-gradient(160deg, var(--cream) 0%, var(--sage-pale) 100%);
}

/* decorative leaf flourishes in corners */
.gate-leaves {
  position: absolute;
  font-size: 6rem;
  color: var(--sage-mid);
  opacity: .35;
  pointer-events: none;
  font-family: var(--font-display);
}
.leaves-tl { top: 40px; left: 50px; transform: rotate(-15deg); }
.leaves-br { bottom: 40px; right: 50px; transform: rotate(165deg); }

.gate-box {
  position: relative;
  background: var(--ivory);
  border: 1px solid rgba(135,169,123,.3);
  border-radius: 6px;
  padding: 64px 56px 56px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow:
    0 30px 80px rgba(94,127,82,.18),
    0 0 0 8px rgba(255,253,247,.6),
    0 0 0 9px rgba(135,169,123,.2);
}

/* corner sprigs on the box */
.gate-box::before,
.gate-box::after {
  content: '✿';
  position: absolute;
  color: var(--sage);
  font-size: 1.2rem;
  opacity: .5;
}
.gate-box::before { top: 18px; left: 22px; }
.gate-box::after  { bottom: 18px; right: 22px; }

.gate-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  opacity: .75;
  margin-bottom: 16px;
}

.gate-eyebrow {
  font-family: var(--font-script);
  color: var(--sage-deep);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.gate-title {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: .04em;
  margin-bottom: 18px;
}

.gate-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.gate-divider .line {
  display: block;
  width: 50px;
  height: 1px;
  background: var(--sage);
  opacity: .5;
}
.gate-divider .sprig {
  color: var(--sage);
  font-size: 1rem;
}

.gate-subtitle {
  font-family: var(--font-body);
  color: var(--text-mid);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 30px;
}

#password-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--cream);
  border: 1px solid rgba(135,169,123,.35);
  border-radius: 50px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-align: center;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
  margin-bottom: 10px;
}
#password-input::placeholder {
  color: var(--text-light);
  font-style: italic;
}
#password-input:focus {
  border-color: var(--sage);
  background: var(--ivory);
  box-shadow: 0 0 0 4px rgba(135,169,123,.12);
}

.password-error {
  color: var(--blush-deep);
  font-size: .9rem;
  margin-bottom: 14px;
  font-style: italic;
}

#password-gate .btn-primary {
  margin-top: 10px;
  width: 100%;
}

/* ================================================================
   SHARED BUTTONS
================================================================ */
.btn-primary {
  display: inline-block;
  padding: 14px 42px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, opacity .25s;
  box-shadow: 0 6px 22px rgba(94,127,82,.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(94,127,82,.38);
  color: var(--ivory);
}
.btn-primary:active { transform: translateY(0); }

.btn-full { width: 100%; }

.btn-outline {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 26px;
  border: 1px solid var(--sage);
  border-radius: 50px;
  color: var(--sage-deep);
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn-outline:hover {
  background: var(--sage);
  color: var(--ivory);
}

/* ================================================================
   NAVBAR
================================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,246,233,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(135,169,123,.2);
}

#navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

#navbar ul li a {
  display: block;
  padding: 20px 30px;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color .25s;
}
#navbar ul li a:hover { color: var(--sage-deep); }

/* ================================================================
   HERO
================================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(199,219,189,.55) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(232,196,184,.35) 0%, transparent 55%),
    linear-gradient(160deg, var(--cream-warm) 0%, var(--sage-pale) 60%, var(--cream) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-placeholder {
  font-family: var(--font-script);
  color: rgba(135,169,123,.45);
  font-size: 1.4rem;
  pointer-events: none;
}

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

/* Dark gradient overlay when a real photo is loaded */
.hero-bg-img:has(img)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0%,
    rgba(0,0,0,0.08) 40%,
    rgba(0,0,0,0.52) 100%
  );
  pointer-events: none;
}

/* Text turns white over a photo */
#hero:has(.hero-bg-img img) .hero-prelude { color: rgba(255,255,255,0.88); }

#hero:has(.hero-bg-img img) .name-bride,
#hero:has(.hero-bg-img img) .name-groom {
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
}

#hero:has(.hero-bg-img img) .hero-ampersand { color: var(--gold-light); }

#hero:has(.hero-bg-img img) .hero-divider .line { background: rgba(255,255,255,0.38); }
#hero:has(.hero-bg-img img) .hero-divider .sprig { color: rgba(255,255,255,0.7); }

#hero:has(.hero-bg-img img) .hero-date,
#hero:has(.hero-bg-img img) .hero-location { color: rgba(255,255,255,0.82); }

#hero:has(.hero-bg-img img) .btn-hero {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
#hero:has(.hero-bg-img img) .btn-hero:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

#hero:has(.hero-bg-img img) .leaf { color: rgba(255,255,255,0.25); }

/* floating leaves */
.leaf {
  position: absolute;
  color: var(--sage);
  opacity: .35;
  pointer-events: none;
  user-select: none;
  animation: float 8s ease-in-out infinite;
}
.leaf-1 { top: 12%; left: 8%; font-size: 3rem; animation-delay: 0s; }
.leaf-2 { top: 20%; right: 12%; font-size: 2.2rem; animation-delay: 1.5s; color: var(--blush-deep); opacity: .35; }
.leaf-3 { bottom: 18%; left: 14%; font-size: 2.5rem; animation-delay: 3s; }
.leaf-4 { bottom: 22%; right: 9%; font-size: 3.2rem; animation-delay: 4.5s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%     { transform: translateY(-15px) rotate(8deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  max-width: 820px;
}

.hero-prelude {
  font-family: var(--font-script);
  color: var(--sage-deep);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.name-bride,
.name-groom {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.05;
}

.hero-ampersand {
  font-family: var(--font-script);
  color: var(--gold-deep);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  margin: 4px 0;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px 0;
}
.hero-divider .line {
  display: block;
  width: 70px;
  height: 1px;
  background: var(--sage);
  opacity: .55;
}
.hero-divider .sprig {
  color: var(--sage-deep);
  font-size: 1.1rem;
}

.hero-date {
  font-family: var(--font-sans);
  color: var(--text-mid);
  font-size: clamp(.95rem, 2.2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-location {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

.btn-hero {
  font-size: .8rem;
  letter-spacing: .25em;
  padding: 16px 48px;
}

/* ================================================================
   COUNTDOWN
================================================================ */
#countdown-section {
  background: linear-gradient(135deg, var(--sage-pale) 0%, var(--cream-warm) 100%);
  padding: 70px 24px;
  text-align: center;
  border-top: 1px solid rgba(135,169,123,.2);
  border-bottom: 1px solid rgba(135,169,123,.2);
}

.countdown-label {
  font-family: var(--font-script);
  color: var(--sage-deep);
  font-size: 1.3rem;
  margin-bottom: 36px;
}

.countdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown-unit {
  min-width: 100px;
  padding: 22px 14px;
  background: var(--ivory);
  border: 1px solid rgba(135,169,123,.25);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(94,127,82,.1);
  transition: transform .3s;
}
.countdown-unit:hover { transform: translateY(-4px); }

.countdown-unit span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--sage-deep);
  line-height: 1;
  margin-bottom: 10px;
}

.countdown-unit label {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ================================================================
   SECTION COMMONS
================================================================ */
.section-padded  { padding: var(--section-pad); }
.section-sage    { background: linear-gradient(180deg, var(--sage-pale) 0%, var(--cream-warm) 100%); }

.section-header  { text-align: center; max-width: var(--max-w); margin: 0 auto 64px; }

.section-eyebrow {
  font-family: var(--font-script);
  color: var(--sage-deep);
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.ornament-divider .line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--sage);
  opacity: .55;
}
.ornament-divider .sprig {
  color: var(--sage-deep);
  font-size: 1.1rem;
}

/* ================================================================
   OUR STORY
================================================================ */
#our-story { background: var(--cream); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto 80px;
}

.story-img-wrap .photo-placeholder {
  min-height: 440px;
  border-radius: 8px;
}

.story-img-wrap img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.story-text h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--sage-deep);
  letter-spacing: .04em;
  margin-bottom: 22px;
}

.story-text p {
  font-size: 1.12rem;
  color: var(--text-mid);
  margin-bottom: 18px;
  font-style: italic;
  line-height: 1.85;
}

/* Timeline */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 44px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--sage), transparent);
  opacity: .55;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 3px rgba(135,169,123,.35);
}

.timeline-content { padding-left: 6px; }

.timeline-date {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 6px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: .03em;
}

.timeline-content p {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.05rem;
}

/* ================================================================
   WEDDING DETAILS
================================================================ */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: var(--max-w);
  margin: 0 auto 80px;
}

.detail-card {
  background: var(--ivory);
  border: 1px solid rgba(135,169,123,.25);
  border-radius: 12px;
  padding: 44px 32px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  box-shadow: 0 8px 30px rgba(94,127,82,.08);
}
.detail-card:hover {
  transform: translateY(-6px);
  border-color: rgba(135,169,123,.55);
  box-shadow: 0 16px 44px rgba(94,127,82,.18);
}

.detail-icon {
  font-size: 2rem;
  color: var(--sage);
  margin-bottom: 18px;
}

.detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--sage-deep);
  margin-bottom: 22px;
}

.detail-info {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 16px;
}
.detail-info strong {
  color: var(--sage-deep);
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 4px;
}

/* Schedule */
.schedule-wrap {
  max-width: 620px;
  margin: 0 auto;
  background: var(--ivory);
  border: 1px solid rgba(135,169,123,.25);
  border-radius: 12px;
  padding: 50px 52px;
  box-shadow: 0 8px 30px rgba(94,127,82,.08);
}

.schedule-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--sage-deep);
  text-align: center;
  margin-bottom: 36px;
}

.schedule-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(135,169,123,.2);
}
.schedule-row:last-child { border-bottom: none; }

.sch-time {
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--gold-deep);
  min-width: 80px;
}

.sch-divider { color: var(--sage); }

.sch-event {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.05rem;
}

/* ================================================================
   GALLERY
================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 270px;
  gap: 14px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  transition: transform .35s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-large { grid-column: span 2; }
.gallery-wide  { grid-column: span 2; }

.gallery-item .photo-placeholder {
  height: 100%;
  min-height: unset;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* ================================================================
   PHOTO PLACEHOLDER (shared)
================================================================ */
.photo-placeholder {
  width: 100%;
  min-height: 300px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(135,169,123,.06) 0px,
      rgba(135,169,123,.06) 1px,
      transparent 1px,
      transparent 16px
    ),
    linear-gradient(135deg, var(--cream-warm) 0%, var(--sage-pale) 100%);
  border: 1px dashed rgba(135,169,123,.45);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-script);
  color: rgba(94,127,82,.55);
  font-size: 1.05rem;
}

.photo-placeholder.small {
  min-height: 150px;
  width: 150px;
  border-radius: 50%;
}

/* sage section placeholders — slightly different tone */
.section-sage .photo-placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.25) 0px,
      rgba(255,255,255,.25) 1px,
      transparent 1px,
      transparent 16px
    ),
    linear-gradient(135deg, var(--ivory) 0%, var(--sage-light) 100%);
  border-color: rgba(135,169,123,.45);
}

/* ================================================================
   WEDDING PARTY
================================================================ */
.party-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.party-role {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--sage-deep);
  text-align: center;
  margin-bottom: 40px;
}

.party-members {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.party-member { text-align: center; }

.party-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.party-photo-wrap img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.party-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.party-relation {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .98rem;
  color: var(--text-light);
}

/* ================================================================
   RSVP
================================================================ */
#rsvp { background: var(--cream-warm); position: relative; overflow: hidden; }

#rsvp::before,
#rsvp::after {
  content: '✿';
  position: absolute;
  font-size: 8rem;
  color: var(--sage);
  opacity: .08;
  pointer-events: none;
}
#rsvp::before { top: 60px; left: 5%; transform: rotate(-15deg); }
#rsvp::after  { bottom: 60px; right: 5%; transform: rotate(20deg); }

.rsvp-wrap {
  max-width: 660px;
  margin: 0 auto;
  background: var(--ivory);
  padding: 56px 52px;
  border-radius: 14px;
  border: 1px solid rgba(135,169,123,.25);
  box-shadow: 0 12px 44px rgba(94,127,82,.12);
  position: relative;
  z-index: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 10px;
}

.req { color: var(--blush-deep); }

.form-group input:not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid rgba(135,169,123,.3);
  border-radius: 8px;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%235E7F52' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-color: var(--cream);
  padding-right: 44px;
  cursor: pointer;
}

.form-group input:not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  background: var(--ivory);
  box-shadow: 0 0 0 4px rgba(135,169,123,.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.radio-group {
  display: flex;
  gap: 32px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-mid);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.radio-label input[type="radio"] {
  accent-color: var(--sage);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.rsvp-notice {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .98rem;
  color: var(--text-mid);
  background: rgba(135,169,123,.1);
  border-left: 3px solid var(--sage);
  padding: 12px 16px;
  margin-bottom: 24px;
  line-height: 1.65;
  border-radius: 0 6px 6px 0;
}

.form-error {
  color: var(--blush-deep);
  font-size: .9rem;
  margin-bottom: 16px;
  font-style: italic;
  text-align: center;
}

.rsvp-success {
  text-align: center;
  padding: 64px 28px;
  border: 1px solid rgba(135,169,123,.3);
  background: var(--ivory);
  border-radius: 14px;
  box-shadow: 0 12px 44px rgba(94,127,82,.12);
}

.success-icon {
  font-size: 2.6rem;
  color: var(--sage);
  margin-bottom: 22px;
  animation: gentle-spin 4s ease-in-out infinite;
  display: inline-block;
}

@keyframes gentle-spin {
  0%,100% { transform: rotate(-8deg); }
  50%     { transform: rotate(8deg); }
}

.rsvp-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

.rsvp-success p {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.15rem;
}

/* ================================================================
   FOOTER
================================================================ */
#footer {
  background: linear-gradient(180deg, var(--sage-pale) 0%, var(--sage-light) 100%);
  color: var(--text-dark);
  text-align: center;
  padding: 72px 24px 56px;
  border-top: 1px solid rgba(135,169,123,.3);
}

.footer-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: .55;
  margin-bottom: 20px;
}

.footer-names {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--sage-deep);
  margin-bottom: 10px;
}

.footer-date {
  font-family: var(--font-script);
  color: var(--text-mid);
  font-size: 1.2rem;
  margin-bottom: 28px;
}

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.footer-divider .line {
  display: block;
  width: 70px;
  height: 1px;
  background: var(--sage-deep);
  opacity: .4;
}
.footer-divider .sprig {
  color: var(--sage-deep);
  font-size: 1.1rem;
}

.footer-note {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-contact {
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--text-light);
  letter-spacing: .04em;
}

.footer-contact a { color: var(--sage-deep); font-weight: 500; }
.footer-contact a:hover { color: var(--gold-deep); }

/* ================================================================
   REGISTRY
================================================================ */
.registry-wrap {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.registry-note {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ================================================================
   FAQ
================================================================ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--ivory);
  border: 1px solid var(--sage-light);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--sage-deep);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '＋';
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform .25s;
}

details[open] .faq-question::after {
  content: '－';
}

.faq-answer {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  padding: 0 24px 20px;
  margin: 0;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 860px) {
  .story-grid    { grid-template-columns: 1fr; gap: 40px; }
  .party-columns { grid-template-columns: 1fr; gap: 56px; }
  .gallery-grid  { grid-template-columns: 1fr 1fr; grid-auto-rows: 340px; }
  .gallery-large,
  .gallery-wide  { grid-column: span 2; }
  .form-row      { grid-template-columns: 1fr; }
  .schedule-wrap { padding: 36px 28px; }
  .rsvp-wrap     { padding: 40px 28px; }
  .leaves-tl, .leaves-br { font-size: 4rem; }
}

@media (max-width: 600px) {
  :root { --section-pad: 70px 18px; }
  #navbar ul li a { padding: 16px 14px; font-size: .64rem; }
  /* Single column: give portrait photos a taller, near-portrait frame
     so faces aren't cropped out by the short landscape cells. */
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 420px; }
  .gallery-large,
  .gallery-wide  { grid-column: span 1; }
  .story-img-wrap .photo-placeholder,
  .story-img-wrap img { min-height: 380px; }
  .countdown-unit { min-width: 72px; padding: 16px 8px; }
  .countdown-wrap { gap: 10px; }
  .details-grid { grid-template-columns: 1fr; }
  .gate-box { padding: 48px 30px; }
  .radio-group { flex-direction: column; gap: 14px; }
  .leaves-tl, .leaves-br { display: none; }
}
