/* ============================================================
   Anna & Kieran Wedding — styles.css
   Design inspired by save-the-date: botanical, warm, autumnal
   Color palette: forest green, burnt orange, dusty rose, sage
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  min-height: 100dvh;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }
p, li, figcaption { max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::selection {
  background: rgba(212, 136, 59, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* --- DESIGN TOKENS (from save-the-date) --- */
:root {
  /* Background — soft sage/off-white like the card */
  --color-bg: #EFF2EC;
  --color-bg-warm: #F5F3EE;
  --color-surface: #FAFAF7;
  --color-surface-alt: #F0EDE6;

  /* Text — dark forest green from "SAVE the DATE" */
  --color-text: #2D3B2D;
  --color-text-muted: #5C6B58;
  --color-text-light: #8A9485;

  /* Accent — burnt orange from flowers */
  --color-accent: #D4883B;
  --color-accent-hover: #C07830;
  --color-accent-light: #E8B87D;

  /* Secondary — dusty rose/mauve from leaves */
  --color-rose: #B8897A;
  --color-rose-light: #D4B8AB;
  --color-rose-dark: #8A6558;

  /* Tertiary — warm brown from branches */
  --color-brown: #7A5C48;
  --color-brown-light: #A88B76;

  /* Borders */
  --color-border: #D4CFC5;
  --color-border-light: #E5E1D9;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45, 59, 45, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 59, 45, 0.08);
  --shadow-lg: 0 12px 40px rgba(45, 59, 45, 0.12);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Josefin Sans', 'Helvetica Neue', sans-serif;

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 900px;
  --content-wide: 1100px;
}

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


/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(239, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.nav__brand span {
  color: var(--color-accent);
  font-style: italic;
  font-weight: 400;
  margin: 0 0.3em;
}

.nav__links {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
  background: rgba(212, 136, 59, 0.08);
}

.nav__link--active {
  color: var(--color-accent);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px var(--space-8) var(--space-8);
    background: var(--color-bg-warm);
    border-left: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 105;
  }

  .nav__links.open { transform: translateX(0); }

  .nav__link {
    font-size: 0.85rem;
    padding: var(--space-4) var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(45, 59, 45, 0.3);
    z-index: 102;
  }

  .nav__overlay.visible { display: block; }
}


/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--space-6) var(--space-12);
  overflow: hidden;
  background: var(--color-bg);
}

/* Subtle botanical-inspired decorative corners (SVG-like) */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  background: radial-gradient(ellipse at top left,
    rgba(212, 136, 59, 0.12) 0%,
    rgba(184, 137, 122, 0.06) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse at bottom right,
    rgba(212, 136, 59, 0.08) 0%,
    rgba(184, 137, 122, 0.04) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero__names {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1rem + 5vw, 5rem);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero__ampersand {
  display: inline-block;
  font-style: italic;
  font-weight: 300;
  color: var(--color-accent);
  margin: 0 0.15em;
}

.hero__date {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 0.6rem + 0.5vw, 1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.hero__venue {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.8rem + 0.5vw, 1.25rem);
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.hero__welcome {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.15rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto var(--space-10);
  line-height: 1.8;
  text-align: center;
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--color-accent-light);
  margin: 0 auto var(--space-8);
}

/* Countdown */
.countdown {
  display: flex;
  gap: clamp(var(--space-4), 3vw, var(--space-8));
  justify-content: center;
  margin-bottom: var(--space-10);
}

.countdown__block {
  text-align: center;
}

.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1;
  display: block;
  min-width: 2.5ch;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: var(--space-2);
  display: block;
}

.countdown__separator {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  color: var(--color-accent-light);
  align-self: flex-start;
  margin-top: 0.2em;
}


/* CTA Button */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

.btn--filled {
  background: var(--color-accent);
  color: var(--color-surface);
}

.btn--filled:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}


/* --- PHOTO PLACEHOLDER --- */
.photo-section {
  padding: var(--space-16) var(--space-6);
  background: var(--color-bg);
}

.photo-placeholder {
  max-width: var(--content-default);
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  background: var(--color-surface-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.photo-placeholder--portrait {
  max-width: 500px;
  aspect-ratio: 4 / 5;
}


/* --- SECTION SHARED STYLES --- */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}

.section--alt {
  background: var(--color-bg-warm);
}

.section__header {
  text-align: center;
  max-width: var(--content-narrow);
  margin: 0 auto var(--space-12);
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  max-width: none;
}

.section__divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent-light);
  margin: var(--space-6) auto 0;
}

.container {
  max-width: var(--content-default);
  margin: 0 auto;
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--wide {
  max-width: var(--content-wide);
}


/* --- RSVP SECTION --- */
.rsvp-form {
  max-width: 540px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.form-group label .required {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 136, 59, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
  font-style: italic;
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235C6B58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-note {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: var(--space-1);
}

.form-message {
  text-align: center;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  margin-top: var(--space-6);
  font-family: var(--font-serif);
  font-size: 1rem;
  display: none;
}

.form-message--success {
  display: block;
  background: rgba(67, 122, 34, 0.08);
  color: #3D6B22;
  border: 1px solid rgba(67, 122, 34, 0.2);
}

.form-message--error {
  display: block;
  background: rgba(161, 53, 68, 0.08);
  color: #8B3040;
  border: 1px solid rgba(161, 53, 68, 0.2);
}

.form-message--info {
  display: block;
  background: rgba(212, 136, 59, 0.08);
  color: var(--color-brown);
  border: 1px solid rgba(212, 136, 59, 0.2);
}

.form-input--error {
  border-color: #A13544;
}

/* Split row for song choice fields */
.form-group--split {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-group__half {
  flex: 1;
}

.form-group__half label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

@media (max-width: 480px) {
  .form-group--split {
    flex-direction: column;
    gap: var(--space-4);
  }
}

.btn--submit {
  width: 100%;
  margin-top: var(--space-4);
}

.btn--submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* --- LOCATION SECTION --- */
.venue-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  text-align: center;
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-sm);
}

.venue-card__name {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.venue-card__address {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: none;
}

.venue-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.venue-card__link:hover {
  color: var(--color-accent-hover);
}

.venue-card__link svg {
  width: 14px;
  height: 14px;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-10);
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.info-card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.info-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.info-card__text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* EDITABLE marker for placeholder content */
.info-card__text .editable {
  /* This class marks text that should be replaced with real content */
  border-bottom: 1px dashed var(--color-accent-light);
}


/* --- SCHEDULE SECTION --- */
.timeline {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-0.5px);
  }
}

.timeline__item {
  position: relative;
  padding-left: 52px;
  padding-bottom: var(--space-8);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Timeline dot */
.timeline__item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: var(--color-bg);
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline {
    max-width: 700px;
  }

  .timeline__item {
    padding-left: 0;
    padding-right: 0;
    width: 50%;
    padding-bottom: var(--space-10);
  }

  .timeline__item:nth-child(odd) {
    margin-left: 50%;
    padding-left: var(--space-10);
    text-align: left;
  }

  .timeline__item:nth-child(even) {
    margin-right: 50%;
    padding-right: var(--space-10);
    text-align: right;
  }

  .timeline__item::before {
    left: auto;
    top: 6px;
  }

  .timeline__item:nth-child(odd)::before {
    left: -7px;
  }

  .timeline__item:nth-child(even)::before {
    right: -7px;
    left: auto;
  }
}

.timeline__time {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-1);
}

.timeline__event {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-text);
}


/* --- FAQ SECTION --- */
.faq-list {
  max-width: 650px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
  background: none;
  border: none;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--color-text-light);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.faq-item.active .faq-question__icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-5);
}

.faq-answer__text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 580px;
}

.faq-email-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(212, 136, 59, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.faq-email-link:hover {
  color: var(--color-accent-hover);
  text-decoration-color: var(--color-accent-hover);
}


/* --- FOOTER --- */
.footer {
  background: var(--color-text);
  color: var(--color-bg);
  text-align: center;
  padding: var(--space-12) var(--space-6) var(--space-8);
}

.footer__names {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
  font-weight: 300;
  margin-bottom: var(--space-3);
  max-width: none;
}

.footer__names span {
  font-style: italic;
  color: var(--color-accent-light);
}

.footer__date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 242, 236, 0.5);
  margin-bottom: var(--space-8);
  max-width: none;
}

.footer__divider {
  width: 40px;
  height: 1px;
  background: rgba(239, 242, 236, 0.2);
  margin: 0 auto var(--space-6);
}

.footer__credit {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(239, 242, 236, 0.35);
  max-width: none;
}

.footer__credit a {
  color: rgba(239, 242, 236, 0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.footer__credit a:hover {
  color: rgba(239, 242, 236, 0.8);
}


/* --- SCROLL ANIMATIONS --- */

/* Base reveal — fade up */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children — each child animates with increasing delay */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 360ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 480ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 600ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 720ms; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 840ms; }
.reveal-stagger.visible > *:nth-child(9) { transition-delay: 960ms; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Fade in from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up gently */
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hero-specific entrance — elegant cascading fade with generous rise */
.hero__eyebrow,
.hero__names,
.hero__date,
.hero__venue,
.hero__divider,
.hero__welcome,
.countdown,
.hero .btn {
  opacity: 0;
  transform: translateY(40px);
  animation: heroEntrance 1.2s var(--ease-out) forwards;
}

.hero__eyebrow    { animation-delay: 0.2s; }
.hero__names      { animation-delay: 0.45s; }
.hero__date       { animation-delay: 0.7s; }
.hero__venue      { animation-delay: 0.85s; }
.hero__divider    { animation-delay: 1.0s; }
.hero__welcome    { animation-delay: 1.2s; }
.countdown        { animation-delay: 1.5s; }
.hero .btn        { animation-delay: 1.8s; }

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Divider grow animation */
.section__divider {
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out) 0.3s;
}

.reveal.visible .section__divider,
.reveal.visible ~ .section__divider {
  transform: scaleX(1);
}

/* Make section headers animate their divider when parent is visible */
.section__header.visible .section__divider {
  transform: scaleX(1);
}

/* Timeline items stagger on scroll */
.timeline__item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out);
}

.timeline.visible .timeline__item:nth-child(1) { transition-delay: 0ms; }
.timeline.visible .timeline__item:nth-child(2) { transition-delay: 150ms; }
.timeline.visible .timeline__item:nth-child(3) { transition-delay: 300ms; }
.timeline.visible .timeline__item:nth-child(4) { transition-delay: 450ms; }
.timeline.visible .timeline__item:nth-child(5) { transition-delay: 600ms; }
.timeline.visible .timeline__item:nth-child(6) { transition-delay: 750ms; }
.timeline.visible .timeline__item:nth-child(7) { transition-delay: 900ms; }
.timeline.visible .timeline__item:nth-child(8) { transition-delay: 1050ms; }
.timeline.visible .timeline__item:nth-child(9) { transition-delay: 1200ms; }

.timeline.visible .timeline__item {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline line draw effect */
.timeline::before {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.5s var(--ease-out) 0.2s;
}

.timeline.visible::before {
  transform: scaleY(1);
}

/* FAQ items stagger */
.faq-list.visible .faq-item {
  opacity: 0;
  transform: translateY(30px);
  animation: faqFadeIn 0.8s var(--ease-out) forwards;
}

.faq-list.visible .faq-item:nth-child(1) { animation-delay: 0ms; }
.faq-list.visible .faq-item:nth-child(2) { animation-delay: 80ms; }
.faq-list.visible .faq-item:nth-child(3) { animation-delay: 160ms; }
.faq-list.visible .faq-item:nth-child(4) { animation-delay: 180ms; }
.faq-list.visible .faq-item:nth-child(5) { animation-delay: 240ms; }
.faq-list.visible .faq-item:nth-child(6) { animation-delay: 300ms; }
.faq-list.visible .faq-item:nth-child(7) { animation-delay: 360ms; }
.faq-list.visible .faq-item:nth-child(8) { animation-delay: 420ms; }
.faq-list.visible .faq-item:nth-child(9) { animation-delay: 480ms; }
.faq-list.visible .faq-item:nth-child(10) { animation-delay: 540ms; }
.faq-list.visible .faq-item:nth-child(11) { animation-delay: 600ms; }

@keyframes faqFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle parallax on hero decorative corners */
.hero::before,
.hero::after {
  transition: transform 0.3s ease-out;
}

/* Smooth card hover lifts */
.info-card {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Hotel card hover */
.hotel-card {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Venue card subtle float */
.venue-card {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.venue-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Countdown number pulse on change */
.countdown__number {
  transition: transform 0.3s var(--ease-out);
}

.countdown__number.tick {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero__eyebrow,
  .hero__names,
  .hero__date,
  .hero__venue,
  .hero__divider,
  .hero__welcome,
  .countdown,
  .hero .btn { opacity: 1; transform: none; animation: none; }
  .timeline__item { opacity: 1; transform: none; }
  .timeline::before { transform: scaleY(1); }
  .section__divider { transform: scaleX(1); }
  .faq-list .faq-item { opacity: 1; transform: none; animation: none; }
}


/* --- RESPONSIVE REFINEMENTS --- */
@media (max-width: 480px) {
  .countdown {
    gap: var(--space-3);
  }

  .countdown__separator {
    display: none;
  }

  .hero__names {
    font-size: clamp(2rem, 0.8rem + 5vw, 3.5rem);
  }

  .info-grid {
    gap: var(--space-4);
  }

  .info-card {
    padding: var(--space-6);
  }
}

@media (min-width: 769px) {
  .nav__inner {
    height: 72px;
  }

  .nav__link {
    font-size: 0.68rem;
    padding: var(--space-2) var(--space-4);
  }

  .hero {
    padding-top: 120px;
  }
}


/* --- SECOND PHOTO AREA (within a section) --- */
.feature-photo {
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-photo img {
  width: 100%;
  height: auto;
  display: block;
}


/* --- HOTEL CARDS --- */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.hotel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-6) var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.hotel-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.hotel-card__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

.hotel-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  background: rgba(212, 136, 59, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.hotel-card__rating svg {
  width: 11px;
  height: 11px;
}

.hotel-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}

.hotel-card__tag {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hotel-card__tag svg {
  width: 12px;
  height: 12px;
  color: var(--color-rose);
}

.hotel-card__desc {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: var(--space-4);
}

.hotel-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-light);
}

.hotel-card__price {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hotel-card__price strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0;
  text-transform: none;
}

.hotel-card__link {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.hotel-card__link:hover {
  color: var(--color-accent-hover);
}

.hotel-card__link svg {
  width: 12px;
  height: 12px;
}

.hotels-note {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-top: var(--space-8);
  max-width: none;
}


/* --- SMOOTH SCROLL OFFSET for fixed nav --- */
section[id] {
  scroll-margin-top: 80px;
}
