/* Tooy-Gym — Foundation 6.8.1 custom theme
   Combat-sports identity: deep navy + sharp red, Oswald/Inter.
   Palette tokens (from design/specs.md):
     navy   #09274D   ink   #000033   white #FFFFFF
     red    #E10600   hover #FF0000   violet #9695CC   yellow #FFD200
*/

:root {
  --navy: #09274D;
  --navy-deep: #061a36;
  --surface: #121414;
  --surface-container: #1e2020;
  --ink: #000033;
  --white: #FFFFFF;
  --red: #E10600;
  --red-hover: #FF0000;
  --violet: #9695CC;
  --yellow: #FFD200;
  --on-surface: #e2e2e2;
  --muted: #b9c2cf;
  --gray-light: #F4F4F4;
}

* { box-sizing: border-box; }

body {
  background: var(--navy);
  color: var(--on-surface);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, .display {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: 38px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p  { font-size: 16px; line-height: 1.6; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .top-bar { background: transparent; padding: 0; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 76px;
}
.site-brand {
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 26px;
  letter-spacing: -.01em; color: var(--red); text-transform: uppercase;
}
.site-brand:hover { color: var(--red-hover); }

.site-nav { background: transparent; }
.site-nav ul { background: transparent; list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  display: block; padding: 10px 12px;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--on-surface);
}
.site-nav a:hover { color: var(--red); }
.site-nav .is-active > a { color: var(--red); border-bottom: 2px solid var(--red); }

/* dropdowns */
.site-nav li.has-sub { position: relative; }
.site-nav li.has-sub > ul {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--surface-container);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  display: none; flex-direction: column; z-index: 60; padding: 6px 0;
}
.site-nav li.has-sub:hover > ul,
.site-nav li.has-sub:focus-within > ul { display: flex; }
.site-nav li.has-sub > ul li a { padding: 8px 16px; text-transform: none; letter-spacing: 0; font-size: 14px; }
.site-nav li.has-sub > a::after { content: " \25BE"; font-size: 10px; opacity: .7; }

/* mobile toggle */
.nav-toggle {
  display: none; background: var(--red); color: var(--white); border: 0;
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 14px; border-radius: 3px; cursor: pointer; font-size: 14px;
}
.nav-toggle:hover { background: var(--red-hover); }

@media screen and (max-width: 63.99em) {
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; }
  .site-nav.is-open { display: block; }
  .site-nav:not(.is-open) > ul { display: none; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li.has-sub > ul { position: static; display: flex; box-shadow: none; border: 0; background: rgba(255,255,255,.03); }
  .site-header__inner { flex-wrap: wrap; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 460px; display: flex; align-items: center;
  overflow: hidden; background: var(--navy-deep);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(9,39,77,.45), rgba(9,39,77,.92));
}
.hero__inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 64px 24px; width: 100%; }
.hero__title { font-size: 56px; color: var(--white); margin-bottom: .25em; line-height: 1.05; }
.hero__subtitle { font-family: "Oswald", sans-serif; font-size: 26px; color: var(--red); text-transform: uppercase; margin-bottom: 1em; }
@media screen and (max-width: 39.99em) { .hero__title { font-size: 34px; } }

/* ---------------- Buttons ---------------- */
.btn-red, .btn-ghost {
  display: inline-block; font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: .08em; padding: 14px 28px; border-radius: 3px; cursor: pointer;
  font-size: 16px; border: 2px solid transparent;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { filter: brightness(1.1); color: var(--white); }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

/* ---------------- Sections & cards ---------------- */
.section { padding: 64px 0; }
.section--alt { background: var(--surface-container); }
.section__head { margin-bottom: 36px; }
.section__head .rule { height: 4px; width: 96px; background: var(--red); margin-top: 8px; }

.card {
  background: var(--white); color: var(--ink);
  padding: 28px; border-radius: 6px; height: 100%;
  box-shadow: 0 4px 20px rgba(9,39,77,.18);
  display: flex; flex-direction: column;
}
.card h3 { color: var(--navy); }
.card p { color: #333; flex-grow: 1; }
.card .more { color: var(--red); font-weight: 600; text-transform: uppercase; font-size: 14px; }
.card--accent { border-bottom: 4px solid var(--red); }

/* ---------------- Content prose ---------------- */
.site-prose {
  background: var(--white); color: var(--ink);
  padding: 32px 36px; border-radius: 6px;
}
.site-prose h1, .site-prose h2, .site-prose h3, .site-prose h4 { color: var(--navy); text-transform: none; font-family: "Oswald", sans-serif; }
.site-prose p, .site-prose li { color: var(--ink); }
.site-prose a { color: var(--red); text-decoration: underline; text-decoration-color: rgba(225,6,0,.5); }
.site-prose a:hover { color: var(--red-hover); text-decoration-color: var(--red-hover); }
.site-prose img { max-width: 100%; height: auto; border-radius: 4px; margin: 12px 0; }
.site-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.site-prose th, .site-prose td { border: 1px solid #ccd3dd; padding: 8px 10px; text-align: left; }
.site-prose th { background: var(--violet); color: var(--white); }
.site-prose ul, .site-prose ol { padding-left: 1.4em; }
.site-prose blockquote { border-left: 4px solid var(--red); margin: 16px 0; padding: 4px 16px; color: #333; background: var(--gray-light); }

.page-title { color: var(--white); margin: 32px 0 24px; }
.page-lede { color: var(--muted); max-width: 70ch; }

/* ---------------- Gallery / media ---------------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.media-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 6px; display: block; }
.media-figure { margin: 0; }
.media-figure figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* news listing cards */
.news-item {
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px; padding: 20px; display: flex; gap: 18px;
}
.news-item:hover { border-color: var(--red); }
.news-item .date { background: var(--red); color: var(--white); padding: 10px; border-radius: 4px; min-width: 64px; text-align: center; font-family: "Oswald", sans-serif; }
.news-item h4 { color: var(--white); }
.news-item p { color: var(--muted); }
.news-item a { color: var(--white); }
.news-item a:hover { color: var(--red); }

/* ---------------- CTA ---------------- */
.cta { background: var(--red); padding: 56px 0; text-align: center; }
.cta h2, .cta p { color: var(--white); }
.cta .btn-dark { background: var(--navy); color: var(--white); }
.cta .btn-dark:hover { background: #000; }
.cta .btn-white { background: var(--white); color: var(--red); }

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs { background: transparent; margin: 16px 0; }
.breadcrumbs li, .breadcrumbs a { color: var(--muted); text-transform: none; }
.breadcrumbs a { color: var(--red); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.08); padding: 48px 0 24px; }
.site-footer .brand { font-family: "Oswald", sans-serif; font-size: 22px; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
.site-footer h4 { color: var(--white); font-size: 14px; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); }
.site-footer p { color: var(--muted); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 16px; text-align: center; color: rgba(255,255,255,.5); font-size: 12px; }

/* ToC */
.toc { background: var(--surface-container); border-left: 3px solid var(--red); padding: 16px 20px; border-radius: 4px; margin-bottom: 24px; }
.toc a { color: var(--on-surface); text-transform: none; }
.toc a:hover { color: var(--red); }

.separator { border: 0; border-top: 1px solid rgba(0,0,51,.15); margin: 20px 0; }
