/* =========================================================
   Brothers Employment & Training — site styles
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-italic-var.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0a1a40;
  --navy-800: #0c2254;
  --navy-700: #183470;
  --blue-600: #1a5fd0;
  --blue-700: #144aa6;
  --blue-100: #e3ecfb;
  --yellow: #f6c21c;
  --yellow-hover: #ffd034;

  --ink: #14213d;
  --body: #3b475f;
  --muted: #5d6880;
  --line: #dfe3ea;
  --bg-alt: #f3f5f8;

  --on-navy: #d3dcef;
  --on-navy-muted: #a3b2d1;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 6px;
  --container: 1180px;
  --gutter: 20px;
  --header-h: 72px;
  --section: 64px;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --section: 96px; --header-h: 84px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--alt { background: var(--bg-alt); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: #fff; }

.sub-toggle svg, .banner-nav svg, .square-btn svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 6.5vw, 44px); line-height: 1.05; letter-spacing: .005em;
  margin-bottom: 18px;
}
.subhead { font-size: 18px; font-weight: 500; color: var(--blue-600); margin: -6px 0 22px; line-height: 1.4; }
.lead { font-size: 18px; }
.fine-print { margin: 20px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px; line-height: 1.25;
  border-radius: 4px; border: 2px solid transparent; text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); color: #fff; }
.btn-accent { background: var(--yellow); color: var(--navy-900); }
.btn-accent:hover { background: var(--yellow-hover); color: var(--navy-900); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { color: var(--navy-900); background: #fff; border-color: #fff; }
.btn-outline { color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline:hover { color: #fff; background: var(--navy-800); }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 519px) {
  .btn-row .btn, .split-copy > .btn { width: 100%; }
}

.text-link { font-weight: 700; font-size: 15.5px; color: var(--blue-600); text-decoration: underline; text-decoration-color: rgba(26, 95, 208, .35); }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link--light { color: #fff; text-decoration-color: rgba(255, 255, 255, .4); }
.text-link--light:hover { color: var(--yellow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; }
@media (min-width: 768px) { .brand img { height: 58px; } }

.primary-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.menu { display: flex; align-items: center; }
.menu > li { position: relative; }
.menu a { display: block; padding: 10px 10px; color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; text-decoration: none; }
.menu a:hover { color: var(--blue-600); }
.menu a[aria-current="page"] { color: var(--blue-600); }
.menu > li > a[aria-current="page"], .sub-trigger > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }
.sub-trigger { display: flex; align-items: center; }
.sub-trigger > a { padding-right: 0; }
.sub-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: none; border: 0; color: var(--ink); }
.sub-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 10; min-width: 310px; padding: 8px 0;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue-600);
  box-shadow: 0 12px 28px -12px rgba(10, 26, 64, .3);
  display: none;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { display: block; }
.sub-menu a { white-space: normal; padding: 10px 18px; line-height: 1.35; font-size: 15px; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--bg-alt); }

.header-cta { min-height: 44px; padding: 9px 18px; font-size: 14.5px; white-space: nowrap; }
.nav-phone { display: none; }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--navy-800); font-weight: 700; font-size: 15px;
}
.nav-toggle-bars { display: flex; flex-direction: column; justify-content: space-between; width: 20px; height: 14px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) and (min-width: 1081px) {
  .menu a { padding-inline: 7px; font-size: 14.5px; }
  .primary-nav { gap: 12px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    display: none; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 8px var(--gutter) 32px; margin: 0; background: #fff; overflow-y: auto; overscroll-behavior: contain;
    border-top: 1px solid var(--line);
  }
  .primary-nav.is-open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu a { padding: 15px 2px; font-size: 17px; white-space: normal; }
  .menu > li > a[aria-current="page"], .sub-trigger > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); padding-left: 14px; }
  .sub-trigger { justify-content: space-between; }
  .sub-toggle { width: 48px; height: 48px; border-left: 1px solid var(--line); }
  .sub-menu { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 10px; }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: none; }
  .has-sub.is-open > .sub-menu { display: block; }
  .sub-menu a { font-size: 16px; padding: 12px 14px; }
  .header-cta { width: 100%; min-height: 52px; font-size: 16px; margin-top: 8px; }
  .nav-phone {
    display: flex; align-items: center; justify-content: center; min-height: 52px;
    border: 2px solid var(--navy-800); border-radius: 4px; color: var(--navy-800); font-weight: 700; text-decoration: none;
  }
  .nav-phone::before { content: "Call "; white-space: pre; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 380px) { .nav-toggle-label { display: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: 48px; background: var(--navy-800); color: var(--on-navy); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18vw; max-height: 220px; background: #fff; z-index: -1; }
.hero-inner { padding-bottom: 40px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 10vw, 84px); line-height: .98; color: #fff; margin-bottom: 24px; max-width: 900px;
}
.hero h1 span { display: block; color: var(--yellow); }
.hero-text { max-width: 720px; }
.hero-text p { font-size: 16.5px; }
.hero-strong { color: #fff; font-weight: 500; }
.hero .btn-row { margin-top: 26px; }
@media (min-width: 768px) {
  .hero { padding-top: 80px; }
  .hero-inner { padding-bottom: 56px; }
  .hero-text p { font-size: 18px; }
}

/* Banner carousel: banners have text baked in, so they are never cropped */
.banner-carousel { position: relative; background: var(--navy-900); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 40px -24px rgba(10, 26, 64, .6); }
.banner-track { position: relative; aspect-ratio: 1600 / 830; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: grid; place-items: center; }
.banner-slide.is-active { opacity: 1; z-index: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: contain; }
.banner-controls {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px; background: var(--navy-900);
}
.banner-nav {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 4px;
  background: transparent; color: #fff;
}
.banner-nav:hover { background: rgba(255, 255, 255, .1); }
.banner-dots { display: flex; }
.banner-dots button { position: relative; width: 32px; height: 44px; padding: 0; border: 0; background: none; }
.banner-dots button::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 4px; margin-top: -2px;
  background: rgba(255, 255, 255, .35);
}
.banner-dots button[aria-selected="true"]::before { background: var(--yellow); }

/* ---------- Stats ---------- */
.stats { padding: 48px 0 56px; }
.stats-title { margin-bottom: 20px; font-size: 15px; font-weight: 700; color: var(--muted); text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 22px 12px; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 9vw, 64px); line-height: 1; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (min-width: 768px) {
  .stats { padding: 64px 0 72px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Video ---------- */
.video-grid { display: grid; gap: 28px; align-items: center; }
.video-grid .h2 { margin: 0; }
.video-frame { background: var(--navy-900); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .video-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }

/* ---------- Founder ---------- */
.founder { background: var(--navy-800); color: var(--on-navy); overflow: hidden; }
.founder-inner { display: grid; gap: 0; align-items: end; padding-top: 48px; }
.founder-photo { order: 2; width: min(100%, 420px); margin: 24px auto 0; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center top; }
.founder-quote { padding-bottom: 8px; }
.founder-quote blockquote { border-left: 4px solid var(--yellow); padding-left: 20px; }
.founder-quote p { margin: 0; color: #fff; font-style: italic; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.5; }
.founder-quote figcaption { margin-top: 18px; padding-left: 24px; font-weight: 600; color: var(--on-navy-muted); }
@media (min-width: 900px) {
  .founder-inner { grid-template-columns: 5fr 7fr; gap: 56px; padding-top: 64px; align-items: center; }
  .founder-photo { order: 0; margin: 0; align-self: end; }
  .founder-quote { padding-bottom: 64px; }
}

/* ---------- Split layouts ---------- */
.stack { display: grid; gap: 64px; }
.split { display: grid; gap: 28px; align-items: center; }
.photo { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.split-copy > .btn { margin-top: 28px; }
@media (min-width: 900px) {
  .stack { gap: 96px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse .split-media { order: 2; }
}

.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-size: 17px; color: var(--ink); line-height: 1.45; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 9px;
  border-left: 3px solid var(--blue-600); border-bottom: 3px solid var(--blue-600); transform: rotate(-45deg);
}

.steps { counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 16px; font-size: 17px; color: var(--ink); line-height: 1.4; }
.steps li::before {
  content: counter(step); flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--navy-900);
  background: var(--yellow); border-radius: 4px;
}

/* ---------- Offer ---------- */
.offer-head { display: grid; gap: 8px; margin-bottom: 40px; }
.offer-intro p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .offer-head { grid-template-columns: 4fr 7fr; gap: 56px; margin-bottom: 56px; } }

.offer-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .offer-grid { grid-template-columns: 7fr 5fr; gap: 24px; } }
.track { padding: 28px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.track h3 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 34px); margin-bottom: 12px; }
.track-intro { margin-bottom: 8px; }
.course-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.course-list li:last-child { padding-bottom: 0; }
.course-list h4, .track--navy h4 { font-size: 18.5px; margin-bottom: 8px; line-height: 1.3; }
.course-list p { font-size: 15.5px; margin-bottom: 10px; }
.track--navy { background: var(--navy-800); border-color: var(--navy-800); color: var(--on-navy); border-top: 5px solid var(--yellow); }
.track--navy h3, .track--navy h4 { color: #fff; }
.track--navy p { font-size: 15.5px; }
@media (min-width: 768px) { .track { padding: 36px; } }

.tdlr-ids { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.tdlr-ids div { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; }
.tdlr-ids dt { font-size: 13px; color: var(--on-navy-muted); }
.tdlr-ids dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; color: #fff; }

/* ---------- Testimonials ---------- */
.t-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.t-head .h2 { margin: 0; }
.scroller-controls { display: flex; gap: 8px; flex: none; }
.square-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px;
  background: #fff; border: 1px solid var(--line); color: var(--navy-800);
}
.square-btn:hover { border-color: var(--navy-800); }
.square-btn:disabled { opacity: .35; cursor: default; }
.t-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  overscroll-behavior-x: contain;
}
.t-card {
  scroll-snap-align: start; display: flex; flex-direction: column; padding: 24px 22px;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue-600); border-radius: var(--radius);
}
.t-card blockquote { flex: 1; font-size: 16px; line-height: 1.65; }
.t-card figcaption { margin-top: 18px; font-weight: 700; color: var(--ink); }
.t-link { margin-top: 4px; font-size: 14.5px; }
@media (min-width: 640px) { .t-scroller { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 1000px) { .t-scroller { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 639px) { .scroller-controls { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--blue-600); color: #e4ecfb; padding: 48px 0; }
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(28px, 5vw, 40px); line-height: 1.08; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-band a:not(.btn) { color: #fff; font-weight: 700; }
.cta-band .btn-outline-light:hover { color: var(--blue-700); }
@media (min-width: 900px) { .cta-band { padding: 56px 0; } .cta-inner { grid-template-columns: 1fr auto; gap: 40px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-navy-muted); font-size: 15px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; padding-block: 56px; }
.footer-logo { display: inline-block; padding: 10px 14px; background: #fff; border-radius: 4px; }
.footer-logo img { height: 60px; width: auto; }
.footer-logo:hover { text-decoration: none !important; }
.footer-contact { display: grid; gap: 2px; margin-top: 20px; line-height: 1.5; }
.footer-contact a { display: inline-block; padding: 6px 0; color: #fff; font-weight: 500; }
.footer-contact h2 { margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; }
.footer-address { margin: 20px 0 0; line-height: 1.5; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

.footer-col h2 { margin-bottom: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; color: #fff; }
.footer-col li a { display: block; padding: 8px 0; line-height: 1.4; }

.insta-profile { display: flex; gap: 12px; align-items: flex-start; }
.insta-profile img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.insta-profile strong { display: block; color: #fff; font-size: 15px; }
.insta-profile small { display: block; font-size: 14px; line-height: 1.5; color: var(--on-navy-muted); }
.insta-profile:hover { text-decoration: none !important; }
.insta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 14px; }
.insta-grid a { display: block; aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--navy-800); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; }
.insta-grid a:hover img { opacity: .85; }

.partner-card {
  display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .15); border-left: 4px solid var(--yellow); border-radius: 4px;
  background: var(--navy-700); transition: background .15s, border-color .15s;
}
.partner-card svg { width: 28px; height: 28px; flex: none; fill: var(--yellow); }
.partner-card strong { display: block; color: #fff; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; }
.partner-card small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--yellow); }
.site-footer .partner-card:hover { text-decoration: none; background: var(--navy-800); border-color: var(--yellow); }
.partner-card:hover small span { margin-left: 4px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom-inner { display: grid; gap: 12px; padding-block: 20px 28px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; column-gap: 20px; }
.footer-bottom li a { display: inline-block; padding: 8px 0; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: minmax(344px, 1fr) 1fr; }
  .footer-insta { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(344px, 1.1fr) 1fr 1.3fr; gap: 56px; padding-block: 72px; }
  .footer-insta { grid-column: auto; }
  .footer-bottom-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-bottom ul { justify-content: flex-end; }
}

/* =========================================================
   Interior pages
   ========================================================= */
.page-hero { padding: 36px 0 44px; background: var(--navy-800); color: var(--on-navy); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 8vw, 64px); line-height: 1; color: #fff; max-width: 900px;
}
.page-hero h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 18px; background: var(--yellow); }
.page-hero .lead { max-width: 740px; margin: 18px 0 0; font-size: 17px; }
.page-hero .meta { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; color: var(--yellow); }
.page-hero .btn-row { margin-top: 26px; }
@media (min-width: 768px) { .page-hero { padding: 48px 0 64px; } .page-hero .lead { font-size: 18.5px; } }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin-bottom: 22px; font-size: 14px; }
.breadcrumb li { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--on-navy-muted); }
.breadcrumb a { color: var(--on-navy-muted); }
.breadcrumb a:hover { color: #fff; }

/* About */
.instructor { display: grid; gap: 28px; align-items: start; }
.instructor-photo { background: var(--blue-100); border-radius: var(--radius); overflow: hidden; }
.instructor-photo img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; object-position: center top; }
.role { margin: -8px 0 20px; font-weight: 600; color: var(--blue-600); }
@media (min-width: 900px) { .instructor { grid-template-columns: 5fr 7fr; gap: 64px; } .instructor-photo { position: sticky; top: calc(var(--header-h) + 24px); } }

.mv-grid { display: grid; gap: 40px; }
.mv-grid h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); padding-top: 16px; border-top: 4px solid var(--navy-800); margin-bottom: 14px; }
.mv-grid p:last-child { margin-bottom: 0; }
@media (min-width: 800px) { .mv-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

.values { display: grid; border-top: 1px solid var(--line); }
.values div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.values dt { font-weight: 700; font-size: 18px; color: var(--ink); }
.values dd { margin: 0; }
@media (min-width: 768px) { .values div { grid-template-columns: 220px 1fr; gap: 24px; } }

/* Program cards */
.program-grid { display: grid; gap: 20px; }
.program-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; }
.program-card:hover { color: inherit; border-color: var(--blue-600); }
.program-card:hover h3 { color: var(--blue-600); }
.program-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.pc-body h3 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.pc-body p { font-size: 15.5px; flex: 1; }
.pc-more { font-weight: 700; font-size: 15px; color: var(--blue-600); text-decoration: underline; text-decoration-color: rgba(26, 95, 208, .35); text-underline-offset: 3px; }
.pc-more::after { content: " →"; }
.program-card--navy { background: var(--navy-800); border-color: var(--navy-800); color: var(--on-navy); border-top: 5px solid var(--yellow); }
.program-card--navy h3 { color: #fff; }
.program-card--navy:hover h3 { color: var(--yellow); }
.program-card--navy .pc-more { color: var(--yellow); text-decoration-color: rgba(246, 194, 28, .4); }

/* Language availability tag */
.lang-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 10px; padding: 4px 10px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; }
.lang-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); flex: none; }
.lang-tag--navy { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.hero .lang-tag { margin: 22px 0 0; font-size: 14.5px; padding: 6px 14px; }
.tdlr-ids .tdlr-ids-wide { grid-column: 1 / -1; }
.tdlr-ids .tdlr-ids-wide dd { font-size: 24px; }
@media (min-width: 640px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .program-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .program-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Detail layout */
.detail-grid { display: grid; gap: 40px; align-items: start; }
.detail-main > * + * { margin-top: 48px; }
.detail-main .h2 { font-size: clamp(28px, 5vw, 36px); }
.aside-card { padding: 26px 22px; border-radius: var(--radius); background: var(--navy-800); color: var(--on-navy); border-top: 5px solid var(--yellow); }
.aside-card h2 { font-family: var(--font-display); color: #fff; font-size: 26px; margin-bottom: 10px; }
.aside-card p { font-size: 15.5px; }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-card .tdlr-ids { margin-top: 4px; }
.aside-card .phone { display: block; margin: 4px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 28px; color: #fff; text-decoration: none; }
.aside-card .phone:hover { color: var(--yellow); }
.facts { margin: 0 0 14px; border-top: 1px solid rgba(255, 255, 255, .15); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 15px; }
.facts dt { color: var(--on-navy-muted); }
.facts dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
@media (min-width: 960px) {
  .detail-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; }
  .aside-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; }
}
.two-col { display: grid; gap: 12px 28px; }
@media (min-width: 600px) { .two-col { grid-template-columns: 1fr 1fr; } }
.photo--banner { aspect-ratio: auto; object-fit: contain; }
.after-list { margin: 20px 0 0; }
.aside-card a.on-dark { color: #fff; }
.aside-card a.on-dark:hover { color: var(--yellow); }

/* Enrollment steps */
.step-row { display: grid; gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step-row li { counter-increment: s; display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 17px; }
.step-row li::before {
  content: counter(s); flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; background: var(--yellow); color: var(--navy-900);
}
@media (min-width: 900px) {
  .step-row { grid-template-columns: repeat(5, 1fr); border-top: 0; gap: 0; }
  .step-row li { flex-direction: column; align-items: flex-start; padding: 0 20px 0 0; border-bottom: 0; }
  .step-row li + li { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* FAQ */
.faq-grid { display: grid; gap: 40px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-group { padding: 40px 0 12px; border-bottom: 2px solid var(--yellow); font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 4.5vw, 30px); }
.faq-list > .faq-group:first-child { padding-top: 0; }
.faq-list:has(.faq-group) { border-top: 0; }
.faq-body ul { margin: 0 0 1em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
  padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center;
  font-size: 24px; font-weight: 400; line-height: 1; color: var(--blue-600); border: 1px solid var(--line); border-radius: 4px;
}
.faq-item[open] summary::after { content: "–"; background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.faq-item summary:hover { color: var(--blue-600); }
.faq-body { padding: 0 0 22px; max-width: 720px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body h4 { font-size: 16.5px; margin: 18px 0 6px; }
.faq-body h4:first-child { margin-top: 0; }
.faq-body h4 a { text-decoration: none; }
.faq-body h4 a:hover { text-decoration: underline; }
.faq-body .price { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 3px; background: var(--blue-100); color: var(--navy-800); font-size: 14px; font-weight: 700; white-space: nowrap; }
.faq-body ul li { position: relative; padding-left: 18px; }
.faq-body ul li::before { content: "–"; position: absolute; left: 0; color: var(--blue-600); }
.faq-body ol { list-style: decimal; padding-left: 22px; }
.faq-body ol li { padding-left: 4px; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; }
}

/* Contact */
.contact-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item h2 { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.contact-item p, .contact-item .big { display: block; margin: 0 0 8px; font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.45; text-decoration: none; word-break: break-word; }
.contact-item .big:hover { color: var(--blue-600); }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr auto minmax(360px, 1.2fr); border-top: 0; }
  .contact-item { padding: 0 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .contact-item:first-child { padding-left: 0; border-left: 0; }
}
.message-panel { display: grid; gap: 20px; align-items: center; margin-top: 48px; padding: 28px 22px; border-radius: var(--radius); background: var(--navy-800); color: var(--on-navy); border-top: 5px solid var(--yellow); }
.message-panel h2 { font-family: var(--font-display); color: #fff; font-size: clamp(28px, 5vw, 38px); }
@media (min-width: 768px) { .message-panel { grid-template-columns: 1fr auto; padding: 36px 40px; } }

/* Program-information request form */
.inquiry { margin-top: 48px; padding: 28px 22px; border-radius: var(--radius); background: var(--bg-alt); border-top: 5px solid var(--yellow); }
.inquiry h2 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 38px); margin-bottom: 8px; }
.inquiry > p { max-width: 720px; }
.form-grid { display: grid; gap: 18px; margin-top: 20px; }
.field label, .field legend { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #b9c1cf; border-radius: 4px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--navy-800); }
.field fieldset { margin: 0; padding: 0; border: 0; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 400; color: var(--body); cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--navy-800); }
.choice-row { display: flex; flex-wrap: wrap; column-gap: 24px; }
.field--full { grid-column: 1 / -1; }
.form-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.form-hidden { position: absolute; left: -9999px; }
.form-success { margin-top: 20px; }
@media (min-width: 768px) {
  .inquiry { padding: 36px 40px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Legal / notices */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 19px; margin: 1.3em 0 .4em; }
.prose ul { margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 18px; }
.prose ul li::before { content: "–"; position: absolute; left: 0; color: var(--blue-600); }
.prose .effective { color: var(--muted); }
.course-notice { margin-top: 8px; }
.program-grid + .course-notice { margin-top: 40px; }
.course-notice ul { margin: 0 0 .8em; }
.course-notice ul li { position: relative; padding-left: 18px; }
.course-notice ul li::before { content: "–"; position: absolute; left: 0; color: var(--blue-600); }
.notice { padding: 22px 24px; border-left: 4px solid var(--yellow); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.notice p { margin: 0 0 .6em; }
.notice p:last-child { margin: 0; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Touch targets & long strings (mobile audit fixes) ---------- */
.footer-contact a, .contact-item .big { overflow-wrap: anywhere; }
.footer-contact a { padding: 10px 0; }
.footer-col li a { padding: 12px 0; }
.footer-bottom li a { padding: 12px 0; }
.text-link, .t-link { display: inline-block; padding-block: 11px; }
.breadcrumb a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.breadcrumb ol { row-gap: 12px; }
.aside-card .phone { padding-block: 6px; }
@media (min-width: 1000px) {
  .footer-col li a { padding: 8px 0; }
  .footer-bottom li a, .footer-contact a { padding-block: 6px; }
}
.contact-item .big { padding-block: 8px; margin-top: -8px; }
