/* Echo Kids — main stylesheet. Vanilla CSS, mobile-first, no framework.
   Color/type tokens follow docs/design-review.md (approved for reuse from
   the prior design conversation); component structure below is original,
   not copied from the earlier prototype. */

/* ---------- Local fonts (self-hosted, 2026-07-28) ----------
   No request to fonts.googleapis.com / fonts.gstatic.com at runtime — see
   public/assets/fonts/README.md for provenance and docs/legal-pages-
   review.md for why (Google Fonts previously disclosed the visitor's IP
   to Google on every page load).

   Variable-weight files: one file per subset covers the whole weight
   range used on the site (Nunito 700/800/900, Plus Jakarta Sans
   400/500/600/700), not one file per weight. Two subsets per family
   (latin + latin-ext) because Romanian diacritics split across both:
   â/î are U+00E2/U+00EE (latin block, U+0000-00FF); ă/ș/ț are
   U+0103/U+0219/U+021B (latin-ext block) — unicode-range below matches
   Google's own split exactly, so the browser only fetches what a given
   page's text actually needs. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --color-green (bright, logo green) is decorative-only below: thin
     accents, dots, and text/icons ON DARK backgrounds (passes there).
     It must never be a background behind white text, nor used as text
     on a white/light background — white-on-#6EC228 is ~2.2:1, far under
     WCAG AA's 4.5:1 for normal text. Use --color-green-dark for those. */
  --color-green: #6EC228;
  /* Darkened from the originally-proposed #4F9A18 (only ~3.5:1 on white)
     to meet 4.5:1 against both white and --color-green-tint. */
  --color-green-dark: #397712;
  --color-green-tint: #EAF7D3;
  --color-magenta: #D4127A;
  --color-magenta-tint: #FCE5F1;
  /* Accessible dark variants for badge/icon backgrounds that need white
     text or need to sit as an icon color on their matching tint. */
  --color-orange-cta: #B35400;
  --color-amber-dark: #8A5F00;
  --color-ink: #19394A;
  --color-body: #3A5668;
  /* Darkened from #6B8898 (~3.7:1 on white, fails AA) to ~5.7:1. */
  --color-muted: #4F6B78;
  --color-bg: #FFFFFF;
  --color-bg-warm: #FDFBF6;
  --color-bg-mint: #EDF8E5;
  --color-bg-amber: #FEF8EC;

  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(25, 57, 74, .06);
  --shadow-md: 0 10px 30px rgba(25, 57, 74, .12);

  --content-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.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;
}

/* Inline SVG icons (templates/partials/icons.php) — sized here per
   container rather than emoji, so rendering never depends on the
   operating system's emoji font. */
.icon { width: 20px; height: 20px; flex-shrink: 0; }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }
@media (max-width: 768px) { section { padding: 44px 0; } }

.section-intro { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-intro .eyebrow { display: block; margin-bottom: 10px; }
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-magenta);
}

/* Focus visibility (accessibility requirement) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-magenta);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

.btn--primary { background: var(--color-magenta); color: #fff; box-shadow: 0 4px 16px rgba(212, 18, 122, .3); }
.btn--green { background: var(--color-green-dark); color: #fff; box-shadow: 0 4px 14px rgba(57, 119, 18, .35); }
.btn--outline { background: transparent; color: var(--color-ink); border: 2px solid rgba(25, 57, 74, .25); }
.btn--outline:hover { background: var(--color-ink); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .45); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .15); }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(25, 57, 74, .08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }

/* Footer logo: official white-on-transparent variant (2026-07-29,
   public/assets/images/logo-echo-kids-white.png), shown directly on the
   dark footer background. No plate/background/padding needed anymore —
   see git history for the earlier white-plate workaround this replaced. */
.brand--footer { display: inline-flex; }
.brand--footer img { height: 32px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--color-body); }
.main-nav a:hover { color: var(--color-green-dark); }

.main-nav__item--dropdown { position: relative; }
.main-nav__dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--color-body);
  background: none; border: none; padding: 4px 0; cursor: pointer;
}
.main-nav__dropdown-toggle:hover { color: var(--color-green-dark); }
.main-nav__dropdown-toggle .icon { width: 14px; height: 14px; }
.main-nav__dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 200px;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.main-nav__dropdown a {
  display: block; padding: 9px 12px; border-radius: 8px; font-size: .88rem;
  font-weight: 600; color: var(--color-body); text-decoration: none;
}
.main-nav__dropdown a:hover, .main-nav__dropdown a:focus-visible { background: var(--color-bg-mint); color: var(--color-green-dark); }
.main-nav__dropdown[hidden] { display: none; }

.mobile-nav__group { border-bottom: 1px solid rgba(25, 57, 74, .06); }
.mobile-nav__dropdown-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font: inherit; font-weight: 600; color: var(--color-ink);
  background: none; border: none; padding: 14px 24px; cursor: pointer;
}
.mobile-nav__dropdown[hidden] { display: none; }
.mobile-nav__dropdown { display: flex; flex-direction: column; background: var(--color-bg-warm); }
.mobile-nav__dropdown a { padding: 12px 24px 12px 36px; border-bottom: none; font-weight: 500; }

.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__phone { font-weight: 600; font-size: .88rem; color: var(--color-ink); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid rgba(25, 57, 74, .08);
}
.mobile-nav a { padding: 14px 24px; font-weight: 600; color: var(--color-ink); text-decoration: none; border-bottom: 1px solid rgba(25, 57, 74, .06); }
.mobile-nav__cta { color: var(--color-magenta) !important; }
.mobile-nav[hidden] { display: none; }

@media (max-width: 860px) {
  .main-nav, .site-header__phone { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 861px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { background: var(--color-bg-warm); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-green-tint);
  color: var(--color-green-dark);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-green); }
.hero__title em { font-style: normal; color: var(--color-magenta); }
.hero__lead { font-size: 1.08rem; max-width: 440px; margin-bottom: 28px; }
/* Secondary routing note under a hero lead — e.g. sending returning
   families from /evaluare/ to /reinscriere/. Deliberately quieter than
   .hero__lead so it never competes with the primary CTA. */
.hero__note { font-size: .92rem; color: var(--color-muted); margin: -14px 0 28px; }
.hero__note a { color: var(--color-magenta); text-decoration: underline; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 18px; }
.proof-chip { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--color-muted); font-weight: 500; }
.proof-chip::before {
  content: '✓';
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-green-tint);
  color: var(--color-green-dark);
  font-size: .6rem;
  flex-shrink: 0;
}

.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius-lg); width: 100%; height: 460px; object-fit: cover; object-position: center 30%; }
.hero__stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
}
.hero__stat--1 { bottom: -20px; left: -20px; }
.hero__stat--2 { top: 24px; right: -16px; }
.hero__stat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-green-tint);
  color: var(--color-green-dark);
  flex-shrink: 0;
}
.hero__stat-icon .icon { width: 18px; height: 18px; }
.hero__stat-num { font-family: var(--font-heading); font-weight: 900; font-size: 1.35rem; color: var(--color-ink); line-height: 1; }
.hero__stat-label { font-size: .72rem; color: var(--color-muted); line-height: 1.4; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding: 32px 0; }
  .hero__media img { height: 280px; }
  .hero__stat { display: none; }
}

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-ink); padding: 26px 0; }
.trust-bar__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.trust-bar__item { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 160px; }
.trust-bar__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: var(--color-green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-bar__icon .icon { width: 20px; height: 20px; }
.trust-bar__num { font-family: var(--font-heading); font-weight: 900; font-size: 1.2rem; color: var(--color-green); line-height: 1; }
.trust-bar__desc { font-size: .76rem; color: rgba(255, 255, 255, .68); }

/* ---------- Card grid (why / teachers) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: var(--color-bg-warm);
  border: 1px solid rgba(25, 57, 74, .06);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.info-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: var(--color-green-tint);
  color: var(--color-green-dark);
}
.info-card__icon .icon { width: 22px; height: 22px; }
.info-card:nth-child(3n+2) .info-card__icon { background: var(--color-magenta-tint); color: var(--color-magenta); }
.info-card:nth-child(3n) .info-card__icon { background: #FEF3D0; color: var(--color-amber-dark); }
.info-card p { font-size: .88rem; color: var(--color-muted); margin: 0; }

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

/* ---------- Course cards (home preview) ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-card__body { padding: 22px; }
.age-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .74rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--color-green-dark);
  margin-bottom: 10px;
}
.course-card__meta { display: flex; gap: 14px; font-size: .8rem; color: var(--color-muted); margin-top: 10px; }

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

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-green-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step__num--accent { background: var(--color-magenta); }
.step p { font-size: .84rem; color: var(--color-muted); margin: 0; }

@media (max-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Two-column section (progress / cambridge / teachers) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split img { border-radius: var(--radius-lg); width: 100%; height: 360px; object-fit: cover; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin-bottom: 12px; }
.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-green-tint);
  color: var(--color-green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Pricing terms variant (templates/pages/prices.php, "Plată, reduceri și
   costuri separate") — labels vary in length, so a single flex row makes
   descriptions start at different x-positions (2026-07-28 fix). Scoped to
   this modifier only; .check-list itself is unchanged and still used
   elsewhere as a plain flex list. Direct-child selectors (> li) so the
   nested discounts sublist (.pricing-term__discounts, inside one item's
   .pricing-term__description) never receives this grid or the checkmark
   pseudo-element — only the six top-level terms are grid rows. */
.check-list--pricing-terms > li {
  display: grid;
  grid-template-columns: 20px minmax(140px, 170px) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
}
.check-list--pricing-terms > li::before {
  grid-column: 1;
  grid-row: 1;
}
.pricing-term__label {
  grid-column: 2;
  grid-row: 1;
  color: var(--color-ink);
}
.pricing-term__description {
  grid-column: 3;
  grid-row: 1;
}
.pricing-term__discounts {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
/* The base .check-list li rule (descendant selector, unmodified) still
   matches these nested <li> — reset the inherited flex/checkmark/spacing
   explicitly so the sublist gets neither the grid nor the checkmarks. */
.pricing-term__discounts li {
  display: block;
  margin-bottom: 0;
  padding: 2px 0;
}
.pricing-term__discounts li::before { content: none; }
@media (max-width: 640px) {
  .check-list--pricing-terms > li {
    grid-template-columns: 20px minmax(0, 1fr);
    row-gap: 2px;
  }
  .pricing-term__label {
    grid-column: 2;
    grid-row: 1;
  }
  .pricing-term__description {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Cambridge exam levels (templates/pages/home.php, "Pregătire și examene
   Cambridge") — same problem and same fix as the pricing terms above: the
   age labels vary in length ("8-10 ani:" vs "Adolescenți:"), so a plain
   flex row starts each exam text at a different x-position. Same grid
   approach, narrower label column because these labels are shorter.
   align-items: start keeps every checkmark on the first text line. */
.check-list--exam-levels > li {
  display: grid;
  grid-template-columns: 20px minmax(104px, 124px) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
}
.check-list--exam-levels > li::before {
  grid-column: 1;
  grid-row: 1;
}
.exam-level__age {
  grid-column: 2;
  grid-row: 1;
  color: var(--color-ink);
}
.exam-level__exam {
  grid-column: 3;
  grid-row: 1;
}
/* Below the two-column breakpoint the exam text would be squeezed into a
   very narrow column, so it wraps under its age label instead. */
@media (max-width: 640px) {
  .check-list--exam-levels > li {
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .exam-level__age {
    grid-column: 2;
    grid-row: 1;
  }
  .exam-level__exam {
    grid-column: 2;
    grid-row: 2;
  }
}

/* Anchor offset for /preturi/ jump-links (2026-07-28) — .site-header is
   position: sticky, so jumping straight to #plata etc. hid the section H2
   under it, worst on mobile. Scoped to these four pricing-page anchors
   only, not a global anchor rule for the whole site. */
#grup, #individual-engleza, #alte-limbi, #plata { scroll-margin-top: 88px; }

.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.stat-tile { background: #fff; border-radius: var(--radius-lg); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-tile--full { grid-column: span 2; }
.stat-tile__num { font-family: var(--font-heading); font-weight: 900; font-size: 1.8rem; line-height: 1; }
.stat-tile__label { font-size: .8rem; color: var(--color-muted); margin-top: 6px; }

.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge-list li {
  background: var(--color-bg-warm);
  border: 1px solid rgba(25, 57, 74, .08);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--color-ink);
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split img { height: 240px; }
  .split--reverse { direction: ltr; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(25, 57, 74, .1); }
.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .96rem;
  color: var(--color-ink);
  cursor: pointer;
}
.faq-item__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-green-tint);
  color: var(--color-green-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.faq-item[open] .faq-item__icon { background: var(--color-green-dark); color: #fff; }
.faq-item__a { padding: 0 0 18px; font-size: .9rem; }

/* ---------- Location ---------- */
.location-details { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--color-ink) 0%, #254F65 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.final-cta h2 { color: #fff; }
.final-cta__sub { color: rgba(255, 255, 255, .75); max-width: 480px; margin: 0 auto 32px; }
.final-cta__ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255, 255, 255, .78); padding: 48px 0 24px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer__brand p { font-size: .84rem; margin-top: 10px; color: rgba(255, 255, 255, .6); }
.site-footer__social { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.site-footer__social-label { font-size: .76rem; color: rgba(255, 255, 255, .5); }
.site-footer__social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .78);
  transition: background-color .15s ease, color .15s ease;
}
.site-footer__social-link:hover { background: var(--color-green); color: var(--color-ink); }
.site-footer__col h2 { font-family: var(--font-heading); font-size: .85rem; color: #fff; margin-bottom: 12px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a, .site-footer__col li { font-size: .82rem; color: rgba(255, 255, 255, .58); text-decoration: none; }
.site-footer__col a:hover { color: var(--color-green); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: .76rem;
  color: rgba(255, 255, 255, .62);
}
.site-footer__bottom nav { display: flex; gap: 16px; }
.site-footer__bottom a { color: inherit; text-decoration: none; }

/* Legal identification line + SAL pictogram (2026-07-28) — a second,
   deliberately quieter row below the copyright/legal-links bar, not
   merged into it, so the existing bar stays uncluttered. */
.site-footer__legal-row {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 14px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__legal-id { font-size: .72rem; color: rgba(255, 255, 255, .5); }
.site-footer__sal {
  display: block;
  width: 250px;
  height: 50px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.site-footer__sal img { width: 100%; height: 100%; object-fit: contain; display: block; }

@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .site-footer__legal-row { flex-direction: column; align-items: flex-start; }
  .site-footer__sal { width: 100%; max-width: 250px; }
}
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Course page ---------- */
.course-hero { background: var(--color-bg-warm); padding: 48px 0; }
.course-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.course-hero img { border-radius: var(--radius-lg); width: 100%; height: 380px; object-fit: cover; }
.course-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0; }
.course-fact { background: #fff; border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.course-fact__label { font-size: .74rem; color: var(--color-muted); display: block; margin-bottom: 4px; }
.course-fact__value { font-family: var(--font-heading); font-weight: 800; color: var(--color-ink); }

.price-panel {
  background: var(--color-bg-mint);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
}
.price-panel__amount { font-family: var(--font-heading); font-weight: 900; font-size: 2rem; color: var(--color-ink); }
.price-panel__note {
  font-size: .82rem;
  color: var(--color-body);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 14px;
  border-left: 3px solid var(--color-magenta);
}

.trimester-list { margin: 16px 0 0; }
.trimester-list li { font-size: .9rem; padding: 6px 0; border-bottom: 1px solid rgba(25, 57, 74, .06); }

/* Pricing breakdown (course.php) — deliberately no <table>; a stacked,
   wrap-friendly layout so real prices/discounts never overflow on
   narrow screens (2026-07-27 review requirement). */
.pricing-format {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.pricing-format__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pricing-format__label { font-family: var(--font-heading); font-weight: 800; color: var(--color-ink); }
.pricing-format__hours { font-size: .82rem; color: var(--color-muted); }
.pricing-format__price { font-family: var(--font-heading); font-weight: 900; font-size: 1.5rem; color: var(--color-ink); margin-top: 4px; }
.pricing-format__unit { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--color-muted); }

.discount-list { margin-top: 10px; }
.discount-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--color-body);
  padding: 5px 0;
  border-top: 1px solid rgba(25, 57, 74, .06);
}
.discount-list li strong { color: var(--color-green-dark); white-space: nowrap; }

@media (max-width: 860px) {
  .course-hero__inner { grid-template-columns: 1fr; }
  .course-hero img { height: 260px; }
  .course-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Forms (/evaluare/ and future lead-capture forms) ---------- */
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label, .form-field legend { font-weight: 700; color: var(--color-ink); font-size: .92rem; padding: 0; }
.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  font: inherit; padding: 11px 14px; border-radius: var(--radius-md);
  border: 1px solid rgba(25, 57, 74, .18); background: #fff; color: var(--color-ink);
}
.form-radio, .form-checkbox { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; color: var(--color-body); margin-top: 4px; }
.form-radio { display: inline-flex; margin-right: 18px; }
.form-checkbox input { flex-shrink: 0; margin-top: 3px; }
.form-checkbox span { flex: 1 1 auto; min-width: 0; }
.form-error { color: #B00020; font-size: .85rem; font-weight: 600; }
/* Explanatory text under a field — quieter than the label, never used for
   error messages (.form-error stays the only red, bold state). */
.form-hint { font-size: .85rem; color: var(--color-muted); margin: 0; }
.form-field--hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal pages (/termeni-si-conditii/, /politica-de-cookies/,
   /politica-de-confidentialitate/) — scoped to these long-form text pages
   only; readability only, no promotional styling. ---------- */
.legal-updated { font-size: .85rem; color: var(--color-muted); margin-top: 4px; }
.legal-content h3 { margin-top: 1.4em; }
.legal-content ul, .legal-content ol { list-style: disc; padding-left: 1.4em; margin: 0 0 1.2em; }
.legal-content ol { list-style: decimal; }
.legal-content li { margin-bottom: .5em; }
.legal-content li > ul, .legal-content li > ol { margin-top: .5em; margin-bottom: 0; }
.legal-content a { color: var(--color-magenta); text-decoration: underline; }
.legal-content blockquote {
  margin: 0 0 1.2em;
  padding: 4px 20px;
  border-left: 3px solid var(--color-green);
  color: var(--color-ink);
  font-style: italic;
}
.legal-content blockquote p { margin: 0; }

.legal-table-wrap { overflow-x: auto; margin: 1.2em 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 480px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(25, 57, 74, .1); vertical-align: top; }
.legal-table th { font-family: var(--font-heading); color: var(--color-ink); font-weight: 800; background: var(--color-bg-warm); }

.legal-crosslinks { display: flex; flex-direction: column; gap: 8px; }
.legal-crosslinks a { color: var(--color-magenta); font-weight: 600; text-decoration: underline; }

/* ---------- Blog (/blog/, /category/{slug}/, individual articles) ----------
   Scoped to blog-prefixed classes only; reuses existing tokens, .wrap,
   .hero, .btn and .legal-content (article body prose) rather than
   introducing a parallel design system. */
/* Hero band shared by /blog/ and /category/{slug}/ (reuses .hero's
   background token, just a different vertical rhythm — kept as its own
   class rather than an inline style="padding:..." override). */
.blog-hero { background: var(--color-bg-warm); padding: 56px 0; }
.blog-hero__lead { max-width: 560px; }
.blog-category__crumb { margin-bottom: 14px; }
.blog-category__crumb a { color: inherit; text-decoration: none; }
.blog-category__crumb a:hover { text-decoration: underline; }

/* Article hero: shorter than .blog-hero (breadcrumb sits above the H1,
   so less top padding is needed) and a different bottom gap before the
   optional featured image / body. */
.blog-post__hero { background: var(--color-bg-warm); padding: 48px 0 36px; }
.blog-post__title { margin-top: 14px; }

/* Shared max-width for the breadcrumb/image/body wraps on an article page
   — narrower than the site's default .wrap for comfortable reading. */
.blog-container { max-width: 760px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Focal-point modifiers for portrait photos in the card grid — see
 * format.php's blog_card_focus_class() for the allowlist that maps a
 * registry 'card_focus' value to one of these classes (never an arbitrary
 * string). Only the card thumbnail is affected; the full-size article
 * image is never cropped (see .blog-post__media img, height:auto). */
.blog-card__media--focus-top img { object-position: center top; }
.blog-card__media--focus-bottom img { object-position: center bottom; }
.blog-card__media--focus-left img { object-position: left center; }
.blog-card__media--focus-right img { object-position: right center; }
.blog-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1 1 auto; }

/* No-image cards: a colored top accent instead of an empty media slot or
   a decorative/stock placeholder image, plus a touch more top padding so
   the card body doesn't read as visually "shorter" than an image card. */
.blog-card--no-image { border-top: 4px solid var(--color-green); }
.blog-card--no-image .blog-card__body { padding-top: 26px; }

.blog-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .78rem; color: var(--color-muted); margin-bottom: 10px; }
.blog-card__meta time { white-space: nowrap; }
.blog-card__category {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  color: var(--color-green-dark);
  background: var(--color-green-tint);
  text-decoration: none;
}
.blog-card__title { margin-bottom: 8px; }
.blog-card__excerpt { font-size: .92rem; color: var(--color-muted); margin: 0; }

.blog-empty {
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 32px;
  text-align: center;
  background: var(--color-bg-warm);
  border-radius: var(--radius-lg);
}
.blog-empty p:first-child { color: var(--color-body); }

.blog-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--color-muted); }
.blog-breadcrumb a { color: var(--color-muted); text-decoration: underline; }
.blog-breadcrumb a:hover { color: var(--color-magenta); }
.blog-breadcrumb [aria-current] { color: var(--color-ink); font-weight: 600; }

.blog-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .88rem; color: var(--color-muted); margin-top: 16px; }
.blog-post__media { margin: 8px 0 36px; }
.blog-post__media img { border-radius: var(--radius-lg); width: 100%; height: auto; }
.blog-post__body h2 { margin-top: 1.6em; }
.blog-post__back { margin-top: 40px; font-size: .92rem; }
.blog-post__back a { color: var(--color-muted); text-decoration: underline; }
.blog-post__back a:hover { color: var(--color-magenta); }

/* Pagination (/blog/, /category/{slug}/) — templates/partials/pagination.php.
   No JavaScript: plain links, flex-wrap so the control never overflows on
   narrow viewports. */
.pagination { margin-top: 40px; }
.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pagination__page,
.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .9rem;
  color: var(--color-ink);
  text-decoration: none;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
a.pagination__page:hover,
a.pagination__link:hover { color: var(--color-magenta); box-shadow: var(--shadow-md); }
.pagination__page--current {
  background: var(--color-magenta);
  color: #fff;
  box-shadow: none;
}
.pagination__link--disabled { color: var(--color-muted); opacity: .5; box-shadow: none; }
.pagination__link:focus-visible,
.pagination__page:focus-visible { outline: 3px solid var(--color-magenta); outline-offset: 2px; }
/* flex-wrap above already keeps this from ever overflowing on narrow
   viewports — items simply wrap onto additional rows, centered. */

/* ---------- Cookie consent (public/assets/js/consent.js) ----------
   Rendered entirely by JavaScript, so none of this applies unless the
   consent manager is actually running. Deliberately a bottom-anchored
   bar rather than a full-screen blocker: refusing must never gate access
   to site content. Accept and Refuse share one class (.consent-btn +
   .btn--primary) so neither can drift into being visually louder than
   the other. */
.consent-banner,
.consent-panel {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 720px;
  background: #fff;
  color: var(--color-body);
  border: 1px solid rgba(25, 57, 74, .14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.consent-banner__title,
.consent-panel__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-ink);
  margin: 0 0 8px;
}
.consent-banner__text { font-size: .9rem; margin: 0 0 16px; }
.consent-banner__actions,
.consent-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Equal share of the row for every choice, so prominence stays balanced
   and nothing overflows on a narrow screen. */
.consent-btn { flex: 1 1 auto; justify-content: center; text-align: center; }

.consent-option { margin-bottom: 14px; }
.consent-option__label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.consent-option__input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--color-magenta); }
.consent-option__input:disabled { cursor: not-allowed; }
.consent-option__name { font-weight: 700; color: var(--color-ink); font-size: .92rem; }
.consent-option__desc { font-size: .85rem; color: var(--color-muted); margin: 4px 0 0 26px; }

.site-footer__consent-btn {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.site-footer__consent-btn:hover { color: var(--color-green); }

@media (max-width: 640px) {
  .consent-banner,
  .consent-panel { left: 8px; right: 8px; bottom: 8px; padding: 16px; max-height: 85vh; overflow-y: auto; }
  /* Full-width stacked buttons below the wrap point — still equal weight. */
  .consent-btn { flex: 1 1 100%; }
}

/* ---------- Parent testimonials (templates/pages/home.php) ----------
   CSS multi-column rather than grid: the quotes are real feedback-form
   answers ranging from roughly 100 to 1140 characters, so a grid row
   would be dictated by its tallest card. Columns let every card keep its
   natural height, with no JS and no equal-height stretching. */
.testimonial-columns { column-count: 2; column-gap: 22px; }
.testimonial-card {
  break-inside: avoid;          /* never split a quote across columns */
  -webkit-column-break-inside: avoid;
  margin: 0 0 22px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial-card__quote {
  margin: 0 0 14px;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--color-body);
}
.testimonial-card__quote::before { content: '„'; color: var(--color-magenta); font-weight: 700; }
.testimonial-card__quote::after { content: '”'; color: var(--color-magenta); font-weight: 700; }
.testimonial-card__author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-card__name { font-family: var(--font-heading); font-weight: 700; color: var(--color-ink); font-size: .92rem; }
.testimonial-card__role { font-size: .85rem; color: var(--color-muted); }

@media (max-width: 900px) {
  /* Stacked cards — one full-width column, natural heights preserved. */
  .testimonial-columns { column-count: 1; }
}
