/* ============================================================
   Findmore Academy — Design System Base
   fa-styles.css  ·  Brand System v5
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  /* Backgrounds — cool slate fog */
  --bg-page:    #F2F3F5;
  --bg-white:   #FFFFFF;
  --bg-surface: #E8EAED;
  --bg-subtle:  #ECEEF1;

  /* Ink — cool near-black */
  --primary:       #0F1117;
  --primary-dark:  #3D4250;
  --primary-light: #E8EAED;
  --slate:         #6B7C93;   /* logo dot, accent neutral */

  /* Text hierarchy */
  --text-primary:   #0F1117;
  --text-secondary: #3D4250;
  --text-muted:     #666E80;
  --text-subtle:    #566070;

  /* Borders — cool-tinted neutral */
  --border:       rgba(15,17,23,0.08);
  --border-dark:  rgba(15,17,23,0.18);
  --border-strong: rgba(15,17,23,0.45);
  --border-focus: #0F1117;

  /* Status — brand system v5 */
  --status-active-bg:    #D6FFF0;
  --status-active-text:  #006635;
  --status-active-dot:   #00C566;
  --status-soon-bg:      #FFF0D6;
  --status-soon-text:    #7A3D00;
  --status-soon-dot:     #FF8800;
  --status-ended-bg:     #E8EAED;
  --status-ended-text:   #555B6E;
  --status-ended-dot:    #858CA0;

  /* Certification badges — violet (distinct from all status/area colours) */
  --badge-cert-bg:   #EDE9FE;
  --badge-cert-text: #5B21B6;
  --badge-cert-dot:  #7C3AED;

  /* Area colours */
  --area-cyber:  #DC2626;
  --area-dev:    #0EA5E9;
  --area-infra:  #10B981;
  --area-data:   #F59E0B;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(15,17,23,0.04);
  --shadow-sm:  0 1px 3px rgba(15,17,23,0.06), 0 1px 2px rgba(15,17,23,0.03);
  --shadow-md:  0 4px 8px rgba(15,17,23,0.06), 0 2px 4px rgba(15,17,23,0.03);
  --shadow-lg:  0 12px 24px rgba(15,17,23,0.08), 0 4px 8px rgba(15,17,23,0.04);
  --shadow-xl:  0 24px 40px rgba(15,17,23,0.10), 0 8px 16px rgba(15,17,23,0.05);
  --shadow-card: 0 0 0 1px rgba(15,17,23,0.06), 0 2px 8px rgba(15,17,23,0.05);

  /* Radius — brand system */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-pill: 9999px;

  /* Spacing */
  --max-width: 1160px;
  --nav-height: 64px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   200ms ease;
  --transition-slow:   300ms ease;
}

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

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

.hero-accordion {
  display: flex;
  gap: 12px;
  min-height: 360px;
  align-items: stretch;
}

.hero-accordion-item {
  position: relative;
  flex: 0.9 1 0;
  min-width: 86px;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  background: var(--hero-accordion-bg, linear-gradient(160deg, #1f2937 0%, #111827 100%));
  color: #fff;
  transition: flex 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(15, 17, 23, 0.12);
  isolation: isolate;
}

.hero-accordion-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.16) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(15,17,23,0.20) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-accordion-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(15, 17, 23, 0.16);
}

.hero-accordion-item.is-active {
  flex: 3.25 1 0;
}

.hero-accordion-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  height: 100%;
  padding: 22px;
  z-index: 1;
}

.hero-accordion-media {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 14px 34px rgba(15,17,23,0.12);
  padding: 14px;
}

.hero-accordion-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.hero-accordion-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 24rem;
}

.hero-accordion-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}

.hero-accordion-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-accordion-text {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.88;
  max-width: 32ch;
}

.hero-accordion-mini {
  display: none;
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  z-index: 1;
}

.hero-accordion-item:not(.is-active) .hero-accordion-copy {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.hero-accordion-item:not(.is-active) .hero-accordion-mini {
  display: block;
}

.hero-accordion-item:not(.is-active) .hero-accordion-media {
  width: 66px;
  height: 66px;
  padding: 10px;
  top: 14px;
  right: 14px;
}

.hero-accordion-item.is-active .hero-accordion-copy {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease 0.12s, transform 0.22s ease 0.12s;
}

.hero-accordion-item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .hero-accordion {
    min-height: 320px;
  }

  .hero-accordion-item {
    min-width: 72px;
  }

  .hero-accordion-inner {
    min-height: 320px;
    padding: 18px;
  }

  .hero-accordion-media {
    width: 78px;
    height: 78px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .hero-accordion {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-accordion-item,
  .hero-accordion-item.is-active {
    flex: none;
  }

  .hero-accordion-inner {
    min-height: 220px;
  }

  .hero-accordion-item .hero-accordion-copy {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .hero-accordion-item .hero-accordion-mini {
    display: none;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Mixed weight: thin base + subtle emphasis */
h1 strong, h2 strong, h3 strong,
.title-mix strong { font-weight: 400; }
h1, h2, h3, .title-mix { font-weight: 300; }

.text-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-hero {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.text-h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.text-h2 strong { font-weight: 400; }

.text-h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.text-lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

.text-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-body-sm {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.text-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 96px 0; }

.section-header { margin-bottom: 48px; }

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  padding: 10px 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* shimmer sweep */
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.22) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(15,17,23,0.22), 0 2px 6px rgba(15,17,23,0.12);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 8px rgba(15,17,23,0.18);
  transition-duration: 0.08s;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  padding: 10px 22px;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 20px;
  border-color: var(--border-dark);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-surface);
}

.btn-sm {
  font-size: 11px;
  padding: 7px 18px;
}

.btn-lg {
  font-size: 14px;
  padding: 12px 28px;
}

/* ── STATUS ANIMATIONS ── */
@keyframes badge-pulse-ring {
  0%   { transform: scale(0.95); opacity: 0.9; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes badge-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.82; transform: scale(1.08); }
}

/* ── BADGES / STATUS ── */
.badge,
.badge-active,
.badge-soon,
.badge-ended,
.badge-last-chance {
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: 0 10px 22px rgba(15,17,23,0.16), inset 0 1px 0 rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
}

/* Live dot — pulsing */
.badge-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.badge-active .badge-dot::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--status-active-dot);
  box-shadow: 0 0 0 6px rgba(6, 214, 160, 0.16);
  animation: badge-pulse-ring 1.45s ease-out infinite;
}
.badge-active .badge-dot::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--status-active-dot);
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.7);
  animation: badge-pulse-dot 1.45s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* Soon dot — static orange */
.badge-soon .badge-dot,
.badge-ended .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: block;
  flex-shrink: 0;
}

.badge-active {
  background: linear-gradient(135deg, rgba(3, 105, 66, 0.96) 0%, rgba(5, 150, 105, 0.96) 100%);
  color: #F0FDF4;
  border-color: rgba(167,243,208,0.18);
  box-shadow: 0 12px 24px rgba(5,150,105,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.badge-soon {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.96) 0%, rgba(37, 99, 235, 0.96) 100%);
  color: #EFF6FF;
  border-color: rgba(191,219,254,0.18);
  box-shadow: 0 12px 24px rgba(37,99,235,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}
.badge-soon .badge-dot { background: #DBEAFE; }

.badge-ended {
  background: linear-gradient(135deg, #374151 0%, #111827 100%);
  color: #F9FAFB;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 10px 20px rgba(17,24,39,0.24);
}
.badge-ended .badge-dot { background: #D1D5DB; opacity: 1; }

.badge-last-chance {
  background: linear-gradient(135deg, rgba(154, 52, 18, 0.96) 0%, rgba(234, 88, 12, 0.96) 100%);
  color: #FFF7ED;
  border-color: rgba(254,215,170,0.18);
  box-shadow: 0 12px 24px rgba(234,88,12,0.24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

/* ── CERTIFICATION BADGES — violet ── */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--badge-cert-bg);
  color: var(--badge-cert-text);
  white-space: nowrap;
}

.cert-badge--eligibility {
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
  color: #0C4A6E;
  border: 1px solid rgba(12,74,110,0.12);
  box-shadow: 0 8px 18px rgba(14,165,233,0.16);
}

.cert-badge--eligibility .cert-badge-dot {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #0284C7 0%, #0EA5E9 100%);
  position: relative;
  box-shadow: 0 6px 12px rgba(14,165,233,0.22);
}

.cert-badge--eligibility .cert-badge-dot::before {
  content: '€';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.seal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}

.seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.seal-mark img {
  display: block;
  width: auto;
  height: auto;
  max-width: 124px;
  max-height: 28px;
  object-fit: contain;
}

.seal-mark--trainer img {
  max-width: 98px;
  max-height: 22px;
}

.eligibility-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid rgba(29,78,216,0.12);
  white-space: nowrap;
}

.eligibility-tag-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  color: #FFFFFF;
  font-size: 8px;
  line-height: 1;
  flex-shrink: 0;
}

.cert-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--badge-cert-dot);
  flex-shrink: 0;
}

/* Versão compacta para cards */
.cert-badge--sm {
  font-size: 9px;
  padding: 3px 8px 3px 6px;
}
.cert-badge--sm .cert-badge-dot {
  width: 5px;
  height: 5px;
}

/* Row de badges no card (entre ccf-top e ccf-bottom) */
.ccf-cert {
  padding: 8px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Strip de badges na página de detalhe */
.cert-badges-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  margin-bottom: 34px;
}

/* Area badges */
.badge-cyber { background: #EDE9FF; color: #4C1D95; }
.badge-dev   { background: #E0F2FE; color: #0C4A6E; }
.badge-infra { background: #D1FAE5; color: #065F46; }
.badge-data  { background: #FEF3C7; color: #78350F; }

.area-tag {
  font-family: 'JetBrains Mono', monospace;
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  color: var(--text-muted);
}

/* ── NAV — transparent → frosted glass ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* WordPress Admin Bar compensation (logged-in users) */
.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
}
@media (max-width: 768px) {
  .admin-bar .site-nav.nav-scrolled { top: 58px; } /* 46px admin bar + 12px pill gap */
}

/* ── NAV OFFSET — first elements on pages without a hero ── */
/* Garante que o primeiro elemento visível fica abaixo do nav fixo (64px) */
.page-crumb-bar {
  margin-top: var(--nav-height);
}

/* Shell — transparent at top, frosted on scroll */
.nav-shell {
  pointer-events: auto;
  background: transparent;
  border-bottom: 1px solid transparent;
  padding: 14px 40px;
  width: 100%;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              padding 0.3s ease;
}

/* Scrolled: frosted glass */
.site-nav.nav-scrolled .nav-shell {
  background: rgba(242, 243, 245, 0.90);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 1px 4px rgba(15,17,23,0.05);
  padding: 10px 40px;
}

/* Shell row — logo left · links centred · actions right */
.nav-shell-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav-logo::before { display: none; }
.nav-logo-img {
  height: 29px;
  width: auto;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a,
.nav-dropdown-btn {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.nav-links a:hover  { color: var(--text-primary); background: rgba(15,17,23,0.06); }
.nav-links a.active { color: var(--text-primary); background: rgba(15,17,23,0.07); font-weight: 500; }

/* Dropdown trigger */
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.nav-dropdown-btn:hover { color: var(--text-primary); background: rgba(15,17,23,0.06); }
.nav-dropdown-btn.is-open { color: var(--text-primary); background: rgba(15,17,23,0.07); }

/* Chevron rotates on open */
.nav-chevron {
  transition: transform 0.28s ease;
  opacity: 0.45;
  flex-shrink: 0;
}
.nav-dropdown-btn.is-open .nav-chevron { transform: rotate(180deg); opacity: 0.75; }

/* Right side actions */
.nav-shell-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Mobile menu toggle — hidden on desktop */
.nav-mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: rgba(15,17,23,0.06);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  gap: 7px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-mobile-btn:hover { background: rgba(15,17,23,0.10); color: var(--text-primary); }
.nav-mobile-btn-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
.nav-mobile-btn-bars span {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.site-nav.nav-mobile-open .nav-mobile-btn-bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.site-nav.nav-mobile-open .nav-mobile-btn-bars span:nth-child(2) { opacity: 0; }
.site-nav.nav-mobile-open .nav-mobile-btn-bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-mobile-overlay,
.nav-mobile-panel {
  display: none;
}

/* Language switcher */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(15,17,23,0.06);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
  pointer-events: auto;
}
.lang-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: rgba(15,17,23,0.12);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}
.lang-btn {
  position: relative;
  z-index: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: color 0.22s ease;
  line-height: 1;
}
.lang-btn.is-active { color: var(--text-primary); }
.lang-btn:hover:not(.is-active) { color: var(--text-secondary); }

/* ── MEGA DROPDOWN ── */
.nav-mega {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: max-content;
  background: var(--bg-white);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(15,17,23,0.10), 0 2px 8px rgba(15,17,23,0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10;
}
.site-nav[data-open="formacoes"] #nav-mega-formacoes,
.site-nav[data-open="bootcamps"] #nav-mega-bootcamps {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-mega-sep { display: none; }

.nav-mega-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.nav-mega-inner--2col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 300px;
}
.nav-mega-inner--3col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 320px;
}

/* Program card — used in dropdowns */
.nav-mega-program {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-mega-program:hover {
  background: var(--bg-surface);
  border-color: var(--border);
}
.nav-mega-program-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.nav-mega-program-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.nav-mega-program-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}
.nav-mega-program-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: #6d28d9;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.nav-mega-program-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-mega-program-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  color: var(--text-subtle);
}
.nav-mega-program:hover .nav-mega-program-arrow {
  opacity: 1;
  transform: translateX(0);
}

.nav-mobile-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.nav-mobile-lang {
  flex-shrink: 0;
}

.nav-mobile-student {
  flex: 1;
  justify-content: center;
}

.nav-mobile-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-mobile-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-mobile-links,
.nav-mobile-programs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.nav-mobile-program {
  border-radius: 14px;
}

/* ── FILTER CHIPS ── */
.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-dark);
  background: var(--bg-white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── CARDS ── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Course card */
.course-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.course-card-body {
  padding: 18px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.course-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.course-card-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.course-card-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-page);
}

.meta-pair {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.meta-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.ccf-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.course-card-price-orig {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-subtle);
  text-decoration: line-through;
  line-height: 1;
  white-space: nowrap;
}

.course-card-price-orig sup,
.course-card-price-orig small {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.price-stack-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: #B45309;
  white-space: nowrap;
}

.trainer-avatar-fallback {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.trainer-stack {
  display: flex;
  align-items: center;
  padding-left: 8px;
  min-width: 0;
}

.trainer-stack .trainer-avatar {
  margin-left: -8px;
  box-shadow: 0 0 0 2px var(--bg-white);
}

.trainer-stack .trainer-avatar:first-child {
  margin-left: 0;
}

.ccf-trainer--stack {
  gap: 0;
  flex: 0 1 auto;
  overflow: visible;
}

.card-arrow {
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.course-card:hover .card-arrow {
  color: var(--text-primary);
  transform: translateX(3px);
}


/* ── COURSES GRID ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

/* ── TRUST BAR ── */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.trust-item:last-child { border-right: none; }

.trust-num {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-feature-settings: "tnum";
}

.trust-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── BREADCRUMB ── */
.page-crumb-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}

.page-crumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text-secondary); font-weight: 500; }

/* ── FORM UI ── */
.check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.check-wrap:hover {
  border-color: var(--primary);
  background: var(--primary-light, #F5F5FF);
}

.check-wrap.is-error {
  border-color: #DC2626;
  background: #FFF5F5;
}

.check-wrap input[type=checkbox] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.check-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.check-text a {
  color: var(--primary);
  text-decoration: underline;
}

.form-error-notice {
  display: none;
  padding: 12px 14px;
  background: #FFF5F5;
  border: 1.5px solid #FECACA;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #DC2626;
  margin-bottom: 16px;
}

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

.form-error-notice.is-success {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #047857;
}

/* ── LIVE STRIP ── */
.live-strip {
  background: #06090C;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(110,232,154,.12);
}

.live-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(110,232,154,.35) 25%, rgba(110,232,154,.55) 50%, rgba(110,232,154,.35) 75%, transparent 100%);
  z-index: 1;
}

.live-strip::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 20%;
  right: 20%;
  height: 160px;
  background: radial-gradient(ellipse at 50% 60%, rgba(110,232,154,.07), transparent 70%);
  animation: strip-breathe 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes strip-breathe {
  from { opacity: .5; transform: scale(.9) translateX(-20px); }
  to { opacity: 1; transform: scale(1.1) translateX(20px); }
}

.live-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  position: relative;
  z-index: 2;
}

.live-strip-label {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: #6EE89A;
  text-shadow: 0 0 14px rgba(110,232,154,.5);
  white-space: nowrap;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6EE89A;
  box-shadow: 0 0 6px rgba(110,232,154,.9), 0 0 14px rgba(110,232,154,.4);
  position: relative;
  flex-shrink: 0;
}

.live-pulse::before,
.live-pulse::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(110,232,154,.28);
}

.live-pulse::before {
  inset: -4px;
  animation: pulse-ring 2s ease-out infinite;
}

.live-pulse::after {
  inset: -8px;
  background: rgba(110,232,154,.10);
  animation: pulse-ring 2s ease-out .5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(2); opacity: 0; }
}

.live-strip-sep {
  width: 1px;
  height: 22px;
  background: rgba(110,232,154,.2);
  flex-shrink: 0;
}

.live-ticker-overflow {
  flex: 1;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.live-ticker-overflow:hover .live-ticker-track {
  animation-play-state: paused;
}

.live-ticker-track {
  display: inline-flex;
  align-items: center;
  animation: live-ticker 68s linear infinite;
  will-change: transform;
}

@keyframes live-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.live-ticker-set {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
}

.live-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(110,232,154,.12);
  text-decoration: none;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}

.live-item:hover {
  background: rgba(110,232,154,.07);
  border-color: rgba(110,232,154,.38);
  color: #fff;
  box-shadow: 0 0 18px rgba(110,232,154,.12);
}

.live-item-area {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.live-item[data-area="dev"] .live-item-area,
.live-item[data-area="software-dev"] .live-item-area { background: rgba(14,165,233,.45); color: #7DD3FC; }
.live-item[data-area="data"] .live-item-area { background: rgba(245,158,11,.38); color: #FCD34D; }
.live-item[data-area="cloud"] .live-item-area { background: rgba(8,145,178,.45); color: #67E8F9; }
.live-item[data-area="qa"] .live-item-area { background: rgba(3,105,161,.55); color: #93C5FD; }
.live-item[data-area="cyber"] .live-item-area,
.live-item[data-area="cybersecurity"] .live-item-area { background: rgba(220,38,38,.38); color: #FCA5A5; }
.live-item[data-area="ai"] .live-item-area { background: rgba(124,58,237,.45); color: #C4B5FD; }
.live-item[data-area="devops"] .live-item-area { background: rgba(15,17,23,.8); color: #94A3B8; }
.live-item[data-area="soft"] .live-item-area { background: rgba(16,185,129,.35); color: #6EE7B7; }

.live-item-name {
  font-size: 12.5px;
  font-weight: 500;
}

.live-item-ends {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.1);
}

.live-item-arrow {
  font-size: 11px;
  color: rgba(255,255,255,.22);
  transition: transform .2s ease, color .2s ease;
}

.live-item:hover .live-item-arrow {
  transform: translateX(3px);
  color: #6EE89A;
}

/* ── FINAL CTA — dark ── */
.final-cta-dark {
  background: var(--primary);
  overflow: hidden;
  position: relative;
}

.final-cta-dark::before,
.final-cta-dark::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.final-cta-dark .final-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.final-cta-dark .final-cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.final-cta-dark .final-cta-title {
  font-weight: 300;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 14px;
}

.final-cta-dark .final-cta-title strong {
  font-weight: 500;
}

.final-cta-dark .final-cta-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 auto 36px;
}

.final-cta-dark .final-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.final-cta-dark .btn.btn-cta-white {
  background: #fff;
  color: var(--text-primary);
  border-color: #fff;
}

.final-cta-dark .btn.btn-cta-white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}

.final-cta-dark .btn.btn-cta-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.24);
  padding: 10px 22px;
}

.final-cta-dark .btn.btn-cta-outline:hover {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
  transform: translateY(-1px);
}

/* ── FINAL CTA — simple ── */
.final-cta-simple {
  background: var(--primary);
  text-align: center;
}

.final-cta-simple .final-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 40px;
}

.final-cta-simple .final-cta-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.final-cta-simple .final-cta-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 32px;
}

.final-cta-simple .final-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.final-cta-simple .btn.btn-white {
  background: #fff;
  color: var(--text-primary);
  border-color: #fff;
}

.final-cta-simple .btn.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.final-cta-simple .btn.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.18);
}

.final-cta-simple .btn.btn-outline-white:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
}

/* ── SECTION HEADER — simple ── */
.page-sections-simple .section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--simple-section-eyebrow-color, var(--text-muted));
  margin-bottom: 10px;
}

.page-sections-simple .section-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.page-sections-simple .section-sub {
  font-size: 0.97rem;
  color: var(--slate);
  line-height: 1.65;
  max-width: 560px;
}

/* ── FINAL CTA — feature base ── */
.final-cta-feature {
  position: relative;
  overflow: hidden;
}

.final-cta-feature .final-cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.final-cta-feature .final-cta-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.final-cta-feature .final-cta-title strong {
  font-weight: 400;
}

.final-cta-feature .final-cta-sub {
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.final-cta-feature .final-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FINAL CTA — soft ── */
.final-cta-soft {
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.final-cta-soft .final-cta-title {
  color: var(--text-primary);
}

.final-cta-soft .final-cta-sub {
  color: var(--text-muted);
}

/* ── FINAL CTA — Layer8 ── */
.final-cta-layer8 {
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(220,38,38,0.12) 0%, transparent 70%), #0A0C10;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.final-cta-layer8::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(220,38,38,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta-layer8 .final-cta-title {
  color: #E8ECF0;
}

.final-cta-layer8 .final-cta-title strong {
  font-weight: 600;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.final-cta-layer8 .final-cta-sub {
  color: #A0AABB;
}

.final-cta-layer8 .btn-primary {
  background: #DC2626;
  border-color: #DC2626;
}

.final-cta-layer8 .btn-primary:hover {
  background: #B91C1C;
  border-color: #B91C1C;
}

.final-cta-layer8 .btn-secondary {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: #C4CCD8;
}

.final-cta-layer8 .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ── LINK ── */
.link-all {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.link-all:hover { color: var(--text-primary); gap: 8px; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 40px 0;
}

/* ── Main grid: brand col + 3 nav cols ── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo { display: inline-flex; }
.footer-logo::before { display: none; }
.footer-logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-tagline {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  max-width: 220px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.35);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.footer-social-link:hover {
  border-color: rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.80);
}

/* Nav columns */
.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.52);
  padding: 6px 0;
  transition: color 0.15s ease;
  display: inline-block;
}
.footer-links a:hover { color: rgba(255,255,255,0.90); }

/* ── Bottom bar ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 24px;
}

.footer-bottom-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.22);
}

.footer-bottom-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

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

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

.text-center { text-align: center; }
.text-right  { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4  { gap: 4px; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

.w-full { width: 100%; }


/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .page-crumb-bar { padding: 0 24px; }
  .live-strip-inner { padding: 0 24px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
  .trust-item:nth-child(3) { border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .trust-item:nth-child(4) { border-top: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-tagline { max-width: 300px; }
}

@media (max-width: 768px) {
  body.nav-mobile-open {
    overflow: hidden;
  }
  .site-nav { top: 0; left: 0; right: 0; }
  .site-nav.nav-scrolled { top: 12px; left: 12px; right: 12px; }
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .nav-shell { padding: 12px 16px; }
  .site-nav.nav-scrolled .nav-shell { padding: 10px 16px; }
  .nav-shell-row { grid-template-columns: 1fr auto; gap: 12px; }
  .nav-shell-right { gap: 10px; }
  .nav-shell-right > .lang-switcher,
  .nav-shell-right > .btn { display: none; }
  .site-nav.nav-mobile-open .nav-shell {
    background: rgba(242, 243, 245, 0.98);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 1px 4px rgba(15,17,23,0.05);
    border-radius: 20px;
  }
  .nav-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 19;
  }
  .nav-mobile-panel {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--nav-height) + 14px);
    max-height: calc(100svh - var(--nav-height) - 28px);
    overflow: auto;
    padding: 18px;
    background: rgba(249, 250, 251, 0.98);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    box-shadow: 0 24px 54px rgba(15,17,23,0.18), 0 8px 20px rgba(15,17,23,0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 20;
  }
  .site-nav.nav-mobile-open .nav-mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav.nav-mobile-open .nav-mobile-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-mega { display: none !important; }
  .container { padding: 0 20px; }
  .page-crumb-bar { padding: 0 20px; }
  .live-strip-inner { padding: 0 20px; }
  .final-cta-dark .final-cta-inner { padding: 56px 20px; }
  .final-cta-simple .final-cta-inner { padding: 56px 20px; }
  .final-cta-feature .final-cta-inner { padding: 56px 20px; }
  .courses-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 48px 0; }
  .footer-inner { padding: 40px 20px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .nav-mobile-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-mobile-student {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-ticker-track { animation: none; }
  .live-ticker-overflow {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .live-ticker-overflow::-webkit-scrollbar { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   ACCESSIBILITY — Global enhancements
   ══════════════════════════════════════════════════════════════ */

/* ── Skip link ── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: top 0.15s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}
.skip-link:focus { top: 16px; }

/* ── Focus visible — visible focus ring for all interactive elements ── */
:focus { outline: none; }
:focus-visible {
  outline: 2.5px solid #0EA5E9;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Adapt focus ring to dark nav context */
.site-nav :focus-visible { outline-color: #fff; }

/* Pill-shaped elements get a matching pill focus ring */
.btn:focus-visible,
.chip:focus-visible,
.lang-btn:focus-visible,
.nav-links a:focus-visible,
.nav-dropdown-btn:focus-visible,
.nav-mega-program:focus-visible {
  outline-offset: 3px;
  border-radius: 999px;
}

/* Cards */
.course-card:focus-visible,
.brand-area-card:focus-visible,
.bootcamp-banner:focus-visible,
.nav-mega-program:focus-visible {
  outline-width: 2.5px;
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

/* ── Contrast fixes ── */
/* testimonial quote: #858CA0 → fails AA on white; use text-secondary for WCAG AA compliance */
.testi-quote { color: var(--text-secondary); }
/* trust bar label: same issue on white bg */
.trust-label { color: var(--text-secondary); }

/* footer: WCAG AA compliance — values in main footer block already meet 4.5:1 on #080A0F */

/* ── Touch target improvements ── */
/* Chips: ensure min 36px touch target (comfortable, not overly large) */
.chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
}

/* Language buttons: increase padding for touch */
.lang-btn { padding: 6px 12px; }

/* ── Cursor pointer for interactive non-link elements ── */
.how-step { cursor: pointer; }
.brand-area-card { cursor: pointer; }
.testi-card { cursor: default; }

/* ── Testimonials: pause on keyboard focus ── */
.testimonials-col-inner:focus-within { animation-play-state: paused; }

/* ── Section header weight: h2 at 300 is too light to scan ── */
/* Increase paragraph contrast in section headers */
.section-header .text-h2 { font-weight: 400; }

/* ── Link-all: bigger tap target ── */
.link-all { padding: 4px 0; }

/* ── Section background variants ── */
.section-white    { background: var(--bg-white); }
.section-border-t { border-top: 1px solid var(--border); }
.section-border-b { border-bottom: 1px solid var(--border); }

/* ── Price group column variant (for "a decorrer" cards) ── */
.ccf-price-col {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* ── Cookie consent ── */
.fa-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
}

.fa-cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .24s ease;
}

.fa-cookie-consent__banner,
.fa-cookie-consent__panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: 760px;
  margin-left: auto;
  background: rgba(255, 250, 245, 0.98);
  border: 1px solid rgba(25, 32, 47, 0.08);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(20, 26, 42, 0.16);
  padding: 28px 28px 24px;
  pointer-events: auto;
}

.fa-cookie-consent:not([hidden]) .fa-cookie-consent__backdrop {
  opacity: 1;
}

.fa-cookie-consent__panel {
  max-width: 820px;
}

.fa-cookie-consent__eyebrow {
  margin: 0 0 10px;
  font: 600 12px/1.2 "JetBrains Mono", monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #b64119;
}

.fa-cookie-consent__title {
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: .98;
  letter-spacing: -0.03em;
  color: #101827;
}

.fa-cookie-consent__title--panel {
  font-size: clamp(26px, 3vw, 34px);
}

.fa-cookie-consent__text {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
  color: #52607a;
}

.fa-cookie-consent__text--panel {
  margin-bottom: 18px;
}

.fa-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.fa-cookie-consent__actions--panel {
  justify-content: flex-end;
}

.fa-cookie-consent__links {
  margin-top: 14px;
}

.fa-cookie-consent__links a,
.fa-cookie-consent__policy-link {
  color: #101827;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fa-cookie-consent__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.fa-cookie-consent__close {
  appearance: none;
  border: 1px solid rgba(25, 32, 47, 0.12);
  background: #fff;
  color: #101827;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fa-cookie-consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(25, 32, 47, 0.09);
  border-radius: 22px;
  background: #fff;
  margin-bottom: 12px;
}

.fa-cookie-consent__option strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  color: #101827;
}

.fa-cookie-consent__option p {
  margin: 0;
  max-width: 58ch;
  color: #60708d;
  font-size: 15px;
  line-height: 1.55;
}

.fa-cookie-consent__option.is-locked {
  background: linear-gradient(135deg, rgba(255, 244, 238, 0.92), rgba(255, 255, 255, 0.98));
}

.fa-cookie-consent__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #101827;
  color: #fff;
  font: 600 11px/1 "JetBrains Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fa-cookie-consent__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.fa-cookie-consent__toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fa-cookie-consent__switch {
  position: relative;
  width: 60px;
  height: 34px;
  border-radius: 999px;
  background: rgba(16, 24, 39, 0.18);
  transition: background .2s ease;
}

.fa-cookie-consent__switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 24, 39, 0.18);
  transition: transform .2s ease;
}

.fa-cookie-consent__toggle input:checked + .fa-cookie-consent__switch {
  background: #101827;
}

.fa-cookie-consent__toggle input:checked + .fa-cookie-consent__switch::after {
  transform: translateX(26px);
}

@media (max-width: 768px) {
  .fa-cookie-consent__banner,
  .fa-cookie-consent__panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .fa-cookie-consent__title {
    font-size: 30px;
  }

  .fa-cookie-consent__actions,
  .fa-cookie-consent__actions--panel {
    flex-direction: column;
    align-items: stretch;
  }

  .fa-cookie-consent__actions .btn,
  .fa-cookie-consent__actions--panel .btn {
    width: 100%;
    justify-content: center;
  }

  .fa-cookie-consent__option {
    align-items: flex-start;
    flex-direction: column;
  }

  .fa-cookie-consent__status,
  .fa-cookie-consent__toggle {
    align-self: flex-start;
  }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION — Respect user OS preference
   WCAG 2.1 Success Criterion 2.3.3 (AAA) / 2.3.1 (A)
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Universal animation kill-switch */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveal elements: show immediately without the slide-in */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.visible { opacity: 1; transform: none; }

  /* Hero entrance: show immediately */
  .hero-eyebrow,
  .hero-title,
  .hero-sub,
  .hero-ctas,
  .hero-left,
  .hero-right { animation: none; opacity: 1; transform: none; }

  /* Float animation on featured card */
  .hero-right { animation: none; }

  /* Testimonials: disable auto-scroll */
  .testimonials-col-inner { animation: none; }

  /* Blob animations */
  .brand-area-card::before,
  .brand-area-card::after { animation: none; }

  /* Badge pulse */
  .badge-dot::before,
  .badge-dot::after { animation: none; }

  /* Nav shimmer */
  .btn-primary::before { display: none; }

  /* Smooth scroll */
  html { scroll-behavior: auto; }
}
