/* ============================================================
   RYAN & [PARTNER] WEDDING SITE
   Design by Sam — Elegant, Glasgow University-inspired
   ============================================================ */

/* --- Google Fonts are imported via HTML link tag --- */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Colours */
  --color-ivory:        #FAF8F3;
  --color-ivory-dark:   #F0EDE4;
  --color-green:        #2C4A3E;
  --color-green-light:  #3D6357;
  --color-green-dark:   #1C3028;
  --color-gold:         #B8963E;
  --color-gold-light:   #D4AE5A;
  --color-blush:        #E8D5CC;
  --color-blush-dark:   #D4B8AC;
  --color-text:         #2A2A2A;
  --color-text-muted:   #6B6458;
  --color-white:        #FFFFFF;
  --color-overlay:      rgba(20, 30, 25, 0.58);

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', system-ui, sans-serif;

  /* Type scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.375rem;
  --text-2xl:   1.75rem;
  --text-3xl:   2.25rem;
  --text-4xl:   3rem;
  --text-5xl:   4rem;
  --text-hero:  5.5rem;

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

  /* Borders & Shadows */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(44,74,62,0.08);
  --shadow-md:  0 8px 32px rgba(44,74,62,0.12);
  --shadow-lg:  0 20px 60px rgba(44,74,62,0.16);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   600ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================================
   3. ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-green);
  color: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

*:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: var(--space-12);
  }
}

/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */
.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--text-3xl);
  color: var(--color-green);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

.section-title--light {
  color: var(--color-ivory);
}

.section-subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--text-sm);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--text-4xl);
  }
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

/* Primary — green fill */
.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
  border-color: var(--color-green);
}
.btn--primary:hover {
  background: var(--color-green-light);
  border-color: var(--color-green-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Secondary — outlined green */
.btn--secondary {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}
.btn--secondary:hover {
  background: var(--color-green);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Ghost — outlined white (for dark/hero backgrounds) */
.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

/* Gold accent */
.btn--gold {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn--gold:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background var(--transition-slow), box-shadow var(--transition-slow), padding var(--transition-base);
}

.nav.scrolled {
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}

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

.nav__monogram {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-white);
  transition: color var(--transition-slow);
  letter-spacing: 0.04em;
}

.nav.scrolled .nav__monogram {
  color: var(--color-green);
}

.nav__links {
  display: none;
  gap: var(--space-8);
}

.nav__links a {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-base);
}

.nav__links a:hover {
  color: var(--color-white);
}

.nav.scrolled .nav__links a {
  color: var(--color-text-muted);
}

.nav.scrolled .nav__links a:hover {
  color: var(--color-green);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-green-dark);
  overflow: hidden;
}

/* Subtle texture / gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(184,150,62,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(44,74,62,0.8) 0%, transparent 70%),
    linear-gradient(160deg, #1C3028 0%, #2C4A3E 50%, #1a2e24 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-24) var(--space-6) var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.hero__intro {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold-light);
}

.hero__names {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 10vw, var(--text-hero));
  line-height: 1.05;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.hero__ampersand {
  font-style: italic;
  color: var(--color-gold-light);
  font-size: 0.75em;
}

.hero__date {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-ivory-dark);
  letter-spacing: 0.04em;
}

.hero__location {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-cue span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  margin-inline: auto;
  animation: scrollCue 2s ease-in-out infinite;
}

@keyframes scrollCue {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   9. WELCOME MESSAGE
   ============================================================ */
.welcome-message {
  padding: var(--space-24) 0;
  background: var(--color-ivory);
}

.welcome-message__inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.welcome-message__text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.welcome-message__signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-green);
}

/* ============================================================
   10. KEY DATES
   ============================================================ */
.dates {
  padding: var(--space-24) 0;
  background: var(--color-ivory-dark);
  text-align: center;
}

.dates__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

@media (min-width: 480px) {
  .dates__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dates__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.date-card {
  background: var(--color-white);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.date-card .cal-trigger {
  margin-top: auto;
  padding-top: var(--space-4);
}

.date-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.date-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
}

.date-card__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.date-card__date {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-green);
  margin-bottom: var(--space-3);
}

.date-card__desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   11. ADD TO CALENDAR
   ============================================================ */

/* Wrapper — sits below the card description, centred */
.cal-trigger {
  position: relative;
  display: inline-block;
  margin-top: var(--space-6);
}

/* Ghost button — small, outlined in green, gold on hover */
.cal-trigger__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  background: transparent;
  border: 1px solid var(--color-green);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.cal-trigger__btn::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
  margin-left: var(--space-1);
}

.cal-trigger__btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.cal-trigger__btn:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(184, 150, 62, 0.06);
}

/* Dropdown list */
.cal-dropdown {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid rgba(44, 74, 62, 0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: var(--space-2) 0;
  z-index: 200;
  animation: calDropIn 0.15s ease;
}

@keyframes calDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Individual items */
.cal-dropdown__item {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text);
  padding: var(--space-3) var(--space-6);
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.cal-dropdown__item:hover,
.cal-dropdown__item:focus {
  background: var(--color-ivory-dark);
  color: var(--color-green);
  outline: none;
}

/* ============================================================
   12. VENUE
   ============================================================ */
.venue {
  padding: var(--space-24) 0;
  background: var(--color-ivory);
}

.venue__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .venue__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.venue__name {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-green);
  margin-bottom: var(--space-2);
}

.venue__address {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.venue__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.venue__desc:last-of-type {
  margin-bottom: var(--space-8);
}

.venue__image-frame {
  position: relative;
}

.venue__image-frame::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 0;
}

.venue__image-placeholder {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green) 60%, var(--color-green-light) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  letter-spacing: 0.04em;
}

.venue__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ============================================================
   12. RSVP SECTION
   ============================================================ */
.rsvp {
  padding: var(--space-24) 0;
  background: var(--color-green);
}

.rsvp__inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.rsvp__text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

.rsvp__form {
  text-align: left;
  width: 100%;
}

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

.rsvp__field--submit {
  margin-top: var(--space-8);
  text-align: center;
}

.rsvp__fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.rsvp__label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2);
}

.rsvp__input,
.rsvp__textarea {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-ivory);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.rsvp__input:focus,
.rsvp__textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184,150,62,0.2);
}

.rsvp__input--narrow {
  max-width: 120px;
}

.rsvp__textarea {
  resize: vertical;
  min-height: 80px;
}

.rsvp__radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

@media (min-width: 480px) {
  .rsvp__radio-group {
    flex-direction: row;
    gap: var(--space-8);
  }
}

.rsvp__radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}

.rsvp__radio {
  accent-color: var(--color-gold);
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- RSVP form refinements — inputs on dark background --- */

/* Soften inputs so they read as atmospheric rather than clinical against the
   deep green background. Semi-transparent white with a hairline light border. */
.rsvp__input,
.rsvp__textarea {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-ivory);
  /* Increase vertical padding for a more generous, luxurious feel */
  padding: var(--space-4) var(--space-4);
}

/* Placeholder text — legible but clearly secondary */
.rsvp__input::placeholder,
.rsvp__textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

/* On focus, shift border to gold and tighten the glow to suit dark context */
.rsvp__input:focus,
.rsvp__textarea:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 62, 0.18);
}

/* Required-field asterisk in gold — a refined signal, not a harsh red */
.rsvp__label span[aria-hidden="true"] {
  color: var(--color-gold-light);
  margin-left: var(--space-1);
}

/* Decorative gold rule between the intro text and the form */
.rsvp__form {
  border-top: 1px solid rgba(184, 150, 62, 0.3);
  padding-top: var(--space-8);
}

/* Submit button — full-width on mobile for a confident tap target;
   auto-width with generous min-width on larger screens */
.rsvp__submit {
  width: 100%;
  padding-block: var(--space-4);
  letter-spacing: 0.16em;
}

@media (min-width: 480px) {
  .rsvp__submit {
    width: auto;
    min-width: 200px;
  }
}

/* --- RSVP success message --- */
.rsvp__success {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  border-top: 1px solid rgba(184, 150, 62, 0.3);
}

.rsvp__success-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
}

.rsvp__success-text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

/* --- RSVP inline error message --- */
.rsvp__error {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-blush);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

/* ============================================================
   13. KEY CONTACT
   ============================================================ */
.contact {
  padding: var(--space-24) 0;
  background: var(--color-ivory-dark);
  text-align: center;
}

.contact__inner {
  max-width: 520px;
  margin-inline: auto;
}

/* Decorative gold rule beneath the subtitle, matching section pattern */
.contact .section-subtitle {
  margin-bottom: var(--space-8);
}

.contact .section-subtitle::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--color-gold);
  margin: var(--space-6) auto 0;
  opacity: 0.7;
}

.contact__card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-12) var(--space-8);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

/* Circular avatar */
.contact__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.contact__avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--text-2xl);
  color: var(--color-green);
  letter-spacing: 0.02em;
}

.contact__role {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.contact__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  border-top: 1px solid rgba(184, 150, 62, 0.25);
  padding-top: var(--space-6);
  margin-top: var(--space-2);
}

.contact__detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
}

.contact__detail a {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.contact__detail a:hover {
  color: var(--color-green);
}

.contact__icon {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
  background: var(--color-green-dark);
  padding: var(--space-12) 0;
  text-align: center;
}

.footer__monogram {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-gold-light);
  margin-bottom: var(--space-2);
}

.footer__date {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   15. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal,
.reveal--left,
.reveal--right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal {
  transform: translateY(28px);
}

.reveal--left {
  transform: translateX(-36px);
}

.reveal--right {
  transform: translateX(36px);
}

.reveal.is-visible,
.reveal--left.is-visible,
.reveal--right.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay utilities */
.reveal:nth-child(2), .reveal--left:nth-child(2), .reveal--right:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3), .reveal--left:nth-child(3), .reveal--right:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4), .reveal--left:nth-child(4), .reveal--right:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5), .reveal--left:nth-child(5), .reveal--right:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   16. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal--left, .reveal--right {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   17. PASSWORD GATE
   ============================================================ */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  /* Subtle texture matching the hero */
  background-image:
    radial-gradient(ellipse at 30% 40%, rgba(184,150,62,0.10) 0%, transparent 60%),
    linear-gradient(160deg, #1C3028 0%, #2C4A3E 60%, #1a2e24 100%);
}

.password-gate.is-hidden {
  display: none;
}

.password-gate__card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.password-gate__monogram {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-2xl);
  color: var(--color-gold-light);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

.password-gate__heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 7vw, var(--text-4xl));
  color: var(--color-white);
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.password-gate__subheading {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-8);
}

.password-gate__prompt {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

/* Decorative gold rule above the form */
.password-gate__form {
  border-top: 1px solid rgba(184, 150, 62, 0.3);
  padding-top: var(--space-8);
}

.password-gate__field {
  margin-bottom: var(--space-4);
  text-align: left;
}

.password-gate__label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-2);
}

.password-gate__input {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-ivory);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-4);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.password-gate__input::placeholder {
  color: rgba(255,255,255,0.3);
}

.password-gate__input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184,150,62,0.18);
}

.password-gate__error {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-blush);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
  margin-top: var(--space-2);
}

.password-gate__btn {
  width: 100%;
  padding-block: var(--space-4);
  letter-spacing: 0.16em;
  margin-top: var(--space-2);
}

@media (min-width: 480px) {
  .password-gate__btn {
    width: auto;
    min-width: 160px;
  }
}

/* ============================================================
   18. PRINT
   ============================================================ */
@media print {
  .nav, .hero__scroll-cue { display: none; }
  .hero { min-height: auto; padding: 2cm 0; background: white; }
  .hero__content { color: black; }
  body { background: white; color: black; }
}
