/* ==========================================================================
   L'autoscuola.net — dependency-free design system
   ========================================================================== */

:root {
  --navy-950: #081b2d;
  --navy-900: #0d2f4b;
  --navy-800: #153e5d;
  --orange-500: #ff6b2c;
  --orange-600: #e9571d;
  --sky-500: #2397d4;
  --sky-100: #dff3fc;
  --canvas: #f5f1e8;
  --canvas-deep: #e9e2d5;
  --white: #ffffff;
  --ink: #10283a;
  --muted: #577082;
  --line: rgba(8, 27, 45, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 12px 30px rgba(8, 27, 45, 0.08);
  --shadow-md: 0 24px 60px rgba(8, 27, 45, 0.14);
  --shadow-lg: 0 32px 90px rgba(4, 18, 30, 0.24);
  --radius-sm: 0.7rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --radius-pill: 999px;
  --header-height: 5.25rem;
  --container: 75rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-space: clamp(5rem, 10vw, 8.5rem);
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-label:
    "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", Impact,
    ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 0.25rem rgba(255, 107, 44, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.97rem + 0.14vw, 1.08rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 9998;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 16% 24%, #081b2d 0 0.045rem, transparent 0.055rem),
    radial-gradient(circle at 78% 68%, #081b2d 0 0.04rem, transparent 0.052rem);
  background-position:
    0 0,
    0.17rem 0.13rem;
  background-size:
    0.29rem 0.31rem,
    0.37rem 0.35rem;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: var(--navy-950);
  background: #ffb08e;
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-950);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 0.18rem solid var(--orange-500);
  outline-offset: 0.2rem;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-head {
  display: grid;
  max-width: 49rem;
  margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
  gap: 0.95rem;
}

.section-head:has(.section-copy) {
  max-width: 58rem;
}

.section-eyebrow,
.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--orange-600);
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-eyebrow::before,
.hero-kicker::before {
  width: 1.85rem;
  height: 0.18rem;
  border-radius: var(--radius-pill);
  content: "";
  background: currentColor;
}

.section-title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.65rem);
}

.section-copy {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1rem + 0.35vw, 1.25rem);
}

.section--canvas {
  background: var(--canvas);
}

.section--white {
  background: var(--white);
}

.section--navy {
  color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 92% 10%, rgba(35, 151, 212, 0.16), transparent 25%),
    var(--navy-950);
}

.section--navy .section-title {
  color: var(--white);
}

.section--navy .section-copy {
  color: rgba(255, 255, 255, 0.66);
}

.section--navy .section-eyebrow {
  color: #ff8958;
}

.section--orange {
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 42%),
    var(--orange-500);
}

.section--contact {
  background: var(--canvas);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center > * {
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10002;
  top: 0.75rem;
  left: 0.75rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  color: var(--navy-950);
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Page loading ----------------------------------------------------------- */

.page-loader {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  visibility: visible;
  background: var(--navy-950);
  opacity: 1;
  transition:
    opacity 450ms ease,
    visibility 450ms ease;
}

.page-loader span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: var(--orange-500);
  animation: loader-pulse 850ms ease-in-out infinite alternate;
}

.page-loader span:nth-child(2) {
  background: var(--white);
  animation-delay: 140ms;
}

.page-loader span:nth-child(3) {
  background: var(--sky-500);
  animation-delay: 280ms;
}

body.is-ready .page-loader,
.no-js .page-loader {
  visibility: hidden;
  opacity: 0;
}

@keyframes loader-pulse {
  from {
    transform: translateY(0) scale(0.78);
    opacity: 0.55;
  }

  to {
    transform: translateY(-0.55rem) scale(1);
    opacity: 1;
  }
}

/* Header and navigation -------------------------------------------------- */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  background: linear-gradient(to bottom, rgba(4, 18, 30, 0.76), transparent);
  transition:
    background-color 250ms ease,
    box-shadow 250ms ease,
    backdrop-filter 250ms ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  background: rgba(8, 27, 45, 0.9);
  box-shadow: 0 0.7rem 2.4rem rgba(3, 17, 29, 0.18);
  backdrop-filter: blur(1rem) saturate(130%);
  -webkit-backdrop-filter: blur(1rem) saturate(130%);
}

.header-shell {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(calc(100% - (var(--gutter) * 2)), 82rem);
  min-height: var(--header-height);
  margin-inline: auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand-logo-shell {
  display: flex;
  width: clamp(9.75rem, 12vw, 11.75rem);
  padding: 0.34rem 0.55rem 0.3rem;
  flex: 0 0 auto;
  align-items: center;
  border: 0.08rem solid rgba(255, 255, 255, 0.38);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.5rem 1.5rem rgba(3, 17, 29, 0.16);
  line-height: 0;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.primary-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: clamp(0.7rem, 1.7vw, 1.45rem);
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 50%;
  bottom: 0.25rem;
  left: 50%;
  height: 0.14rem;
  border-radius: var(--radius-pill);
  content: "";
  background: var(--orange-500);
  transition:
    right 220ms var(--ease-out),
    left 220ms var(--ease-out);
}

.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.phone-pill {
  display: inline-flex;
  min-height: 2.75rem;
  padding-inline: 1rem;
  align-items: center;
  gap: 0.5rem;
  border: 0.08rem solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.phone-pill svg {
  width: 1rem;
  height: 1rem;
}

.language-picker {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  min-width: 3.6rem;
  min-height: 2.75rem;
  padding-inline: 0.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0.08rem solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.language-trigger::after {
  width: 0.44rem;
  height: 0.44rem;
  border-right: 0.1rem solid currentColor;
  border-bottom: 0.1rem solid currentColor;
  content: "";
  transform: translateY(-0.12rem) rotate(45deg);
  transition: transform 180ms ease;
}

.language-globe,
.language-chevron {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.language-chevron {
  transition: transform 180ms ease;
}

.language-trigger:has(.language-chevron)::after {
  display: none;
}

.language-picker.is-open .language-trigger::after,
.language-trigger[aria-expanded="true"]::after {
  transform: translateY(0.12rem) rotate(225deg);
}

.language-picker.is-open .language-chevron,
.language-trigger[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.45rem;
  border: 0.08rem solid rgba(8, 27, 45, 0.1);
  border-radius: 1rem;
  visibility: hidden;
  list-style: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 160ms ease,
    transform 160ms var(--ease-out),
    visibility 160ms;
}

.language-picker.is-open .language-menu,
.language-trigger[aria-expanded="true"] + .language-menu,
.language-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.language-option {
  display: flex;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 0.75rem;
  align-items: center;
  gap: 0.7rem;
  border-radius: 0.7rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: left;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.language-option::before {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border: 0.08rem solid var(--line);
  border-radius: 50%;
  content: "";
}

.language-option.is-active,
.language-option.is-current,
.language-option[aria-current="true"] {
  color: var(--navy-950);
  background: var(--sky-100);
}

.language-option.is-active::before,
.language-option.is-current::before,
.language-option[aria-current="true"]::before {
  border-color: var(--orange-500);
  background: var(--orange-500);
  box-shadow: 0 0 0 0.18rem rgba(255, 107, 44, 0.18);
}

.language-menu-label {
  margin: 0;
  padding: 0.55rem 0.75rem 0.35rem;
  color: var(--muted);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.language-code {
  min-width: 1.7rem;
  color: var(--navy-900);
  font-family: var(--font-label);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.language-check {
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  color: var(--orange-600);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0.08rem solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 1.1rem;
  height: 0.11rem;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition:
    transform 220ms var(--ease-out),
    opacity 150ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-0.3rem);
}

.menu-toggle span:last-child {
  transform: translateY(0.3rem);
}

body.menu-open .menu-toggle span:first-child,
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2),
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-toggle span:last-child,
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  min-height: max(45rem, 100svh);
  overflow: hidden;
  align-items: end;
  color: var(--white);
  background: var(--navy-950);
}

.hero-media,
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  overflow: hidden;
}

.hero-media img {
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.005);
}

.hero-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 18, 30, 0.96) 0%,
      rgba(4, 18, 30, 0.9) 27%,
      rgba(4, 18, 30, 0.55) 58%,
      rgba(4, 18, 30, 0.12) 82%
    ),
    linear-gradient(0deg, rgba(4, 18, 30, 0.86) 0%, transparent 45%),
    linear-gradient(180deg, rgba(4, 18, 30, 0.6) 0%, transparent 34%);
}

.hero::after {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 6vw, 6rem);
  bottom: -7rem;
  width: clamp(12rem, 24vw, 23rem);
  height: 18rem;
  border: 0.14rem dashed rgba(255, 255, 255, 0.24);
  border-radius: 50% 50% 0 0;
  content: "";
  transform: rotate(-18deg);
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  min-height: max(45rem, 100svh);
  margin-inline: auto;
  padding-top: calc(var(--header-height) + clamp(4rem, 9vh, 8rem));
  padding-bottom: clamp(5.5rem, 10vh, 8rem);
  align-items: center;
}

.hero-content {
  max-width: 49rem;
}

.hero-kicker {
  margin-bottom: clamp(1rem, 2.2vh, 1.7rem);
  color: #ff8958;
}

.hero-title {
  max-width: 12ch;
  margin: 0;
  color: var(--white);
  font-family: var(--font-label);
  font-size: clamp(3.5rem, 8.1vw, 7.5rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.87;
  text-transform: uppercase;
  text-shadow: 0 0.15rem 1.5rem rgba(0, 0, 0, 0.2);
}

.hero-accent {
  display: block;
  color: var(--orange-500);
}

.hero-copy {
  max-width: 39rem;
  margin: clamp(1.4rem, 3vh, 2.1rem) 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.04rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.contact-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: clamp(1.8rem, 3.5vh, 2.7rem);
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 3.35rem;
  padding: 0.8rem 1.35rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0.1rem solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms var(--ease-out);
}

.button svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.button--primary {
  color: var(--navy-950);
  background: var(--orange-500);
  box-shadow: 0 0.8rem 2.1rem rgba(255, 107, 44, 0.24);
}

.button--secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(0.4rem);
}

.button--glass {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(0.4rem);
}

.button--dark {
  color: var(--white);
  background: var(--navy-950);
}

.button--light {
  color: var(--navy-950);
  background: var(--white);
}

.button--outline {
  color: var(--navy-950);
  border-color: rgba(8, 27, 45, 0.26);
  background: transparent;
}

.button--outline-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
}

.hero-note {
  display: flex;
  max-width: 35rem;
  margin: 1.25rem 0 0;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.61);
  font-size: 0.77rem;
  line-height: 1.5;
}

.hero-note::before {
  width: 0.46rem;
  height: 0.46rem;
  margin-top: 0.35rem;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "";
  background: var(--sky-500);
  box-shadow: 0 0 0 0.2rem rgba(35, 151, 212, 0.18);
}

.hero-scroll {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll::after {
  width: 0.1rem;
  height: 2.5rem;
  content: "";
  background: linear-gradient(var(--orange-500) 50%, rgba(255, 255, 255, 0.25) 50%);
}

.hero-scroll:has(.hero-scroll-line)::after {
  display: none;
}

.hero-scroll-line {
  width: 0.1rem;
  height: 2.5rem;
  flex: 0 0 auto;
  background: linear-gradient(var(--orange-500) 50%, rgba(255, 255, 255, 0.25) 50%);
}

/* Proof strip ------------------------------------------------------------ */

.proof-strip {
  position: relative;
  z-index: 5;
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 1.5rem 4rem rgba(8, 27, 45, 0.16);
}

.proof-strip::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.25rem;
  content: "";
  background: linear-gradient(
    90deg,
    var(--orange-500) 0 35%,
    var(--sky-500) 35% 67%,
    rgba(255, 255, 255, 0.2) 67%
  );
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-item {
  position: relative;
  display: grid;
  min-height: 9.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  align-content: center;
  gap: 0.25rem;
}

.proof-item + .proof-item {
  border-left: 0.08rem solid var(--line-light);
}

.proof-item strong,
.proof-item [class*="value"],
.proof-item [class*="number"] {
  color: var(--white);
  font-family: var(--font-label);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.proof-item p,
.proof-item span {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Course explorer -------------------------------------------------------- */

.explorer {
  position: relative;
  overflow: hidden;
}

.explorer::before {
  position: absolute;
  top: 12%;
  right: -11rem;
  width: 29rem;
  height: 29rem;
  border: 0.13rem dashed rgba(8, 27, 45, 0.12);
  border-radius: 50%;
  content: "";
}

.explorer-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: 0.35rem;
  overflow-x: auto;
  gap: 0.35rem;
  border: 0.08rem solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.48);
  scrollbar-width: none;
}

.explorer-tabs::-webkit-scrollbar {
  display: none;
}

.services-block {
  margin-top: var(--section-space);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 0.08rem solid var(--line);
}

.explorer-tab {
  min-height: 2.9rem;
  padding: 0.65rem clamp(1rem, 2vw, 1.4rem);
  flex: 1 0 auto;
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.73rem;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.explorer-tab.is-active,
.explorer-tab[aria-selected="true"] {
  color: var(--white);
  background: var(--navy-950);
  box-shadow: 0 0.5rem 1.5rem rgba(8, 27, 45, 0.17);
}

.course-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.course-card {
  position: relative;
  display: grid;
  min-height: 17rem;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem) 5.6rem;
  overflow: hidden;
  align-content: start;
  border: 0.08rem solid rgba(8, 27, 45, 0.11);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.83);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 260ms var(--ease-out);
}

.course-card-top {
  display: flex;
  min-height: 3.45rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.course-kicker {
  margin: 1.35rem 0 -0.75rem !important;
  color: var(--orange-600) !important;
  font-family: var(--font-label);
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-card--service .course-icon {
  color: var(--white);
  background: var(--navy-900);
}

.course-card::before {
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 9rem;
  height: 9rem;
  border: 0.1rem dashed rgba(35, 151, 212, 0.22);
  border-radius: 50%;
  content: "";
  transition: transform 350ms var(--ease-out);
}

.course-card h3 {
  max-width: 14ch;
  margin: 1.5rem 0 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.course-card p {
  max-width: 35ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.course-icon {
  display: grid;
  width: 3.45rem;
  height: 3.45rem;
  place-items: center;
  border-radius: 1rem;
  color: var(--navy-950);
  background: var(--sky-100);
}

.course-icon img,
.course-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.course-code {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  color: var(--orange-600);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.course-arrow {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  display: grid;
  width: auto;
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.8rem;
  place-items: center;
  border: 0.08rem solid var(--line);
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--white);
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 220ms var(--ease-out);
}

.course-arrow span {
  max-width: 8rem;
}

.course-arrow svg {
  width: 1rem;
  height: 1rem;
}

/* Learning journey ------------------------------------------------------- */

.journey-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.journey-line {
  position: absolute;
  z-index: 0;
  top: 2.15rem;
  right: 9%;
  left: 9%;
  height: 0.12rem;
  background: repeating-linear-gradient(
    90deg,
    rgba(8, 27, 45, 0.23) 0 0.8rem,
    transparent 0.8rem 1.45rem
  );
}

.journey-step {
  position: relative;
  z-index: 1;
  padding: 0 clamp(0.3rem, 1vw, 0.75rem);
}

.journey-step h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.journey-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.step-label {
  margin: 1.1rem 0 0 !important;
  color: var(--orange-600) !important;
  font-family: var(--font-label);
  font-size: 0.66rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-number {
  display: grid;
  width: 4.3rem;
  height: 4.3rem;
  place-items: center;
  border: 0.35rem solid var(--canvas);
  border-radius: 50%;
  color: var(--white);
  background: var(--navy-950);
  box-shadow: 0 0 0 0.08rem rgba(8, 27, 45, 0.18);
  font-family: var(--font-label);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.journey-step:nth-of-type(2n) .step-number {
  color: var(--navy-950);
  background: var(--orange-500);
}

/* Benefits --------------------------------------------------------------- */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.benefit-card {
  position: relative;
  grid-column: span 4;
  min-height: 20rem;
  padding: clamp(1.5rem, 3.2vw, 2.3rem);
  overflow: hidden;
  border: 0.08rem solid rgba(8, 27, 45, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.benefit-card:nth-child(n + 4) {
  grid-column: span 6;
  min-height: 17rem;
}

.benefit-card::after {
  position: absolute;
  right: -3.2rem;
  bottom: -3.2rem;
  width: 9rem;
  height: 9rem;
  border: 2rem solid rgba(35, 151, 212, 0.06);
  border-radius: 50%;
  content: "";
}

.benefit-card h3 {
  max-width: 16ch;
  margin: 1.7rem 0 0.7rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.benefit-card p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
}

.benefit-card--featured {
  color: var(--white);
  border-color: transparent;
  background:
    linear-gradient(145deg, rgba(35, 151, 212, 0.22), transparent 55%),
    var(--navy-900);
  box-shadow: var(--shadow-md);
}

.benefit-card--featured h3 {
  color: var(--white);
}

.benefit-card--featured p {
  color: rgba(255, 255, 255, 0.7);
}

.benefit-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 0.9rem;
  color: var(--navy-950);
  background: var(--orange-500);
}

.benefit-icon svg,
.benefit-icon img {
  width: 1.55rem;
  height: 1.55rem;
}

.benefit-number {
  position: absolute;
  top: 1.25rem;
  right: 1.45rem;
  color: rgba(8, 27, 45, 0.13);
  font-family: var(--font-label);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.benefit-card--featured .benefit-number {
  color: rgba(255, 255, 255, 0.12);
}

.benefit-card > a {
  display: inline-flex;
  margin-top: 1.25rem;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.benefit-card > a svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Professional licence spotlight ---------------------------------------- */

.pro-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
  min-height: 34rem;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  gap: clamp(2rem, 6vw, 5rem);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(35, 151, 212, 0.25), transparent 28%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900));
  box-shadow: var(--shadow-lg);
}

.pro-spotlight::before {
  position: absolute;
  top: -11rem;
  right: -6rem;
  width: 31rem;
  height: 31rem;
  border: 0.16rem dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.pro-spotlight::after {
  position: absolute;
  right: 35%;
  bottom: -7rem;
  width: 8rem;
  height: 25rem;
  border-right: 0.18rem dashed rgba(255, 255, 255, 0.16);
  border-left: 0.18rem dashed rgba(255, 255, 255, 0.16);
  content: "";
  transform: rotate(28deg);
}

.pro-copy,
.pro-aside {
  position: relative;
  z-index: 1;
}

.pro-copy {
  align-self: center;
}

.pro-copy .section-eyebrow {
  color: #ff8958;
}

.pro-title {
  max-width: 13ch;
  margin: 1rem 0 1.3rem;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
}

.pro-copy > p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.7);
}

.pro-tags {
  display: flex;
  margin: 1.8rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.pro-tag {
  display: inline-flex;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  align-items: center;
  border: 0.08rem solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.75rem;
  font-weight: 800;
}

.pro-aside {
  display: grid;
  align-self: center;
}

.license-stack {
  display: grid;
  padding: 1rem;
  gap: 0.75rem;
}

.license-stack > * {
  display: grid;
  min-height: 6.5rem;
  padding: 1rem 1.1rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  border: 0.08rem solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  color: var(--navy-950);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.license-stack > :nth-child(1) {
  transform: rotate(-1.2deg);
}

.license-stack > :nth-child(2) {
  transform: translateX(0.55rem) rotate(1.1deg);
  background: var(--sky-100);
}

.license-stack > :nth-child(3) {
  transform: translateX(-0.35rem) rotate(-0.8deg);
  background: var(--orange-500);
}

.license-stack > :nth-child(4) {
  transform: translateX(0.35rem) rotate(0.7deg);
  background: #ffe8de;
}

.license-stack .pro-tag > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.75rem;
  color: var(--white);
  background: var(--navy-900);
}

.license-stack .pro-tag > span svg {
  width: 1.25rem;
  height: 1.25rem;
}

.license-stack strong {
  display: block;
  font-family: var(--font-label);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1;
}

.license-stack p {
  margin: 0.3rem 0 0;
  color: rgba(8, 27, 45, 0.68);
  font-size: 0.73rem;
  line-height: 1.35;
}

.license-stack small {
  align-self: start;
  color: rgba(8, 27, 45, 0.42);
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* Locations -------------------------------------------------------------- */

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.65rem);
}

.location-card {
  position: relative;
  display: flex;
  min-height: 25rem;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  overflow: hidden;
  flex-direction: column;
  border: 0.08rem solid rgba(8, 27, 45, 0.11);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 250ms var(--ease-out);
}

.location-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 0.3rem;
  content: "";
  background: linear-gradient(90deg, var(--orange-500), var(--sky-500));
}

.location-card h3 {
  max-width: 15ch;
  margin: 1.6rem 0 1rem;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
}

.location-card > p {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.location-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.location-badge {
  display: inline-flex;
  min-height: 1.8rem;
  padding: 0.3rem 0.65rem;
  align-items: center;
  border-radius: var(--radius-pill);
  color: var(--navy-950);
  background: var(--sky-100);
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.location-kicker {
  margin: 1.25rem 0 -1rem !important;
  color: var(--orange-600) !important;
  font-family: var(--font-label);
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.location-index {
  color: var(--orange-600);
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.location-meta {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.91rem;
  list-style: none;
}

.location-meta li,
.location-meta > * {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.location-meta > p,
.location-hours,
.location-hours p {
  margin: 0;
}

.location-hours > div {
  display: grid;
  flex: 1;
  gap: 0.35rem;
}

.location-hours p {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.location-hours strong {
  color: var(--navy-900);
  font-size: 0.82rem;
  white-space: nowrap;
}

.location-meta svg {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.25rem;
  flex: 0 0 auto;
  color: var(--sky-500);
}

.location-actions {
  margin-top: auto;
  padding-top: 1.6rem;
}

.location-actions a:not(.button) {
  display: inline-flex;
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  align-items: center;
  gap: 0.4rem;
  border: 0.08rem solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.location-actions svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* FAQ ------------------------------------------------------------------- */

.faq-list {
  display: grid;
  max-width: 58rem;
  margin-inline: auto;
  border-top: 0.08rem solid var(--line);
}

.faq-item {
  position: relative;
  border-bottom: 0.08rem solid var(--line);
}

.faq-item details {
  position: relative;
}

.faq-item summary {
  display: flex;
  min-height: 5rem;
  padding: 1.2rem 4rem 1.2rem 0;
  align-items: center;
  cursor: pointer;
  color: var(--navy-950);
  font-size: clamp(1rem, 0.95rem + 0.45vw, 1.25rem);
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: "";
}

.faq-icon {
  position: absolute;
  top: 1.25rem;
  right: 0;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 0.08rem solid var(--line);
  border-radius: 50%;
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.55);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 260ms var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  position: absolute;
  width: 0.8rem;
  height: 0.11rem;
  border-radius: var(--radius-pill);
  content: "";
  background: currentColor;
}

.faq-icon::after {
  transform: rotate(90deg);
  transition: transform 220ms var(--ease-out);
}

.faq-item details[open] .faq-icon {
  color: var(--navy-950);
  background: var(--orange-500);
  transform: rotate(180deg);
}

.faq-item[open] .faq-icon {
  color: var(--navy-950);
  background: var(--orange-500);
  transform: rotate(180deg);
}

.faq-item details[open] .faq-icon::after {
  transform: rotate(0);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0);
}

.faq-item details > :not(summary):not(.faq-icon) {
  max-width: 49rem;
  padding: 0 3.5rem 1.65rem 0;
  color: var(--muted);
}

.faq-item details > p {
  margin-bottom: 0;
}

.faq-answer {
  max-width: 49rem;
  padding: 0 3.5rem 1.65rem 0;
  color: var(--muted);
}

.faq-answer p {
  margin: 0;
}

/* Contact callout -------------------------------------------------------- */

.contact-panel {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--navy-950);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.35), transparent 24%),
    var(--orange-500);
  box-shadow: var(--shadow-md);
}

.contact-panel::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border: 0.16rem dashed rgba(8, 27, 45, 0.22);
  border-radius: 50%;
  content: "";
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-panel .section-eyebrow {
  color: var(--navy-900);
}

.contact-panel .section-title {
  margin-top: 1rem;
}

.contact-panel p {
  max-width: 40rem;
  color: rgba(8, 27, 45, 0.77);
}

.contact-actions {
  justify-content: flex-end;
}

.contact-panel .contact-actions {
  align-items: stretch;
  flex-direction: column;
}

.contact-panel .contact-actions .button--primary {
  color: var(--white);
  background: var(--navy-950);
  box-shadow: 0 0.8rem 2rem rgba(8, 27, 45, 0.2);
}

.contact-actions > p {
  margin: 0;
  color: rgba(8, 27, 45, 0.67);
  font-size: 0.76rem;
  line-height: 1.45;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-950);
  font-family: var(--font-label);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.contact-phone span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-phone strong {
  margin-right: auto;
  white-space: nowrap;
}

.contact-phone svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0 1.6rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  background: var(--navy-950);
}

.site-footer::before {
  position: absolute;
  top: -8rem;
  right: -4rem;
  width: 26rem;
  height: 26rem;
  border: 0.14rem dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(28rem, 1.2fr);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  gap: clamp(2rem, 6vw, 5rem);
}

.footer-brand {
  max-width: 28rem;
}

.footer-brand .brand {
  margin-bottom: 1.4rem;
}

.footer-brand .brand-logo-shell {
  width: clamp(11rem, 17vw, 13.5rem);
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.57);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.footer-nav h2,
.footer-nav h3 {
  margin-bottom: 0.55rem;
  color: var(--white);
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.62rem;
  list-style: none;
}

.footer-nav > div {
  display: grid;
  align-content: start;
  gap: 0.62rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-bottom {
  position: relative;
  display: flex;
  padding-top: 1.4rem;
  border-top: 0.08rem solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
}

/* Floating controls and toast ------------------------------------------- */

.floating-action {
  position: fixed;
  z-index: 900;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  display: inline-flex;
  min-height: 3.5rem;
  padding: 0.75rem 1.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0.12rem solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-pill);
  color: var(--navy-950);
  background: var(--orange-500);
  box-shadow: 0 1rem 2.8rem rgba(8, 27, 45, 0.3);
  font-family: var(--font-label);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 220ms var(--ease-out);
}

.floating-action svg {
  width: 1.25rem;
  height: 1.25rem;
}

.toast-region {
  position: fixed;
  z-index: 1200;
  right: 1rem;
  bottom: 5.8rem;
  display: grid;
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
  gap: 0.65rem;
}

.toast {
  padding: 0.9rem 1.1rem;
  border: 0.08rem solid rgba(255, 255, 255, 0.17);
  border-radius: 0.9rem;
  color: var(--white);
  background: rgba(8, 27, 45, 0.95);
  box-shadow: var(--shadow-md);
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(0.75rem);
  backdrop-filter: blur(0.75rem);
  transition:
    opacity 220ms ease,
    transform 260ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Progressive reveal ---------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 650ms ease,
    transform 650ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover-capable devices ------------------------------------------------- */

@media (hover: hover) {
  .brand:hover .brand-logo-shell {
    background: var(--white);
    box-shadow: 0 0.65rem 1.8rem rgba(3, 17, 29, 0.24);
    transform: translateY(-0.08rem);
  }

  .nav-link:hover {
    color: var(--white);
  }

  .nav-link:hover::after {
    right: 0;
    left: 0;
  }

  .phone-pill:hover,
  .language-trigger:hover {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.15);
  }

  .phone-pill:hover {
    transform: translateY(-0.1rem);
  }

  .language-option:hover {
    color: var(--navy-950);
    background: var(--canvas);
  }

  .button:hover {
    transform: translateY(-0.15rem);
  }

  .button--primary:hover {
    background: #ff7c43;
    box-shadow: 0 1rem 2.5rem rgba(255, 107, 44, 0.34);
  }

  .button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.14);
  }

  .button--glass:hover {
    border-color: rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.14);
  }

  .button--dark:hover {
    background: var(--navy-800);
  }

  .button--light:hover {
    background: var(--sky-100);
  }

  .button--outline:hover {
    color: var(--white);
    border-color: var(--navy-950);
    background: var(--navy-950);
  }

  .button--outline-dark:hover {
    color: var(--navy-950);
    border-color: var(--white);
    background: var(--white);
  }

  .course-card:hover {
    border-color: rgba(35, 151, 212, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-0.4rem);
  }

  .course-card:hover::before {
    transform: scale(1.15) rotate(16deg);
  }

  .course-card:hover .course-arrow {
    color: var(--white);
    background: var(--navy-950);
    transform: translateX(0.15rem);
  }

  .location-card:hover {
    border-color: rgba(255, 107, 44, 0.4);
    box-shadow: var(--shadow-md);
    transform: translateY(-0.35rem);
  }

  .location-actions a:not(.button):hover {
    color: var(--white);
    border-color: var(--navy-950);
    background: var(--navy-950);
  }

  .faq-item summary:hover {
    color: var(--orange-600);
  }

  .footer-nav a:hover,
  .footer-bottom a:hover {
    color: var(--white);
  }

  .floating-action:hover {
    background: #ff7c43;
    box-shadow: 0 1.3rem 3rem rgba(8, 27, 45, 0.38);
    transform: translateY(-0.22rem);
  }
}

/* Data-load fallback ---------------------------------------------------- */

.error-state {
  display: grid;
  min-height: 100svh;
  padding-block: 7rem 4rem;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(35, 151, 212, 0.12), transparent 28%),
    var(--canvas);
}

.error-state .container {
  display: grid;
  max-width: 38rem;
  justify-items: center;
}

.error-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  color: var(--orange-600);
}

.error-state h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.error-state p {
  max-width: 34rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
}

/* Tablet / compact desktop ---------------------------------------------- */

@media (max-width: 60rem) {
  :root {
    --header-height: 4.75rem;
  }

  .header-shell {
    gap: 0.8rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    z-index: 1;
    top: 0;
    right: auto;
    bottom: auto;
    left: calc(var(--gutter) * -1);
    display: grid;
    width: 100vw;
    height: 100svh;
    padding: calc(var(--header-height) + 2rem) var(--gutter) 2rem;
    overflow-y: auto;
    align-content: center;
    visibility: hidden;
    background:
      radial-gradient(circle at 88% 12%, rgba(35, 151, 212, 0.22), transparent 27%),
      var(--navy-950);
    opacity: 0;
    transform: translateY(-1rem);
    transition:
      visibility 250ms,
      opacity 250ms ease,
      transform 300ms var(--ease-out);
    scrollbar-width: none;
  }

  .primary-nav::-webkit-scrollbar {
    display: none;
  }

  .header-shell > .brand,
  .header-actions {
    position: relative;
    z-index: 2;
  }

  body.menu-open .primary-nav,
  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav::after {
    position: absolute;
    right: -7rem;
    bottom: -7rem;
    width: 24rem;
    height: 24rem;
    border: 0.15rem dashed rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
  }

  .nav-list {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 36rem);
    margin-inline: auto;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 0.08rem solid rgba(255, 255, 255, 0.14);
  }

  .nav-link {
    min-height: 4.2rem;
    color: var(--white);
    font-size: clamp(1.1rem, 4vw, 1.7rem);
    letter-spacing: 0.06em;
  }

  .nav-link::after {
    top: 50%;
    right: auto;
    bottom: auto;
    left: -1rem;
    width: 0.25rem;
    height: 0.25rem;
    transform: translateY(-50%);
  }

  .hero-title {
    font-size: clamp(3.8rem, 10vw, 6.3rem);
  }

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

  .proof-item:nth-child(3) {
    grid-column: 1 / -1;
    border-left: 0;
    text-align: center;
  }

  .proof-item:nth-child(n + 3) {
    border-top: 0.08rem solid var(--line-light);
  }

  .course-grid,
  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem 1rem;
  }

  .journey-line {
    display: none;
  }

  .journey-step {
    padding-left: 5.4rem;
  }

  .step-number {
    position: absolute;
    top: 0;
    left: 0;
  }

  .journey-step h3 {
    margin-top: 0;
  }

  .benefit-card {
    grid-column: span 6;
  }

  .benefit-card:last-child:nth-child(odd) {
    grid-column: 4 / span 6;
  }

  .pro-spotlight {
    grid-template-columns: 1fr;
  }

  .pro-aside {
    width: min(100%, 30rem);
  }

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

  .contact-actions {
    justify-content: flex-start;
  }
}

/* Mobile ---------------------------------------------------------------- */

@media (max-width: 45rem) {
  :root {
    --gutter: 1.25rem;
    --section-space: clamp(4.3rem, 16vw, 6rem);
  }

  .site-header,
  .site-header.is-scrolled {
    background: rgba(8, 27, 45, 0.9);
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(0.8rem);
  }

  .phone-pill {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .language-menu {
    position: fixed;
    top: calc(var(--header-height) + 0.4rem);
    right: var(--gutter);
  }

  .section-head {
    margin-bottom: 2.3rem;
  }

  .section-title {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
  }

  .hero {
    min-height: max(43rem, 100svh);
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-scrim {
    background:
      linear-gradient(
        90deg,
        rgba(4, 18, 30, 0.96) 0%,
        rgba(4, 18, 30, 0.86) 56%,
        rgba(4, 18, 30, 0.44) 100%
      ),
      linear-gradient(0deg, rgba(4, 18, 30, 0.94) 0%, transparent 63%),
      linear-gradient(180deg, rgba(4, 18, 30, 0.63) 0%, transparent 30%);
  }

  .hero::after {
    right: -6rem;
    bottom: -8rem;
  }

  .hero-grid {
    min-height: max(43rem, 100svh);
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4.5rem;
    align-items: center;
  }

  .hero-content {
    max-width: 36rem;
  }

  .hero-title {
    max-width: 10ch;
    font-size: clamp(3.25rem, 15vw, 5.5rem);
    line-height: 0.89;
  }

  .hero-copy {
    max-width: 31rem;
    color: rgba(255, 255, 255, 0.87);
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  .proof-item {
    min-height: 8.3rem;
    padding: 1.35rem;
  }

  .proof-item strong,
  .proof-item [class*="value"],
  .proof-item [class*="number"] {
    font-size: 1.65rem;
  }

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

  .course-card {
    min-height: 15.5rem;
  }

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

  .journey-step {
    min-height: 4.5rem;
  }

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

  .benefit-card,
  .benefit-card:nth-child(n + 4),
  .benefit-card:last-child:nth-child(odd) {
    grid-column: 1;
    min-height: 16rem;
  }

  .pro-spotlight,
  .contact-panel {
    margin-inline: calc(var(--gutter) * -0.45);
    border-radius: 1.45rem;
  }

  .pro-spotlight {
    min-height: 0;
    padding: 2rem 1.5rem 3.3rem;
  }

  .pro-title {
    font-size: clamp(2.3rem, 11vw, 3.45rem);
  }

  .license-stack {
    margin-top: 0.5rem;
    padding: 0.7rem;
  }

  .license-stack > * {
    min-height: 7.5rem;
    padding: 1.2rem;
  }

  .location-card {
    min-height: 22rem;
  }

  .faq-item summary {
    min-height: 4.65rem;
    padding-right: 3.5rem;
    font-size: 1rem;
  }

  .faq-item details > :not(summary):not(.faq-icon) {
    padding-right: 0;
  }

  .faq-answer {
    padding-right: 0;
  }

  .contact-panel {
    padding: 2rem 1.5rem;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-actions .button {
    width: 100%;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-action {
    min-width: 3.45rem;
    min-height: 3.45rem;
    padding: 0.8rem;
  }

  .floating-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

/* Small phones ---------------------------------------------------------- */

@media (max-width: 30rem) {
  :root {
    --gutter: 1rem;
  }

  .brand-logo-shell {
    width: 8.9rem;
    padding: 0.28rem 0.45rem 0.25rem;
    border-radius: 0.65rem;
  }

  .brand {
    min-width: 0;
  }

  .header-shell {
    gap: 0.45rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .language-trigger {
    min-width: 2.8rem;
    padding-inline: 0.55rem;
  }

  .language-trigger .language-globe {
    display: none;
  }

  .menu-toggle {
    width: 2.65rem;
    height: 2.65rem;
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .proof-item {
    min-height: 7.7rem;
    padding: 1.1rem;
  }

  .proof-item p,
  .proof-item span {
    font-size: 0.65rem;
  }

  .explorer-tabs {
    margin-right: -1rem;
    border-radius: 1rem 0 0 1rem;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

/* User preferences and accessibility ----------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #334e61;
    --line: rgba(8, 27, 45, 0.35);
  }

  .site-header {
    background: var(--navy-950);
  }

  .hero-scrim {
    background: linear-gradient(90deg, #04121ef7 0 58%, #04121ea8);
  }

  .nav-link,
  .hero-copy,
  .footer-nav a {
    color: var(--white);
  }

  .course-card,
  .benefit-card,
  .location-card {
    border-width: 0.13rem;
  }
}

@media (forced-colors: active) {
  .page-loader span,
  .section-eyebrow::before,
  .hero-kicker::before,
  .proof-strip::before,
  .location-card::before {
    background: CanvasText;
  }

  .button,
  .phone-pill,
  .language-trigger,
  .menu-toggle,
  .course-card,
  .benefit-card,
  .location-card,
  .contact-panel {
    border: 0.12rem solid ButtonText;
  }

  .nav-link[aria-current="page"],
  .explorer-tab[aria-selected="true"],
  .language-option[aria-current="true"] {
    outline: 0.12rem solid Highlight;
  }
}

/* Print ----------------------------------------------------------------- */

@media print {
  @page {
    margin: 1.5cm;
  }

  *,
  *::before,
  *::after {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html {
    scroll-padding-top: 0;
  }

  body {
    font-size: 10pt;
  }

  body::before,
  .page-loader,
  .skip-link,
  .site-header,
  .hero-media,
  .hero-scrim,
  .hero-scroll,
  .explorer-tabs,
  .floating-action,
  .toast-region,
  .button,
  .course-arrow {
    display: none !important;
  }

  .container,
  .hero-grid {
    width: 100%;
  }

  .section {
    padding-block: 1.2cm;
  }

  .hero,
  .hero-grid {
    min-height: 0;
  }

  .hero-grid {
    padding: 0 0 1.2cm;
  }

  .hero-content,
  .hero-title,
  .section-title {
    max-width: none;
  }

  .hero-title {
    font-size: 34pt;
  }

  .proof-grid,
  .course-grid,
  .journey-grid,
  .benefit-grid,
  .location-grid,
  .pro-spotlight,
  .contact-grid,
  .footer-grid {
    display: block;
  }

  .proof-item,
  .course-card,
  .journey-step,
  .benefit-card,
  .location-card,
  .pro-copy,
  .pro-aside,
  .footer-grid > * {
    min-height: 0;
    margin-bottom: 0.6cm;
    padding: 0.4cm 0;
    border: 0;
    break-inside: avoid;
  }

  .license-stack {
    display: none;
  }

  .faq-item details:not([open]) > :not(summary):not(.faq-icon) {
    display: block;
  }

  .faq-icon {
    display: none;
  }

  .site-footer {
    padding: 1cm 0 0;
    border-top: 1px solid #000;
  }

  a[href^="http"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    font-weight: 400;
    word-break: break-all;
  }
}
