/* SBB GmbH – Sprachen & Berufsbildungszentrum
   Visual direction: alpine teal — clear, trustworthy, contemporary */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #003a6b;
  --ink-soft: #1a4a78;
  --teal: #005696;
  --teal-bright: #1a7ab8;
  --mist: #eef3f8;
  --fog: #d0dce8;
  --paper: #f5f8fb;
  --white: #ffffff;
  --accent: #c45c26;
  --accent-hover: #a84a1c;
  --muted: #5a6e7c;
  --line: rgba(0, 58, 107, 0.12);
  --shadow-soft: 0 24px 60px rgba(0, 58, 107, 0.08);
  --radius: 4px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Atmosphere ——— */
.bg-atmosphere {
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(0, 86, 150, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(196, 92, 38, 0.07), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 45%, var(--white) 100%);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(0, 58, 107, 0.08);
}

.header-inner {
  position: relative;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: min(280px, 52vw);
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.nav-dropdown > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-dropdown > button:hover,
.nav-link.is-active {
  color: var(--teal);
  background: rgba(0, 86, 150, 0.08);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.nav-dropdown.is-open > button svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 280px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

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

.dropdown-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background: var(--mist);
  color: var(--teal);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.2rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  z-index: 1003;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 92, 38, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 40, 72, 0.15) 0%, rgba(0, 58, 107, 0.25) 35%, rgba(0, 40, 72, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 40, 72, 0.2) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.hero-brand span {
  display: block;
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.35em;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 12ch;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.hero-lead {
  font-size: 1.1rem;
  max-width: 38ch;
  opacity: 0;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  animation: fadeUp 0.9s var(--ease) 0.35s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Hero alt (split) ——— */
.hero-alt {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  min-height: min(88vh, 780px);
  color: var(--white);
  background: var(--ink);
}

.hero-alt-copy {
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(26, 122, 184, 0.22), transparent 55%),
    linear-gradient(165deg, #002848 0%, var(--ink) 55%, #003f75 100%);
}

.hero-alt-inner {
  max-width: 34rem;
}

.hero-alt .hero-brand {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.hero-alt h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.hero-alt .hero-lead {
  max-width: 36ch;
}

.hero-alt-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.hero-alt-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: heroZoom 20s var(--ease) forwards;
}

.hero-alt-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 40, 72, 0.35) 0%, transparent 35%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-alt {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-alt-media {
    min-height: 52vw;
    max-height: 420px;
    order: -1;
  }

  .hero-alt-copy {
    padding: 2.5rem 1.25rem 3rem;
  }

  .hero-alt-media::after {
    background: linear-gradient(180deg, transparent 40%, rgba(0, 40, 72, 0.45) 100%);
  }
}

/* ——— Hero alt2 (photo band + navy copy) ——— */
.hero-band {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: min(90vh, 860px);
  color: var(--white);
  background: var(--ink);
}

.hero-band-media {
  position: relative;
  flex: 1 1 58%;
  min-height: 280px;
  overflow: hidden;
}

.hero-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 40, 72, 0.55) 100%);
  pointer-events: none;
}

.hero-band-copy {
  flex: 0 0 auto;
  padding: clamp(2rem, 4.5vw, 3.25rem) 0;
  background:
    radial-gradient(ellipse 70% 120% at 90% 0%, rgba(26, 122, 184, 0.2), transparent 50%),
    linear-gradient(180deg, #002848 0%, var(--ink) 100%);
  border-top: 3px solid var(--accent);
}

.hero-band-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.hero-band h1 {
  max-width: 14ch;
  margin-bottom: 1rem;
}

.hero-band .hero-lead {
  max-width: 42ch;
  margin-bottom: 1.5rem;
}

.hero-band .btn-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

@media (max-width: 700px) {
  .hero-band {
    min-height: auto;
  }

  .hero-band-media {
    flex: none;
    height: 42vh;
    min-height: 220px;
  }
}

/* ——— Hero alt3 (copy top + staggered collage) ——— */
.hero-collage {
  display: block;
  min-height: auto;
  color: var(--ink);
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 86, 150, 0.06), transparent 55%),
    var(--paper);
  overflow: hidden;
}

.hero-collage-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-collage-copy {
  max-width: 38rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.hero-collage h1 {
  color: var(--ink);
  max-width: 12ch;
  margin-bottom: 1rem;
  animation-delay: 0.1s;
}

.hero-collage .hero-lead {
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: 1.75rem;
  animation-delay: 0.25s;
}

.hero-collage .hero-actions {
  animation-delay: 0.4s;
}

.hero-collage-media {
  position: relative;
  height: clamp(280px, 42vw, 460px);
  max-width: 920px;
}

.hero-collage-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--fog);
  box-shadow: 0 18px 50px rgba(0, 58, 107, 0.14);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) forwards;
}

.hero-collage-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-collage-shot--a {
  width: min(46%, 380px);
  aspect-ratio: 1;
  left: 0;
  bottom: 0;
  z-index: 3;
  animation-delay: 0.35s;
}

.hero-collage-shot--b {
  width: min(40%, 320px);
  aspect-ratio: 1;
  left: 28%;
  bottom: 18%;
  z-index: 1;
  animation-delay: 0.5s;
}

.hero-collage-shot--c {
  width: min(36%, 290px);
  aspect-ratio: 4 / 5;
  right: 0;
  bottom: 8%;
  z-index: 2;
  animation-delay: 0.65s;
}

@media (max-width: 700px) {
  .hero-collage-inner {
    padding: 2.25rem 0 2.75rem;
  }

  .hero-collage-copy {
    margin-bottom: 2rem;
  }

  .hero-collage-media {
    height: 260px;
    max-width: none;
  }

  .hero-collage-shot--a {
    width: 48%;
    bottom: 0;
  }

  .hero-collage-shot--b {
    width: 42%;
    left: 26%;
    bottom: 16%;
  }

  .hero-collage-shot--c {
    width: 38%;
    bottom: 6%;
  }

  .hero-collage .hero-actions {
    flex-direction: row;
  }

  .hero-collage .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

/* ——— Page hero (inner) ——— */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(26, 122, 184, 0.25), transparent 55%),
    linear-gradient(165deg, #002848 0%, var(--ink) 45%, var(--teal) 100%);
  color: var(--white);
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--paper);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.85rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 0.85rem;
}

.page-hero p {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 42rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ——— Service grid (homepage) ——— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  transition: background 0.25s, transform 0.25s;
}

.service-item:hover {
  background: var(--mist);
}

.service-item .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(0, 86, 150, 0.1);
  color: var(--teal);
  border-radius: 8px;
}

.service-item .icon svg {
  display: block;
}

.service-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.service-item p {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.service-item .link-arrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 0.35rem;
}

.service-item:hover .link-arrow {
  color: var(--accent);
}

/* ——— Quote ——— */
.quote-block {
  position: relative;
  padding: 4.5rem 0;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

.quote-block::before {
  content: "„";
  position: absolute;
  top: -0.15em;
  left: 4%;
  font-family: var(--font-display);
  font-size: 14rem;
  line-height: 1;
  color: rgba(26, 122, 184, 0.28);
  pointer-events: none;
}

.quote-inner {
  position: relative;
  max-width: 40rem;
}

.quote-inner blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.quote-inner cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

/* ——— Locations strip ——— */
.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.location {
  padding: 2rem 0;
  border-top: 2px solid var(--ink);
}

.location h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.location p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* ——— Content prose ——— */
.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.85rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 1.75rem 0 0.6rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose ul,
.prose ol {
  margin: 1rem 0 1rem 1.25rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.45rem;
  padding-left: 0.25rem;
}

.prose li::marker {
  color: var(--teal);
}

.prose strong {
  font-weight: 700;
}

.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Info panels ——— */
.info-panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-panel {
  padding: 1.75rem;
  background: var(--white);
  border-left: 3px solid var(--teal);
  box-shadow: var(--shadow-soft);
}

.info-panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.info-panel p,
.info-panel ul {
  font-size: 0.95rem;
  color: var(--muted);
}

.info-panel ul {
  list-style: disc;
  margin-left: 1.1rem;
  margin-top: 0.5rem;
}

.info-panel.accent {
  border-left-color: var(--accent);
}

/* ——— Team ——— */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-member {
  padding: 2rem 1.75rem;
  background: var(--white);
  border-top: 3px solid var(--teal);
  box-shadow: var(--shadow-soft);
}

.team-member .role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.team-member h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.team-member p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Jobs ——— */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.job-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: var(--white);
}

.job-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.job-item .meta {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ——— Cert badges ——— */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cert-block {
  padding: 2.25rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.cert-block .badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 86, 150, 0.12);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.cert-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.cert-block p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.benefit-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.benefit-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--mist);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
}

.benefit-list li::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ——— CTA band ——— */
.cta-band {
  padding: 4rem 0;
  background:
    linear-gradient(135deg, rgba(0, 86, 150, 0.08), rgba(196, 92, 38, 0.06)),
    var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 36ch;
  margin-inline: auto;
}

/* ——— Contact ——— */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.branch-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.branch {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.branch:last-child {
  border-bottom: none;
}

.branch h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.branch dl {
  display: grid;
  gap: 0.65rem;
}

.branch dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.branch dd {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.branch a:hover {
  color: var(--teal);
}

.contact-form {
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.contact-form h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkbox-group a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-group a:hover {
  color: var(--ink);
}

.checkbox-group input {
  margin-top: 0.25rem;
  accent-color: var(--teal);
}

.form-success {
  display: none;
  padding: 1.25rem 1.35rem;
  background: rgba(22, 128, 72, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 128, 72, 0.25);
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

.form-error {
  display: none;
  padding: 1rem 1.15rem;
  background: rgba(180, 40, 40, 0.08);
  color: #8b1e1e;
  border-radius: var(--radius);
  font-weight: 600;
  margin-bottom: 1rem;
}

.form-error.is-visible {
  display: block;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* ——— Signature ——— */
.signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.signature .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.signature .title {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--teal-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.footer-legal a:hover {
  color: var(--teal-bright);
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ——— Course meta chips ——— */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
}

.meta-chip {
  padding: 0.45rem 0.9rem;
  background: var(--mist);
  border: 1px solid var(--fog);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ——— Mobile ——— */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .site-header {
    overflow: visible;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 2rem;
    background: var(--white);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease), visibility 0.35s;
    box-shadow: -8px 0 40px rgba(0, 58, 107, 0.12);
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link,
  .nav-dropdown > button {
    width: 100%;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.35s var(--ease);
  }

  .nav-dropdown.is-open .dropdown-menu {
    max-height: 600px;
    padding: 0.25rem 0 0.75rem;
  }

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

  .locations,
  .info-panels,
  .cert-grid,
  .team-grid,
  .contact-layout,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
