/* =========================================================
   Broadside Warriors ABC — homepage stylesheet
   ========================================================= */

:root {
  --red: #e11827;
  --red-bright: #ff2d3a;
  --red-deep: #a50e1a;
  --ink: #0b0b0c;
  --ink-2: #15161a;
  --ink-3: #1d1f24;
  --line: #2a2c33;
  --paper: #ffffff;
  --paper-2: #f5f5f4;
  --paper-3: #ebebe9;
  --muted: #6b6b6b;
  --muted-light: #c9c9c9;

  --font-display: "Anton", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --container-narrow: 920px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}
*:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 17px;
}

img, picture, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; letter-spacing: 0.02em; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 1000;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
  color: #fff;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}

.accent { color: var(--red); }

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.06em;
}
.site-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.94rem;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); }
.site-nav .nav-cta {
  background: var(--red);
  color: #fff;
}
.site-nav .nav-cta:hover { background: var(--red-bright); }

@media (max-width: 800px) {
  .brand-sub { display: none; }
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 8px 10px; font-size: 0.85rem; }
}
@media (max-width: 520px) {
  .site-nav li:not(:last-child) { display: none; }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0.85) 100%),
    radial-gradient(circle at 20% 30%, rgba(225, 24, 39, 0.25), transparent 60%);
}
.hero-content {
  padding: 100px 24px 80px;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin: 0 0 18px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease),
    color 160ms var(--ease), border-color 160ms var(--ease);
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-block { width: 100%; }

/* --- SECTIONS --- */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.section-welcome { background: var(--paper); }
.section-training { background: var(--ink); color: #fff; }
.section-training .eyebrow { color: var(--red-bright); }
.section-location { background: var(--paper-2); }
.section-faqs { background: var(--paper); }
.section-contact { background: var(--ink); color: #fff; }
.section-contact .eyebrow { color: var(--red-bright); }

.section-lede {
  font-size: 1.1rem;
  max-width: 60ch;
  margin: -8px 0 36px;
  color: inherit;
  opacity: 0.85;
}

/* --- WELCOME --- */
.welcome-grid {
  display: grid;
  gap: 56px;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
}
@media (max-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr; gap: 32px; }
}
.welcome-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.affiliation {
  margin-top: 32px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.affiliation img {
  flex: 0 0 auto;
}
.affiliation p { margin: 0; font-size: 0.95rem; }

/* --- TRAINING LIST --- */
.training-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.training-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}
.training-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
}
.training-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 16px;
}
.training-card dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.training-card dl > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.training-card dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.training-card dt {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.training-card dd {
  margin: 0;
  color: var(--muted-light);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.tag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(225, 24, 39, 0.18);
  color: #ff9ba2;
  border: 1px solid rgba(225, 24, 39, 0.4);
  font-weight: 700;
}

/* --- LOCATION --- */
.location-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
}
.location-copy address {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 8px 0 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.social-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 160ms var(--ease), color 160ms var(--ease),
    background 160ms var(--ease);
}
.social-list a:hover {
  border-color: var(--red);
  color: var(--red);
}
.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--paper-3);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- FAQs --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-width: 880px;
}
.faq-list details {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.faq-list details[open] {
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 200ms var(--ease), background 160ms var(--ease);
}
.faq-list details[open] summary::after {
  content: "−";
  background: var(--red);
  transform: rotate(180deg);
}
.faq-body {
  padding: 0 22px 20px;
}
.faq-body p { margin: 0; color: #333; }

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
.contact-copy { color: rgba(255, 255, 255, 0.88); }
.contact-copy a { color: #fff; text-decoration: underline; }
.contact-copy a:hover { color: var(--red-bright); }
.contact-direct {
  margin-top: 24px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.contact-form {
  background: #fff;
  color: var(--ink);
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.field label span { color: var(--red); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--paper-3);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field input:hover,
.field textarea:hover { border-color: #b8b8b8; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(225, 24, 39, 0.15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
  background: #fff7f7;
}
.field textarea { resize: vertical; min-height: 140px; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  margin: 14px 0;
  min-height: 65px;
}

.form-privacy {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 16px;
}
.form-privacy a { color: var(--red-deep); }

.form-status {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: none;
}
.form-status.is-success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.form-status.is-error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* --- FOOTER --- */
.site-footer {
  background: #050506;
  color: #c4c4c4;
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.site-footer h2 {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}
.site-footer a {
  color: #c4c4c4;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-brand img {
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}
.footer-address {
  font-size: 0.9rem;
  color: #a5a5a5;
  line-height: 1.6;
}
.footer-affiliation {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-affiliation p {
  font-size: 0.82rem;
  margin: 0;
  color: #a5a5a5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #888;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: #c4c4c4; }
.footer-bottom a:hover { color: #fff; }
