/* ==========================================================================
   Butler County GOP — Red, White and Runway
   Variant 3: Gold Foil Gala — near-black navy, deep foil gold, crimson, ivory.
   High-contrast serif display type, hairline gold rules, sunburst motifs.
   ========================================================================== */

:root {
  /* Color tokens */
  --navy-950: #030710;
  --navy-900: #050b18;
  --navy-800: #0d1729;
  --navy-700: #172238;
  --gold-100: #fbe9a1;
  --gold-300: #e9cf7a;
  --gold-500: #d4af37;
  --gold-700: #8c6d1a;
  --red-600: #9c1030;
  --red-700: #780c25;
  --ivory-50: #f5efe0;
  --ivory-100: #eae1c8;
  --ink-on-ivory: #14100a;

  --color-bg: var(--navy-900);
  --color-panel: var(--navy-800);
  --color-text: var(--ivory-50);
  --color-text-muted: #bcb4a4;
  --color-accent: var(--red-600);
  --color-focus: #ffd166;

  --gold-gradient: linear-gradient(115deg, var(--gold-700) 0%, var(--gold-500) 30%, var(--gold-100) 50%, var(--gold-500) 70%, var(--gold-700) 100%);

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

  /* Layout */
  --content-max: 560px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-md: 0.25rem;
  --radius-lg: 0.25rem;
  --radius-full: 999px;

  --shadow-card: 0 12px 32px -12px rgba(3, 7, 16, 0.65);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

/* ---------- Utility ---------- */
.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;
}

.skip-link {
  position: absolute; top: -100%; left: var(--space-4); z-index: 100;
  background: var(--gold-100); color: var(--ink-on-ivory);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

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

.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--space-5); }

/* ---------- Backdrop (desktop) ---------- */
body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.07), transparent 60%),
    var(--navy-950);
}

@media (min-width: 640px) {
  .page { max-width: var(--content-max); margin-inline: auto; box-shadow: 0 0 140px rgba(0, 0, 0, 0.55); }
}

/* ---------- Section rhythm ---------- */
.section { position: relative; padding-block: var(--space-8) var(--space-7); }

.section--hero {
  display: flex; flex-direction: column;
  padding-block-start: 0; padding-block-end: var(--space-7);
  overflow: hidden;
}

.section--vip { background: var(--navy-950); border-top: 1px solid rgba(212, 175, 55, 0.22); }

.section-eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 5.5vw, 2.625rem);
  font-weight: 600; font-style: italic; color: var(--ivory-50); margin-bottom: var(--space-5);
}

/* ---------- Hero ---------- */
.hero-graphic-heading { margin: 0; line-height: 0; }
.hero-graphic { display: block; width: 100%; height: auto; }

.hero-main { padding-inline: var(--space-5); padding-block: var(--space-5) var(--space-4); }

.hero-date {
  display: flex; align-items: center; gap: var(--space-2);
  font-weight: 600; font-size: 1.0625rem; color: var(--ivory-50); font-family: var(--font-display);
}
.hero-date svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 100%; min-height: 52px; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full); font-weight: 600; font-size: 0.9375rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; text-align: center; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold-gradient); background-size: 220% 100%; color: var(--ink-on-ivory);
  box-shadow: 0 10px 26px -8px rgba(212, 175, 55, 0.45);
}
.btn-primary:hover { background-position: 100% 0; }

.btn-secondary { background: transparent; color: var(--ivory-50); border: 1px solid rgba(245, 239, 224, 0.4); }

.btn-sm { width: auto; min-height: 44px; padding: var(--space-2) var(--space-4); font-size: 0.8125rem; }

/* ---------- Info row ---------- */
.hero-info { position: relative; z-index: 2; padding: var(--space-5); background: linear-gradient(180deg, transparent, var(--navy-950) 30%); }

.info-card {
  background: var(--navy-800); border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-card);
  position: relative;
}
.info-card::before, .info-card::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--gold-500); opacity: 0.7;
}
.info-card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.info-card::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.times-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.times-list__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3);
  padding-bottom: var(--space-3); border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}
.times-list__row:last-child { border-bottom: none; padding-bottom: 0; }
.times-list__label { font-weight: 600; font-size: 0.9375rem; color: var(--ivory-50); font-family: var(--font-display); font-size: 1.0625rem; }
.times-list__value { font-size: 0.9375rem; color: var(--gold-300); font-weight: 600; white-space: nowrap; }

.venue { margin-bottom: var(--space-5); }
.venue__name { font-weight: 600; color: var(--ivory-50); margin-bottom: var(--space-1); font-family: var(--font-display); font-size: 1.125rem; }
.venue__address { font-size: 0.9375rem; color: var(--color-text-muted); font-style: normal; margin-bottom: var(--space-3); }

.link-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.icon-link {
  display: inline-flex; align-items: center; gap: var(--space-2); font-size: 0.875rem;
  font-weight: 600; color: var(--gold-300); text-decoration: none; border-bottom: 1px solid transparent;
}
.icon-link:hover { border-bottom-color: currentColor; }
.icon-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Speaker strip ---------- */
.speaker-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.speaker-chip { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2); }

.speaker-chip__photo {
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-md);
  background: var(--navy-700); border: 1px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.speaker-chip__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.speaker-chip__photo--tba svg { width: 62%; height: 62%; color: rgba(212, 175, 55, 0.4); }
.speaker-chip__title { font-size: 0.625rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; overflow-wrap: break-word; }
.speaker-chip__name { font-size: 0.75rem; font-weight: 600; color: var(--ivory-50); line-height: 1.25; overflow-wrap: break-word; }

/* ---------- Divider ---------- */
.ribbon-divider { display: flex; align-items: center; gap: var(--space-3); margin-block: var(--space-6); color: var(--gold-500); }
.ribbon-divider::before, .ribbon-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, currentColor, transparent); }

/* ---------- VIP block ---------- */
.vip-card {
  background-image:
    linear-gradient(160deg, rgba(5, 11, 24, 0.82), rgba(5, 11, 24, 0.9)),
    url("../assets/img/vip-wine-tasting.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 88%;
  background-color: var(--navy-900);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-card); margin-bottom: var(--space-7); position: relative;
}
.vip-card::before, .vip-card::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold-500); opacity: 0.7;
}
.vip-card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.vip-card::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.vip-card__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--gold-gradient); color: var(--ink-on-ivory); font-weight: 700; font-size: 0.6875rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full); margin-bottom: var(--space-4);
}

.vip-card__title {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; font-style: italic;
  margin-bottom: var(--space-4); color: var(--ivory-50);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.vip-features { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-5); }
.vip-feature { display: flex; gap: var(--space-3); align-items: flex-start; }
.vip-feature__icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(3, 7, 16, 0.6); border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex; align-items: center; justify-content: center; color: var(--gold-500);
}
.vip-feature__icon svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.vip-feature__title { font-weight: 600; font-size: 1rem; color: var(--ivory-50); margin-bottom: var(--space-1); font-family: var(--font-display); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.vip-feature__desc { font-size: 0.875rem; color: var(--ivory-100); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.vip-feature__caption { font-size: 0.75rem; font-style: italic; color: var(--gold-300); margin-top: var(--space-1); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); border-top: 1px solid rgba(212, 175, 55, 0.22);
  padding: var(--space-7) var(--space-5) calc(var(--space-7) + var(--safe-bottom)); text-align: center;
}

.footer-closing {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; font-style: italic;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: var(--space-2);
}
.footer-tagline { font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: var(--space-6); letter-spacing: 0.02em; }

.footer-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.share-row { display: flex; justify-content: center; }
.share-btn {
  display: inline-flex; align-items: center; gap: var(--space-2); background: transparent;
  border: 1px solid rgba(245, 239, 224, 0.35); color: var(--ivory-50); padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full); min-height: 48px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8125rem;
}
.share-btn svg { width: 18px; height: 18px; }

.footer-meta {
  border-top: 1px solid rgba(212, 175, 55, 0.16); padding-top: var(--space-5);
  font-size: 0.8125rem; color: var(--color-text-muted); display: flex; flex-direction: column; gap: var(--space-2);
}
.footer-meta a { color: var(--gold-300); }

/* ---------- Sticky RSVP bar ---------- */
.sticky-rsvp {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  background: rgba(5, 11, 24, 0.94); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212, 175, 55, 0.32);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-bottom));
  transform: translateY(100%); transition: transform 0.25s ease;
}
.sticky-rsvp.is-visible { transform: translateY(0); }
.sticky-rsvp__label { font-size: 0.75rem; font-weight: 600; color: var(--gold-300); letter-spacing: 0.06em; text-transform: uppercase; }
.sticky-rsvp .btn { width: auto; min-height: 48px; padding-inline: var(--space-5); }

/* ---------- Entrance animation ---------- */
.js-ready .hero-animate { opacity: 0; transform: translateY(14px); animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.js-ready .hero-animate--1 { animation-delay: 0.05s; }
.js-ready .hero-animate--2 { animation-delay: 0.15s; }
.js-ready .hero-animate--3 { animation-delay: 0.25s; }
.js-ready .hero-animate--4 { animation-delay: 0.35s; }
.js-ready .hero-animate--5 { animation-delay: 0.45s; }

@keyframes hero-rise { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .js-ready .hero-animate { animation: none; opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) { .section { padding-block: var(--space-8); } }
