/* =====================================================================
   Madison Cawthorn — Victory Tour Events
   Mobile-first stylesheet
   ===================================================================== */

:root {
  --red:       #982838;
  --red-dark:  #7c1f2d;
  --blue:      #18233a;
  --blue-dark: #0f1727;
  --gold:      #ecbe51;
  --gold-dark: #d3a635;
  --paper:     #f7f4ef;
  --white:     #ffffff;
  --ink:       #1b1b1b;
  --muted:     #6b7280;

  --shadow:    0 8px 28px rgba(15, 23, 39, 0.16);
  --radius:    16px;
  --maxw:      560px;

  --font-head: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 15px 26px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-gold  { background: var(--gold); color: var(--blue-dark); box-shadow: var(--shadow); }
.btn-gold:hover  { background: var(--gold-dark); }
.btn-red   { background: var(--red); color: var(--white); }
.btn-red:hover   { background: var(--red-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-block { display: flex; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(236,190,81,0.12), transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 34px 0 40px;
  overflow: hidden;
}
.hero::before {
  /* subtle stars/stripes texture */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.hero-logo {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1.05;
  color: var(--white);
  position: relative;
}
.hero-title-flag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 4px 16px 6px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-dates {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 1.05rem;
  margin-top: 14px;
}
.hero-rule {
  width: 68px; height: 4px;
  background: var(--gold);
  border-radius: 4px;
  margin: 18px auto 0;
}

/* ---------- Photo band (Cawthorn pics) ---------- */
.photos {
  background: var(--red);
  padding: 0;
}
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--red-dark), var(--blue-dark));
  overflow: hidden;
}
.photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo:first-child img { object-position: center center; }   /* main wide photo */
.photo:not(:first-child) img { object-position: top center; } /* two photos beneath */
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-align: center;
  padding: 12px;
}
.photo-placeholder svg { width: 34px; height: 34px; opacity: 0.6; }

/* ---------- Section headers ---------- */
.section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 22px; }
.section-kicker {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.8rem;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue);
  font-size: 1.7rem;
  line-height: 1.1;
  margin-top: 4px;
}
.section-sub { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* ---------- Events carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Extra top/bottom room so the hover lift + drop shadow aren't clipped
     (overflow-x:auto makes overflow-y compute to auto, which would clip). */
  padding: 22px 20px 44px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.event-card {
  scroll-snap-align: center;
  flex: 0 0 86%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* Desktop / mouse hover: lift the card and deepen its shadow. */
@media (hover: hover) and (pointer: fine) {
  .event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(15, 23, 39, 0.34);
  }
}
.event-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue), var(--red));
  overflow: hidden;
}
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-date-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--blue-dark);
  border-radius: 12px;
  padding: 6px 10px 4px;
  text-align: center;
  font-family: var(--font-head);
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.event-date-badge .m { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.event-date-badge .d { display: block; font-size: 1.35rem; font-weight: 700; }
/* "Coming soon" placeholder badge + card */
.event-date-badge--soon { background: var(--blue); color: var(--white); }
.event-date-badge--soon .d { font-size: 1rem; letter-spacing: 0.06em; padding: 2px 2px 0; }
.event-body--soon { justify-content: center; text-align: center; }
.event-card--soon { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .event-card--soon:hover { transform: none; box-shadow: var(--shadow); }
}
.event-media-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.event-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1.15;
}
.event-loc { font-size: 0.85rem; color: var(--red); font-weight: 600; }
.event-desc { font-size: 0.92rem; color: #333; flex: 1; }
.event-cta {
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  font-size: 0.85rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.event-cta svg { width: 15px; height: 15px; }

/* dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 4px;
}
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: rgba(24,35,58,0.25); cursor: pointer; padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dots button.active { background: var(--red); transform: scale(1.25); }

.no-events {
  text-align: center; color: var(--muted);
  padding: 30px 20px; font-size: 0.95rem;
}

/* ---------- Meet Madison ---------- */
.meet {
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 48px 0 52px;
}
.meet .section-title { color: var(--white); }
.meet .section-kicker { color: var(--gold); }
.meet-tagline {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 10px auto 26px;
  max-width: 30ch;
  color: rgba(255,255,255,0.92);
}
.meet-tagline strong { color: var(--gold); }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 26px 20px 34px;
  font-size: 0.78rem;
  line-height: 1.6;
}
.footer .footer-rule { width: 44px; height: 3px; background: var(--gold); border-radius: 3px; margin: 0 auto 16px; }
.footer-disclaimer {
  margin: 22px auto 0;
  max-width: 360px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  padding: 9px 16px;
  text-align: center;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.38);
}

/* ---------- Event detail page ---------- */
.detail-hero {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--blue), var(--red));
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-back {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15,23,39,0.7);
  color: #fff; text-decoration: none;
  padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-head); font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.detail-body { padding: 28px 24px 12px; }
.detail-badge {
  display: inline-block;
  background: var(--gold); color: var(--blue-dark);
  font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.8rem; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.detail-title {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  color: var(--blue); font-size: 2rem; line-height: 1.05; letter-spacing: 0.02em;
}
.detail-venue {
  margin-top: 6px;
  font-family: var(--font-head); font-weight: 600;
  color: var(--red); font-size: 1.1rem; letter-spacing: 0.02em;
}
.detail-meta { margin: 22px 0 18px; display: flex; flex-direction: column; gap: 12px; }
.detail-meta .row { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; }
.detail-meta .row svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--red); margin-top: 2px; }
.detail-meta .row strong { color: var(--blue); display: block; font-family: var(--font-head); letter-spacing: 0.03em; }
.detail-text { font-size: 1rem; color: #333; margin: 6px 0 26px; }
.detail-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.detail-expired {
  background: #fdecec; color: var(--red-dark);
  border: 1px solid rgba(152,40,56,0.25);
  border-radius: 12px; padding: 18px; text-align: center;
  font-size: 0.95rem; margin: 26px 0;
}

/* ---------- RSVP form ---------- */
.rsvp {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 46px 0 54px;
}
.rsvp::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(152,40,56,0.28), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(152,40,56,0.22), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.rsvp-inner {
  position: relative;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 20px;
}
.rsvp-title {
  font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  text-align: center; font-size: 2.3rem; line-height: 1;
}
.rsvp-sub {
  text-align: center; color: var(--gold);
  font-family: var(--font-head); font-weight: 500; letter-spacing: 0.04em;
  margin: 8px 0 24px;
}
.rsvp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rsvp-input {
  width: 100%; border: none; border-radius: 10px;
  padding: 15px 16px; font-size: 1rem; font-family: var(--font-body);
  background: #fff; color: var(--ink);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.rsvp-input::placeholder { color: #8a8f98; }
.rsvp-input:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.rsvp-btn {
  display: block; width: 100%; margin-top: 18px;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.05rem;
  border: none; border-radius: 999px; padding: 16px 24px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.rsvp-btn:hover { background: var(--red-dark); }
.rsvp-btn:active { transform: translateY(1px) scale(0.99); }
.rsvp-btn:disabled { opacity: 0.7; cursor: default; }
.rsvp-msg { margin-top: 14px; text-align: center; font-size: 0.95rem; min-height: 1.2em; }
.rsvp-msg--ok { color: #bff0c7; }
.rsvp-msg--error { color: #ffd0d0; }

/* Thank-you confirmation (replaces the form after a successful RSVP) */
.rsvp-thanks { text-align: center; padding: 10px 0; animation: rsvp-pop 0.4s ease both; }
.rsvp-check {
  width: 70px; height: 70px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold); color: var(--blue-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}
.rsvp-check svg { width: 38px; height: 38px; }
.rsvp-thanks-text {
  max-width: 44ch; margin: 12px auto 0;
  font-size: 1.05rem; line-height: 1.55; color: rgba(255,255,255,0.92);
}
.rsvp-thanks-text strong { color: var(--gold); }
@keyframes rsvp-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 560px) {
  .rsvp-grid { grid-template-columns: 1fr 1fr; }
  .rsvp-btn { width: auto; min-width: 280px; margin: 22px auto 0; }
}

/* ---------- Responsive up-scaling ---------- */
@media (min-width: 720px) {
  :root { --maxw: 900px; }
  .hero-eyebrow { font-size: 2.6rem; }
  .event-card { flex-basis: 46%; }
  /* Above mobile: keep the wide-on-top + two-below shape, but at half
     the height of the mobile version (mobile heights are the defaults above). */
  .photo:first-child { aspect-ratio: 16 / 6.5; }      /* top wide image (taller than the 16/5 low) */
  .photo:not(:first-child) { aspect-ratio: 3 / 2; }   /* two under: 50% shorter */
}

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