/* ============================================================
   Amelia & Theo — Wedding Site
   Palette: soft sage, warm ivory, dusty blush, deep forest
   Fonts: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

:root {
  --ivory:    #F7F3EC;
  --cream:    #EDE8DF;
  --blush:    #D4A5A0;
  --rose:     #B07070;
  --sage:     #7A9E87;
  --forest:   #3A5446;
  --bark:     #6B5744;
  --ink:      #2A2A25;
  --muted:    #7A756D;

  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'Jost', system-ui, sans-serif;

  --max:      1100px;
  --section:  clamp(3rem, 6vw, 5rem);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--forest);
}
h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p  { color: var(--muted); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
section { padding-block: var(--section); }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 3rem);
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}
nav.scrolled {
  background: rgba(247, 243, 236, 0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.3s;
}
nav.scrolled .nav-brand { color: var(--forest); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(247,243,236,0.9);
  transition: color 0.2s;
}
nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--sage); }

.nav-rsvp {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(247,243,236,0.7);
  color: var(--ivory) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
nav.scrolled .nav-rsvp {
  border-color: var(--forest);
  color: var(--forest) !important;
}
.nav-rsvp:hover {
  background: var(--forest) !important;
  color: var(--ivory) !important;
  border-color: var(--forest) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ivory);
  transition: background 0.3s;
}
nav.scrolled .nav-toggle span { background: var(--forest); }

@media (max-width: 720px) {
  .nav-links-wrap {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(247,243,236,0.98);
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid var(--cream);
  }
  .nav-links-wrap.open { display: block; }
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links a, .nav-rsvp {
    color: var(--muted) !important;
    border-color: var(--forest) !important;
  }
  .nav-rsvp { display: inline-block; margin-top: 0.5rem; }
  .nav-toggle { display: flex; }
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-inline: 1.5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?w=1600&h=1000&fit=crop');
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.55);
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-family: var(--sans);
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.hero h1 {
  color: var(--ivory);
  font-style: italic;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-ampersand {
  display: block;
  font-size: 0.55em;
  font-style: normal;
  opacity: 0.7;
  letter-spacing: 0.06em;
}
.hero-date {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}
.hero-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.45);
  margin: 1rem auto;
}
.hero-location {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.85rem 2.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-solid {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--ivory);
}
.btn-solid:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.35);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.15); }
}

/* ── INTRO ───────────────────────────────────────────────── */
.intro {
  text-align: center;
  background: var(--ivory);
}
.intro p {
  max-width: 55ch;
  margin-inline: auto;
  font-size: 1.05rem;
  margin-top: 1.25rem;
}
.leaf-divider {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--blush);
  margin: 1.8rem auto 0;
}

/* ── DETAILS STRIP ───────────────────────────────────────── */
.details-strip {
  background: var(--forest);
  color: var(--ivory);
  padding-block: 2.2rem;
}
.details-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.detail-item .label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-family: var(--sans);
}
.detail-item .value {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ivory);
  margin-top: 0.2rem;
}

/* ── SCHEDULE ────────────────────────────────────────────── */
.schedule { background: var(--cream); }
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
}
.schedule-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.schedule-time {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--rose);
  min-width: 4.5rem;
  padding-top: 0.1rem;
}
.schedule-desc strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
}
.schedule-desc span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }
.section-header .eyebrow { display: block; margin-bottom: 0.5rem; }

/* ── INFO CARDS ──────────────────────────────────────────── */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.info-card {
  background: var(--ivory);
  border: 1px solid rgba(122,158,135,0.2);
  border-radius: 4px;
  padding: 2rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.info-card:hover {
  box-shadow: 0 8px 32px rgba(58,84,70,0.1);
  transform: translateY(-3px);
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.info-card h3 { margin-bottom: 0.6rem; }
.info-card p { font-size: 0.92rem; margin-bottom: 1.2rem; }
.card-link {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  text-decoration: none;
}
.card-link::after { content: ' →'; }

/* ── PHOTO STRIP ─────────────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.5rem;
  height: 340px;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  .photo-strip { grid-template-columns: 1fr 1fr; height: 220px; }
  .photo-strip img:last-child { display: none; }
}

/* ── TRAVEL PAGE ─────────────────────────────────────────── */
.page-hero {
  padding-top: 8rem;
  padding-bottom: var(--section);
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
}
.page-hero h1 { color: var(--ivory); font-style: italic; font-size: clamp(2rem, 5vw, 3.5rem); }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 0.8rem; }

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.travel-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 2rem;
}
.travel-card h3 { margin-bottom: 0.8rem; }
.travel-card p, .travel-card li { font-size: 0.94rem; color: var(--muted); }
.travel-card ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.travel-card li { margin-bottom: 0.4rem; }
.travel-card a { color: var(--sage); }

.map-embed {
  margin-top: 3rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--cream);
}
.map-embed iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

/* ── STAYS PAGE ──────────────────────────────────────────── */
.stays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.stay-card {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--cream);
  background: #fff;
}
.stay-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.stay-body { padding: 1.5rem; }
.stay-body h3 { margin-bottom: 0.3rem; }
.stay-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(122,158,135,0.15);
  color: var(--sage);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}
.stay-body p { font-size: 0.9rem; }
.stay-distance {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--blush);
  font-weight: 500;
}

/* ── RSVP PAGE ───────────────────────────────────────────── */
.rsvp-wrap {
  max-width: 640px;
  margin-inline: auto;
}
.rsvp-form {
  background: #fff;
  border: 1px solid var(--cream);
  border-radius: 4px;
  padding: clamp(1.5rem, 5vw, 3rem);
  margin-top: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bark);
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--cream);
  background: var(--ivory);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.attendance-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.attend-btn {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--cream);
  background: var(--ivory);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted);
}
.attend-btn.active-yes {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.attend-btn.active-no {
  background: var(--blush);
  border-color: var(--rose);
  color: #fff;
}

.rsvp-submit {
  width: 100%;
  padding: 1rem;
  background: var(--forest);
  color: var(--ivory);
  border: none;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.rsvp-submit:hover { background: var(--sage); }
.rsvp-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success .tick {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.form-success h3 { color: var(--forest); margin-bottom: 0.6rem; }
.form-error {
  display: none;
  background: rgba(208,100,100,0.1);
  border: 1px solid rgba(208,100,100,0.3);
  color: #a04040;
  border-radius: 3px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-top: 1rem;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.82rem;
}
footer .footer-names {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}
footer a { color: rgba(255,255,255,0.45); }

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── UTILITIES ───────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
