/* ==========================================================================
   Food Safety Specialist — sections.css
   Section-level layout and the bespoke pieces (hero canvas, hex map,
   scorecard, slide-to-verify).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(4, 8, 28, .05);
}

.nav__inner {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }

/* Over the dark hero the nav is transparent, so the blue logo and grey links
   would disappear. Two stacked logo files cross-fade instead of a CSS invert —
   the monogram strokes inside the emblem are white pixels, and a filter would
   flatten them into the hexagon. */
.nav__logo { position: relative; display: block; height: 30px; }
.nav__logo img { height: 30px; width: auto; transition: opacity .35s var(--ease); }
.nav__logo--white { position: absolute; inset: 0; opacity: 0; }

.nav:not(.is-stuck) .nav__logo--blue  { opacity: 0; }
.nav:not(.is-stuck) .nav__logo--white { opacity: 1; }

.nav:not(.is-stuck) .nav__link { color: rgba(255, 255, 255, .76); }
.nav:not(.is-stuck) .nav__link:hover,
.nav:not(.is-stuck) .nav__link.is-active { color: #fff; }
.nav:not(.is-stuck) .nav__link::after { background: #fff; }
.nav:not(.is-stuck) .nav__toggle {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}
.nav:not(.is-stuck) .nav__toggle span { background: #fff; }

.nav__links { display: flex; align-items: center; gap: 2rem; }

.nav__link {
  position: relative;
  font-size: var(--t-sm);
  font-weight: 550;
  color: var(--slate-600);
  text-decoration: none;
  padding-block: .4rem;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--brand); }

.nav__actions { display: flex; align-items: center; gap: .75rem; flex: none; }

/* Reading-progress hairline */
.nav__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--brand-400));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.nav.is-stuck .nav__progress { opacity: 1; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  place-items: center;
  border: 1px solid var(--line);
  background: var(--white);
}
.nav__toggle span {
  display: block;
  width: 19px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: grid; }
  .nav__links,
  .nav__actions .btn { display: none; }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem var(--gutter) 2rem;
    display: grid;
    gap: .35rem;
    box-shadow: var(--sh-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__menu .btn { margin-top: 1rem; border-bottom: 0; }
}
@media (min-width: 941px) { .nav__menu { display: none; } }

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, .74);
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 2rem + 6vw, 6.5rem));
  padding-bottom: clamp(4rem, 2.5rem + 6vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* Canvas hex-field with the audit sweep */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: .95;
}

/* Brand glow behind the headline + vignette to keep text legible */
.hero__aura {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 18% 30%, rgba(0, 46, 255, .30), transparent 62%),
    radial-gradient(ellipse 50% 50% at 82% 78%, rgba(68, 104, 255, .16), transparent 60%),
    linear-gradient(180deg, rgba(4, 8, 28, .55) 0%, rgba(4, 8, 28, .1) 40%, var(--ink) 97%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
@media (max-width: 1024px) { .hero__grid { grid-template-columns: 1fr; } }

/* Client badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 1.1rem .5rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px);
  font-size: var(--t-xs);
  font-weight: 550;
  color: rgba(255, 255, 255, .86);
  margin-bottom: 1.85rem;
  text-decoration: none;
}
.hero__badge:hover { border-color: rgba(123, 148, 255, .5); color: #fff; }
.hero__badge .hex {
  width: 26px;
  background: var(--brand);
  color: #fff;
}
.hero__badge .hex svg { width: 12px; height: 12px; }
.hero__badge strong { color: #fff; font-weight: 650; }

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

/* The key word, rendered in brand blue with a slow sheen */
.hero h1 .accent {
  position: relative;
  background: linear-gradient(96deg, var(--brand-300) 8%, var(--brand-500) 55%, var(--brand-300) 95%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: sheen 7s linear infinite;
  white-space: nowrap;
}
@keyframes sheen {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.hero__lead {
  margin-top: 1.6rem;
  font-size: var(--t-lead);
  line-height: 1.62;
  max-width: 56ch;
  color: rgba(255, 255, 255, .7);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.4rem;
}

/* Stat strip under the hero copy */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, .11);
}
.hero__stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1;
}
.hero__stat dt .unit { color: var(--brand-300); }
.hero__stat dd {
  margin: .55rem 0 0;
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, .55);
  line-height: 1.45;
}
@media (max-width: 520px) {
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
}

/* --------------------------------------------------------------------------
   3. Hero scorecard — a mock of the deliverable the client actually receives
   -------------------------------------------------------------------------- */
.scorecard {
  position: relative;
  background: linear-gradient(168deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xl);
  padding: 1.5rem;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .42);
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}
@media (prefers-reduced-motion: reduce) { .scorecard { animation: none; } }

.scorecard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.scorecard__title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 650;
  color: #fff;
}
.scorecard__ref {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(255, 255, 255, .45);
  margin-top: .2rem;
}
.scorecard__score {
  text-align: right;
  flex: none;
}
.scorecard__score b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 750;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}
.scorecard__score span {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pass);
  font-weight: 650;
}

.scorecard__rows { display: grid; gap: .3rem; margin-top: 1.15rem; }

.scorecard__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .9rem;
  padding: .62rem .3rem;
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, .78);
  border-radius: 8px;
  transition: background-color .25s var(--ease);
}
.scorecard__row:hover { background: rgba(255, 255, 255, .05); }

.scorecard__meter {
  position: relative;
  height: 5px;
  width: 76px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
  flex: none;
}
.scorecard__meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-200));
  transform-origin: left;
  animation: meter 1.1s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
.scorecard__row--pass .scorecard__meter i { background: linear-gradient(90deg, var(--pass), #4FD99A); }
@keyframes meter { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scorecard__foot {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, .55);
}
.scorecard__stamp {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: var(--pass-soft);
  color: #04663A;
  font-weight: 650;
  font-size: .7rem;
  flex: none;
}
.scorecard__stamp svg { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   4. Trust bar
   -------------------------------------------------------------------------- */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.trust__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .trust__grid { grid-template-columns: 1fr; } }

.trust__label {
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-400);
  line-height: 1.6;
}
.trust__flagship {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.trust__flagship .hex { width: 46px; }
.trust__flagship b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.trust__flagship span { font-size: var(--t-xs); color: var(--slate-500); }

.trust__marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.trust__track {
  display: flex;
  gap: .6rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.trust__marquee:hover .trust__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trust__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* --------------------------------------------------------------------------
   5. Services
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.15rem;
}
.service .hex { margin-bottom: 1.35rem; }
.service .hex svg { width: 24px; height: 24px; }
.service__num {
  position: absolute;
  top: 1.5rem; right: 1.6rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--slate-400);
  letter-spacing: .04em;
}
.service ul {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .45rem;
}
.service ul li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--t-xs);
  color: var(--slate-500);
}
.service ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .52em;
  width: 7px; height: 8px;
  background: var(--brand-300);
  clip-path: var(--hex);
}

/* --------------------------------------------------------------------------
   6. Standards
   -------------------------------------------------------------------------- */
.standards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1rem;
}
.standard {
  display: grid;
  gap: .8rem;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  transition: border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.standard:hover {
  border-color: rgba(123, 148, 255, .45);
  transform: translateY(-4px);
}
.standard h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.015em; }
.standard p { font-size: var(--t-xs); color: rgba(255, 255, 255, .58); line-height: 1.55; }
.standard__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

/* --------------------------------------------------------------------------
   7. Process
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  position: relative;
}
@media (max-width: 900px)  { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; } }
@media (max-width: 520px)  { .process { grid-template-columns: 1fr; } }

.step { position: relative; }

/* Connector that fills as the section scrolls into view */
.step__rail {
  position: relative;
  height: 2px;
  background: var(--line);
  margin-bottom: 1.6rem;
  border-radius: 2px;
  overflow: hidden;
}
.step__rail i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.step.is-visible .step__rail i { transform: scaleX(1); }

.step__no {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: .08em;
}
.step h3 { font-size: 1.15rem; margin: .6rem 0 .6rem; }
.step p { font-size: var(--t-sm); color: var(--slate-500); }
.step__meta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  font-size: var(--t-xs);
  color: var(--slate-400);
  font-weight: 550;
}
.step__meta svg { width: 13px; height: 13px; flex: none; }

/* --------------------------------------------------------------------------
   8. Coverage — hex-tile map of South Africa
   -------------------------------------------------------------------------- */
.coverage__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2.25rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) { .coverage__grid { grid-template-columns: 1fr; } }

.hexmap {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.hexmap svg { width: 100%; height: auto; overflow: visible; }

.hexmap__cell {
  fill: rgba(255, 255, 255, .04);
  stroke: rgba(255, 255, 255, .10);
  stroke-width: .5;
  transition: fill .45s var(--ease), stroke .45s var(--ease);
}
/* Territory: present, but quiet enough that the provincial nodes carry the eye */
.hexmap__cell.is-on {
  fill: rgba(0, 46, 255, .26);
  stroke: rgba(123, 148, 255, .28);
}
.hexmap__cell.is-hot {
  fill: var(--brand);
  stroke: var(--brand-200);
  stroke-width: .7;
  filter: drop-shadow(0 0 7px rgba(68, 104, 255, .9));
}

.hexmap__label {
  font-family: var(--font-body);
  font-size: 5.2px;
  font-weight: 650;
  fill: #fff;
  text-anchor: middle;
  pointer-events: none;
  letter-spacing: .03em;
  opacity: 0;
  animation: labelIn .5s var(--ease) forwards;
  animation-delay: var(--label-delay, 600ms);
}
@keyframes labelIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hexmap__label { opacity: 1; animation: none; }
}

.coverage__list { display: grid; gap: .5rem; margin-top: 2rem; }
.coverage__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: var(--t-sm);
  color: rgba(255, 255, 255, .82);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.coverage__list li:hover { background: rgba(255, 255, 255, .08); border-color: rgba(123, 148, 255, .4); }
.coverage__list .tick { display: inline-flex; align-items: center; gap: .55rem; }
.coverage__list .tick svg { width: 15px; height: 15px; color: var(--brand-300); flex: none; }

/* --------------------------------------------------------------------------
   9. About + counters
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(2.25rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

.about__body p + p { margin-top: 1.1rem; }
.about__body p { font-size: var(--t-lead); color: var(--slate-600); line-height: 1.68; }

.creds { display: grid; gap: .7rem; margin-top: 2rem; }
.creds li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: var(--t-sm);
  color: var(--slate-600);
}
.creds .hex { width: 26px; background: var(--brand); color: #fff; margin-top: 2px; }
.creds .hex svg { width: 12px; height: 12px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: var(--white); padding: 1.7rem 1.4rem; transition: background-color .3s var(--ease); }
.stat:hover { background: var(--brand-50); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.85rem);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat b .unit { color: var(--brand); }
.stat span {
  display: block;
  margin-top: .6rem;
  font-size: var(--t-xs);
  color: var(--slate-500);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   10. Sectors
   -------------------------------------------------------------------------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sector {
  background: var(--white);
  padding: 1.7rem 1.5rem;
  display: grid;
  gap: .55rem;
  transition: background-color .3s var(--ease);
  position: relative;
}
.sector::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.sector:hover { background: var(--brand-50); }
.sector:hover::after { transform: scaleX(1); }
.sector h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.sector p { font-size: var(--t-xs); color: var(--slate-500); line-height: 1.5; }

/* --------------------------------------------------------------------------
   11. Courses band
   -------------------------------------------------------------------------- */
.courses {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--brand-700), var(--brand) 48%, var(--brand-500));
  color: #fff;
  padding: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--sh-brand);
}
@media (max-width: 780px) { .courses { grid-template-columns: 1fr; } }

/* Hexagonal texture layer */
.courses::before {
  content: '';
  position: absolute;
  inset: -40% -10%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16z' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 64px;
  opacity: .8;
  animation: drift 34s linear infinite;
  pointer-events: none;
}
@keyframes drift { to { transform: translate3d(-56px, -64px, 0); } }
@media (prefers-reduced-motion: reduce) { .courses::before { animation: none; } }

.courses > * { position: relative; }
.courses h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
.courses p { margin-top: .9rem; color: rgba(255, 255, 255, .84); font-size: var(--t-lead); max-width: 54ch; }
.courses .btn {
  --btn-bg: #fff;
  --btn-fg: var(--brand-700);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  white-space: nowrap;
}
.courses .btn:hover { --btn-bg: var(--brand-50); }

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: .7rem; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq__item[open] { border-color: var(--brand-200); box-shadow: var(--sh-sm); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 620;
  color: var(--ink);
  list-style: none;
  transition: color .25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand); }

.faq__icon {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  background: var(--slate-600);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease);
}
.faq__icon::before { width: 11px; height: 1.6px; }
.faq__icon::after  { width: 1.6px; height: 11px; }
.faq__item[open] .faq__icon { background: var(--brand); border-color: var(--brand); transform: rotate(90deg); }
.faq__item[open] .faq__icon::before { background: #fff; }
.faq__item[open] .faq__icon::after  { opacity: 0; }

.faq__a { padding: 0 1.5rem 1.4rem; }
.faq__a p { font-size: var(--t-sm); color: var(--slate-500); max-width: 68ch; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 1rem + 3.5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__details { display: grid; gap: .55rem; margin-top: 2rem; }
.contact__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  text-decoration: none;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact__row:hover { border-color: var(--brand-200); transform: translateX(3px); box-shadow: var(--sh-sm); }
.contact__row .hex { width: 38px; }
.contact__row .hex svg { width: 17px; height: 17px; }
.contact__row dt { font-size: var(--t-xs); color: var(--slate-400); font-weight: 550; }
.contact__row dd {
  margin: .1rem 0 0;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.contact__assure {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  font-size: var(--t-xs);
  color: var(--slate-600);
  line-height: 1.55;
  display: flex;
  gap: .75rem;
}
.contact__assure svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 1px; }

/* Form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  box-shadow: var(--sh-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
}

.form-foot {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.form-note { font-size: var(--t-xs); color: var(--slate-400); max-width: 34ch; line-height: 1.5; }

/* Submission feedback */
.form-status {
  margin-top: 1.15rem;
  padding: .95rem 1.15rem;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-weight: 550;
  display: none;
  align-items: flex-start;
  gap: .65rem;
  line-height: 1.5;
}
.form-status.is-shown { display: flex; }
.form-status--ok   { background: var(--pass-soft); color: #045C34; border: 1px solid #B6E8CE; }
.form-status--err  { background: #FDECEC; color: #9B1C1C; border: 1px solid #F5C6C6; }
.form-status svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }

/* Success state replaces the form body */
.form-done { display: none; text-align: center; padding: 1.5rem .5rem; }
.form-card.is-done .form-body { display: none; }
.form-card.is-done .form-done { display: block; }
.form-done .hex { width: 62px; margin: 0 auto 1.35rem; background: var(--pass-soft); color: #04663A; }
.form-done .hex svg { width: 27px; height: 27px; }
.form-done h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.form-done p { font-size: var(--t-sm); color: var(--slate-500); max-width: 42ch; margin-inline: auto; }

/* --------------------------------------------------------------------------
   14. Human check — slide to verify
   -------------------------------------------------------------------------- */
.verify {
  margin-top: 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--mist);
  padding: 1rem;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.verify.is-verified { border-color: #B6E8CE; background: var(--pass-soft); }
.verify.is-error { border-color: #F5C6C6; background: #FDECEC; }

.verify__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.verify__label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.verify__label svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
.verify.is-verified .verify__label { color: #045C34; }
.verify.is-verified .verify__label svg { color: var(--pass); }

.verify__hint { font-size: .72rem; color: var(--slate-400); font-family: var(--font-mono); }

/* Track */
.verify__track {
  position: relative;
  height: 50px;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
}
.verify__track:active { cursor: grabbing; }
.verify.is-verified .verify__track { cursor: default; border-color: #B6E8CE; }

/* Filled portion behind the handle */
.verify__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0px);
  background: linear-gradient(90deg, var(--brand-100), var(--brand-200));
  transition: background-color .3s var(--ease);
}
.verify.is-verified .verify__fill { background: linear-gradient(90deg, #C8F0DC, #A5E7C6); }

.verify__prompt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--t-xs);
  font-weight: 550;
  color: var(--slate-400);
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
/* Shimmer to signal it is draggable */
.verify__prompt span {
  background: linear-gradient(90deg, var(--slate-400) 20%, var(--ink) 50%, var(--slate-400) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: sheen 3.4s linear infinite;
}
.verify.is-verified .verify__prompt,
.verify.is-dragging .verify__prompt { opacity: 0; }

.verify__done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: .45rem;
  grid-auto-flow: column;
  font-size: var(--t-xs);
  font-weight: 650;
  color: #045C34;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.verify__done svg { width: 15px; height: 15px; }
.verify.is-verified .verify__done { opacity: 1; }

/* Handle */
.verify__handle {
  position: absolute;
  top: 3px; left: 3px;
  width: 54px;
  height: 42px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  transform: translateX(var(--x, 0px));
  box-shadow: 0 4px 14px rgba(0, 46, 255, .35);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.verify:not(.is-dragging) .verify__handle { transition: transform .35s var(--ease-out-back), background-color .3s var(--ease); }
.verify__handle svg { width: 19px; height: 19px; }
.verify.is-verified .verify__handle { background: var(--pass); box-shadow: 0 4px 14px rgba(0, 168, 90, .35); }

.verify__error {
  margin-top: .6rem;
  font-size: var(--t-xs);
  font-weight: 550;
  color: #C42121;
}
.verify__error:empty { display: none; }

/* Turnstile slot — only rendered when a site key is configured */
.verify--turnstile .verify__track,
.verify--turnstile .verify__hint { display: none; }
#ts-widget:empty { display: none; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-bottom: 3rem;
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand img { height: 34px; width: auto; }
.footer__brand p { margin-top: 1.15rem; font-size: var(--t-sm); max-width: 40ch; line-height: 1.6; }

.footer h4 {
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 1.15rem;
  font-family: var(--font-body);
}
.footer ul { display: grid; gap: .7rem; }
.footer a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: var(--t-sm); }
.footer a:hover { color: #fff; }
.footer li { font-size: var(--t-sm); }

.footer__base {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, .42);
}
.footer__base a { font-size: var(--t-xs); }

/* --------------------------------------------------------------------------
   16. WhatsApp floating action
   -------------------------------------------------------------------------- */
.wa {
  position: fixed;
  right: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  bottom: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  background: #1FAF54;
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(31, 175, 84, .38);
  transform: translateY(80px);
  opacity: 0;
  transition: transform .4s var(--ease-out-back), opacity .3s var(--ease), background-color .25s var(--ease);
}
.wa.is-shown { transform: none; opacity: 1; }
.wa:hover { background: #17913F; }
.wa svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 480px) {
  .wa { padding: .9rem; }
  .wa span { display: none; }
}
