/* =========================================================
   Foundation Jiu Jitsu — brand tokens (sampled from logo)
   Navy #01285A · Gold #D39E36 · White
   ========================================================= */
:root {
  --navy: #01285a;
  --navy-dark: #001a3d;
  --navy-deep: #00122b;
  --navy-tint: rgba(1, 40, 90, .78);
  --gold: #d39e36;
  --gold-light: #e6b85c;
  --gold-text: #8f6618;   /* gold dark enough for small text on white (≈5:1) */
  --ink: #0d1b33;
  --text: #4a5568;
  --muted: #7a8599;
  --bg: #fff;
  --bg-alt: #f3f5f9;
  --line: #dde2ea;
  --placeholder: #d6dce6;
  --error: #b3261e;
  --success: #2e7d32;
  --radius: 4px;
  --container: 1170px;
  --font-display: "Russo One", "Arial Black", sans-serif;
  --font-head: "Montserrat", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2 { font-family: var(--font-display); font-weight: 400; color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-text); }
ul { margin: 0; padding: 0; list-style: none; }
svg { fill: currentColor; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.bold { font-weight: 600; color: var(--ink); }

/* Image slots: background image with placeholder fallback */
.media {
  background-color: var(--placeholder);
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.parallax { background-attachment: fixed; }
@media (max-width: 1024px) { .parallax { background-attachment: scroll; } }
.overlay { position: absolute; inset: 0; background: var(--navy-tint); }

/* ===== Brand motif: gold spaced caps flanked by rules (from the logo's "JIU JITSU") ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold-text); font-family: var(--font-head);
  font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.center .eyebrow::after, .eyebrow.both::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.on-dark .eyebrow, .eyebrow.light { color: var(--gold); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 10px rgba(1, 40, 90, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo img { width: 46px; height: auto; display: block; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark-main { font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; color: var(--navy); }
.wordmark-sub {
  display: flex; align-items: center; gap: 6px; margin-top: 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 10px; letter-spacing: 3.5px; color: var(--gold-text);
}
.wordmark-sub::before, .wordmark-sub::after { content: ""; flex: 1; height: 2px; background: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 26px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--navy); padding: 6px 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav .btn-sm { padding: 10px 18px; font-size: 11px; margin-left: 10px; text-align: center; }
.main-nav .btn-sm::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px 16px 18px; box-shadow: 0 10px 18px rgba(1,40,90,.1);
    border-bottom: 3px solid var(--gold);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 12px 0; font-size: 15px; }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--gold-text); }
  .main-nav .btn-sm { margin: 14px 0 0; padding: 13px 18px; font-size: 13px; }
}
@media (max-width: 380px) { .wordmark-main { font-size: 19px; } }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 85px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background-color: var(--navy);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(1,40,90,.55), rgba(0,18,43,.85)); }
.hero-content { position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero-mark { width: 92px; height: auto; margin: 0 auto 22px; display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .h1-main { display: block; font-size: clamp(42px, 8vw, 88px); letter-spacing: 2px; text-transform: uppercase; line-height: 1; }
.hero h1 .h1-sub {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 14px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(15px, 2.4vw, 24px); letter-spacing: .5em; color: var(--gold);
}
.hero h1 .h1-sub::before, .hero h1 .h1-sub::after { content: ""; width: clamp(30px, 8vw, 110px); height: 3px; background: var(--gold); }
/* Slogan: "Strong Foundations Make Strong Futures" */
.slogan { font-family: var(--font-display); letter-spacing: .5px; }
.hero-slogan { color: #fff; font-size: clamp(20px, 3.2vw, 32px); line-height: 1.25; margin: 0 auto 14px; max-width: 760px; }
.footer-slogan { color: #fff; font-size: 17px; line-height: 1.35; margin: 0 0 12px; }
.hero-sub { color: #e8edf5; font-size: clamp(17px, 2.2vw, 21px); max-width: 700px; margin: 0 auto 36px; }
.hero .btn { padding: 15px 32px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  text-align: center;
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 50px;
}
.section-title.left { text-align: left; margin-bottom: 26px; }
.section-title.light { color: #fff; }
.section-title.caps { text-transform: uppercase; letter-spacing: 1px; }
/* gold underline accent for centred titles */
.section-title:not(.left)::after { content: ""; display: block; width: 60px; height: 3px; background: var(--gold); margin: 18px auto 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.top { align-items: start; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

.lead { font-size: 19px; line-height: 1.7; }
.narrow { max-width: 800px; }
.welcome-image, .tier-image { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.program-tier .tier-image { aspect-ratio: 16 / 9; }   /* program photos are wide group shots */
.welcome-image { box-shadow: 0 14px 34px rgba(1, 40, 90, .16); border-bottom: 4px solid var(--gold); }
.age-badge {
  display: inline-block; background: var(--navy); color: var(--gold); border-radius: 99px;
  padding: 4px 14px; font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}

/* ===== Program cards ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.service-card {
  text-align: center; background: #fff; padding: 36px 26px 30px;
  border-radius: var(--radius); border-top: 4px solid var(--gold);
  box-shadow: 0 6px 20px rgba(1, 40, 90, .07);
}
.service-logo {
  width: 160px; height: 160px; margin: 0 auto 22px; border-radius: 50%;
  border: 4px solid var(--navy); box-shadow: 0 0 0 4px var(--gold);
}
.service-card h3 { font-size: 19px; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== Feature list ===== */
.feature-list { margin-bottom: 10px; }
.feature-list li { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.feature-icon {
  flex: none; width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-list h4 { font-size: 17px; margin-bottom: 4px; }
.feature-list p { font-size: 15px; margin: 0; }
.offer-image { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }

/* ===== CTA boxes ===== */
.cta-boxes { position: relative; padding: 80px 0; background-color: var(--navy); }
.cta-boxes .container { position: relative; }
.cta-heading { text-align: center; color: var(--gold); font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 34px; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cta-box {
  background: rgba(0, 18, 43, .6); padding: 44px 24px; text-align: center;
  border: 1px solid rgba(211, 158, 54, .45); border-radius: var(--radius);
}
.cta-box h3 { color: #fff; font-size: 19px; margin-bottom: 24px; }
@media (max-width: 700px) { .cta-grid { grid-template-columns: 1fr; } }

/* ===== Carousel ===== */
.carousel { overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-track > * { flex: 0 0 calc(100% / var(--per-view, 3)); padding: 0 15px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.carousel-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s;
}
.carousel-dots button.active { background: var(--gold); }

/* ===== Stats ===== */
.stats { background: var(--navy); color: #fff; padding: 64px 0; border-top: 4px solid var(--gold); border-bottom: 4px solid var(--gold); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat svg { width: 38px; height: 38px; margin-bottom: 10px; color: var(--gold); }
.stat-num { font-family: var(--font-display); font-size: clamp(38px, 5vw, 54px); line-height: 1.1; }
.stat-label { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; } }

/* ===== Testimonials ===== */
.testimonials { position: relative; padding: 90px 0; background-color: var(--navy); }
.testimonials .container { position: relative; max-width: 860px; }
.testimonial { margin: 0; text-align: center; color: #fff; }
.testimonial::before {
  content: "\201C"; display: block; font-family: Georgia, serif; font-size: 90px;
  line-height: .6; color: var(--gold); margin-bottom: 14px;
}
.testimonial blockquote { margin: 0 0 26px; font-size: 19px; font-style: italic; line-height: 1.8; }
.testimonial figcaption strong { display: block; font-family: var(--font-head); color: var(--gold); letter-spacing: 1px; }
.testimonial figcaption span { font-size: 14px; opacity: .8; }

/* ===== Pillars / skills ===== */
.checklist { margin-top: 10px; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--navy);
}
.checklist li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 11px; height: 6px;
  border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg);
}
.skill { margin-bottom: 24px; }
.skill-head {
  display: flex; justify-content: space-between; margin-bottom: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--navy);
}
.bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--navy) 85%, var(--gold)); border-radius: 99px; transition: width 1.4s ease; }
.skill p { font-size: 15px; margin: 7px 0 0; }

/* ===== Navy CTA band ===== */
.calendar-cta { background: var(--navy); padding: 44px 0; border-top: 4px solid var(--gold); }
.calendar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.calendar-inner p { margin: 0; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 19px; }

/* ===== Page banner (inner pages) ===== */
.page-banner {
  position: relative; background-color: var(--navy);
  padding: 110px 0 90px; text-align: center;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(1,40,90,.7), rgba(0,18,43,.88)); }
.page-banner .container { position: relative; }
.page-banner .eyebrow { color: var(--gold); }
.page-banner h1 { color: #fff; font-size: clamp(30px, 4.8vw, 50px); margin: 0; }
.page-banner h1::after { content: ""; display: block; width: 70px; height: 3px; background: var(--gold); margin: 20px auto 0; }
.intro-section { padding: 70px 0 60px; }

/* ===== Coach ===== */
.coach-photo-wrap { position: relative; margin-bottom: 24px; }
.coach-photo { aspect-ratio: 3 / 4; border-radius: var(--radius); background-position: center 20%; }
.coach-tag {
  position: absolute; left: 20px; right: 20px; bottom: -24px;
  background: var(--navy); color: #fff; padding: 16px 20px; border-radius: var(--radius);
  border-left: 5px solid var(--gold);
  box-shadow: 0 10px 24px rgba(1,40,90,.25);
}
.coach-tag strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: .5px; }
.coach-tag span { font-size: 14px; color: var(--gold); font-weight: 600; }
.pull-quote {
  margin: 30px 0 0; padding: 26px 28px; background: var(--bg-alt);
  border-left: 4px solid var(--gold); font-style: italic; font-size: 18px; color: var(--ink);
}
.pull-quote cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--navy); }

/* ===== Programs ===== */
.focus { background: #fff; border-left: 3px solid var(--gold); padding: 10px 16px; }
.section:not(.section-alt) .focus { background: var(--bg-alt); }
.focus strong { color: var(--navy); }
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pipeline li {
  position: relative; text-align: center; padding: 28px 16px;
  border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); background: #fff;
}
.pipeline li:not(:last-child)::after {
  content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 22px; font-weight: 700;
}
.pipeline li:last-child { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold); }
.pipeline li:last-child strong, .pipeline li:last-child span { color: #fff; }
.step-age { display: block; font-family: var(--font-display); font-size: 30px; color: var(--navy); }
.pipeline li:last-child .step-age { color: var(--gold); }
.pipeline strong { display: block; font-family: var(--font-head); color: var(--navy); margin: 4px 0; }
.pipeline span { font-size: 15px; }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline li::after { display: none; }
}
@media (max-width: 480px) { .pipeline { grid-template-columns: 1fr; } }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 50px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; margin-top: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--navy); }
.form input, .form select {
  font: inherit; font-family: var(--font-body); font-weight: 400; font-size: 16px;
  padding: 12px 14px; border: 1px solid #c9d1de; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form button { justify-self: start; }
.form button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 15px; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }
.info-card { background: var(--navy); color: #d5dceb; padding: 32px; border-radius: var(--radius); border-top: 4px solid var(--gold); }
.info-card h3 { color: #fff; }
.info-card h4 { color: var(--gold); margin-top: 24px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours td:last-child { text-align: right; font-weight: 600; color: #fff; }
.map { aspect-ratio: 16 / 10; margin-top: 24px; border-radius: var(--radius); position: relative; overflow: hidden; background-color: rgba(255,255,255,.08); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Social band ===== */
.social-band { background: var(--navy-dark); display: flex; justify-content: center; gap: 22px; padding: 34px 16px; }
.social-band a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--gold); transition: background .2s, color .2s;
}
.social-band a:hover { background: var(--gold); color: var(--navy); }
.social-band svg { width: 20px; height: 20px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #a9b4c8; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 60px; }
.site-footer h4 { color: var(--gold); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 54px; height: auto; background: #fff; border-radius: 6px; padding: 5px; }
.footer-brand .wordmark-main { color: #fff; }
.footer-brand .wordmark-sub { color: var(--gold); }
.footer-links li { margin-bottom: 8px; }
.footer-links a, .contact-list a { color: #a9b4c8; }
.footer-links a:hover, .contact-list a:hover { color: var(--gold); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.contact-list svg { flex: none; width: 16px; height: 16px; margin-top: 5px; color: var(--gold); }
.info-card .contact-list a { color: #fff; }
.motto { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-top: 16px; }
.copyright { background: #000c1d; padding: 20px 0; font-size: 13px; color: #6f7c93; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--navy); color: var(--gold); border: 2px solid var(--gold);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }
