/* ============================================
   Derrick & Jolene — Wedding Website
   Bright floral · withjoy-inspired
   ============================================ */

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

:root {
  --white: #ffffff;
  --cream: #faf9f7;
  --warm: #f5f2ed;
  --blush: #fef5ef;
  --sky: #e8f0f8;
  --sky-light: #f0f6fc;
  --sage: #6b8f71;
  --sage-light: #93b597;
  --sage-dark: #4a6b4f;
  --blue: #7ba7c9;
  --blue-light: #a8cce0;
  --blue-pale: #d4e6f0;
  --sunflower: #e8b830;
  --sunflower-light: #f0d060;
  --sunflower-pale: #faf0c8;
  --rose: #c9917a;
  --rose-light: #e4bfb0;
  --gold: #b8975a;
  --text: #3d3835;
  --text-mid: #6b6560;
  --text-light: #9a9490;
  --border: rgba(0,0,0,0.07);
  --shadow: 0 2px 24px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.08);
  --heading: 'Cormorant Garamond', Georgia, serif;
  --body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --script: 'Caveat', cursive;
  --nav-h: 64px;
  --r: 8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--rose-light); }
h1,h2,h3,h4 { font-family: var(--heading); font-weight: 400; line-height: 1.15; }
a { color: var(--blue); text-decoration: none; transition: color .25s; }
a:hover { color: var(--blue-light); }

/* ── Nav ── */
nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; transition: background .4s, box-shadow .4s;
}
nav.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); }
.nav-logo { font-family: var(--heading); font-size: 1.15rem; color: var(--text); letter-spacing: .03em; }
.nav-logo span { color: var(--sunflower); font-style: italic; }
#nav-links { display: flex; list-style: none; gap: 1.75rem; }
#nav-links a { color: var(--text-light); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .2rem 0; position: relative; }
#nav-links a::after { content:''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--blue); transition: width .3s; }
#nav-links a:hover { color: var(--text); }
#nav-links a:hover::after { width: 100%; }
#nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 4px; }
#nav-toggle span { width: 22px; height: 1.5px; background: var(--text); transition: .3s; }
#nav-overlay { display: none; }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 2rem; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-light) 0%, var(--white) 40%, var(--cream) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-floral-top { max-width: 400px; margin: 0 auto 2rem; }
.hero-floral-top svg { width: 100%; height: auto; }
.hero-floral-bottom { max-width: 400px; margin: 1.5rem auto 0; }
.hero-floral-bottom svg { width: 100%; height: auto; }
.hero-eyebrow {
  font-family: var(--body); font-size: .72rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.5rem;
}
.hero-names {
  font-size: clamp(2.8rem, 7.5vw, 5.5rem); color: var(--text); font-weight: 300; margin-bottom: .25rem;
}
.hero-names em {
  font-style: italic; color: var(--sunflower); font-size: .6em; display: inline-block; margin: 0 .25em;
  vertical-align: middle;
}
.hero-date { font-family: var(--heading); font-style: italic; font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--text-mid); margin-bottom: .25rem; }
.hero-venue { font-family: var(--body); font-size: .82rem; letter-spacing: .08em; color: var(--text-light); margin-bottom: 2.5rem; }
#countdown { display: flex; justify-content: center; gap: .35rem; }
.countdown-item { text-align: center; }
.countdown-number { display: block; font-family: var(--heading); font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--blue); line-height: 1; }
.countdown-label { display: block; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-light); margin-top: .2rem; }
.countdown-sep { font-family: var(--heading); font-size: 1.2rem; color: var(--blue-light); opacity: .5; padding-bottom: .8rem; }
.hero-scroll {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: var(--text-light); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  animation: float 3s ease-in-out infinite; z-index: 1;
}
.hero-scroll-line { width: 1px; height: 24px; background: linear-gradient(to bottom, var(--sage), transparent); }
@keyframes float { 0%,100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(-6px); } }

/* ── Sections ── */
section { padding: 5rem 2rem; position: relative; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  font-family: var(--script); font-size: 1rem; letter-spacing: .15em;
  color: var(--blue); margin-bottom: .75rem; display: block;
}
.section-header h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--text); }
.section-line { width: 32px; height: 1px; background: var(--blue-light); margin: 1.25rem auto 0; }

/* ── Story ── */
#story { background: var(--white); position: relative; }
.story-container { max-width: 1000px; margin: 0 auto; }

.floral-corner {
  position: absolute; top: 2rem; width: 120px; height: 120px;
  pointer-events: none; opacity: 0.7;
}
.floral-corner svg { width: 100%; height: 100%; }
.floral-corner--left { left: 0; }
.floral-corner--right { right: 0; transform: scaleX(-1); }

.floral-section-divider {
  max-width: 600px; margin: 0 auto; padding-top: 2rem;
}
.floral-section-divider svg { width: 100%; height: auto; }
.story-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  margin-bottom: 5rem;
}
.story-row:last-child { margin-bottom: 0; }
.story-row--reverse { direction: rtl; }
.story-row--reverse > * { direction: ltr; }
.story-year {
  font-family: var(--script); font-size: 1.1rem; color: var(--sunflower);
  display: block; margin-bottom: .5rem;
}
.story-text h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--text);
  margin-bottom: 1rem; line-height: 1.2; font-weight: 400;
}
.story-text p {
  color: var(--text-mid); font-size: 1rem; line-height: 1.85; font-weight: 300;
}
.story-illustration {
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}
.story-illustration svg {
  width: 100%; max-width: 300px; height: auto;
}

/* ── Schedule ── */
#schedule { background: var(--cream); }
.schedule-container { max-width: 560px; margin: 0 auto; }
.schedule-card {
  display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.75rem 2rem;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); margin-bottom: 1.25rem;
  transition: transform .3s, box-shadow .3s;
}
.schedule-card:last-child { margin-bottom: 0; }
.schedule-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.schedule-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.schedule-time { font-family: var(--script); font-size: 1.1rem; color: var(--blue); }
.schedule-body h3 { font-size: 1.25rem; color: var(--text); margin: .3rem 0 .3rem; font-family: var(--heading); }
.schedule-body p { font-size: .95rem; color: var(--text-light); }

/* ── RSVP ── */
.rsvp-section {
  position: relative; padding: 7rem 2rem; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--sky-light) 50%, var(--cream) 100%);
}
.rsvp-content { position: relative; z-index: 1; }
.rsvp-floral { max-width: 200px; margin: 0 auto 2rem; }
.rsvp-floral svg { width: 100%; height: auto; }
.rsvp-content h2 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--text); margin-bottom: .5rem; }
.rsvp-deadline { color: var(--text-light); font-size: 1rem; margin-bottom: 2.5rem; font-family: var(--heading); font-style: italic; }
.rsvp-deadline strong { color: var(--sage); }
.rsvp-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.rsvp-btn {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 2rem;
  font-family: var(--body); font-size: .82rem; letter-spacing: .06em;
  border-radius: 50px; cursor: pointer; transition: all .35s;
}
.rsvp-btn svg { width: 18px; height: 18px; fill: currentColor; }
.rsvp-btn--primary { background: var(--blue); color: white; border: 1.5px solid var(--blue); }
.rsvp-btn--primary:hover { background: #5a8fb5; border-color: #5a8fb5; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.rsvp-btn--secondary { background: var(--white); color: var(--text); border: 1.5px solid var(--border); }
.rsvp-btn--secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ── Contact ── */
#contact { background: var(--sky-light); }
.contact-container {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 720px; margin: 0 auto;
}
.contact-card {
  text-align: center; padding: 2rem 1.5rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow);
}
.contact-card h3 { font-size: 1.25rem; color: var(--blue); margin-bottom: .35rem; font-family: var(--heading); }
.contact-card p { color: var(--text-light); font-size: .88rem; margin-bottom: .5rem; }
.contact-card a { font-size: .92rem; color: var(--text); }
.contact-card a:hover { color: var(--sage); }
.venue-card { grid-column: 1 / -1; }
.map-container { max-width: 720px; margin: 2rem auto 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.map-container iframe { display: block; width: 100%; height: 300px; border: none; }

/* ── Footer ── */
footer { text-align: center; padding: 2.5rem 2rem; border-top: 1px solid var(--border); }
.footer-names { font-family: var(--heading); font-style: italic; color: var(--text-mid); font-size: 1.25rem; }
.footer-date { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-light); margin-top: .3rem; }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: .1s; }
.fade-in.delay-2 { transition-delay: .2s; }

/* ── Mobile ── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  #nav-toggle { display: flex; }
  #nav-links {
    position: fixed; top: 0; right: 0; width: 260px; height: 100vh;
    background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
    flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.16,1,.3,1);
    z-index: 1000; box-shadow: -4px 0 20px rgba(0,0,0,.08);
  }
  #nav-links.open { transform: translateX(0); }
  #nav-links a { font-size: .9rem; color: var(--text); }
  #nav-overlay {
    display: block; position: fixed; inset: 0; background: rgba(0,0,0,.25);
    z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  #nav-overlay.open { opacity: 1; pointer-events: all; }
  section { padding: 3.5rem 1.25rem; }
  .story-row, .story-row--reverse { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 3rem; direction: ltr; }
  .story-illustration svg { max-width: 240px; }
  .story-img img { height: 220px; }
  .contact-container { grid-template-columns: 1fr; }
  .venue-card { grid-column: auto; }
  .rsvp-section { padding: 5rem 1.25rem; }
  .rsvp-buttons { flex-direction: column; align-items: center; }
  .rsvp-btn { width: 100%; max-width: 280px; justify-content: center; }
  .map-container iframe { height: 220px; }
}
