/* =========================================================
   Adrian & Victoria — Wedding Site
   Palette: soft blue · champagne · sage green · dusty pink · ivory
   ========================================================= */

:root {
  /* Bold, jewel-tone palette: emerald · wine · gold · rose */
  --soft-blue:   #1f6f5c;   /* emerald (kept var names so markup is unchanged) */
  --soft-blue-d: #0f4a3c;   /* deep emerald */
  --champagne:   #f3d9a4;   /* warm gold tint */
  --champagne-d: #c79a3e;   /* rich gold */
  --sage:        #6e1f3a;   /* deep wine */
  --sage-d:      #8e2d4d;   /* wine accent */
  --dusty-pink:  #d64368;   /* bold rose */
  --dusty-pink-d:#b32a52;   /* deep rose */
  --ivory:       #fdf7ee;   /* warm cream */
  --ink:         #211a22;   /* near-black plum */
  --ink-soft:    #5a4d57;

  --gold:        #c79a3e;
  --gold-light:  #e6c46a;

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1100px;
  --shadow: 0 18px 44px rgba(33, 26, 34, 0.22);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0.7rem auto 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.95rem 2.6rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--light { background: rgba(255,255,255,0.92); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dark { background: var(--soft-blue-d); color: #fff; }
.btn--dark:hover { background: var(--sage-d); }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(251, 248, 244, 0.95);
  box-shadow: 0 2px 20px rgba(74,69,64,0.08);
  backdrop-filter: blur(8px);
  padding: 0.6rem 2rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.nav__logo {
  width: auto;
  height: 52px;
  /* Logo art is dark; show it white over the hero photo */
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.35));
  transition: filter 0.3s ease, height 0.3s ease;
}
/* Once scrolled onto the cream nav, render it in deep emerald */
.nav.is-scrolled .nav__logo {
  height: 42px;
  filter: brightness(0) saturate(100%) invert(24%) sepia(22%) saturate(1200%) hue-rotate(110deg) brightness(95%) contrast(92%);
}
.nav__menu { display: flex; gap: 1.8rem; align-items: center; }
.nav__menu a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  color: #fff;
  transition: color 0.25s ease;
}
.nav.is-scrolled .nav__menu a { color: var(--ink); }
.nav__menu a:hover { color: var(--dusty-pink-d); }
.nav__cta {
  border: 1px solid currentColor;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: background 0.3s ease; }
.nav.is-scrolled .nav__toggle span { background: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease-in-out, transform 7s ease-in-out;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(15,74,60,0.62), rgba(110,31,58,0.66));
}
.hero__content { position: relative; z-index: 2; color: #fff; padding: 1rem; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}
.hero__names {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 500;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero__names span { font-family: var(--script); font-weight: 400; display: inline-block; margin: 0 0.3rem; color: var(--gold-light); }
.hero__tagline { font-family: var(--script); font-size: clamp(1.6rem, 4vw, 2.6rem); margin-top: 0.2rem; }
.hero__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.8rem 0;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
}
.hero__date strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin: 0.4rem 0;
  text-transform: none;
}
.hero__countdown {
  position: absolute;
  bottom: 2rem; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 2rem;
  color: #fff;
}
.hero__countdown .cd { text-align: center; min-width: 60px; }
.hero__countdown .cd b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.hero__countdown .cd span { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; }

/* ===== Sections ===== */
.section { padding: 6rem 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ink); }
.section--story { background: var(--ivory); }
.section--proposal, .section--gallery, .section--rsvp { position: relative; }

/* Alternating bold background bands (full-bleed) */
.section--proposal { max-width: none; background: linear-gradient(135deg, var(--soft-blue-d), var(--soft-blue)); color: var(--ivory); }
.section--proposal > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--proposal .section__head h2 { color: var(--ivory); }
.section--proposal .proposal__text p strong { color: var(--gold-light); }
.section--travel { max-width: none; background: linear-gradient(135deg, var(--sage), var(--sage-d)); color: var(--ivory); }
.section--travel > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section--travel .section__head h2 { color: var(--ivory); }
.section--rsvp { max-width: none; background: linear-gradient(135deg, var(--dusty-pink-d), var(--sage)); }
.section--rsvp > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.section--rsvp .section__head h2,
.section--rsvp .eyebrow,
.section--rsvp .rsvp__deadline { color: var(--ivory); }
.section--rsvp .eyebrow::after { background: var(--gold-light); }

/* ===== Our Story ===== */
.story, .proposal {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.story__img, .proposal__img {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.story__text p, .proposal__text p { margin-bottom: 1.2rem; font-size: 1.08rem; }
.story__sign { font-family: var(--script); font-size: 1.8rem; color: var(--soft-blue-d); }

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(74,69,64,0.08);
}
.gallery__item img { transition: transform 0.6s ease; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__note { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--ink-soft); }
.gallery__note code { background: var(--champagne); padding: 0.1rem 0.4rem; border-radius: 4px; }

/* ===== Details ===== */
.details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.detail-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.detail-card:hover { transform: translateY(-6px); }
.detail-card__icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.detail-card h3 { font-size: 1.5rem; color: var(--soft-blue-d); margin-bottom: 0.3rem; }
.detail-card__time { font-family: var(--serif); font-size: 1.15rem; color: var(--dusty-pink-d); margin-bottom: 0.6rem; }
.detail-card p { font-size: 0.92rem; color: var(--ink-soft); }

/* ===== Travel ===== */
.travel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.travel__card {
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.travel__card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; color: var(--sage-d); }

/* ===== RSVP ===== */
.rsvp__deadline { margin-top: 0.8rem; color: var(--ink-soft); }
.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  background: rgba(255,255,255,0.9);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--champagne-d);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  transition: border 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--soft-blue-d);
  box-shadow: 0 0 0 3px rgba(174,191,206,0.3);
}
.field__radios { display: flex; gap: 1.5rem; padding-top: 0.4rem; }
.radio { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.rsvp-form .btn { grid-column: 1 / -1; justify-self: center; }
.rsvp-form__msg { grid-column: 1 / -1; text-align: center; font-size: 0.95rem; min-height: 1.2rem; }
.rsvp-form__msg.is-ok { color: var(--sage-d); font-weight: 500; }
.rsvp-form__msg.is-err { color: var(--dusty-pink-d); font-weight: 500; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--ink);
  color: var(--ivory);
}
.footer__names { font-family: var(--script); font-size: 2.4rem; margin-bottom: 0.4rem; }
.footer__date { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; opacity: 0.8; }
.footer__heart { margin-top: 1rem; font-size: 0.85rem; opacity: 0.7; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .details { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: var(--ivory);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { color: var(--ink) !important; font-size: 1rem; }
  .story, .proposal, .travel, .rsvp-form { grid-template-columns: 1fr; }
  /* On phones the columns stack, so the photo must scroll with the text
     instead of sticking over it. */
  .story__img, .proposal__img { position: static; top: auto; }
  .proposal__img { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__countdown { gap: 1.2rem; }
}
@media (max-width: 480px) {
  .details { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.2rem; }
}
