/* Story 27.2 — shared styles for the front-door splash (/) and the
   corporate-event booking form (/corporate-events). The splash hero (27.6)
   adds front-door-hero.css on top of this file.
   Tokens mirror static-landing/athletes.html so the three pages read as one
   brand. Mobile-first: base rules target 360px, media queries scale up. */

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

:root {
  --bg-canvas:      #0B0E06;
  --bg-surface:     #0F1309;
  --bg-card:        #151A0D;
  --bg-card-inset:  #1A2011;
  --text-primary:   #E8E8D6;
  --text-secondary: #C6CBAE;
  --text-muted:     #9BA383;
  --accent:         #A8BC4C;
  --accent-hover:   #C4D66B;
  --danger:         #F08C74;
  --line-subtle:    rgba(232,232,214,0.08);
  --line-strong:    rgba(232,232,214,0.16);
  --line-accent:    rgba(168,188,76,0.45);
  --font-sans:    'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', ui-sans-serif, system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; object-fit: contain; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Shared logo treatment — same brightness + green glow as the athlete hero. */
.brand-logo {
  width: auto;
  aspect-ratio: 650 / 310;
  filter: brightness(1.6) drop-shadow(0 0 48px rgba(168,188,76,0.30));
}

/* ─── Splash (/) ───────────────────────────────────────────────────────── */
/* Story 27.6: the splash is now the front-door hero; its styles live in
   front-door-hero.css (linked only by index.html). */

/* ─── Booking form (/corporate-events) ────────────────────────────────── */

.page {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 24px 16px 64px;
}

.page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.page-top .brand-logo { height: 44px; filter: brightness(1.6) drop-shadow(0 0 24px rgba(168,188,76,0.25)); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--text-primary); }
.back-link svg { width: 16px; height: 16px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-lede {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.panel {
  background-color: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 20px; }

.field label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* >=16px stops iOS zoom-on-focus */
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color-scheme: dark;
  transition: border-color 0.15s ease;
}
.field input::placeholder { color: var(--text-muted); opacity: 1; }
.field input:hover { border-color: rgba(232,232,214,0.28); }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field-error {
  font-size: 14px;
  color: var(--danger);
}
.field-error:empty { display: none; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 20px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text-primary);
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  background-color: rgba(240,140,116,0.08);
}
.form-status:empty { display: none; }

.btn-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-canvas);
  background-color: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-submit:hover { background-color: var(--accent-hover); }
.btn-submit:disabled { cursor: progress; opacity: 0.7; }

.thanks { outline: none; }
.thanks h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.thanks h2 span { color: var(--accent); }
.thanks p { color: var(--text-secondary); font-size: 17px; }
.thanks p + p { margin-top: 12px; }
.thanks strong { color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.thanks .back-link { margin-top: 24px; color: var(--accent); }

[hidden] { display: none !important; }

@media (min-width: 720px) {
  .page { padding: 40px 24px 96px; }
  .page-top { margin-bottom: 64px; }
  .page-title { font-size: 56px; }
  .panel { padding: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
