/* ==========================================================================
   Batavia Bulldog Boosters — Design System
   ========================================================================== */

:root {
  /* Brand colors — matched to the Bulldog Boosters mark */
  --red: #C81A26;
  --red-dark: #A51320;
  --red-darker: #6B0E16;
  --gold: #CD9F1E;
  --gold-dark: #8A6710;
  --gold-light: #EFE1B8;
  --gold-lighter: #F8F1DE;
  --white: #FFFFFF;
  --cream: #FAF8F5;
  --tier-grey: #D8D5D0;
  --silver: #C7CCD1;
  --platinum: #E3DFD7;

  /* Text */
  --ink: #1B1917;
  --ink-soft: rgba(27, 25, 23, 0.68);
  --ink-faint: rgba(27, 25, 23, 0.46);
  --on-red: #FFFFFF;
  --on-red-soft: rgba(255, 255, 255, 0.82);
  --on-gold: #1B1917;

  /* Feedback */
  --focus-ring: #2E6FD9;

  /* Type */
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container: 1160px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --masthead-h: 104px;
  --navbar-h: 52px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
main { display: block; }
.section {
  padding: var(--space-8) 0;
}
.section--cream { background: var(--cream); }
.section--gold { background: var(--cream); }
.section--red { background: var(--red); color: var(--on-red); }
.section--tight { padding: var(--space-7) 0; }

.section-head {
  max-width: 720px;
  margin: 0 0 var(--space-6);
}
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}
.section--red .eyebrow { color: var(--gold); }
.section--gold .eyebrow { color: var(--gold-dark); }

h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; }
h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 62ch; }
.section--red .lede, .hero .lede, .page-hero .lede { color: var(--on-red-soft); }

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
  white-space: nowrap;
}

.btn--primary { background: var(--red); color: var(--on-red); border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn--gold:hover { background: #D69A12; border-color: #D69A12; }

.btn--outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn--outline-red:hover { background: var(--red); color: var(--on-red); }

.btn--outline-white { background: transparent; color: var(--on-red); border-color: rgba(255,255,255,0.55); }
.btn--outline-white:hover { background: var(--white); color: var(--red-dark); border-color: var(--white); }

.btn--ghost-red { background: rgba(200,26,38,0.08); color: var(--red); border-color: transparent; }
.btn--ghost-red:hover { background: rgba(200,26,38,0.14); }

.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 36px; font-size: 19px; }
.btn--full { width: 100%; white-space: normal; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; text-align: center; }
.btn--wrap { white-space: normal; max-width: 100%; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }

/* ---------- Masthead ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}
.masthead {
  background: var(--white);
  border-bottom: 1px solid rgba(27,25,23,0.08);
}
.masthead__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  height: var(--masthead-h);
}
.masthead__side { display: flex; align-items: center; justify-content: flex-start; }
.masthead__side--right { justify-content: flex-end; gap: var(--space-3); }
.masthead__social { display: flex; align-items: center; gap: 10px; }
.masthead__social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 2px 6px rgba(27,25,23,0.18);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.masthead__social a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(27,25,23,0.24); }
.masthead__social a[aria-label="Facebook"] { background: #1877F2; }
.masthead__social a[aria-label="Instagram"] { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.masthead__social a[aria-label="X (Twitter)"] { background: #000000; }
@media (max-width: 980px) {
  .masthead__social { display: none; }
}
.masthead__brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
}
.masthead__logo { height: 68px; width: auto; }
.masthead__text { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.masthead__text strong { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--ink); }
.masthead__text small { font-family: var(--font-body); font-weight: 600; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }

/* ---------- Nav bar ---------- */
.navbar { background: var(--red); }
.navbar__row { display: flex; justify-content: center; }
.nav {
  display: flex;
  align-items: stretch;
}
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 var(--space-4);
  height: var(--navbar-h);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-bottom: 3px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link.is-active { color: var(--white); border-color: var(--gold); }
.nav__chevron { width: 9px; height: 9px; }
.nav__item:hover .nav__chevron, .nav__item.is-open .nav__chevron { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid rgba(27,25,23,0.1);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 14px 28px rgba(27,25,23,0.16);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms var(--ease), visibility 140ms;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown,
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
}
.nav__dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.nav__dropdown a:hover { background: var(--cream); color: var(--red); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27,25,23,0.16);
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

@media (max-width: 980px) {
  .masthead__text { display: none; }
  .masthead__logo { height: 52px; }
  .masthead__row { height: 76px; grid-template-columns: auto 1fr auto; }
  .navbar { display: none; }
  .nav-toggle { display: flex; }

  .site-header.is-open .navbar {
    display: block;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    box-shadow: 0 20px 30px rgba(27,25,23,0.18);
  }
  .site-header.is-open .nav {
    flex-direction: column;
  }
  .site-header.is-open .nav__item { flex-direction: column; }
  .site-header.is-open .nav__link { height: auto; padding: 14px var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.14); border-left: 3px solid transparent; justify-content: space-between; }
  .site-header.is-open .nav__link.is-active { border-left-color: var(--gold); }
  .site-header.is-open .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--red-dark);
    display: none;
    padding: 0 0 0 var(--space-4);
  }
  .site-header.is-open .nav__dropdown a { color: rgba(255,255,255,0.85); }
  .site-header.is-open .nav__dropdown a:hover { background: transparent; color: var(--white); }
  .site-header.is-open .nav__item.is-open .nav__dropdown { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--red);
  color: var(--on-red);
}
.hero__inner {
  padding: var(--space-8) 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-7);
  align-items: start;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: var(--space-7) 0; }
}
.hero__badge {
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: block;
}
.hero h1 { margin-bottom: var(--space-4); }
.hero__title {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
}
.hero__logo {
  display: inline-block;
  height: 0.85em;
  width: auto;
  vertical-align: middle;
  margin-left: 0.2em;
  margin-bottom: 0.1em;
}
.hero p.lede { margin-bottom: var(--space-6); }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.page-hero {
  background: var(--red);
  color: var(--on-red);
  padding: var(--space-7) 0;
}
.page-hero h1 { margin-bottom: var(--space-3); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid rgba(27,25,23,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--ink); }
.card--accent { border-top: 3px solid var(--gold); }
.minutes-archive { margin-top: var(--space-4); border-top: 1px solid rgba(27,25,23,0.12); padding-top: var(--space-3); }
.minutes-archive summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--red); }
.minutes-archive ul { margin-top: var(--space-3); max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.minutes-archive a { color: var(--ink); font-size: 14px; text-decoration: underline; }
.minutes-archive a:hover { color: var(--red); }
.exec-photo {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto var(--space-3);
  display: block;
  border: 1px solid rgba(27,25,23,0.12);
}

a.card { display: block; transition: border-color 160ms var(--ease); }
a.card:hover { border-color: var(--red); }

/* ---------- Membership tier "focus" effect ---------- */
.membership-tier {
  position: relative;
  transform: scale(1);
  transition: transform 280ms cubic-bezier(.22,.9,.32,1), box-shadow 280ms ease, opacity 280ms ease;
  will-change: transform;
}
.membership-tier:hover,
.membership-tier:focus-within {
  transform: scale(1.08) translateY(-10px);
  box-shadow: 0 26px 50px rgba(27,25,23,0.28);
  z-index: 2;
  opacity: 1;
}
.grid--3:has(.membership-tier:hover) .membership-tier:not(:hover),
.grid--3:has(.membership-tier:focus-within) .membership-tier:not(:focus-within) {
  transform: scale(0.96);
  opacity: 0.7;
}
@media (prefers-reduced-motion: reduce) {
  .membership-tier,
  .membership-tier:hover,
  .membership-tier:focus-within,
  .grid--3:has(.membership-tier:hover) .membership-tier:not(:hover) {
    transition: none;
    transform: none;
  }
}

/* ---------- Event cards ---------- */
.event-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--space-6); }
.event-card--past { position: relative; }
.event-card__img { max-width: 260px; margin: 0 auto var(--space-5); }
.event-card__date {
  display: block;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--space-2);
}
.event-card h3 { font-size: 34px; margin-bottom: var(--space-4); }
.event-card p { font-size: 19px; line-height: 1.6; margin-top: var(--space-3); }
.event-card p:first-of-type { margin-top: 0; }

.list-plain { display: flex; flex-direction: column; }
.list-plain li {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(27,25,23,0.1);
}
.list-plain li:first-child { padding-top: 0; }
.list-plain li:last-child { border-bottom: none; padding-bottom: 0; }
.list-plain h4 { flex: 0 0 220px; color: var(--red); }
.list-plain h4 a { color: inherit; }
.list-plain h4 a:hover { text-decoration: underline; }
.list-plain p { color: var(--ink-soft); }
@media (max-width: 640px) {
  .list-plain li { flex-direction: column; gap: 4px; }
  .list-plain h4 { flex: none; }
}

.list-check { display: flex; flex-direction: column; gap: var(--space-3); padding-left: 1.1em; }
.list-check li { list-style: none; position: relative; }
.list-check li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--gold);
}
.section--red .list-check li::before { background: var(--gold); }

/* ---------- Calendar embed ---------- */
.calendar-embed {
  width: 100%;
  height: 1200px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(27,25,23,0.14);
  overflow: hidden;
}
.calendar-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
@media (max-width: 640px) {
  .calendar-embed { height: 1500px; }
}

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ph-ratio, 4 / 3);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid rgba(27,25,23,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: var(--space-4);
  color: var(--ink-soft);
}
.ph__label svg { color: var(--ink-faint); }
.ph__label span { font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: 0.3px; max-width: 22ch; }
.ph__photo { width: 100%; height: 100%; object-fit: cover; }
.ph:has(.ph__photo) { border-style: solid; background: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: var(--space-8) 0 var(--space-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__grid > * { min-width: 0; }
.footer address a, main a[href^="mailto:"]:not(.btn) { overflow-wrap: anywhere; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-3); font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--white); }
.footer__brand img { height: 40px; width: auto; }
.footer h4 { color: var(--gold); font-size: 13.5px; letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: var(--space-3); }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 10px; margin-top: var(--space-4); }
.footer__social a {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.footer__social a:hover { background: var(--red); border-color: var(--red); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 13.5px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: rgba(27,25,23,0.1); border: none; margin: var(--space-7) 0; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  color: var(--red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

.mission-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-8);
  align-items: start;
}
.mission-grid__head { position: sticky; top: var(--space-6); }
.mission-grid__head h2 { margin-top: var(--space-2); }
.mission-grid__body {
  padding-left: var(--space-8);
  border-left: 1px solid rgba(27,25,23,0.12);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (max-width: 800px) {
  .mission-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .mission-grid__head { position: static; }
  .mission-grid__body { padding-left: 0; border-left: none; }
}

address { font-style: normal; }

/* ---------- Donation tiers ---------- */
.tier-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
}
.tier-card {
  border: 1px solid rgba(27,25,23,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow 160ms var(--ease);
  flex: 1 1 240px;
  max-width: 280px;
}
.tier-card:hover { box-shadow: 0 14px 30px rgba(27,25,23,0.14); }
.tier-card__art {
  padding: var(--space-6) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(27,25,23,0.08);
}
.tier-card__art img { width: 100%; max-width: 150px; }
.tier-card__body {
  padding: var(--space-5);
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}
.tier-card__price {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.tier-card__view { margin-top: auto; }
.tier-card__price--custom { font-size: 22px; white-space: nowrap; }

/* ---------- Modal ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(27,25,23,0.5);
  z-index: 205;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms var(--ease), visibility 160ms;
}
.scrim.is-open { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 200ms var(--ease), visibility 200ms, transform 200ms var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(27,25,23,0.1);
  flex-shrink: 0;
}
.modal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
}
.modal__back:hover { color: var(--red); }

.modal__dialog {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}
@media (max-width: 800px) {
  .modal__dialog { grid-template-columns: 1fr; }
}
.modal__art {
  padding: var(--space-7);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}
.modal__art img { width: 100%; max-width: 280px; }
.modal__art--photo { padding: var(--space-6); }
.modal__art--photo img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
@media (max-width: 800px) {
  .modal__art { min-height: 280px; }
}
.modal__content {
  padding: var(--space-8) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  justify-content: center;
}
@media (max-width: 800px) {
  .modal__content { padding: var(--space-6) var(--space-5); }
}
.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(27,25,23,0.15);
  background: var(--white);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal__price { font-family: var(--font-body); font-size: 26px; font-weight: 700; color: var(--ink); }
.modal__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.modal__content h3 { font-family: var(--font-body); font-size: clamp(20px, 2.2vw, 25px); letter-spacing: normal; }

.amount-input { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 220px; }
.amount-input__label { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.amount-input__field {
  display: flex;
  align-items: center;
  border: 1px solid rgba(27,25,23,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  gap: 4px;
}
.amount-input__field:focus-within { border-color: var(--red); }
.amount-input__prefix { font-family: var(--font-body); font-size: 22px; font-weight: 700; color: var(--ink); }
.amount-input__field input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  width: 100%;
  -moz-appearance: textfield;
}
.amount-input__field input::-webkit-outer-spin-button,
.amount-input__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  border: 1px solid rgba(27,25,23,0.15);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
}
.qty-stepper button {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(27,25,23,0.15);
  background: var(--white);
  font-size: 15px;
  line-height: 1;
}
.qty-stepper span { min-width: 18px; text-align: center; font-family: var(--font-body); font-weight: 700; }

/* ---------- Cart ---------- */
.bag-btn {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(27,25,23,0.32);
}
.bag-btn__count {
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 92vw;
  background: #F1F1F1;
  box-shadow: -18px 0 40px rgba(27,25,23,0.22);
  z-index: 215;
  transform: translateX(100%);
  transition: transform 200ms var(--ease);
  display: flex;
  flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  padding: var(--space-5);
  border-bottom: 1px solid rgba(27,25,23,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer__head h3 { font-family: var(--font-body); font-size: 18px; letter-spacing: normal; }
.cart-tabs { display: flex; border-bottom: 1px solid rgba(27,25,23,0.1); flex-shrink: 0; }
.cart-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: var(--ink-soft);
  cursor: pointer;
}
.cart-tab.is-active { color: var(--red); border-bottom-color: var(--red); }
.cart-tab__count {
  background: var(--red);
  color: var(--on-red);
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0 5px;
}
.cart-tab.is-active .cart-tab__count { background: var(--ink); }
.cart-drawer__close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(27,25,23,0.15);
  background: var(--white);
  font-size: 17px;
}
.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item__art {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item__art img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; }
.cart-item__name { font-weight: 600; font-size: 14px; }
.cart-item__meta { font-size: 13px; color: var(--ink-soft); }
.cart-item__row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cart-item__remove { font-size: 12px; color: var(--red); background: none; border: none; padding: 0; text-decoration: underline; cursor: pointer; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: var(--space-8) var(--space-4); }
.cart-drawer__foot {
  padding: var(--space-5);
  border-top: 1px solid rgba(27,25,23,0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--font-body); font-weight: 700; font-size: 18px; }
.cart-notice {
  background: var(--cream);
  border: 1px solid rgba(218,27,40,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  display: none;
}
.cart-notice.is-shown { display: block; }

/* Payment sections are hidden until reached via the cart's Checkout button (see js/cart.js) */
#pay { display: none; }

.pay-summary {
  background: var(--cream);
  border: 1px solid rgba(218,27,40,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
}
.pay-summary__lead { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.pay-summary__warning {
  background: var(--white);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--red-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.pay-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(27,25,23,0.08);
}
.pay-summary__row:last-of-type { border-bottom: none; }
.pay-summary__info { display: flex; flex-direction: column; gap: 2px; }
.pay-summary__price { font-weight: 700; }
.pay-summary__tail { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  z-index: 220;
  white-space: nowrap;
}
.toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Sponsor box grid ---------- */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sponsor-grid { grid-template-columns: 1fr; }
}
.sponsor-box {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(27,25,23,0.14);
  transition: border-color 160ms var(--ease);
}
a.sponsor-box:hover { border-color: var(--red); }
.sponsor-box__media {
  position: absolute;
  inset: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-box__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms var(--ease);
  transform-origin: 50% 50%;
}
.sponsor-box__media.is-zoomed img { transform: scale(1.7); }
.sponsor-box__media--logo { background: var(--white); }
.sponsor-box__media--logo img { width: 62%; height: 62%; object-fit: contain; }
.sponsor-box__media--logo.is-zoomed img { transform: scale(1.35); }
.sponsor-box__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: var(--space-4);
  color: var(--red-dark);
}
.sponsor-box__ph svg { color: var(--gold-dark); }
.sponsor-box__ph span { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: 0.3px; max-width: 20ch; }
.sponsor-box__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.94);
  border-top: 1px solid rgba(27,25,23,0.1);
  padding: 13px 10px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.sponsor-box__price {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  margin-top: 2px;
}
button.sponsor-box { width: 100%; padding: 0; cursor: pointer; background: var(--white); text-align: left; font: inherit; }

.sponsor-box__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #E0727A;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.modal__badge {
  display: inline-block;
  background: #E0727A;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.btn:disabled, .btn[disabled] {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink-faint);
  cursor: not-allowed;
}
