/* ============================================================
   Cloudpilar Academy — Blueprint & Pillars design system
   Palette: harbour navy / porcelain paper / azure / Cloudpilar brand red
   Type: Bricolage Grotesque (display) · Instrument Sans (body)
         IBM Plex Mono (codes & labels)
   ============================================================ */

:root {
  /* Colour tokens */
  --ink: #0b1d30;
  --ink-2: #10273d;
  --ink-3: #16324c;
  --paper: #f6f8fa;
  --card: #ffffff;
  --mist: #dfe7ee;
  --mist-2: #ccd8e2;
  --slate: #4e6478;
  --slate-2: #6b8093;
  --azure: #0e62c4;
  --azure-deep: #0a4c99;
  --azure-tint: #e8f1fb;
  /* Brand red sampled from the Cloudpilar Academy logo. */
  --brand: #c8434a;
  --brand-soft: #ef9096;  /* light enough for text on the navy sections */
  --brand-ink: #a8323b;   /* dark enough for AA text on paper */
  --line-blueprint: rgba(14, 98, 196, 0.14);

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  /* Rhythm — spacious scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-soft: 0 1px 2px rgba(11, 29, 48, 0.05), 0 8px 28px rgba(11, 29, 48, 0.07);
  --shadow-lift: 0 2px 4px rgba(11, 29, 48, 0.06), 0 16px 44px rgba(11, 29, 48, 0.12);

  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--space-2);
}

a {
  color: var(--azure-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--azure);
}

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

::selection {
  background: var(--azure);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

section {
  scroll-margin-top: 5.5rem;
}

/* ---------- Shared atoms ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azure-deep);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
}

.on-dark .eyebrow {
  color: var(--brand-soft);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-5);
}

.section-head p {
  color: var(--slate);
  font-size: 1.125rem;
  margin-bottom: 0;
}

.on-dark .section-head p {
  color: #b8c8d6;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--azure-deep);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--mist-2);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.on-dark .btn-primary {
  background: var(--brand);
  color: var(--ink);
}

.on-dark .btn-primary:hover {
  background: var(--brand-soft);
  box-shadow: none;
}

.on-dark .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.on-dark .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn .btn-arrow {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 250, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--mist);
  background: rgba(246, 248, 250, 0.93);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: auto;
  height: 50px;
  flex: none;
}

.site-footer .brand-logo {
  height: 52px;
}

.brand-locality {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate-2);
  border-left: 1px solid var(--mist-2);
  padding-left: 0.7rem;
  line-height: 1.5;
}

.site-footer .brand-locality {
  color: #6d8296;
  border-left-color: rgba(255, 255, 255, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.btn) {
  font-weight: 500;
  font-size: 0.99rem;
  color: var(--ink-3);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* Between the mobile breakpoint and full width the bar is tight — close the
   gaps rather than let a link wrap onto two lines. */
@media (max-width: 1100px) {
  .nav-links {
    gap: 1.15rem;
  }
}

.nav-links a:not(.btn):hover {
  color: var(--azure-deep);
  border-bottom-color: var(--brand);
}

.nav-links .btn {
  padding: 0.62rem 1.3rem;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--mist-2);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-blueprint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-blueprint) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, black 35%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.35rem);
  margin-bottom: var(--space-3);
}

.hero h1 .h1-accent {
  color: var(--azure-deep);
}

.hero-lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--slate);
  max-width: 33rem;
  margin-bottom: var(--space-4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: var(--space-4);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--slate);
  margin: 0;
}

.hero-note svg {
  color: var(--brand-ink);
  flex: none;
}

.hero-figure {
  margin: 0;
  position: relative;
}

.hero-figure svg {
  width: 100%;
  height: auto;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1448 / 1086;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

/* The Three Tracks graphic is rendered pre-assembled (no load-in choreography
   there — see cpa_pillars_graphic() in inc/helpers.php), so the base
   opacity:0 the choreography relies on is overridden the moment it appears in
   this section. .data-reveal on its wrapper handles the scroll-in fade. */
.tracks-figure .anim-grid,
.tracks-figure .anim-cloud,
.tracks-figure .anim-pillar,
.tracks-figure .anim-beam,
.tracks-figure .anim-label,
.tracks-figure .anim-baseline {
  opacity: 1;
}

/* The still SVG and the looping video occupy one box, sized to the video's
   own 1662x1246. The SVG is narrower than that, so it letterboxes inside and
   stays centred — which means swapping to the video never moves the page. */
.hero-media {
  position: relative;
  aspect-ratio: 1662 / 1246;
}

.hero-media .hero-still {
  width: 100%;
  height: 100%;
}

.hero-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
  pointer-events: none;
}

/* Added by main.js only once the video reports it can actually play, so a
   video that never loads leaves the blueprint on screen rather than a gap. */
.hero-motion.is-ready {
  opacity: 1;
}

/* Hero load choreography — the structure assembles bottom-up:
   ground → pillars → beam → cloud → annotations. */
.anim-grid,
.anim-cloud,
.anim-pillar,
.anim-beam,
.anim-label,
.anim-baseline {
  opacity: 0;
}

.hero.is-loaded .anim-baseline {
  animation: draw-in 0.6s var(--ease-out) 0.15s forwards;
  transform-origin: center;
  transform-box: fill-box;
}

.hero.is-loaded .anim-pillar {
  animation: pillar-rise 0.75s var(--ease-out) forwards;
  transform-origin: center bottom;
  transform-box: fill-box;
}

.hero.is-loaded .anim-pillar-1 { animation-delay: 0.3s; }
.hero.is-loaded .anim-pillar-2 { animation-delay: 0.42s; }
.hero.is-loaded .anim-pillar-3 { animation-delay: 0.54s; }

.hero.is-loaded .anim-beam {
  animation: draw-in 0.5s var(--ease-out) 0.8s forwards;
  transform-origin: center;
  transform-box: fill-box;
}

.hero.is-loaded .anim-cloud {
  animation: cloud-settle 0.8s var(--ease-out) 1.05s forwards;
}

.hero.is-loaded .anim-label {
  animation: fade-up 0.5s ease-out forwards;
}

.hero.is-loaded .anim-label-0 { animation-delay: 1.5s; }
.hero.is-loaded .anim-label-1 { animation-delay: 1.3s; }
.hero.is-loaded .anim-label-2 { animation-delay: 1.4s; }
.hero.is-loaded .anim-label-3 { animation-delay: 1.5s; }

.hero.is-loaded .anim-grid {
  animation: fade-in 1.2s ease-out 0.1s forwards;
}

/* Failsafe: after the sequence has had time to play, the artwork stays put. */
.hero.is-settled .anim-grid,
.hero.is-settled .anim-baseline,
.hero.is-settled .anim-pillar,
.hero.is-settled .anim-beam,
.hero.is-settled .anim-cloud,
.hero.is-settled .anim-label {
  opacity: 1;
}

@keyframes draw-in {
  from { opacity: 0; transform: scaleX(0.2); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes pillar-rise {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes cloud-settle {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Trust strip ---------- */

.trust-strip {
  border-block: 1px solid var(--mist);
  background: var(--card);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0;
  padding: 1.15rem 0;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-3);
}

.trust-list svg {
  color: var(--azure-deep);
  flex: none;
}

/* ---------- Programmes ---------- */

.programmes {
  padding-block: var(--section-pad);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--mist-2);
}

/* pillar capital: thick top rule with a notch */
.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 4px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--brand) 0 34%, var(--azure-deep) 34% 100%);
}

.course-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--slate-2);
  margin-bottom: 0.8rem;
}

/* Course status — must always reflect reality. An untrue "nearly full" is
   the same category of mistake as an invented testimonial. */
.course-status {
  display: inline-flex;
  /* Card is a flex column — stop the pill stretching to the full width. */
  align-self: flex-start;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
  margin-bottom: 0.95rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status-tbc {
  color: var(--slate);
  border-color: var(--mist-2);
  background: var(--paper);
}

.status-open {
  color: #1d7a4f;
  border-color: #a8ddc2;
  background: #eaf7f0;
}

.status-filling {
  color: var(--brand-ink);
  border-color: var(--brand-soft);
  background: #fdeff0;
}

.status-full,
.status-closed {
  color: var(--slate-2);
  border-color: var(--mist-2);
  background: var(--mist);
}

.course-card h3 {
  font-size: 1.38rem;
  margin-bottom: 0.9rem;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.course-meta span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--azure-tint);
  color: var(--azure-deep);
}

.course-desc {
  color: var(--slate);
  font-size: 0.99rem;
  margin-bottom: 1.2rem;
}

.course-price {
  border-top: 1px dashed var(--mist-2);
  padding-top: 1rem;
  margin-bottom: 1.3rem;
}

.course-price .amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.course-price .per {
  font-size: 0.9rem;
  color: var(--slate);
  margin-left: 0.3rem;
}

.course-price .instalments {
  display: block;
  font-size: 0.86rem;
  color: var(--brand-ink);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Short "what you'll learn" summary sits above the detailed curriculum, so
   value reads fast and depth is available underneath. */
.learn-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
  margin-bottom: 0.7rem;
}

.course-outcomes {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.course-outcomes li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--ink-3);
}

.course-outcomes svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--brand-ink);
}

/* Collapsed by default — the compact card stays scannable; the depth
   that justifies the price is one click away, not forced on everyone. */
.course-curriculum {
  margin: 0 0 1.3rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.course-curriculum[open] {
  border-color: var(--mist-2);
}

.course-curriculum summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.75rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--azure-deep);
}

.course-curriculum summary::-webkit-details-marker {
  display: none;
}

.curriculum-icon {
  flex: none;
  transition: transform 0.25s var(--ease-out);
}

.course-curriculum[open] .curriculum-icon {
  transform: rotate(45deg);
}

.curriculum-list {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0.15rem 0.95rem 1rem;
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--mist);
  padding-top: 0.8rem;
}

.curriculum-list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--ink-3);
  line-height: 1.45;
}

.curriculum-week {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-2);
  padding-top: 0.1rem;
}

/* ---------- Certifications (AB-730 / AB-731) ---------- */

.cert-list {
  display: grid;
  gap: var(--space-3);
}

.course-cta {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--azure-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  background: none;
  border: none;
  /* vertical padding keeps the tap area at the 44px minimum */
  padding: 0.72rem 0;
  min-height: 44px;
  font-family: var(--font-body);
}

.course-cta svg {
  transition: transform 0.25s var(--ease-out);
}

.course-cta:hover svg {
  transform: translateX(4px);
}

.price-footnote {
  margin: var(--space-4) 0 0;
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--mist-2);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--slate);
  font-size: 0.95rem;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.price-footnote svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--azure-deep);
}

.price-footnote strong {
  color: var(--ink);
}

/* ---------- Leadership (AB-731) ----------
   Tinted band so a one-day executive course reads as a different kind of
   thing from the three multi-week pillars, rather than a fourth pillar. */

.leadership {
  padding-block: var(--section-pad);
  background: var(--azure-tint);
  border-block: 1px solid #cfe0f4;
}

.leader-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}

.leader-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--azure-deep);
  margin-bottom: 0.7rem;
}

.leader-main h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-bottom: 0.9rem;
}

.leader-desc {
  color: var(--slate);
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
}

.leader-outcomes {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.leader-outcomes li {
  display: flex;
  gap: 0.65rem;
  font-size: 0.96rem;
  color: var(--ink-3);
}

.leader-outcomes svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--brand-ink);
}

.leader-audience {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--mist-2);
  font-size: 0.93rem;
  color: var(--slate);
}

.leader-audience strong {
  color: var(--ink);
}

.leader-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.3rem;
}

.leader-facts {
  margin: 0 0 1.2rem;
  width: 100%;
  display: grid;
  gap: 0.55rem;
}

.leader-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--mist-2);
  padding-bottom: 0.55rem;
}

.leader-facts > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.leader-facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.leader-facts dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-3);
  text-align: right;
}

.leader-price {
  margin: 0 0 1.2rem;
}

.leader-price .amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.leader-price .per {
  font-size: 0.92rem;
  color: var(--slate);
  margin-left: 0.35rem;
}

.leader-price .note {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand-ink);
  margin-top: 0.2rem;
}

.leader-cta {
  width: 100%;
}

.leader-examnote {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--slate);
}

/* ---------- Practical AI & Automation Skills ---------- */

.practical {
  padding-block: var(--section-pad);
  background: var(--card);
  border-block: 1px solid var(--mist);
}

/* ---------- Technologies taught ----------
   Deliberately lighter than the card sections above it: hairline-separated
   columns, so it reads as an index rather than another set of offers. */

.tech {
  padding-block: var(--section-pad);
  background: var(--card);
  border-block: 1px solid var(--mist);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem var(--space-3);
}

.tech-group {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.tech-group h3 {
  font-size: 1.02rem;
  margin-bottom: 0.9rem;
}

.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.tech-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.96rem;
  color: var(--slate);
  line-height: 1.45;
}

.tech-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.tech-note {
  margin: var(--space-4) 0 0;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--mist-2);
  color: var(--slate-2);
  font-size: 0.9rem;
  max-width: 60rem;
}

.curriculum-note {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--mist-2);
  font-size: 0.9rem;
  color: var(--slate);
}

/* ---------- Formats (dark section) ---------- */

.formats {
  background: var(--ink);
  color: #eef4f9;
  padding-block: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.formats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 90% at 85% 10%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 85% 10%, black 20%, transparent 70%);
  pointer-events: none;
}

.formats .container {
  position: relative;
}

.formats h2 {
  color: #fff;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.format-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  background: rgba(255, 255, 255, 0.035);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.format-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
}

.format-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(200, 67, 74, 0.18);
  color: var(--brand-soft);
  margin-bottom: 1.2rem;
}

.format-card h3 {
  color: #fff;
  font-size: 1.28rem;
  margin-bottom: 0.7rem;
}

.format-card p {
  color: #b8c8d6;
  font-size: 0.97rem;
  margin-bottom: 1rem;
}

.format-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.format-points li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #d6e1ea;
}

.format-points svg {
  flex: none;
  margin-top: 0.22rem;
  color: var(--brand-soft);
}

.format-cta {
  margin-top: 1.3rem;
  width: 100%;
}

/* ---------- About / trainer ---------- */

.about {
  padding-block: var(--section-pad);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.trainer-card {
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.8rem;
  position: sticky;
  top: 6rem;
}

.trainer-card {
  padding-top: 0;
  overflow: hidden;
}

.trainer-portrait {
  width: calc(100% + 3.6rem);
  margin: 0 -1.8rem 1.4rem;
  /* height:auto lets aspect-ratio win over the intrinsic height attribute */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  background: var(--mist);
}

.trainer-badge {
  margin-bottom: 1.4rem;
}

.trainer-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.24rem;
  line-height: 1.2;
}

.trainer-badge span {
  color: var(--slate);
  font-size: 0.94rem;
}

/* The Credly badge embed — the widget renders its own iframe once
   cdn.credly.com/assets/utilities/embed.js runs (enqueued only on /about/,
   see functions.php), so this just needs to hold the space and centre it
   while that happens. Credly's iframe is a fixed 150x270. */
.credential-embed {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
  padding: 0.75rem 0;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--paper);
  min-height: 270px;
  align-items: center;
}

.credential-strip-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.7rem;
}

/* A neat strip, not a wall of badges — kept small deliberately. Real badge
   PNGs from Credly, already on a near-white background, so a plain card is
   enough; no extra treatment needed to make them look "displayed". */
.credential-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.75rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: #fff;
}

.credential-strip li {
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
}

.credential-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.cred-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.96rem;
  color: var(--ink-3);
  border-top: 1px dashed var(--mist-2);
  padding-top: 0.75rem;
}

.cred-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.cred-list svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--azure-deep);
}

.about-copy p {
  color: var(--ink-3);
  font-size: 1.06rem;
}

.tracks-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: var(--space-6);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.why-figure {
  margin: 0;
}

.why-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1448 / 1086;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* Credentials band, directly under the hero. */
.cred-band {
  background: var(--card);
  border-block: 1px solid var(--mist);
}

.cred-band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cred-band-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  margin: 0;
}

.cred-band-head .eyebrow {
  margin-bottom: 0.35rem;
}

/* Four across on desktop; the shared .ms-cred-grid rules keep the card
   styling identical to the two-column version used elsewhere. */
.ms-cred-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .ms-cred-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ms-cred-row {
    grid-template-columns: 1fr;
  }
}

/* One-line pointer to /guides/, replacing the full six-card block that used to
   sit on the home page. */
.topic-guides-line {
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--mist-2);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-3);
  font-size: 0.98rem;
}

.topic-guides-line a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  white-space: nowrap;
}

.ms-cred-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 1.4rem 0 0.7rem;
}

.ms-cred-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  padding: 0;
}

.ms-cred-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--mist);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.ms-cred-item img {
  width: 2rem;
  height: 2rem;
  flex: none;
  object-fit: contain;
}

.ms-cred-item span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.ms-cred-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azure-deep);
  text-decoration: none;
}

.ms-cred-more:hover {
  text-decoration: underline;
}

.principle-list {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.principle-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.principle-mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--brand-ink);
  border: 1px solid var(--brand-soft);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  margin-top: 0.15rem;
  white-space: nowrap;
}

.principle-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 0.15rem;
}

.principle-list p {
  margin: 0;
  color: var(--slate);
  font-size: 0.98rem;
}

/* ---------- Gallery ---------- */

.gallery {
  padding-block: var(--section-pad);
  background: var(--card);
  border-block: 1px solid var(--mist);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.gallery-card {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.gallery-visual {
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
  height: auto;
}

.gallery-caption {
  padding: 0.9rem 1.1rem 1.1rem;
  border-top: 1px solid var(--mist);
  background: var(--card);
}

.gallery-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.99rem;
}

.gallery-caption span {
  color: var(--slate);
  font-size: 0.86rem;
}

/* ---------- Logistics (location & hours) ---------- */

.logistics {
  padding-block: var(--section-pad);
}

.logi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.logi-card {
  background: var(--card);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.9rem 1.7rem;
}

.logi-card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.22rem;
  margin-bottom: 1.1rem;
}

.logi-card h3 svg {
  color: var(--azure-deep);
  flex: none;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--mist-2);
  font-weight: 400;
  vertical-align: top;
}

.hours-table th {
  color: var(--ink-3);
  font-weight: 600;
  padding-right: 1rem;
  white-space: nowrap;
}

.hours-table td {
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.logi-card p {
  color: var(--slate);
  font-size: 0.98rem;
}

.logi-card address {
  font-style: normal;
  color: var(--ink-3);
  line-height: 1.7;
}

.logi-card address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

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

.faq {
  padding-block: var(--section-pad);
}

.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 52rem;
}

.faq-item {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--mist-2);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

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

.faq-question::marker {
  content: "";
}

.faq-icon {
  flex: none;
  color: var(--azure-deep);
  transition: transform 0.25s var(--ease-out);
}

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

.faq-answer {
  padding: 0 1.4rem 1.35rem;
}

.faq-answer p {
  color: var(--slate);
  font-size: 0.98rem;
  margin: 0;
}

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

.contact {
  background: var(--ink);
  color: #eef4f9;
  padding-block: var(--section-pad);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 90% at 10% 90%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 10% 90%, black 20%, transparent 70%);
  pointer-events: none;
}

.contact .container {
  position: relative;
}

.contact h2 {
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-lede {
  color: #b8c8d6;
  font-size: 1.08rem;
}

.contact-direct {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-direct li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-direct svg {
  flex: none;
  margin-top: 0.25rem;
  color: var(--brand-soft);
}

.contact-direct strong {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ba2b5;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;  /* phone and email are primary tap targets on mobile */
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-direct a:hover {
  color: var(--brand-soft);
}

.contact-form {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  /* Keep paired fields top-aligned when one shows a validation message. */
  align-content: start;
}

/* Paired fields sit side by side on wider screens, stack on narrow. */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.corporate-fields {
  display: grid;
  gap: 1.1rem;
  padding: 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

/* Attribute selector outranks the display:grid above when collapsed. */
.corporate-fields[hidden] {
  display: none;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #dce6ee;
}

.field label .req {
  color: var(--brand-soft);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(11, 29, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.95rem;
  width: 100%;
  transition: border-color 0.2s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23b8c8d6' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
}

.field select option {
  color: var(--ink);
  background: #fff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7d94a7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-soft);
  outline: none;
}

.field .hint {
  font-size: 0.82rem;
  color: #8ba2b5;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff9d9d;
}

.field .error-msg {
  display: none;
  font-size: 0.85rem;
  color: #ffb3b3;
}

.field.has-error .error-msg {
  display: block;
}

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.form-status.is-visible {
  display: flex;
}

.form-status.success {
  background: rgba(76, 175, 130, 0.15);
  border: 1px solid rgba(76, 175, 130, 0.45);
  color: #bfe8d2;
}

.form-status svg {
  flex: none;
  margin-top: 0.15rem;
}

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

.site-footer {
  background: #071523;
  color: #8ba2b5;
  padding: var(--space-5) 0 var(--space-4);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 1rem;
}


.footer-about {
  max-width: 26rem;
}

.site-footer h4 {
  color: #dce6ee;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #8ba2b5;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #6d8296;
}

/* ---------- Policy page ---------- */

.policy {
  padding-block: var(--space-5) var(--section-pad);
}

.policy-inner {
  max-width: 46rem;
}

.policy-draft {
  border: 1px solid var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: #fdeff0;
  color: var(--ink-3);
  padding: 1rem 1.2rem;
  font-size: 0.94rem;
  margin-bottom: var(--space-4);
}

.policy-draft strong {
  color: var(--brand-ink);
}

.policy h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.policy-lede {
  font-size: 1.12rem;
  color: var(--slate);
}

.policy-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--slate-2);
  border-bottom: 1px solid var(--mist);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.policy section {
  margin-bottom: var(--space-4);
}

.policy h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin-bottom: var(--space-2);
}

.policy p,
.policy li {
  color: var(--ink-3);
  font-size: 1rem;
}

.policy-steps,
.policy-list {
  padding-left: 1.3rem;
  display: grid;
  gap: 0.7rem;
  margin-bottom: var(--space-2);
}

.policy-steps li::marker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--azure-deep);
}

.policy-todo {
  border: 1px dashed var(--mist-2);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0.9rem 1.1rem;
  font-size: 0.94rem;
  color: var(--slate);
}

.policy address {
  font-style: normal;
  color: var(--slate);
  line-height: 1.7;
  font-size: 0.96rem;
}

.policy-back {
  border-top: 1px solid var(--mist);
  padding-top: var(--space-3);
  font-weight: 600;
}

/* ---------- Scroll reveal ---------- */

/* Hidden state only applies when JS is running (html.js set inline in <head>),
   so content is never lost if scripts fail to load. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .course-grid,
  .format-grid,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    max-width: 30rem;
    margin-inline: auto;
  }

  .about-inner,
  .contact-grid,
  .logi-grid,
  .leader-card,
  .tracks-head-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .tracks-head-grid .hero-figure,
  .why-figure {
    max-width: 26rem;
    margin-inline: auto;
  }

  .trainer-card {
    position: static;
  }

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

  /* Keep the header to logo + menu button on narrow screens. */
  .brand-locality {
    display: none;
  }

  .brand-logo {
    height: 44px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    padding: 0.5rem var(--gutter) 1.2rem;
    display: none;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--mist);
    font-size: 1.05rem;
  }

  .nav-links .btn {
    margin-top: 0.9rem;
    width: 100%;
  }

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

@media (max-width: 640px) {
  .course-grid,
  .format-grid,
  .gallery-grid,
  .tech-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .trust-list {
    justify-content: flex-start;
  }

  .hero-ctas .btn {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }

  .anim-grid,
  .anim-cloud,
  .anim-pillar,
  .anim-beam,
  .anim-label,
  .anim-baseline {
    opacity: 1;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
