/* ============================================================
   MONIQUE'S WEDDING WEBSITE — STYLE.CSS
   Palette: Pastel Pink #F8C8D4 · White #FFFFFF · Sage Green #B2C4A8
   Fonts: Cormorant Garamond (headings) · Lato (body)
   Designed for elegance, readability, and older guest accessibility.
   ============================================================ */

/* ── CSS Custom Properties ───────────────────────────────────── */
:root {
  /* Brand Colors */
  --pink:         #F8C8D4;
  --pink-deep:    #EBA8B8;
  --pink-light:   #FCE8ED;
  --sage:         #B2C4A8;
  --sage-deep:    #8FA682;
  --sage-light:   #D6E5CF;
  --white:        #FFFFFF;
  --cream:        #FDF8F5;
  --warm-gray:    #F5F0EB;

  /* Text */
  --text-dark:    #2C2416;
  --text-mid:     #5A4E42;
  --text-light:   #8A7E74;
  --text-link:    #7A9C70;

  /* Spacing */
  --section-pad:  5rem 1.5rem;
  --section-pad-sm: 3.5rem 1.25rem;

  /* Typography */
  --font-serif:   'Cormorant Garamond', 'Georgia', serif;
  --font-sans:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Effects */
  --shadow-card:  0 4px 24px rgba(44, 36, 22, 0.08);
  --shadow-soft:  0 2px 12px rgba(44, 36, 22, 0.06);
  --radius-card:  12px;
  --transition:   0.25s ease;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px; /* Base size — slightly larger for older guest readability */
}

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

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

a {
  color: var(--text-link);
  text-decoration: underline;
  transition: color var(--transition);
}

a:hover, a:focus {
  color: var(--sage-deep);
}

/* Focus outline for accessibility */
:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}

p {
  margin-bottom: 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

code {
  font-family: 'Courier New', monospace;
  background: var(--warm-gray);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text-mid);
}

/* ── Layout Helpers ───────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}

.btn-primary {
  background: var(--pink-deep);
  color: var(--white);
  border-color: var(--pink-deep);
}

.btn-primary:hover, .btn-primary:focus {
  background: #d4899e;
  border-color: #d4899e;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 168, 184, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
}

.btn-outline:hover, .btn-outline:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Text Link ────────────────────────────────────────────────── */
.text-link {
  color: var(--text-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--sage-deep);
}

/* ── Section Common ───────────────────────────────────────────── */
.section {
  padding: var(--section-pad);
}

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

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-divider {
  text-align: center;
  color: var(--pink-deep);
  font-size: 1.2rem;
  margin: 0.75rem 0 2rem;
  letter-spacing: 0.5em;
}

.section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* ── NAVIGATION ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 1.5rem;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(44,36,22,0.08);
  padding: 0.6rem 1.5rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-monogram {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color var(--transition);
  font-style: italic;
}

#navbar.scrolled .nav-monogram {
  color: var(--text-dark);
}

.nav-partner {
  color: var(--pink-deep);
}

#navbar.scrolled .nav-partner {
  color: var(--pink-deep);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}

#navbar.scrolled .nav-links a {
  color: var(--text-mid);
}

.nav-links a:hover,
#navbar.scrolled .nav-links a:hover {
  color: var(--pink-deep);
}

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

#navbar.scrolled .nav-toggle span {
  background: var(--text-dark);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5.5rem;
  /* ── HERO BACKGROUND IMAGE ──────────────────────────────────
     To add your photo:
     1. Place your image as "images/hero-bg.jpg" in the site folder
     2. Uncomment the background-image line below
     3. The gradient remains as a fallback / overlay tint
     ──────────────────────────────────────────────────────── */
  /* background-image: url('images/hero-bg.jpg'); */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #b89aac; /* Fallback while image loads */
  overflow: visible;
}

/* Soft overlay — provides tint over a background photo for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(180,140,160,0.7) 0%, rgba(140,158,140,0.65) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(248,200,212,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(178,196,168,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-pre {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-ampersand {
  font-size: 0.75em;
  color: rgba(255,255,255,0.75);
  display: inline;
  margin: 0 0.15em;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.divider-line {
  display: block;
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.5);
}

.divider-icon {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-style: italic;
  color: rgba(255,255,255,0.92);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.hero-year {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.hero-location {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
}

/* ── COUNTDOWN TIMER ──────────────────────────────────────── */
.countdown {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 0.9rem 0.6rem 0.7rem;
  min-width: 72px;
  transition: transform var(--transition);
}

.countdown-box:hover {
  transform: translateY(-2px);
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.15);
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 0.35rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; /* For calendar dropdown positioning */
}

/* ── Calendar Dropdown ────────────────────────────────────────── */
.calendar-dropdown {
  position: relative;
}

.calendar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-arrow {
  font-size: 0.7em;
  transition: transform 0.2s ease;
}

.calendar-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.calendar-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  min-width: 230px;
  padding: 0.4rem;
  z-index: 20;
  animation: fadeIn 0.2s ease;
}

.calendar-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.calendar-option:hover,
.calendar-option:focus {
  background: var(--pink-light);
  color: var(--text-dark);
}

.cal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--warm-gray);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-mid);
  flex-shrink: 0;
}

/* ── Scroll Hint ──────────────────────────────────────────────── */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  z-index: 2;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── EVENT SECTION ────────────────────────────────────────────── */
.section-event {
  background: var(--white);
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.event-card {
  background: var(--cream);
  border: 1px solid var(--pink-light);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44,36,22,0.12);
}

.event-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.event-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.event-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Map */
.map-wrapper {
  text-align: center;
}

.map-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1rem;
}

.map-placeholder {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 2px dashed var(--sage);
  background: var(--sage-light);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-inner {
  padding: 2.5rem;
  text-align: center;
  color: var(--text-mid);
}

.map-pin {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.map-placeholder-inner p {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.map-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* Actual map iframe (when configured) */
.map-iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius-card);
  display: block;
}

/* Smart Directions Buttons (platform-aware — populated by script.js) */
.map-directions-links {
  margin-top: 1.25rem;
  text-align: center;
}

.directions-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--text-mid);
  background: var(--warm-gray);
  border: 1px solid rgba(0,0,0,0.06);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.directions-btn:hover,
.directions-btn:focus {
  background: var(--sage-light);
  color: var(--text-dark);
  box-shadow: var(--shadow-soft);
}

.directions-btn-primary {
  background: var(--sage);
  color: var(--white);
  font-weight: 700;
}

.directions-btn-primary:hover,
.directions-btn-primary:focus {
  background: var(--sage-deep);
  color: var(--white);
}

.dir-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── ATTIRE SECTION ───────────────────────────────────────────── */
.attire-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}

.attire-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.attire-card-full {
  grid-column: 1 / -1;
}

.attire-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.attire-card ul {
  padding-left: 1.25rem;
  color: var(--text-mid);
}

.attire-card li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.attire-card p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.7;
}

.color-swatches {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.swatch-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  position: relative;
}

/* X mark to indicate "avoid" */
.swatch-avoid .swatch-circle::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: rgba(90,78,66,0.7);
  line-height: 1;
  display: flex;
}

.swatch em {
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
}

/* ── GALLERY SECTION ──────────────────────────────────────────── */
.section-gallery {
  background: var(--warm-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 36px rgba(44,36,22,0.15);
}

.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

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

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--pink-light), var(--sage-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.5;
}

.gallery-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.gallery-placeholder em {
  color: var(--text-light);
  font-size: 0.75rem;
}

.gallery-caption {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
}

/* ── RSVP SECTION — Custom Form ───────────────────────────────── */
.section-rsvp {
  background: var(--warm-gray);
}

.rsvp-form-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.rsvp-form {
  background: var(--white);
  border: 1px solid var(--pink-light);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  border: none;
  padding: 0;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.required {
  color: var(--pink-deep);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 2px solid #e0d8d0;
  border-radius: 8px;
  outline: none;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px rgba(235,168,184,0.2);
}

.form-input::placeholder {
  color: #c4bdb6;
}

.form-input.input-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

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

/* Radio buttons — custom styled */
.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-fieldset legend {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: background var(--transition);
  font-size: 1rem;
}

.form-radio:hover {
  background: var(--pink-light);
}

.form-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}

.radio-custom {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid #d0c8c0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}

.radio-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-deep);
  transform: scale(0);
  transition: transform 0.15s ease;
}

.form-radio input[type="radio"]:checked ~ .radio-custom {
  border-color: var(--pink-deep);
}

.form-radio input[type="radio"]:checked ~ .radio-custom::after {
  transform: scale(1);
}

.form-radio input[type="radio"]:focus-visible ~ .radio-custom {
  outline: 3px solid var(--pink-deep);
  outline-offset: 2px;
}

.radio-text {
  color: var(--text-mid);
  font-size: 1rem;
}

/* Honeypot — hidden from humans, visible to bots */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Submit button — large */
.btn-lg {
  padding: 0.9rem 3rem;
  font-size: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-actions {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Cloudflare Turnstile widget */
.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* RSVP status messages */
.rsvp-status {
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  min-height: 0;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.rsvp-status:empty {
  display: none;
}

.rsvp-status.status-success {
  background: var(--sage-light);
  color: #3d6b35;
  border: 1px solid var(--sage);
}

.rsvp-status.status-error {
  background: #fde8e8;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}

.rsvp-status.status-info {
  background: var(--pink-light);
  color: var(--text-mid);
  border: 1px solid var(--pink);
}

.rsvp-help {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 1.25rem;
}

/* ── FAQ SECTION ──────────────────────────────────────────────── */
.section-faq {
  background: var(--cream);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background var(--transition), color var(--transition);
  line-height: 1.4;
}

.faq-question:hover {
  background: var(--pink-light);
  color: var(--text-dark);
}

.faq-question[aria-expanded="true"] {
  background: var(--pink-light);
  color: var(--text-dark);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--pink-deep);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.75;
  border-top: 1px solid var(--pink-light);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 400px; }
}

/* ── CONTACT SECTION ──────────────────────────────────────────── */
.section-contact {
  background: var(--white);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: var(--cream);
  border: 1px solid var(--pink-light);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  max-width: 600px;
  margin: 0 auto;
}

.contact-avatar {
  width: 72px;
  height: 72px;
  min-width: 72px;
  background: linear-gradient(135deg, var(--pink), var(--sage));
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.contact-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
}

.contact-role {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1.25rem;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.contact-btn-text {
  background: var(--sage-light);
  color: var(--text-mid);
  border: 1px solid var(--sage);
}

.contact-btn-text:hover {
  background: var(--sage);
  color: var(--text-dark);
}

.contact-btn-email {
  background: var(--pink-light);
  color: var(--text-mid);
  border: 1px solid var(--pink);
}

.contact-btn-email:hover {
  background: var(--pink);
  color: var(--text-dark);
}

.contact-note {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-names {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.25rem;
  font-weight: 300;
}

.footer-date {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.footer-divider {
  font-size: 1rem;
  color: var(--pink-deep);
  letter-spacing: 0.5em;
  margin: 0.75rem 0;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.footer-link {
  color: var(--sage-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

/* ── UTILITY: Hidden / Visible ────────────────────────────────── */
[hidden] {
  display: none !important;
}

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

/* ── RESPONSIVE ───────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 17px;
  }

  .section {
    padding: var(--section-pad-sm);
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px rgba(44,36,22,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: var(--text-mid) !important;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--warm-gray);
  }

  /* Hero */
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* Countdown */
  .countdown {
    gap: 0.5rem;
  }

  .countdown-box {
    min-width: 60px;
    padding: 0.7rem 0.4rem 0.5rem;
  }

  .countdown-value {
    font-size: 1.8rem;
  }

  /* Gallery — force single column for wide items */
  .gallery-item-wide {
    grid-column: span 1;
  }

  /* Contact card */
  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-methods {
    justify-content: center;
  }

  /* Attire — stack to single column on tablet/mobile */
  .attire-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .attire-card-full {
    grid-column: 1 / -1;
  }

  /* Form */
  .rsvp-form {
    padding: 2rem 1.25rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .hero-names {
    font-size: 3.2rem;
  }

  /* Countdown — tighter on small screens */
  .countdown {
    gap: 0.35rem;
  }

  .countdown-box {
    min-width: 54px;
    padding: 0.6rem 0.3rem 0.45rem;
    border-radius: 8px;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.5rem;
  }

  /* Gallery single column */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item-wide {
    grid-column: span 1;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
  }

  .event-cards {
    grid-template-columns: 1fr;
  }

  .color-swatches {
    gap: 1.25rem;
  }
}

/* ── Print Styles (clean invitation printout) ─────────────────── */
@media print {
  #navbar, .hero-scroll-hint, .hero-cta-group, .countdown,
  .rsvp-form-wrapper, .map-placeholder, .section-gallery {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero {
    background: none;
    color: #000;
    min-height: auto;
    padding: 2rem;
    border-bottom: 2px solid #ccc;
  }

  .hero-names, .hero-date, .hero-year, .hero-location,
  .hero-pre {
    color: #000;
  }
}
