/* ─────────────────────────────────────────────────────────
   WEDDING WEBSITE — style.css
   Palette: Blush, Champagne, Ivory, Gold, Deep Rose
   ───────────────────────────────────────────────────────── */

/* ── CSS CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  --gold:        #C9A86C;
  --gold-light:  #E8D5A3;
  --gold-dark:   #9D7A42;
  --blush:       #F2E4DF;
  --deep-rose:   #8B4D5A;
  --ivory:       #FAF7F2;
  --cream:       #F5EEE6;
  --charcoal:    #2C2416;
  --warm-gray:   #6B5B4E;
  --white:       #FFFFFF;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --radius:      12px;
  --shadow-sm:   0 2px 12px rgba(44,36,22,.08);
  --shadow-md:   0 8px 40px rgba(44,36,22,.14);
  --shadow-lg:   0 20px 60px rgba(44,36,22,.18);
  --transition:  0.35s cubic-bezier(.4,0,.2,1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLL-REVEAL ANIMATIONS ──────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2.4rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201,168,108,.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,108,.55);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  border: 2px solid var(--gold);
  color: var(--gold-dark);
}
.btn-outline-dark:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ── SECTION TYPOGRAPHY ─────────────────────────────────── */
.section-label {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--charcoal);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-title--light { color: var(--ivory); }

.section-sub {
  font-size: 1.05rem;
  color: var(--warm-gray);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}
.section-sub--light { color: rgba(250,247,242,.8); }

/* ── FLORAL DIVIDERS ────────────────────────────────────── */
.floral-top, .floral-bottom { text-align: center; overflow: hidden; }
.floral-top img, .floral-bottom img { max-width: 700px; margin: 0 auto; opacity: .85; }
.floral-top { transform: scaleX(-1) scaleY(-1); }
.floral-bottom { margin-top: 1rem; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 2rem;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#navbar.scrolled {
  background: rgba(250,247,242,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: .75rem 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--white);
  transition: color var(--transition);
  line-height: 1;
}
#navbar.scrolled .nav-logo { color: var(--gold-dark); }

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 100%;
  height: 1px;
  background: var(--gold);
  transition: right var(--transition);
}
.nav-links a:hover::after { right: 0; }
#navbar.scrolled .nav-links a { color: var(--charcoal); }
#navbar.scrolled .nav-links a:hover { color: var(--gold-dark); }

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white) !important;
  padding: .5rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 3px 12px rgba(201,168,108,.35);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,108,.5);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}
#navbar.scrolled .nav-toggle span { background: var(--charcoal); }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44,36,22,.25) 0%,
    rgba(44,36,22,.5) 50%,
    rgba(44,36,22,.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  animation: fadeUp .9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-pre {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.2rem;
  animation: fadeUp .9s .1s ease both;
}

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(44,36,22,.4);
  margin-bottom: 1.5rem;
  animation: fadeUp .9s .2s ease both;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 2.5vw, 1.25rem);
  font-weight: 300;
  letter-spacing: .08em;
  color: rgba(255,255,255,.92);
  margin-bottom: .5rem;
  animation: fadeUp .9s .3s ease both;
}

.hero-venue {
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 3rem;
  animation: fadeUp .9s .35s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .9s .45s ease both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.6);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: fadeUp 1s .8s ease both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { height: 40px; opacity: 1; }
  50%       { height: 60px; opacity: .4; }
}

/* ═══════════════════════════════════════════════════════════
   COUNTDOWN
   ═══════════════════════════════════════════════════════════ */
#countdown {
  background: var(--cream);
  padding: 3rem 0;
  text-align: center;
}

.countdown-container { padding: 2rem; }

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.countdown-item span {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--gold-dark);
  line-height: 1;
  transition: transform .15s ease;
}

.countdown-item span.tick { transform: scale(1.07); }

.countdown-item label {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-top: .35rem;
}

.countdown-sep {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold-light);
  align-self: flex-start;
  padding-top: .4rem;
}

/* ═══════════════════════════════════════════════════════════
   OUR STORY
   ═══════════════════════════════════════════════════════════ */
#our-story {
  padding: 7rem 0;
  background: var(--ivory);
}

.story-timeline {
  position: relative;
  margin-top: 4rem;
}

.story-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-light) 20%, var(--gold-light) 80%, transparent);
  transform: translateX(-50%);
}

.story-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 4rem;
  padding-right: calc(50% + 3rem);
}

.story-item--right {
  flex-direction: row-reverse;
  padding-right: 0;
  padding-left: calc(50% + 3rem);
}

.story-dot {
  position: absolute;
  top: 1.4rem;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 4px var(--gold-light);
  z-index: 2;
}

.story-year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .1em;
  white-space: nowrap;
  position: absolute;
  top: .9rem;
  right: calc(50% + 1.5rem);
}

.story-item--right .story-year {
  right: auto;
  left: calc(50% + 1.5rem);
}

.story-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold);
  flex: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.story-item--right .story-card { border-left: none; border-right: 3px solid var(--gold); }

.story-card h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: .6rem;
  color: var(--charcoal);
}
.story-card p { color: var(--warm-gray); }

/* ═══════════════════════════════════════════════════════════
   DETAILS
   ═══════════════════════════════════════════════════════════ */
#details {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.details-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--deep-rose) 0%, #5a2d3a 100%);
  z-index: 0;
}

#details .container { position: relative; z-index: 1; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.detail-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 2rem;
  color: var(--white);
  transition: transform var(--transition), background var(--transition);
}
.detail-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.14);
}

.detail-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: .75rem;
  color: var(--gold-light);
}

.detail-card p { font-size: .95rem; color: rgba(255,255,255,.85); margin-bottom: .3rem; }
.detail-card strong { color: var(--white); }
.detail-sub {
  font-size: .78rem !important;
  color: rgba(255,255,255,.55) !important;
  letter-spacing: .05em;
  margin-top: .5rem !important;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
#gallery { padding: 7rem 0 4rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: .75rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: zoom-in;
}

.gallery-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,36,22,.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .05em;
}

.gallery-note {
  color: var(--warm-gray);
  font-size: .88rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   REGISTRY
   ═══════════════════════════════════════════════════════════ */
#registry {
  background: var(--cream);
  padding: 3rem 0 5rem;
}
#registry .container { padding-top: 1rem; }

.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.registry-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,168,108,.2);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}
.registry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.registry-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.registry-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: .5rem;
}

.registry-card p {
  color: var(--warm-gray);
  font-size: .9rem;
  margin-bottom: 1.2rem;
}

.registry-link {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ═══════════════════════════════════════════════════════════
   RSVP
   ═══════════════════════════════════════════════════════════ */
#rsvp {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.rsvp-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #2C2416 0%, #4a3520 50%, #3d2d1a 100%);
  z-index: 0;
}

#rsvp .container { position: relative; z-index: 1; }

.rsvp-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.rsvp-form {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.req { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }

.form-group select option { background: #3d2d1a; color: var(--white); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.12);
}

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

.form-note {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* RSVP Success */
.rsvp-success {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--white);
}
.success-icon { font-size: 4rem; margin-bottom: 1.5rem; animation: pulse 1.5s ease infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}

.rsvp-success h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: .75rem;
}
.rsvp-success p {
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
#faq {
  padding: 7rem 0;
  background: var(--ivory);
}

.faq-list {
  max-width: 720px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,108,.2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.3rem 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--charcoal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gold-dark); }

.faq-q::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 1.6rem;
}
.faq-a.open {
  max-height: 300px;
  padding: 0 1.6rem 1.3rem;
}
.faq-a p { color: var(--warm-gray); }
.faq-a a { color: var(--gold-dark); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   GUESTBOOK
   ═══════════════════════════════════════════════════════════ */
#guestbook {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.guestbook-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #8B4D5A 0%, #5a2d3a 100%);
  z-index: 0;
}

#guestbook .container { position: relative; z-index: 1; }

.guestbook-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.guestbook-form {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
}

.guestbook-form .form-group label { color: var(--gold-light); }

.guestbook-form input,
.guestbook-form textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: .85rem 1.1rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--white);
  outline: none;
  width: 100%;
  transition: border-color var(--transition);
}
.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder { color: rgba(255,255,255,.35); }
.guestbook-form input:focus,
.guestbook-form textarea:focus { border-color: rgba(255,255,255,.5); }
.guestbook-form textarea { resize: vertical; min-height: 90px; }

.guestbook-entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}

.gb-entry {
  display: flex;
  gap: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  animation: fadeUp .5s ease both;
}

.gb-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

.gb-body { flex: 1; }
.gb-name {
  font-weight: 500;
  font-size: .88rem;
  color: var(--gold-light);
  margin-bottom: .3rem;
}
.gb-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: .3rem;
}
.gb-date {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
#footer {
  background: var(--cream);
  padding-top: 1rem;
}

.footer-content {
  padding: 3rem 2rem;
  text-align: center;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold-dark);
  margin-bottom: .5rem;
}

.footer-date {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--warm-gray);
  letter-spacing: .2em;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-dark); }

.footer-note {
  font-size: .8rem;
  color: rgba(107,91,78,.6);
}
.footer-note a { color: var(--gold-dark); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(250,247,242,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; color: var(--charcoal) !important; }
  .nav-toggle { display: flex; z-index: 1001; position: relative; }
  #navbar.scrolled .nav-toggle span { background: var(--charcoal); }

  .story-timeline::before { left: 1.5rem; }
  .story-item, .story-item--right {
    flex-direction: column;
    padding: 0 0 0 3.5rem;
  }
  .story-dot { left: 1.5rem; }
  .story-year { position: static; margin-bottom: .3rem; }
  .story-item--right .story-year { left: auto; }
  .story-item--right .story-card { border-right: none; border-left: 3px solid var(--gold); }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item--tall { grid-row: span 1; aspect-ratio: 1; }
  .gallery-item--wide { grid-column: span 2; }

  .form-row { grid-template-columns: 1fr; }
  .rsvp-form { padding: 1.8rem 1.4rem; }

  .countdown-sep { display: none; }
  .countdown-grid { gap: .5rem; }
  .countdown-item { min-width: 80px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .gallery-item--tall { aspect-ratio: 4/3; }
  .details-grid { grid-template-columns: 1fr; }
}

/* ── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,.8);
  transform: scale(.9);
  transition: transform .35s ease;
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
