/* The Standing Invitational - dark-luxury event site */

:root {
  --black: #0b0a08;
  --coal: #141210;
  --panel: #1c1915;
  --line: #2e2921;
  --gold: #c9a24b;
  --gold-bright: #e7c877;
  --crimson: #7c1f2b;
  --ivory: #f1e9d8;
  --muted: #a4977e;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Archivo', Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: var(--gold-bright); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.topbar {
  background: var(--coal);
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 7px 12px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 10, 8, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ivory);
  margin-right: auto;
}

.brand img { width: 44px; height: 44px; border-radius: 50%; }

.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

nav.main ul {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main a {
  display: block;
  padding: 8px 12px;
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

nav.main a:hover, nav.main a[aria-current="page"] { color: var(--gold-bright); }

nav.main a.cta {
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ivory);
  font-size: 1.2rem;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

.cart-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-btn .count { color: var(--gold-bright); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,0.55) 0%, rgba(11,10,8,0.25) 40%, rgba(11,10,8,0.96) 100%);
  z-index: -1;
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 20px 60px;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1.04;
  margin: 0 0 16px;
  max-width: 14ch;
}

.hero .lede {
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--ivory);
  margin: 0 0 10px;
}

.hero .lede strong { color: var(--gold-bright); font-weight: 500; }

.hero .sub {
  max-width: 60ch;
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 0.95rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta b { color: var(--ivory); font-weight: 500; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--gold);
  color: var(--black);
  background: var(--gold);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn.ghost {
  background: transparent;
  color: var(--gold-bright);
}

.btn.ghost:hover { background: rgba(201, 162, 75, 0.12); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */

section.block { padding: 76px 0; }

section.block.tinted { background: var(--coal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.block-head { max-width: 640px; margin-bottom: 40px; }

.block-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 12px;
}

.block-head p { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  gap: 22px;
}

.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.card .pad { padding: 20px; }

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.zoomable { cursor: zoom-in; transition: opacity 0.2s; }
.zoomable:hover { opacity: 0.88; }

/* Athlete cards */

.athlete-card img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }

.athlete-card .bib {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 7px 0;
  font-size: 0.82rem;
}

.stat-row .label { color: var(--muted); }
.stat-row .value { color: var(--ivory); text-align: right; }

.athlete-bio { margin-top: 14px !important; line-height: 1.55; }

/* ---------- Schedule ---------- */

.day {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 26px;
}

.day-head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: baseline;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(201, 162, 75, 0.06);
}

.day-head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0;
}

.day-head .day-date {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.sched-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.sched-item:last-child { border-bottom: 0; }

.sched-item .time {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  padding-top: 2px;
}

.sched-item h4 { margin: 0 0 4px; font-weight: 500; font-size: 1rem; }
.sched-item p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Tickets ---------- */

.tier {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px;
}

.tier.feature { border-color: var(--gold); position: relative; }

.tier.feature::before {
  content: "Most requested";
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.tier h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 0 0 4px; }

.tier .price {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-bright);
  margin: 8px 0 2px;
}

.tier .per {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.tier ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}

.tier li {
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
}

.tier li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.qty label { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.qty select {
  background: var(--coal);
  color: var(--ivory);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-family: var(--sans);
}

/* ---------- Tables ---------- */

table.records {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.records th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gold);
}

table.records td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.records td.value { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-bright); white-space: nowrap; }
table.records td.note { color: var(--muted); font-size: 0.85rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); }

/* ---------- Sponsors ---------- */

.sponsor-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sponsor {
  background: var(--coal);
  padding: 30px 20px;
  text-align: center;
}

.sponsor .s-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ivory);
  margin: 0 0 6px;
}

.sponsor .s-role {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- FAQ ---------- */

details.faq {
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 10px;
}

details.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--serif);
  font-size: 1.15rem;
  list-style: none;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  float: right;
  color: var(--gold);
  font-family: var(--sans);
}

details.faq[open] summary::after { content: "\2212"; }

details.faq .a { padding: 0 20px 18px; color: var(--muted); font-size: 0.92rem; }

/* ---------- Forms ---------- */

form.inquiry, form.checkout-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

form input, form select, form textarea {
  width: 100%;
  background: var(--coal);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
}

form input:focus, form select:focus, form textarea:focus { outline: 1px solid var(--gold); }

.form-note { font-size: 0.8rem; color: var(--muted); }

.confirm-msg {
  border: 1px solid var(--gold);
  background: rgba(201, 162, 75, 0.08);
  padding: 18px 20px;
  font-size: 0.95rem;
}

/* ---------- Cart drawer ---------- */

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--coal);
  border-left: 1px solid var(--gold);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3 { font-family: var(--serif); font-weight: 500; margin: 0; font-size: 1.3rem; }

.drawer-close { background: none; border: 0; color: var(--muted); font-size: 1.5rem; cursor: pointer; }

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.cart-line .rm { background: none; border: 0; color: var(--crimson); cursor: pointer; font-size: 0.8rem; }
.cart-line .rm:hover { color: #b04a57; }

.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--line); }

.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1rem; }
.cart-total b { color: var(--gold-bright); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- Image modal ---------- */

.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 3, 0.92);
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.img-modal.show { display: flex; }

.img-modal img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.img-modal .cap {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Certificate widget ---------- */

.cert-tool {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 30px;
  align-items: start;
}

.cert-tool canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--black);
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  background: var(--coal);
  padding: 46px 0 30px;
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }

footer.site h4 {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 500;
}

footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--gold-bright); }

.legal {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

/* ---------- Two-up media blocks ---------- */

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.media-split .copy h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 0 0 12px; }
.media-split .copy p { color: var(--muted); }

/* ---------- Marketing page ---------- */

.mkt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.mkt-grid figure { margin: 0; }
.mkt-grid figcaption { padding: 10px 2px; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .media-split { grid-template-columns: 1fr; }
  .cert-tool { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--coal);
    border-bottom: 1px solid var(--line);
  }

  nav.main.open { display: block; }

  nav.main ul { flex-direction: column; padding: 10px 0; }

  nav.main a { padding: 12px 24px; }

  nav.main a.cta { border: 0; margin-left: 0; }

  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }

  .hero { min-height: 66vh; }
  .hero-inner { padding: 90px 20px 44px; }

  .sched-item { grid-template-columns: 1fr; gap: 4px; }

  .mkt-grid { grid-template-columns: 1fr; }

  .foot-grid { grid-template-columns: 1fr; }

  section.block { padding: 54px 0; }
}
