/* =====================================================================
   Victor & Ashley — Wedding Site Theme
   Palette: blush pink + sage green (LOCKED). Use these variables only.
   ===================================================================== */

:root {
  /* Sage greens */
  --sage-50:  #f3f6f0;
  --sage-100: #e6ece0;
  --sage-200: #cdd9c2;
  --sage-300: #b2c2a8;
  --sage-400: #9caf88;  /* primary sage */
  --sage-500: #7f9468;
  --sage-600: #6a7f54;
  --sage-700: #50633f;

  /* Blush / pink */
  --blush-50:  #fdf3f4;
  --blush-100: #fce4e8;
  --blush-200: #f8cdd4;
  --blush-300: #f1b0bb;
  --blush-400: #e79aa8;  /* primary blush */
  --blush-500: #d9879a;

  /* Neutrals */
  --ivory: #faf7f2;
  --cream: #f5efe6;
  --ink:   #3d3a36;
  --muted: #6f6a62;
  --line:  #e7e0d6;
  --white: #ffffff;
  --gold:  #c9a96a;   /* subtle metallic accent — use sparingly */

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 40px rgba(61, 58, 54, 0.10);
  --shadow-sm: 0 6px 18px rgba(61, 58, 54, 0.07);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: 0.5px;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

p { margin: 0 0 1rem; color: var(--muted); }
a { color: var(--sage-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--sage-700); }

img { max-width: 100%; display: block; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--tint { background: var(--cream); }
.section--blush { background: var(--blush-50); }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage-500);
  margin-bottom: 0.9rem;
}

.section-title { margin-bottom: 0.4rem; }
.section-intro { max-width: 60ch; margin: 0 auto 2.5rem; color: var(--muted); }

/* Decorative divider — sage sprig flanked by rule */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  margin: 1rem auto 2.2rem; color: var(--sage-400); max-width: 220px;
}
.divider::before, .divider::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--sage-300));
}
.divider::after { background: linear-gradient(90deg, var(--sage-300), transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.8rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease); text-decoration: none;
}
.btn--primary { background: var(--sage-400); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sage-500); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--sage-600); border-color: var(--sage-300); }
.btn--ghost:hover { background: var(--sage-50); border-color: var(--sage-400); }
.btn--blush { background: var(--blush-300); color: var(--white); }
.btn--blush:hover { background: var(--blush-400); color: var(--white); transform: translateY(-2px); }

/* ---------- Card ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.nav__brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: 1px; }
.nav__links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-size: 0.92rem; font-weight: 500; }
.nav__links a:hover { color: var(--sage-600); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease);
  }
  .nav__links.is-open { max-height: 24rem; }
  .nav__links a { display: block; padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(4rem, 12vw, 8rem) 0;
  background:
    radial-gradient(120% 80% at 15% 0%, var(--blush-100), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, var(--sage-100), transparent 55%),
    var(--ivory);
}
.hero__names { margin: 0.5rem 0 0.2rem; }
.hero__amp { color: var(--blush-400); font-style: italic; }
.hero__sub { font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-600); }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: clamp(0.6rem, 3vw, 1.8rem); justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.countdown__unit { min-width: 78px; }
.countdown__num { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--ink); line-height: 1; }
.countdown__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Timeline (story + itinerary) ---------- */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--sage-300), var(--blush-200)); }
.timeline__item { position: relative; padding: 0 0 2rem 1.6rem; }
.timeline__item::before { content: ""; position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--sage-400); }
.timeline__time { font-family: var(--font-display); font-size: 1.25rem; color: var(--sage-600); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* ---------- Forms (RSVP) ---------- */
.form { max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; font-family: var(--font-body); font-size: 1rem;
  color: var(--ink); background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-400); box-shadow: 0 0 0 3px var(--sage-100);
}
.radio-row { display: flex; gap: 1.5rem; }
.radio-row label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.form__success { text-align: center; padding: 2rem; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.2rem 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__icon { color: var(--sage-500); font-size: 1.4rem; transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq__a > div { padding: 0 0 1.2rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--sage-700); color: var(--sage-100); text-align: center; padding: 3.5rem 0 2.5rem; }
.footer__names { font-family: var(--font-display); font-size: 2rem; color: var(--white); }
.footer__hash { color: var(--blush-200); letter-spacing: 0.1em; }
.footer a { color: var(--blush-100); }
.footer p { color: var(--sage-200); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================================
   Extensions (on-palette only — no new colors, no variable changes)
   ===================================================================== */

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 0.75rem; top: -3.5rem; z-index: 100;
  background: var(--sage-600); color: var(--white);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.75rem; color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Visible focus for keyboard users (forms keep their own focus styles). */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.faq__q:focus-visible {
  outline: 2px solid var(--sage-500);
  outline-offset: 3px;
}

/* ---------- Nav toggle icon ---------- */
.nav__toggle svg { width: 26px; height: 26px; display: block; color: var(--ink); }

/* ---------- Hero florals ---------- */
.hero__florals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__sprig { position: absolute; width: clamp(120px, 22vw, 240px); height: auto; }
.hero__sprig--tl { top: -16px; left: -24px; transform: rotate(-6deg); }
.hero__sprig--br { right: -24px; bottom: -28px; transform: rotate(174deg); }
@media (max-width: 600px) {
  .hero__sprig { width: 130px; opacity: 0.7; }
}

/* ---------- Countdown unit polish ---------- */
.countdown__unit {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.7rem;
}
.countdown__done { margin-top: 2rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--sage-600); }

/* ---------- Tag / placeholder pill ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage-600); background: var(--sage-50);
  border: 1px solid var(--sage-200); border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.tag--blush { color: var(--blush-500); background: var(--blush-50); border-color: var(--blush-200); }

/* ---------- Address ---------- */
.addr { font-style: normal; color: var(--muted); margin: 0.6rem 0 1.25rem; }

/* ---------- RSVP success icon ---------- */
.form__success { max-width: 560px; margin: 0 auto; }
.success-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--sage-100); color: var(--sage-600);
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 700;
}

/* ---------- Footer extras ---------- */
.footer__meta { margin-top: 1.25rem; font-size: 0.85rem; }
.footer__top { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
