/* ============================================================
   ICON BJJ — HEMEL HEMPSTEAD ACADEMY
   style.css
   Design system: The Dojo Floor
   ============================================================ */

/* ============================================================
   FONTS — self-hosted, /fonts/ at repo root
============================================================ */
@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('/fonts/syne-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-300-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Fallback metric overrides — reduce layout shift while fonts load.
   Starter values; tune against the live page in DevTools > Rendering
   > Layout Shift Regions per skill Section 2 Step 3. */
@font-face {
  font-family: 'Syne Fallback';
  src: local('Arial');
  size-adjust: 108%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ============================================================
   1. DESIGN TOKENS
============================================================ */

:root {
  --canvas:        #F5F2EE;
  --canvas-deep:   #EDE9E3;
  --canvas-warm:   #E8E3DB;
  --ink:           #1A2B3C;
  --ink-mid:       #3D4F60;
  --ink-light:     #7A8A96;
  --accent:        #C4571A;
  --accent-hover:  #A84514;
  --white:         #FEFCFA;

  --ff-display:    'Syne', 'Syne Fallback', sans-serif;
  --ff-body:       'DM Sans', 'DM Sans Fallback', sans-serif;

  --radius-sm:     4px;
  --radius-md:     8px;

  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      2rem;
  --space-lg:      4rem;
  --space-xl:      6rem;

  --max-width:     1200px;
  --nav-height:    72px;
}

/* ============================================================
   2. RESET
============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-weight: 300;
  background-color: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  max-width: 100vw;
  padding-bottom: 72px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ============================================================
   3. TYPOGRAPHY
============================================================ */

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 65ch;
}

em {
  font-style: italic;
  color: var(--accent);
}

/* ============================================================
   4. LAYOUT UTILITIES
============================================================ */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-heading {
  margin-bottom: var(--space-xs);
}

.section-sub {
  color: var(--ink-light);
  margin-bottom: var(--space-md);
  max-width: 60ch;
}

/* ============================================================
   5. BUTTONS
============================================================ */

.btn-primary {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-hover);
}

.btn-ghost {
  display: inline-block;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   SKIP LINK
============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================================
   6. NAV — network standard
============================================================ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
  padding: 0.5rem 0;
}

#nav.scrolled {
  background: rgba(245, 242, 238, 0.92);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: var(--canvas-warm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.icon-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  border-radius: 3px;
}

.global-tag {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--canvas-warm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ink-mid);
  transition: color 0.2s ease;
  text-decoration: none;
}

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

.nav-cta {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 100px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.78rem;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}

.nav-hamburger span {
  width: 22px;
  height: 1.8px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen overlay */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 99;
  padding: 5.5rem var(--space-md) 2rem;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu.open {
  display: flex;
  opacity: 1;
}

#mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#mobile-menu nav a {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
  padding: 1rem 0;
  border-bottom: 1px solid var(--canvas-warm);
  letter-spacing: -0.01em;
  min-height: 56px;
  display: flex;
  align-items: center;
  text-decoration: none;
}

#mobile-menu nav a:last-child {
  color: var(--accent);
  border-bottom: none;
}

.mob-foot {
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  line-height: 1.8;
  padding-top: 2rem;
}

/* ============================================================
   Keep by Dettogni strip
============================================================ */

.footer-keep {
  background-color: var(--canvas-deep);
  border-top: 1px solid var(--canvas-warm);
  padding: 1rem var(--space-md);
  text-align: center;
  font-family: var(--ff-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-light);
}

.footer-keep a {
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-keep a:hover { color: var(--accent); }

/* Footer logo link */
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-logo-text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ============================================================
   7. HERO
============================================================ */

.academy-hero {
  padding-top: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background-color: var(--canvas-deep);
}

.hero-inner {
  padding: var(--space-xl) var(--space-lg) var(--space-xl) clamp(var(--space-md), 5vw, var(--space-xl));
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-light);
  margin-bottom: var(--space-sm);
}

.hero-breadcrumb a {
  color: var(--ink-light);
  transition: color 0.2s ease;
}

.hero-breadcrumb a:hover { color: var(--accent); }

.hero-location-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.hero-headline { margin-bottom: var(--space-sm); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-mid);
  margin-bottom: var(--space-md);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image-panel {
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--canvas-warm);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(196, 87, 26, 0.04) 20px,
    rgba(196, 87, 26, 0.04) 21px
  );
}

/* ============================================================
   8. CREDENTIALS STRIP
============================================================ */

.credentials-strip {
  background-color: var(--ink);
  padding: var(--space-md) 0;
}

.strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.credential-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.credential-number {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--accent);
  line-height: 1;
}

.credential-label {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  color: var(--canvas-warm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  text-align: center;
}

.credential-divider {
  width: 1px;
  height: 48px;
  background-color: var(--ink-mid);
}

/* ============================================================
   9. ABOUT / LINEAGE
============================================================ */

.about-section {
  padding: var(--space-xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-lg);
  align-items: start;
}

.about-text h2 { margin-bottom: var(--space-sm); }
.about-text p  { margin-bottom: var(--space-sm); }
.about-text .link-arrow { margin-top: var(--space-xs); }

.lineage-chain {
  background-color: var(--canvas-deep);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border-left: 3px solid var(--accent);
}

.lineage-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: var(--space-sm);
}

.lineage-list {
  display: flex;
  flex-direction: column;
}

.lineage-node {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--canvas-warm);
}

.lineage-node:last-child { border-bottom: none; }

.lineage-name {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.lineage-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-top: 0.1rem;
}

.lineage-node--active .lineage-name { color: var(--accent); }

/* ============================================================
   10. INSTRUCTOR SPLIT
============================================================ */

.instructor-section {
  padding: var(--space-xl) 0;
  background-color: var(--canvas-deep);
}

.instructor-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-top: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.instructor-split-photo {
  aspect-ratio: 3 / 4;
  min-height: 380px;
}

.instructor-photo--placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--canvas-warm);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(196, 87, 26, 0.04) 20px,
    rgba(196, 87, 26, 0.04) 21px
  );
}

.instructor-split-content {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.instructor-name { margin-bottom: 0.25rem; }

.instructor-rank {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.instructor-bio {
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.instructor-note {
  font-size: 0.8rem;
  color: var(--ink-light);
  max-width: none;
  border-top: 1px solid var(--canvas-warm);
  padding-top: var(--space-sm);
  margin-top: var(--space-xs);
}

/* ============================================================
   11. TIMETABLE
============================================================ */

.timetable-section {
  padding: var(--space-xl) 0;
}

.timetable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.timetable-day {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.day-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  border-bottom: 1px solid var(--canvas-warm);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.class-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.class-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--canvas-warm);
}

.class-item--gi {
  border-left-color: var(--ink-mid);
  background-color: var(--canvas);
}

.class-item--nogi {
  border-left-color: var(--accent);
  background-color: rgba(196, 87, 26, 0.05);
}

.class-item--kids {
  border-left-color: #4A8E6B;
  background-color: rgba(74, 142, 107, 0.05);
}

.class-item--comp {
  border-left-color: var(--ink);
  background-color: rgba(26, 43, 60, 0.06);
}

.class-time {
  font-size: 0.75rem;
  color: var(--ink-light);
  font-weight: 500;
}

.class-name {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.timetable-note {
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--ink-light);
  max-width: none;
}

/* ============================================================
   12. COMPETITION CALLOUT (Hemel-specific — weekly comp class)
============================================================ */

.comp-callout {
  background-color: var(--ink);
  padding: var(--space-xl) 0;
}

.comp-callout-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: center;
}

.comp-callout-text h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.comp-callout-text p {
  color: var(--canvas-warm);
  margin-bottom: var(--space-sm);
}

.comp-callout-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  min-width: 200px;
}

.comp-stat-number {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}

.comp-stat-label {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  margin-top: 0.4rem;
}

.comp-stat-sub {
  font-size: 0.75rem;
  color: var(--canvas-warm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

/* ============================================================
   13. KIDS
============================================================ */

.kids-section {
  padding: var(--space-xl) 0;
  background-color: var(--canvas-deep);
}

.kids-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.kids-text h2 { margin-bottom: var(--space-sm); }
.kids-text p  { margin-bottom: var(--space-sm); }

.kids-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background-color: var(--canvas-warm);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(196, 87, 26, 0.04) 20px,
    rgba(196, 87, 26, 0.04) 21px
  );
}

/* ============================================================
   14. ACCORDION
============================================================ */

.beginners-section {
  padding: var(--space-xl) 0;
}

.faq-section {
  padding: var(--space-xl) 0;
  background-color: var(--canvas-deep);
}

.accordion {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--canvas-warm);
}

.accordion-item {
  border-bottom: 1px solid var(--canvas-warm);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  transition: color 0.2s ease;
}

.accordion-trigger::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  font-weight: 300;
}

.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion-trigger:hover { color: var(--accent); }

.accordion-panel { padding-bottom: var(--space-sm); }

.accordion-panel p { font-size: 0.95rem; }

/* ============================================================
   15. LOCATION
============================================================ */

.location-section {
  padding: var(--space-xl) 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.location-details h2 { margin-bottom: var(--space-md); }

.location-address {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-mid);
  margin-bottom: var(--space-md);
}

.location-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem var(--space-sm);
  background-color: var(--canvas-deep);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.contact-link:hover { background-color: var(--canvas-warm); }

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.contact-value {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}

.nearby-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 0.25rem;
  max-width: none;
}

.nearby-places {
  font-size: 0.9rem;
  color: var(--ink-mid);
  max-width: none;
}

.location-map iframe {
  border-radius: var(--radius-md);
  border: none;
  display: block;
}

/* ============================================================
   16. CTA BANNER
============================================================ */

.cta-banner {
  background-color: var(--ink);
  padding: var(--space-xl) 0;
}

.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.cta-headline {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.cta-sub {
  color: var(--canvas-warm);
  max-width: 55ch;
  margin: 0 auto var(--space-md);
}

.cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-banner .btn-ghost {
  border-color: var(--canvas-warm);
  color: var(--canvas-warm);
}

.cta-banner .btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ============================================================
   17. FOOTER
============================================================ */

.site-footer {
  background-color: var(--canvas-deep);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--canvas-warm);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
}

.footer-logo-text {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
}

.footer-logo-text em {
  color: var(--accent);
  font-style: normal;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
  max-width: none;
}

.footer-nav {
  display: flex;
  gap: var(--space-lg);
}

.footer-nav-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--ink-mid);
  transition: color 0.2s ease;
}

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

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--canvas-warm);
  padding-top: var(--space-sm);
}

.footer-legal p {
  font-size: 0.8rem;
  color: var(--ink-light);
  max-width: none;
}

/* ============================================================
   18. MOBILE BOTTOM NAV
============================================================ */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background-color: var(--white);
  border-top: 1px solid var(--canvas-warm);
  height: 72px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  color: var(--ink-mid);
  font-size: 0.7rem;
  font-family: var(--ff-body);
  transition: color 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus-visible {
  color: var(--ink);
}

.mobile-nav-item--cta {
  background-color: var(--accent);
  color: var(--white);
}

.mobile-nav-item--cta:hover {
  background-color: var(--accent-hover);
  color: var(--white);
}

/* ============================================================
   19. FOCUS / ACCESSIBILITY
============================================================ */

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

/* ============================================================
   20. RESPONSIVE — TABLET (max 960px)
============================================================ */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .academy-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image-panel { height: 260px; }
  .hero-inner { padding: var(--space-lg) var(--space-md); }

  .about-grid { grid-template-columns: 1fr; }
  .lineage-chain { max-width: 480px; }

  .instructor-split { grid-template-columns: 260px 1fr; }

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

  .comp-callout-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .comp-callout-text p { margin: 0 auto var(--space-sm); }

  .comp-callout-stat { margin: 0 auto; }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-nav { gap: var(--space-md); }
}

/* ============================================================
   21. RESPONSIVE — MOBILE (max 640px)
============================================================ */

@media (max-width: 640px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
  }

  body { padding-bottom: 72px; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .credential-divider { display: none; }

  .credential-item {
    width: 50%;
    padding: var(--space-sm);
  }

  .instructor-split {
    grid-template-columns: 1fr;
  }

  .instructor-split-photo {
    aspect-ratio: 3 / 2;
    min-height: auto;
  }

  .instructor-split-content {
    padding: var(--space-md);
  }

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

  .hero-actions { flex-direction: column; }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { text-align: center; }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .mobile-bottom-nav { display: flex; }
}
