/*
Theme Name:  Psychopraktyki
Theme URI:   https://psychopraktyki.pl
Author:      Tu i Teraz
Description: Custom theme for Psychopraktyki — psychology practice platform.
Version:     1.0.0
Text Domain: psychopraktyki
Tags:        custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* ─── Design System Variables ─────────────────────────────────────────────── */

:root {
  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-logo:    'Gill Sans MT', 'Century Gothic', sans-serif;

  /* Brand colors */
  --color-primary:      #2F5D50;
  --color-primary-dark: #1A3D33;
  --color-accent:       #C8A97E;
  --color-accent-dark:  #A8896A;
  --color-footer:       #183630;

  /* Text */
  --color-text-h:      #1A2D27;
  --color-text-body:   #444444;
  --color-text-muted:  #6B6B6B;
  --color-text-subtle: #999999;

  /* Backgrounds */
  --color-bg:       #FFFFFF;
  --color-bg-alt:   #F5F2ED;
  --color-bg-mint:  #E8F4F0;

  /* Spacing scale: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 80px */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  32px;
  --space-xl:  64px;
  --space-2xl: 80px;

  /* Border radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 24px;

  /* Layout */
  --max-width:     1200px;
  --nav-height:    72px;
  --section-pad-v: 80px;
}

/* ─── Base Reset ──────────────────────────────────────────────────────────── */

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

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ──────────────────────────────────────────────────────────── */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-text-h);
}

h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.15; }
h2 { font-size: clamp(26px, 3.5vw, 32px); line-height: 1.25; }

h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-text-h);
  line-height: 1.4;
}

h3 { font-size: clamp(15px, 2vw, 17px); }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { color: var(--color-primary-dark); }

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

/* ─── Skip link (keyboard / screen-reader navigation) ────────────────────── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ─── Layout ──────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

.site-main { min-height: 60vh; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-sand {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-sand:hover,
.btn-sand:focus-visible {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
}

/* ─── Section Badge ───────────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ─── Cards ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* ─── Header / Navigation ─────────────────────────────────────────────────── */

.site-header {
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo img { height: 36px; width: auto; }

/* Nav wrapper */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-menu a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-body);
  letter-spacing: 0.01em;
  padding-block: 4px;
  position: relative;
  transition: color 0.18s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
  color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
  width: 100%;
}

/* CTA button in nav */
.nav-cta {
  flex-shrink: 0;
}

/* Mobile-only CTA nav item — hidden on desktop */
.mobile-cta-item {
  display: none;
}

/* Transparent wrapper on desktop; becomes the spacing shell on mobile */
.mobile-menu-inner {
  display: contents;
}

/* Hamburger toggle — hidden on desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-h);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X when open */
.site-header.nav-open .menu-toggle .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .menu-toggle .burger-bar:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .menu-toggle .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background-color: var(--color-footer);
  color: rgba(255, 255, 255, 0.65);
  padding-block: var(--space-2xl);
}

/* 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg) var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Col titles */
.footer-col-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-md);
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-brand img { height: 32px; width: auto; }
.footer-brand-seo {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  margin: 0;
}

.footer-address-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 2px;
}

.section-lead--sub {
  margin-top: calc(var(--space-sm) * -1);
  font-size: 14px;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 260px;
  margin: 0;
}

/* Nav columns */
.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-menu a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
.footer-menu a:hover {
  color: #fff;
  text-decoration: none;
}
.footer-cta-link {
  color: #EA66DF !important;
  font-weight: 600;
}
.footer-cta-link:hover {
  color: #f088e8 !important;
}

/* Contact column */
.footer-contact {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.footer-contact .footer-col-title { margin-bottom: var(--space-sm); }
.footer-contact-sub {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-top: 2px;
}
.footer-contact p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}
.footer-contact-link {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.18s ease;
}
.footer-contact-link:hover { color: var(--color-accent); }
.footer-hours {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-lg);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

/* Social links */
.social-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.social-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.06);
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Show hamburger, hide desktop nav */
  .menu-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    /* Hidden until toggled */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-header.nav-open .site-nav {
    max-height: 620px;
  }

  /* Inner spacing shell — owns all padding inside the drawer */
  .mobile-menu-inner {
    display: block;
    padding: 48px 24px 40px;
    text-align: center;
    width: 100%;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  /* Large touch-friendly nav links */
  .mobile-menu-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    padding-block: 14px;
  }

  .mobile-menu-link::after { display: none; }

  .mobile-menu-link:active { opacity: 0.55; }

  /* Mobile CTA nav item */
  .mobile-cta-item {
    display: block;
    width: 100%;
    margin-top: var(--space-lg);
  }

  .mobile-menu-cta {
    display: block;
    width: 100%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(234, 102, 223, 0.3);
  }

  /* Hide header CTA button — drawer CTA takes over */
  .nav-cta { display: none; }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .header-inner { gap: var(--space-md); }
  .site-logo img { height: 28px; }
}

/* ─── Section Shared ──────────────────────────────────────────────────────── */

.section-alt { background-color: var(--color-bg-alt); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header .badge { margin-bottom: var(--space-md); }
.section-header h2 { margin-block: var(--space-md) var(--space-md); }

.section-lead {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Shared section padding */
.section-hero,
.section-stats,
.section-why,
.section-program,
.section-team,
.section-faq,
.section-cta-banner {
  padding-block: var(--section-pad-v);
}

.section-stats { padding-block: 48px; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
}

.hero-content .badge { margin-bottom: 0; }

.hero-heading {
  font-size: clamp(38px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0;
}

.hero-subheading {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-primary);
  line-height: 1.4;
  margin: 0;
}

.hero-lead strong { color: var(--color-text-body); font-weight: 600; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 7 / 8;
  background: var(--color-bg-mint);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  transition: transform 0.4s ease;
}

/* ─── Stats Bar ───────────────────────────────────────────────────────────── */

.stats-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ─── Dlaczego Warto ──────────────────────────────────────────────────────── */

.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.why-card:hover {
  box-shadow: 0 8px 32px rgba(47, 93, 80, 0.1);
  transform: translateY(-3px);
}

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-bg-mint);
  color: var(--color-primary);
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-h);
  line-height: 1.4;
}

.why-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ─── Program Praktyk ─────────────────────────────────────────────────────── */

.pillars-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: pillar;
}

.pillar-card {
  display: flex;
  gap: var(--space-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  align-items: flex-start;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pillar-card:hover {
  box-shadow: 0 6px 24px rgba(47, 93, 80, 0.08);
  transform: translateY(-2px);
}

/* Force last row to center when 5 items in 3-col grid */
.pillar-card:nth-child(4) { grid-column: 1; }
.pillar-card:nth-child(5) { grid-column: 2; }

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg-mint);
}

.pillar-body { flex: 1; }

.pillar-body h3 {
  font-size: 15px;
  margin-bottom: var(--space-sm);
}

.pillar-body p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── Program Meta ────────────────────────────────────────────────────────── */

.program-meta {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.program-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.program-meta-highlight {
  background: var(--color-bg-mint);
  border-color: rgba(47, 93, 80, 0.15);
}

.program-meta-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.program-meta-icon svg {
  width: 32px;
  height: 32px;
}

.program-meta-item div {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-body);
}

/* ─── Certification Callout ───────────────────────────────────────────────── */

.cert-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
}

.cert-callout-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-top: 2px;
}

.cert-callout-icon svg {
  width: 36px;
  height: 36px;
}

.cert-callout p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cert-callout strong {
  color: #fff;
  font-weight: 600;
}

/* ─── Team ────────────────────────────────────────────────────────────────── */

.mentor-slider { position: relative; }

.mentor-slider-viewport {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mentor-slider-viewport::-webkit-scrollbar { display: none; }

.team-grid {
  display: contents;
  list-style: none;
}

.team-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(33.333% - 16px);
  width: calc(33.333% - 16px);
  scroll-snap-align: start;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.team-card:hover {
  box-shadow: 0 10px 40px rgba(47, 93, 80, 0.12);
  transform: translateY(-4px);
}

.team-photo {
  aspect-ratio: 7 / 8;
  background: var(--color-bg-mint);
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
}

.team-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.team-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-h);
}

.team-spec {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.01em;
  margin: 0;
}

.team-bio {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}

.team-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: auto;
}

.team-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-bg-mint);
  border: 1px solid rgba(47, 93, 80, 0.15);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
}

.team-credential {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent-dark);
  margin: 2px 0 4px;
  line-height: 1.4;
}

.team-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
}

.team-learns-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: var(--space-sm) 0 0;
  padding: 0;
  flex: 1;
}

.team-learns-list li {
  font-size: 11px;
  line-height: 1.55;
  color: var(--color-text-muted);
  padding-left: 14px;
  position: relative;
}

.team-learns-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.team-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-mint);
}

.team-initials {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  opacity: 0.55;
  user-select: none;
}

.mentor-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.mentor-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
.mentor-nav:hover {
  background: var(--color-primary);
  color: #fff;
}
.mentor-nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ─── CTA Banner ──────────────────────────────────────────────────────────── */

.section-cta-banner {
  background-color: var(--color-primary);
  color: #fff;
}

.badge-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

.cta-banner-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.cta-banner-header h2 {
  color: #fff;
  font-size: clamp(24px, 3.5vw, 40px);
  margin: var(--space-sm) 0;
}

.cta-banner-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* ─── Editions grid ─────────────────────── */

.editions-grid {
  display: flex;
  align-items: stretch;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.edition-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
}

.edition-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.edition-date {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.edition-day {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.edition-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: var(--space-sm) 0;
  padding: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.edition-details li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edition-details svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.75;
}

.edition-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 56px;
}

/* ─── Pricing block ─────────────────────── */

.pricing-block {
  display: flex;
  align-items: stretch;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing-main,
.pricing-promo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-lg) var(--space-xl);
}

.pricing-promo {
  background: rgba(200, 169, 126, 0.1);
}

.pricing-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.price-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.price-amount--promo {
  color: var(--color-accent);
}

.price-deposit {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.promo-codes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 4px 0 0;
}

.promo-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-footer);
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
}

/* ─── Banner footer link ────────────────── */

.cta-banner-footer {
  text-align: center;
}

.cta-banner-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.cta-banner-link:hover {
  color: #fff;
}

/* ─── Testimonials ────────────────────────────────────────────────────────── */

.section-testimonials {
  background-color: var(--color-bg-alt);
  padding-block: var(--section-pad-v);
}

.testimonials-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(47, 93, 80, 0.1);
  transform: translateY(-3px);
}

.testimonial-blockquote {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  height: 100%;
  margin: 0;
}

/* Large decorative opening quote mark */
.testimonial-mark {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.7;
  color: var(--color-primary);
  opacity: 0.18;
  display: block;
  user-select: none;
  /* Negative margin pulls it up so it sits flush at card top */
  margin-bottom: calc(var(--space-md) * -1);
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.7;
  color: var(--color-text-h);
  margin: 0;
  flex: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(47, 93, 80, 0.12);
  margin-top: auto;
}

/* Short accent rule before author name */
.testimonial-footer::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  flex-shrink: 0;
  border-radius: 2px;
}

.testimonial-author {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-h);
}

.testimonial-role {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */

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

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(47, 93, 80, 0.12);
}

.faq-item:first-child {
  border-top: 1px solid rgba(47, 93, 80, 0.12);
}

.faq-item details {
  width: 100%;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-h);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Remove default marker in all browsers */
.faq-trigger::-webkit-details-marker { display: none; }
.faq-trigger::marker { display: none; }

/* Chevron via pseudo-element */
.faq-trigger::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  border-radius: 50%;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

details[open] .faq-trigger::after {
  transform: rotate(180deg);
  background-color: var(--color-accent);
}

details[open] .faq-trigger {
  color: var(--color-primary);
}

.faq-panel {
  padding-bottom: var(--space-lg);
  padding-right: calc(20px + var(--space-md));
}

.faq-panel p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
}

.faq-panel strong {
  color: var(--color-text-body);
  font-weight: 600;
}

/* ─── Multi-Step Application Form ────────────────────────────────────────── */

.section-form {
  background: var(--color-bg-alt);
  padding-block: var(--section-pad-v);
}

/* Two-column layout: context (left) + form shell (right) */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

/* ── Context panel ── */
.form-context {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.form-context h2 {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1.2;
  color: var(--color-text-h);
  margin: 0;
}

.form-context-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.55;
  margin: 0;
}

.form-context-lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

.form-context-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: 0;
  margin: var(--space-sm) 0 0;
}

.form-context-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-body);
}

.form-context-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  margin-top: 1px;
}

.form-context-icon svg { width: 24px; height: 24px; }

.form-context-contact {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: var(--space-sm) 0 0;
}

.form-context-link {
  color: var(--color-primary);
  font-weight: 500;
  text-underline-offset: 3px;
}

/* ── Form shell ── */
.form-shell {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 32px rgba(47, 93, 80, 0.07);
  overflow: hidden;
}

/* ── Progress indicator ── */
.form-progress {
  display: flex;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-bg-mint);
  border-bottom: 1px solid rgba(47, 93, 80, 0.1);
  gap: 0;
}

.form-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-dot-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: rgba(47, 93, 80, 0.12);
  color: var(--color-primary);
  border: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.step-dot-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Active step */
.form-step-dot.is-active .step-dot-circle {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.form-step-dot.is-active .step-dot-label {
  color: var(--color-primary);
  font-weight: 600;
}

/* Completed step */
.form-step-dot.is-done .step-dot-circle {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.form-step-dot.is-done .step-dot-circle::before {
  content: '✓';
  font-size: 14px;
}

.form-step-dot.is-done .step-dot-circle { font-size: 0; }

.step-connector {
  flex: 1;
  height: 2px;
  background: rgba(47, 93, 80, 0.15);
  margin: 0 var(--space-sm);
  margin-bottom: 20px;
  border-radius: 2px;
  transition: background 0.3s ease;
}

/* ── Form steps — hidden by default, shown via .is-active ── */
fieldset.form-step {
  display: none;
  border: none;
  margin: 0;
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-lg);
}

fieldset.form-step.is-active {
  display: flex !important;
  min-height: 380px;
}

.form-step-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  color: var(--color-text-h);
  margin-bottom: var(--space-sm);
}

/* ── Form groups ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-h);
}

.form-label abbr {
  text-decoration: none;
  color: var(--color-primary);
  margin-left: 2px;
}

/* ── Card-radio tiles ── */
.card-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.card-radio {
  cursor: pointer;
  display: block;
}

.card-radio {
  position: relative; /* so the clipped input stays inside */
}

.card-radio input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  /* do NOT set pointer-events:none — the label click must still reach the input */
}

.card-radio-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-alt);
  border: 2px solid rgba(47, 93, 80, 0.15);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.card-radio:hover .card-radio-inner {
  border-color: var(--color-primary);
  background: var(--color-bg-mint);
}

/* Selected state — uses #EA66DF accent as requested */
.card-radio.is-selected .card-radio-inner {
  border-color: #EA66DF;
  background: rgba(234, 102, 223, 0.06);
  box-shadow: 0 0 0 3px rgba(234, 102, 223, 0.12);
}

/* Keyboard focus */
.card-radio input[type="radio"]:focus-visible + .card-radio-inner {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.card-radio-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.card-radio-icon svg { width: 20px; height: 20px; }

.card-radio-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-h);
}

.card-radio-date {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.card-radio-sub {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ── Text inputs ── */
.form-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-lg);
}

.form-input {
  width: 100%;
  padding: 12px var(--space-md);
  font-family: var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-size: 15px;
  color: var(--color-text-body);
  background: #fff;
  border: 1.5px solid rgba(47, 93, 80, 0.22);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}

.form-input::placeholder { color: var(--color-text-subtle); }

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.1);
}

.form-input.is-error {
  border-color: #C5221F;
  box-shadow: 0 0 0 3px rgba(197, 34, 31, 0.12);
}

/* ── Inline validation error (top of step) ── */
.form-inline-error {
  font-size: 13px;
  color: #c0392b;
  background: rgba(217, 83, 79, 0.08);
  border: 1px solid rgba(217, 83, 79, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}

/* ── Per-field error message ── */
.field-error-msg {
  display: block;
  font-size: 12px;
  color: #C5221F;
  margin-top: 4px;
  line-height: 1.4;
}

/* ── RODO / consent alert above checkbox ── */
.form-error-alert {
  display: block;
  width: 100%;
  background-color: #FCE8E6;
  border: 1px solid #F5C2C1;
  color: #C5221F;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-align: left;
  box-sizing: border-box;
}
.form-error-alert[hidden] { display: none; }

/* ── Summary (Step 3) ── */
.summary-selection {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  font-size: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-row:last-child { border-bottom: none; }

.summary-key {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.summary-val {
  color: var(--color-text-h);
  text-align: right;
  word-break: break-word;
}

/* ── Investment block ── */
.investment-block {
  border: 1px solid rgba(47, 93, 80, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.investment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 14px;
  border-bottom: 1px solid rgba(47, 93, 80, 0.08);
}

.investment-row:last-child { border-bottom: none; }

.inv-label { color: var(--color-text-muted); }
.inv-label em { font-style: normal; font-size: 12px; }

.inv-amount {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.investment-row--total {
  background: var(--color-primary);
}

.investment-row--total .inv-label { color: rgba(255,255,255,0.8); }
.investment-row--total .inv-amount { color: #fff; }

.investment-row--deposit {
  background: var(--color-bg-mint);
}

.investment-row--deposit .inv-amount { color: var(--color-primary); }

.investment-row--rest .inv-amount { color: var(--color-text-muted); font-size: 16px; }

/* ── Consent checkbox ── */
.form-consent { padding-top: var(--space-sm); }

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  cursor: pointer;
}

.form-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

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

.form-consent-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent-link:hover { color: var(--color-primary-dark); }

/* ── Form actions ── */
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--space-sm);
}

.form-actions--dual {
  justify-content: space-between;
}

/* ── Success state — hidden by default ── */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
}

.form-success.is-active {
  display: flex !important;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  color: var(--color-primary);
}

.form-success-icon svg { width: 56px; height: 56px; }

.form-success-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-primary);
  margin: 0;
}

.form-success-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 0;
}

/* ── Partner Universities ────────────────────────────────────────────────── */

.partner-unis {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: var(--space-sm) 0 0;
  padding: 0;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.partner-uni {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ─── Map Section ────────────────────────────────────────────────────────── */

.section-map {
  background: var(--color-bg-alt);
  padding-block: var(--section-pad-v);
}

.section-map-heading {
  font-size: clamp(24px, 3.5vw, 40px);
}

.map-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  height: 450px;
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-container { height: 300px; }
}

/* ─── Legal Page Typography ──────────────────────────────────────────────── */

.legal-page {
  padding-block: var(--section-pad-v);
  background: var(--color-bg);
}

.legal-content {
  max-width: 760px;
  margin-inline: auto;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-body);
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  color: var(--color-text-h);
  line-height: 1.2;
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-bg-mint);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--color-text-h);
  line-height: 1.3;
  margin: var(--space-xl) 0 var(--space-md);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-h);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content p {
  margin: 0 0 var(--space-md);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-xl);
  margin: 0 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content li {
  line-height: 1.7;
}

.legal-content li::marker {
  color: var(--color-primary);
}

.legal-content strong {
  font-weight: 600;
  color: var(--color-text-h);
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.legal-content a:hover { color: var(--color-primary-dark); }

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 var(--space-lg);
}

.legal-content th,
.legal-content td {
  padding: 10px var(--space-md);
  text-align: left;
  border: 1px solid rgba(47, 93, 80, 0.15);
}

.legal-content th {
  background: var(--color-bg-mint);
  font-weight: 600;
  color: var(--color-primary);
}

.legal-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: var(--space-xl) 0;
}


/* ─── Reduced Motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Homepage Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  /* team slider: 3 cards still fit at this width */
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { max-width: 480px; margin-inline: auto; aspect-ratio: 4 / 3; }
  .hero-content { align-items: center; text-align: center; }
  .hero-lead { text-align: center; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-card:nth-child(4),
  .pillar-card:nth-child(5) { grid-column: auto; }
  .team-card { flex: 0 0 calc(50% - 12px); width: calc(50% - 12px); }

  .program-meta { grid-template-columns: 1fr; }

  /* Form: stack layout */
  .form-layout { grid-template-columns: 1fr; }
  .form-context { position: static; }
}

@media (max-width: 768px) {
  :root { --section-pad-v: 56px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .team-card { flex: 0 0 calc(50% - 12px); width: calc(50% - 12px); }
  .testimonials-grid { grid-template-columns: 1fr; }

  .hero-actions { justify-content: center; }

  /* Form: single-col tiles and fields */
  .card-radio-group { grid-template-columns: 1fr; }
  .form-fields-grid { grid-template-columns: 1fr; }
  fieldset.form-step { padding: var(--space-lg) var(--space-md); }
  .form-progress { padding: var(--space-md); gap: 0; }
  .step-dot-label { display: none; }
  .form-actions--dual { gap: var(--space-sm); }
}

@media (max-width: 480px) {
  .team-card { flex: 0 0 100%; width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── 404 Error Page ──────────────────────────────────────────────────────── */

.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  padding: 100px var(--space-lg);
  text-align: center;
}

.error-404-inner {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.error-404-code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: #EA66DF;
  letter-spacing: -2px;
}

.error-404-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--color-primary);
  margin: 0;
  line-height: 1.25;
}

.error-404-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0;
}

/* ─── Legal / Static Pages (page.php) ────────────────────────────────────── */

.legal-page-wrap {
  background: var(--color-bg-alt);
  padding-block: 60px;
}

/* ── Card shell ── */
.legal-document-card {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 50px 60px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2c3e50;
}

/* ── Document title: first h1 in the card ── */
.legal-document-card h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #2F5D50;
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

/* ── Section titles: h2 (numbered sections) ── */
.legal-document-card h2 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  color: #2F5D50;
  margin-top: 35px;
  margin-bottom: 15px;
}

/* ── Sub-section titles: h3 ── */
.legal-document-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #2F5D50;
  margin-top: 24px;
  margin-bottom: 10px;
}

/* ── Paragraphs whose first child is <strong> = inline numbered-section header ── */
.legal-document-card p:has(> strong:first-child) {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2F5D50;
  display: block;
  margin-top: 35px;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* ── Body paragraphs ── */
.legal-document-card p {
  font-weight: 400;
  margin-bottom: 1.2em;
}

/* First line after any section title gets a subtle bold nudge for scannability */
.legal-document-card h2 + p::first-line,
.legal-document-card h3 + p::first-line,
.legal-document-card p:has(> strong:first-child) + p::first-line {
  font-weight: 600;
}

/* ── Lists: top-level ── */
.legal-document-card ul,
.legal-document-card ol {
  padding-left: 1.6em;
  margin-bottom: 1.4em;
}

.legal-document-card li {
  margin-bottom: 0.5em;
  padding-left: 0.25em;
}

.legal-document-card ul li::marker {
  color: #2F5D50;
}

/* ── Sub-lists (a, b, c — nested inside li) ── */
.legal-document-card li > ol,
.legal-document-card li > ul {
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 10px;
}

.legal-document-card li > ol li,
.legal-document-card li > ul li {
  margin-bottom: 10px;
}

.legal-document-card li > ol { list-style-type: lower-alpha; }

.legal-document-card li > ol li::marker,
.legal-document-card li > ul li::marker {
  font-weight: 700;
  color: #2F5D50;
}

/* ── JS-stamped classes for flat-pasted content ── */

.legal-document-card .legal-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #2F5D50;
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  line-height: 1.3;
}

.legal-document-card .legal-section-heading {
  display: block;
  font-weight: 700;
  color: #2F5D50;
  font-size: 1.25rem;
  margin-top: 35px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.legal-document-card .legal-sub-item {
  display: block;
  padding-left: 20px;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 8px;
}

.legal-document-card .legal-body-line {
  display: block;
  margin-bottom: 20px;
}

/* ── Links ── */
.legal-document-card a {
  color: #2F5D50;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-document-card a:hover {
  color: var(--color-accent);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .legal-document-card {
    padding: 40px 32px;
  }

  .legal-document-card h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 600px) {
  .legal-page-wrap {
    padding-block: 0;
  }

  .legal-document-card {
    padding: 32px 20px;
    border-radius: 0;
    box-shadow: none;
  }

  .legal-document-card h1 {
    font-size: 1.4rem;
  }
}

/* ─── Cookie Consent Banner ───────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 780px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.cookie-container {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
}

.cookie-container p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

.cookie-policy-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-policy-link:hover { color: #fff; }

.cookie-buttons { flex-shrink: 0; }

.cookie-btn--accept {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cookie-btn--accept:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}
.cookie-btn--accept:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
  }
  .cookie-buttons { width: 100%; }
  .cookie-btn--accept { width: 100%; text-align: center; }
}
