/* ==========================================================================
   SMD Coding — Medical Coding Training & Placement
   Design system + site styles
   Author: site build. Edit tokens in :root to re-brand from the logo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled directly from the SMD logo artwork.
     --brand-800 is the wordmark navy, --brand-400 the headset/laptop blue. */
  --brand-950: #061c27;
  --brand-900: #0a2634;
  --brand-800: #0f2f3e;
  --brand-700: #17475c;
  --brand-600: #1f6382;
  --brand-500: #2a7ea6;
  --brand-400: #3c94c4;
  --brand-300: #7fbbdd;
  --brand-100: #d6e9f5;
  --brand-50:  #eff6fb;

  /* Accent — warm amber, the complement of the brand blue. The logo is
     monochrome, so this exists purely to make calls to action stand out. */
  --accent-700: #a86209;
  --accent-600: #d1830f;
  --accent-500: #f5a623;
  --accent-300: #fbce7e;
  --accent-50:  #fef6e7;

  /* Support */
  --success-600: #0f7a55;
  --success-50:  #e6f5ef;
  --danger-600:  #c0392b;
  --danger-50:   #fdeceb;

  /* Neutrals — cool greys tuned to the brand blue */
  --ink:       #0b1e28;
  --ink-2:     #2e4a58;
  --muted:     #5b7787;
  --line:      #dae7ef;
  --line-soft: #ebf2f8;
  --surface:   #ffffff;
  --surface-2: #f3f8fc;
  --surface-3: #e6f0f8;

  /* Typography */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;  /* 13 */
  --fs-sm:   0.875rem;   /* 14 */
  --fs-base: 1rem;       /* 16 */
  --fs-md:   1.0625rem;  /* 17 */
  --fs-lg:   1.1875rem;  /* 19 */
  --fs-xl:   1.375rem;   /* 22 */
  --fs-2xl:  1.75rem;    /* 28 */
  --fs-3xl:  2.125rem;   /* 34 */
  --fs-4xl:  2.625rem;   /* 42 */
  --fs-5xl:  3.25rem;    /* 52 */

  /* Space */
  --space-section: 96px;
  --space-section-sm: 64px;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Elevation — soft, tinted to the brand rather than pure black */
  --shadow-xs: 0 1px 2px rgba(15, 47, 62, .06);
  --shadow-sm: 0 2px 8px rgba(15, 47, 62, .06), 0 1px 2px rgba(15, 47, 62, .04);
  --shadow-md: 0 8px 24px rgba(15, 47, 62, .08), 0 2px 6px rgba(15, 47, 62, .04);
  --shadow-lg: 0 18px 48px rgba(15, 47, 62, .12), 0 4px 12px rgba(15, 47, 62, .05);

  --header-h: 76px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* The UA rule for [hidden] loses to any display declaration in this file,
   so state it explicitly. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 4.6vw, var(--fs-5xl)); }
h2 { font-size: clamp(1.65rem, 3.4vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-800); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

::selection { background: var(--brand-100); color: var(--brand-900); }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--brand-800); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1320px; }

.section { padding: var(--space-section) 0; position: relative; }
.section--tight { padding: var(--space-section-sm) 0; }
.section--alt { background: var(--surface-2); }
.section--soft { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.section--brand { background: var(--brand-900); color: rgba(255, 255, 255, .82); }
.section--brand h1, .section--brand h2, .section--brand h3, .section--brand h4 { color: #fff; }
.section--brand .section-lead { color: rgba(255, 255, 255, .78); }
.section--brand .eyebrow { color: var(--brand-300); }
.section--brand .eyebrow::before { background: var(--brand-400); }

/* Faint clinical grid pattern for hero / brand bands */
.has-pattern::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.has-pattern > * { position: relative; z-index: 1; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid--sidebar { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.grid--tight { gap: 18px; }

/* Utilities */
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mt-16 { margin-top: 16px; }
.u-mt-24 { margin-top: 24px; }
.u-mt-32 { margin-top: 32px; }
.u-mt-40 { margin-top: 40px; }
.u-mt-56 { margin-top: 56px; }
.u-mb-0 { margin-bottom: 0; }
.u-mb-16 { margin-bottom: 16px; }
.u-mb-24 { margin-bottom: 24px; }
.u-mb-32 { margin-bottom: 32px; }
.u-mb-40 { margin-bottom: 40px; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-size: var(--fs-base); font-weight: 650; line-height: 1;
  padding: 15px 28px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  text-align: center;
  /* Labels wrap rather than burst out of a narrow card. They only ever wrap
     when the available width genuinely cannot hold them on one line. */
  white-space: normal; max-width: 100%;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .mdi { font-size: 1.15em; }

.btn--primary { background: var(--brand-700); color: #fff; box-shadow: 0 6px 18px rgba(23, 71, 92, .28); }
.btn--primary:hover { background: var(--brand-800); color: #fff; box-shadow: 0 10px 26px rgba(23, 71, 92, .34); }

.btn--accent { background: var(--accent-500); color: var(--brand-950); box-shadow: 0 6px 18px rgba(245, 166, 35, .32); }
.btn--accent:hover { background: var(--accent-600); color: var(--brand-950); box-shadow: 0 10px 26px rgba(245, 166, 35, .4); }

.btn--outline { background: transparent; color: var(--brand-700); border-color: var(--brand-300); }
.btn--outline:hover { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-400); }

.btn--light { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-900); }

.btn--onbrand { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn--onbrand:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .7); }

.btn--wa { background: #25d366; color: #05331a; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn--wa:hover { background: #1eb857; color: #05331a; }

.btn--ghost { background: transparent; color: var(--brand-700); padding-left: 0; padding-right: 0; }
.btn--ghost:hover { color: var(--brand-900); transform: none; }
.btn--ghost .mdi { transition: transform .2s var(--ease); }
.btn--ghost:hover .mdi { transform: translateX(4px); }

.btn--sm { padding: 11px 20px; font-size: var(--fs-sm); }
.btn--lg { padding: 18px 36px; font-size: var(--fs-lg); }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Top bar + header + navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--brand-950);
  color: rgba(255, 255, 255, .72);
  font-size: var(--fs-sm);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 42px; flex-wrap: wrap;
}
.topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__item {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255, 255, 255, .78);
}
.topbar__item:hover { color: #fff; }
.topbar__item .mdi { color: var(--brand-300); font-size: 1.05rem; }
.topbar__socials { display: flex; align-items: center; gap: 6px; }
.topbar__social {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .07);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.topbar__social:hover { background: var(--brand-600); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-md); background: rgba(255, 255, 255, .97); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__logo { height: 46px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.16rem; letter-spacing: -.02em; color: var(--brand-800);
  white-space: nowrap;
}
.brand__tag {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; }
/* Drawer-only controls. The mobile breakpoint below re-shows them; without
   this they render inside the desktop nav and push the header off-screen. */
.nav__close, .nav__mobile-cta { display: none; }
.nav__list {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav__item { position: relative; margin: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-size: .97rem; font-weight: 600;
  color: var(--ink-2);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav__link.is-active { color: var(--brand-700); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--accent-500);
}
.nav__link .mdi { font-size: 1.1rem; transition: transform .2s var(--ease); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20;
  min-width: 290px; padding: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item:hover > .dropdown,
.nav__item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__item:hover > .nav__link .mdi-chevron-down { transform: rotate(180deg); }
.dropdown li { margin: 0; }
.dropdown__link {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: .95rem; font-weight: 600; color: var(--ink-2);
  font-family: var(--font-display);
}
.dropdown__link span {
  display: block; font-family: var(--font-body); font-size: var(--fs-xs);
  font-weight: 400; color: var(--muted); margin-top: 2px;
}
.dropdown__link:hover { background: var(--brand-50); color: var(--brand-800); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; color: var(--brand-800); font-size: 1.55rem; cursor: pointer;
}
.nav-toggle:hover { background: var(--brand-50); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 98;
  background: rgba(4, 37, 46, .5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(39, 166, 190, .28), transparent 60%),
    radial-gradient(700px 420px at 6% 108%, rgba(245, 166, 35, .16), transparent 62%),
    linear-gradient(160deg, var(--brand-950) 0%, var(--brand-800) 55%, var(--brand-700) 100%);
  color: rgba(255, 255, 255, .84);
  padding: 84px 0 96px;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px; align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px 8px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: var(--fs-sm); font-weight: 600; color: #fff;
  margin-bottom: 24px;
}
.hero__eyebrow .pip {
  display: inline-grid; place-items: center;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--accent-500); color: var(--brand-950);
  font-size: var(--fs-xs); font-weight: 700;
}
.hero__title { color: #fff; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--accent-500); }
.hero__lead {
  font-size: var(--fs-lg); color: rgba(255, 255, 255, .8);
  max-width: 620px; margin-bottom: 32px;
}
.hero__actions { margin-bottom: 38px; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .75);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .mdi { color: var(--brand-300); font-size: 1.15rem; }

.hero__media { position: relative; }
.hero__card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xl);
  padding: 12px;
  backdrop-filter: blur(6px);
}
.hero__card img { border-radius: var(--r-lg); width: 100%; }
.hero__badge {
  position: absolute; left: -18px; bottom: 30px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink);
  padding: 14px 20px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero__badge .mdi {
  font-size: 1.7rem; color: var(--success-600);
  background: var(--success-50); border-radius: 50%;
  width: 44px; height: 44px; display: grid; place-items: center;
}
.hero__badge b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.hero__badge small { color: var(--muted); font-size: var(--fs-xs); }

/* Stat strip that overlaps the hero */
.stat-strip {
  position: relative; margin-top: -52px; z-index: 5;
}
.stat-strip__inner {
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat {
  padding: 30px 26px; text-align: center;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display); font-size: var(--fs-3xl);
  font-weight: 800; color: var(--brand-700); line-height: 1.1;
  letter-spacing: -.03em;
}
.stat__label {
  font-size: var(--fs-sm); color: var(--muted);
  margin-top: 6px; font-weight: 500;
}

/* Inner page hero */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 340px at 82% 0%, rgba(39, 166, 190, .3), transparent 62%),
    linear-gradient(150deg, var(--brand-950) 0%, var(--brand-800) 100%);
  color: rgba(255, 255, 255, .82);
  padding: 64px 0 72px;
}
.page-hero__title { color: #fff; margin-bottom: 14px; font-size: clamp(1.9rem, 4vw, var(--fs-4xl)); }
.page-hero__lead { font-size: var(--fs-lg); color: rgba(255, 255, 255, .78); max-width: 720px; margin: 0; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin: 0 0 20px; padding: 0;
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .6);
}
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "\203A"; color: rgba(255, 255, 255, .4); }

/* --------------------------------------------------------------------------
   7. Section headings
   -------------------------------------------------------------------------- */
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: var(--fs-sm);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--accent-500);
}
.section-head--center .eyebrow { justify-content: center; }

.section-title { margin-bottom: 16px; }
.section-lead { font-size: var(--fs-lg); color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.card--flat { box-shadow: none; }
.card--pad-lg { padding: 40px; }

.card__icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.7rem;
  background: var(--brand-50); color: var(--brand-600);
  margin-bottom: 20px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.card--hover:hover .card__icon { background: var(--brand-700); color: #fff; }
.card__icon--accent { background: var(--accent-50); color: var(--accent-600); }
.card--hover:hover .card__icon--accent { background: var(--accent-500); color: var(--brand-950); }

.card__title { font-size: var(--fs-lg); margin-bottom: 10px; }
.card__text { font-size: var(--fs-base); color: var(--muted); margin: 0; }

/* Course card */
.course-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; height: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.course-card__top {
  padding: 26px 28px 22px;
  background: linear-gradient(135deg, var(--brand-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.course-card__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--brand-700); color: #fff;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 14px;
}
.course-card__badge--accent { background: var(--accent-500); color: var(--brand-950); }
.course-card__badge--green { background: var(--success-600); color: #fff; }
.course-card__title { font-size: var(--fs-xl); margin-bottom: 8px; }
.course-card__title a { color: inherit; }
.course-card__title a:hover { color: var(--brand-700); }
.course-card__meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: var(--fs-sm); color: var(--muted); margin: 0;
}
.course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card__meta .mdi { color: var(--brand-500); font-size: 1.05rem; }
.course-card__body { padding: 24px 28px; flex: 1; }
.course-card__body p { font-size: var(--fs-base); color: var(--muted); }
.course-card__footer {
  padding: 0 28px 28px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

/* Service card */
.service-card {
  display: flex; gap: 20px; padding: 28px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); height: 100%;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.service-card__icon {
  flex: none; width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--brand-50); color: var(--brand-600);
}
.service-card h3 { font-size: var(--fs-lg); margin-bottom: 8px; }
.service-card p { font-size: var(--fs-base); color: var(--muted); margin: 0; }

/* Info card (contact details, sidebars) */
.info-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px;
}
.info-card--brand {
  background: var(--brand-900); border-color: var(--brand-800);
  color: rgba(255, 255, 255, .8);
}
.info-card--brand h3, .info-card--brand h4 { color: #fff; }
.info-card--sticky { position: sticky; top: calc(var(--header-h) + 24px); }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list li:first-child { padding-top: 0; }
.info-card--brand .contact-list li { border-color: rgba(255, 255, 255, .12); }
.contact-list .mdi {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.35rem;
  background: var(--brand-50); color: var(--brand-600);
}
.info-card--brand .contact-list .mdi { background: rgba(255, 255, 255, .1); color: var(--brand-300); }
.contact-list b {
  display: block; font-family: var(--font-display);
  font-size: var(--fs-sm); text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); font-weight: 700;
}
.info-card--brand .contact-list b { color: var(--brand-300); }
.contact-list a, .contact-list span.value {
  font-size: var(--fs-md); font-weight: 600; color: var(--ink);
  word-break: break-word;
}
.info-card--brand .contact-list a, .info-card--brand .contact-list span.value { color: #fff; }
.contact-list a:hover { color: var(--brand-600); }
.info-card--brand .contact-list a:hover { color: var(--brand-300); }

/* --------------------------------------------------------------------------
   9. Lists & content blocks
   -------------------------------------------------------------------------- */
.checklist { list-style: none; margin: 0 0 1.1em; padding: 0; }
.checklist li {
  position: relative; padding-left: 34px; margin-bottom: 12px;
  font-size: var(--fs-base); color: var(--ink-2);
}
.checklist li::before {
  content: "\F12C"; /* mdi-check */
  font-family: "Material Design Icons";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  background: var(--brand-100); color: var(--brand-700);
}
.checklist--accent li::before { background: var(--accent-50); color: var(--accent-600); }
.checklist--onbrand li { color: rgba(255, 255, 255, .82); }
.checklist--onbrand li::before { background: rgba(255, 255, 255, .14); color: var(--brand-300); }
.checklist--two { columns: 2; column-gap: 40px; }
.checklist--two li { break-inside: avoid; }

/* Syllabus / curriculum bullet list */
.syllabus { list-style: none; margin: 0; padding: 0; }
.syllabus li {
  position: relative; padding: 14px 0 14px 38px;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-base); color: var(--ink-2); margin: 0;
}
.syllabus li:last-child { border-bottom: 0; }
.syllabus li::before {
  content: "\F12F"; /* mdi-checkbox-blank-circle */
  font-family: "Material Design Icons";
  position: absolute; left: 6px; top: 13px;
  color: var(--brand-400); font-size: .62rem;
}

.arrowlist { list-style: none; margin: 0; padding: 0; }
.arrowlist li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: var(--fs-base);
}
.arrowlist li::before {
  content: "\F142"; /* mdi-chevron-right */
  font-family: "Material Design Icons";
  position: absolute; left: 0; top: 0; color: var(--accent-500);
}

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose > *:first-child { margin-top: 0; }

.lead { font-size: var(--fs-lg); color: var(--ink-2); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 15px; border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-700);
  font-size: var(--fs-sm); font-weight: 600;
}
.pill--accent { background: var(--accent-50); color: var(--accent-700); }
.pill--green { background: var(--success-50); color: var(--success-600); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

.callout {
  display: flex; gap: 16px; padding: 22px 26px;
  background: var(--brand-50); border-left: 4px solid var(--brand-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout .mdi { font-size: 1.5rem; color: var(--brand-600); flex: none; }
.callout p { font-size: var(--fs-base); margin: 0; }
.callout--accent { background: var(--accent-50); border-left-color: var(--accent-500); }
.callout--accent .mdi { color: var(--accent-600); }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding-left: 68px; padding-bottom: 34px;
  margin: 0;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-700); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md);
  z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; left: 23px; top: 46px; bottom: 0;
  width: 2px; background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.steps p { font-size: var(--fs-base); color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   10. Accordion
   -------------------------------------------------------------------------- */
.accordion { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 26px; background: none; border: 0;
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 650;
  color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.accordion__btn:hover { background: var(--brand-50); color: var(--brand-800); }
.accordion__btn .mdi {
  flex: none; font-size: 1.4rem; color: var(--brand-500);
  transition: transform .25s var(--ease);
}
.accordion__btn[aria-expanded="true"] { color: var(--brand-800); background: var(--brand-50); }
.accordion__btn[aria-expanded="true"] .mdi { transform: rotate(180deg); }
.accordion__panel {
  overflow: hidden; height: 0;
  transition: height .3s var(--ease);
}
.accordion__inner { padding: 4px 26px 26px; color: var(--muted); font-size: var(--fs-base); }
.accordion__inner .checklist li { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  position: relative; height: 100%;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial__mark {
  font-family: "Material Design Icons"; font-size: 2.2rem;
  color: var(--brand-100); line-height: 1; margin-bottom: 14px;
}
/* Kept deliberately although no page uses it yet: star ratings were removed
   from the placeholder testimonials so nothing fabricated ships. Add
   <div class="rating" role="img" aria-label="Rated 5 out of 5"> back alongside
   a real, written student rating. */
.rating { display: flex; gap: 3px; color: var(--accent-500); font-size: 1.05rem; margin-bottom: 14px; }
.testimonial__quote {
  font-size: var(--fs-base); color: var(--ink-2); flex: 1; margin-bottom: 22px;
}
.testimonial__person { display: flex; align-items: center; gap: 14px; }
.avatar {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--brand-700); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--fs-base); }
.testimonial__role { font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Gallery
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--surface-2);
  aspect-ratio: 4 / 3;
  cursor: default;
}
/* Only tiles holding a real photo are clickable — main.js skips placeholders,
   so the zoom affordance must not appear on them. */
.gallery__item:has(img) { cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__caption {
  position: absolute; inset: auto 0 0 0;
  padding: 34px 20px 18px; color: #fff;
  font-size: var(--fs-sm); font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(4, 37, 46, .88));
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: #fff;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-2); cursor: pointer;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--brand-300); color: var(--brand-700); }
.filter-btn.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 32px;
  background: rgba(4, 37, 46, .92);
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--r-md); }
.lightbox__caption { color: rgba(255, 255, 255, .85); text-align: center; margin-top: 16px; font-size: var(--fs-sm); }
.lightbox__close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.7rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .26); }

/* Placeholder tile used until real photos are supplied */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; gap: 8px;
  background:
    repeating-linear-gradient(45deg, var(--surface-3) 0 12px, var(--surface-2) 12px 24px);
  color: var(--brand-600); text-align: center; padding: 20px;
}
.ph .mdi { font-size: 2.2rem; opacity: .7; }
.ph span { font-size: var(--fs-sm); font-weight: 600; }

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(39, 166, 190, .3), transparent 62%),
    linear-gradient(140deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: rgba(255, 255, 255, .82);
  border-radius: var(--r-xl);
  padding: 56px;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { margin-bottom: 20px; }
.form__label {
  display: block; font-family: var(--font-display);
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink);
  margin-bottom: 7px;
}
.form__label .req { color: var(--danger-600); }
.form__input, .form__select, .form__textarea {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-body); font-size: var(--fs-base); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form__input::placeholder, .form__textarea::placeholder { color: #9db4bd; }
.form__input:focus, .form__select:focus, .form__textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(39, 166, 190, .16);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f7c88' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
.form__hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.form__note { font-size: var(--fs-sm); color: var(--muted); margin-top: 16px; }
.form__group.has-error .form__input,
.form__group.has-error .form__select,
.form__group.has-error .form__textarea { border-color: var(--danger-600); }
.form__error { display: none; font-size: var(--fs-xs); color: var(--danger-600); margin-top: 6px; }
.form__group.has-error .form__error { display: block; }
.form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--r-md);
  font-size: var(--fs-base); margin-bottom: 24px;
}
.form-alert--ok { background: var(--success-50); color: var(--success-600); }
.form-alert--err { background: var(--danger-50); color: var(--danger-600); }
.form-alert .mdi { font-size: 1.35rem; flex: none; }

/* --------------------------------------------------------------------------
   15. Map
   -------------------------------------------------------------------------- */
.map-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2);
  min-height: 340px;
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* --------------------------------------------------------------------------
   16. Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); min-width: 620px; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.table th {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  background: var(--surface-2); white-space: nowrap;
}
.table tr:last-child td { border-bottom: 0; }
.table td { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--brand-950); color: rgba(255, 255, 255, .66); padding: 72px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 52px; padding-bottom: 52px;
}
.footer__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: var(--brand-300); }
.footer__about { font-size: var(--fs-base); color: rgba(255, 255, 255, .62); margin-bottom: 22px; }
.footer__title {
  font-family: var(--font-display); font-size: var(--fs-base); font-weight: 700;
  color: #fff; margin-bottom: 20px; letter-spacing: .01em;
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 11px; }
.footer__links a { color: rgba(255, 255, 255, .64); font-size: var(--fs-base); }
.footer__links a:hover { color: var(--brand-300); padding-left: 4px; }
.footer__links a { transition: color .2s var(--ease), padding-left .2s var(--ease); display: inline-block; }

.footer__contact { list-style: none; margin: 0; padding: 0; }
.footer__contact li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 16px; font-size: var(--fs-base);
  color: rgba(255, 255, 255, .64);
}
.footer__contact .mdi { color: var(--brand-300); font-size: 1.25rem; flex: none; margin-top: 2px; }
.footer__contact a { color: rgba(255, 255, 255, .82); }
.footer__contact a:hover { color: var(--brand-300); }

.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social:hover { background: var(--brand-600); color: #fff; transform: translateY(-3px); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 24px 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 14px;
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .5);
}
.footer__bottom a { color: rgba(255, 255, 255, .62); }
.footer__bottom a:hover { color: var(--brand-300); }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   18. Floating actions
   -------------------------------------------------------------------------- */
.float-actions {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem;
  color: #fff; box-shadow: var(--shadow-lg); border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn--wa { background: #25d366; }
.float-btn--call { background: var(--brand-700); }
.float-btn--top {
  background: var(--ink); font-size: 1.5rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
}
.float-btn--top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* --------------------------------------------------------------------------
   19. Scroll reveal
   -------------------------------------------------------------------------- */
/* Scoped to .js so that content is never hidden when JavaScript is
   unavailable or fails before main.js runs. The .js class is set by the
   inline bootstrap script in each page's <head>. */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1160px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero__inner { gap: 40px; }
  .cta-band { padding: 44px; }
}

/* Nav collapses to a drawer here. The desktop header needs roughly 1050px to
   fit the brand, six nav items and the CTA without squeezing anything.
   Keep this value in sync with MOBILE_NAV_BREAKPOINT in assets/js/main.js. */
@media (max-width: 1100px) {
  :root { --space-section: 72px; --space-section-sm: 52px; }

  .nav-toggle { display: flex; }
  .header-actions .btn--primary { display: none; }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 99;
    width: min(360px, 88vw);
    background: #fff; box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch;
    padding: 26px 22px 40px; gap: 0;
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform .32s var(--ease);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav__item { width: 100%; }
  .nav__link {
    justify-content: space-between; width: 100%;
    padding: 14px 12px; font-size: var(--fs-md);
    border-radius: var(--r-md);
  }
  .nav__link.is-active::after { display: none; }
  .nav__link.is-active { background: var(--brand-50); }
  .nav__close {
    align-self: flex-end; margin-bottom: 10px;
    width: 42px; height: 42px; border-radius: var(--r-md);
    border: 1px solid var(--line); background: #fff;
    color: var(--ink); font-size: 1.5rem; cursor: pointer;
    display: grid; place-items: center;
  }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 2px 0 6px 14px; padding: 0 0 0 8px;
    min-width: 0; display: none;
  }
  .nav__item.is-expanded > .dropdown { display: block; }
  .nav__item.is-expanded > .nav__link .mdi-chevron-down { transform: rotate(180deg); }
  .dropdown__link { padding: 10px 12px; }
  .nav__mobile-cta { margin-top: 18px; display: grid; gap: 10px; }

  .hero { padding: 60px 0 76px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .hero__badge { left: 0; }

  .grid--split { grid-template-columns: 1fr; gap: 36px; }
  .grid--sidebar { grid-template-columns: 1fr; }
  .info-card--sticky { position: static; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .stat-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .topbar__inner { justify-content: center; gap: 12px; }
  .topbar__group--right { display: none; }

  /* minmax(0, 1fr) rather than 1fr: a bare 1fr track cannot shrink below its
     content's min-content width, which let wide cards push past the viewport. */
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .checklist--two { columns: 1; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .card, .info-card { padding: 24px; }
  .card--pad-lg { padding: 26px; }
  .cta-band { padding: 34px 26px; border-radius: var(--r-lg); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .stat-strip { margin-top: -36px; }
  .stat { padding: 22px 16px; }
  .stat__num { font-size: var(--fs-2xl); }

  .section-head { margin-bottom: 36px; }
  .btn { padding: 14px 24px; }
  .btn--lg { padding: 16px 28px; font-size: var(--fs-md); }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .hero__badge { position: static; margin-top: 16px; }
  .steps li { padding-left: 58px; }
  .steps li::before { width: 40px; height: 40px; font-size: var(--fs-base); }
  .steps li::after { left: 20px; top: 40px; }
  .float-actions { right: 14px; bottom: 14px; }
  .float-btn { width: 50px; height: 50px; font-size: 1.55rem; }
}

/* Very small phones — the brand lockup has to give way to the menu button */
@media (max-width: 400px) {
  .brand__logo { height: 38px; }
  .brand__name { font-size: 1.02rem; }
  .brand__tag { display: none; }
  .site-header__inner { gap: 12px; }
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .float-actions, .cta-band, .site-footer,
  .nav-backdrop, .lightbox { display: none !important; }
  body { color: #000; font-size: 12pt; }
  .section { padding: 16pt 0; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
