/*
Theme Name: telc.net — Design system
Theme URI: https://www.telc.net/
Author: telc gGmbH
Author URI: https://www.telc.net/
Description: The telc.net design system as a WordPress theme. Ships only design tokens (colors, typography, spacing), the Fira Sans family, and the component primitives (buttons, cards, badges, heroes, forms). No content, no page compositions — author your own pages with the available utility classes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telc
Tags: editorial, institutional, custom-menu, custom-logo, translation-ready
*/

/* =========================================================================
   1. Font face — Fira Sans (locally self-hosted, matches the live site)
   ========================================================================= */
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/FiraSans-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/FiraSans-LightItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/FiraSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/FiraSans-RegularItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/FiraSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/FiraSans-MediumItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/FiraSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/FiraSans-SemiBoldItalic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/FiraSans-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/FiraSans-BoldItalic.woff2') format('woff2');
}

/* =========================================================================
   2. Design tokens — the single source of truth for color, type, spacing
   ========================================================================= */
:root {
  /* --- Brand palette --- */
  --bs-primary:               #D9C31C;     /* petrol — the single most-used color */
  --bs-primary-rgb:           42, 157, 143;
  --bs-link-hover-color:      #0000ff;
  --bs-focus-ring-color:      rgba(42, 157, 143, 0.25);
  --bs-focus-ring-width:      0.25rem;

  --bs-secondary:             #E76F51;     /* coral */
  --bs-tertiary:              #F4A261;     /* sand  */
  --bs-quaternary:            #E9C46A;     /* gold  */

  --telc-red:                 #01257D;     /* hero band, B1 CEFR, red link */
  --telc-red-hover:           #73120F;
  --telc-petrol:              #E9D758;     /* dark teal for "Petrol" CTA bands */
  --telc-grey:                #73777C;

  /* --- CEFR level palette (semantic — only on .level--{a1..c2}) --- */
  --telc-level-a1:            #F28926;     /* A1 — orange */
  --telc-level-a2:            #FECC01;     /* A2 — yellow */
  --telc-level-b1:            #A81411;     /* B1 — red */
  --telc-level-b2:            #00569A;     /* B2 — blue */
  --telc-level-c1:            #13AD88;     /* C1 — green */
  --telc-level-c2:            #7A388C;     /* C2 — purple */

  /* --- Test-mode palette (semantic — only on .mode--{paper|hybrid|digital}) --- */
  --telc-mode-paper:          #00A9C8;
  --telc-mode-hybrid:         #0087BF;
  --telc-mode-digital:        #005E89;

  /* --- Neutrals --- */
  --text-color:               #161616;
  --bs-body-color:            #212121;
  --bs-body-bg:               #FFFFFF;
  --telc-body-color:          #EBF0FF;     /* card surface */
  --bs-tertiary-bg:           #F8F8F8;
  --bs-secondary-bg:          #E9E9E9;
  --bs-border-color:          #DEDEDE;
  --bs-gray-500:              #ABABAB;
  --bs-gray-600:              #6C6C6C;

  /* --- Sizing / radius --- */
  --bs-border-radius:         0.375rem;
  --bs-border-radius-pill:    50rem;
  --card-border-radius:       0 0 0 3.125rem;   /* only bottom-left rounded */
  --header-height:            7.5rem;

  /* --- Layout widths (Bootstrap-style 3 named steps) --- */
  --frame-width-small:        600px;
  --frame-width-medium:       870px;
  --frame-width-large:        1600px;
  --bs-gutter-x:              40px;

  /* --- Typography --- */
  --bs-font-sans-serif:       'Fira Sans', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bs-body-font-family:      var(--bs-font-sans-serif);
  --bs-body-line-height:      1.5;
  --bs-body-font-size:        1rem;
}

/* =========================================================================
   3. Reset
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--bs-primary); text-decoration: none; transition: color 160ms ease-out; }
a:hover { color: var(--bs-link-hover-color); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: var(--bs-focus-ring-width) solid var(--bs-focus-ring-color);
  outline-offset: 2px;
  border-radius: var(--bs-border-radius);
}

/* =========================================================================
   4. Base typography
   ========================================================================= */
body {
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-line-height);
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--bs-body-font-family);
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
}
h1 { font-size: clamp(2.25rem, 1.5vw + 1.5rem, 3rem);    margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 1.2vw + 1.2rem, 2.25rem); margin-bottom: 0.875rem; }
h3 { font-size: 1.5rem;    margin-bottom: 0.75rem; }
h4 { font-size: 1.25rem;   margin-bottom: 0.625rem; }
h5 { font-size: 1.125rem;  margin-bottom: 0.5rem; font-weight: 600; }
h6 { font-size: 1rem;      margin-bottom: 0.5rem; font-weight: 600; }

p { line-height: 1.6; }
strong { color: var(--text-color); font-weight: 600; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--text-color); }
.text-muted { color: var(--bs-gray-600); }

code, kbd, .mono {
  font-family: 'Fira Mono', 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  font-size: 0.875em;
}

hr { border: 0; border-top: 1px solid var(--bs-border-color); margin: 2rem 0; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--bs-primary);
  color: #01257D;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; color: #01257D; }

/* =========================================================================
   5. Layout helpers
   ========================================================================= */
.container        { width: 100%; max-width: var(--frame-width-large); margin-inline: auto; padding-inline: 1.5rem; }
.container--small { max-width: var(--frame-width-small); }
.container--medium{ max-width: var(--frame-width-medium); }
.container--narrow{ max-width: 56rem; }
@media (min-width: 768px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1200px) { .container { padding-inline: 2.5rem; } }

.row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--bs-gutter-x); }
.col-12 { grid-column: span 12; }
@media (min-width: 768px) {
  .col-md-3 { grid-column: span 3; } .col-md-4 { grid-column: span 4; }
  .col-md-6 { grid-column: span 6; } .col-md-8 { grid-column: span 8; } .col-md-9 { grid-column: span 9; }
}
@media (min-width: 992px) {
  .col-lg-3 { grid-column: span 3; } .col-lg-4 { grid-column: span 4; }
  .col-lg-6 { grid-column: span 6; } .col-lg-8 { grid-column: span 8; } .col-lg-9 { grid-column: span 9; }
}

.section         { padding-block: 3rem; }
.section--tight  { padding-block: 1.5rem; }
.section--large  { padding-block: 4.5rem; }
.section--white  { background: #fff; }
.section--alt    { background: var(--telc-body-color); }
.section--line   { border-top: 1px solid var(--bs-border-color); }

.stack > * + * { margin-top: 1rem; }
.stack-loose > * + * { margin-top: 2rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bs-primary);
  margin-bottom: 0.5rem;
}

/* =========================================================================
   6. Header (sticky white)
   ========================================================================= */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--bs-border-color);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-height);
  max-width: var(--frame-width-large);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px)  { .masthead__inner { padding-inline: 2rem; } }
@media (min-width: 1200px) { .masthead__inner { padding-inline: 2.5rem; } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--bs-body-font-family);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--bs-primary);
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand:hover { color: var(--bs-primary); text-decoration: none; }
.brand__mark { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }

/* TAPI brand variant — smaller seal (48px), smaller wordmark, "Brasil"
   set in italic gold to mirror the seal. The telc default stays intact for
   any future roll-back or for telc.net's own use. */
.brand--tapi { font-size: 1.5rem; gap: 0.625rem; color: var(--text-color); letter-spacing: -0.02em; }
.brand--tapi .brand__mark { width: 48px; height: 48px; }
.brand--tapi .brand__word { display: inline-flex; align-items: baseline; gap: 0.375rem; line-height: 1; }
.brand--tapi .brand__word em {
  font-style: italic;
  font-weight: 500;
  font-size: 0.875rem;
  color: #B48A1B;
  letter-spacing: 0;
  margin-left: 0.125rem;
}
.brand--tapi:hover .brand__word em { color: var(--bs-primary); }
.custom-logo { max-width: 120px; }
.primary-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 1rem; font-weight: 600; }
.primary-nav a {
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
}
.primary-nav a:hover { color: var(--bs-primary); text-decoration: none; }
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--bs-primary);
  transition: width 220ms ease-out;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { width: 100%; }
.primary-nav .current-menu-item > a { color: var(--bs-primary); }

.masthead__right { display: flex; align-items: center; gap: 1.25rem; }
.masthead__right a {
  color: var(--bs-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
.masthead__right a:hover { color: var(--bs-primary); text-decoration: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: #fff;
  cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-color);
  border-radius: 1px;
  position: relative;
}
.nav-toggle__bar::before { content: ''; position: absolute; top: -6px; left: 0; }
.nav-toggle__bar::after  { content: ''; position: absolute; top:  6px; left: 0; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease-out, opacity 200ms ease-out;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav a { padding-block: 0.875rem; border-bottom: 1px solid var(--bs-border-color); }
  .primary-nav a:last-child { border-bottom: 0; }
}

/* =========================================================================
   7. Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-family: var(--bs-body-font-family);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: var(--bs-border-radius);
  background: transparent;
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }

.btn--primary        { background: var(--bs-primary); color: #01257D; border-color: var(--bs-primary); }
.btn--primary:hover  { background: var(--bs-primary); border-color: var(--bs-primary); color: #01257D; }
.btn--red            { background: var(--telc-red); color: #fff; border-color: var(--telc-red); }
.btn--red:hover      { background: var(--telc-red-hover); border-color: var(--telc-red-hover); color: #fff; }
.btn--outline        { background: transparent; color: var(--bs-primary); border: 1px solid var(--bs-primary); }
.btn--outline:hover  { background: var(--bs-primary); color: #fff; }
.btn--outline-red    { background: transparent; color: #fff; border: 1px solid #fff; }
.btn--outline-red:hover { background: var(--telc-red); color: #fff; }
.btn--pill           { border-radius: var(--bs-border-radius-pill); padding: 0.625rem 1.5rem; font-weight: 600; }
.btn--ghost          { background: #fff; color: var(--text-color); border-color: var(--bs-border-color); }
.btn--ghost:hover    { background: var(--bs-tertiary-bg); }
.btn--sm             { padding: 0.375rem 0.75rem; font-size: 0.875rem; }

/* "Mehr erfahren" / "Details" — right-aligned link with chevron */
.btn--link {
  padding: 0;
  background: none;
  border: 0;
  color: var(--bs-primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.btn--link::after {
  content: '\203A';
  font-size: 1.25em;
  line-height: 0;
  position: relative;
  top: 0.05em;
  transition: transform 160ms ease-out;
}
.btn--link:hover { color: var(--bs-link-hover-color); text-decoration: none; }
.btn--link:hover::after { transform: translateX(3px); }
.btn--link-red   { color: var(--telc-red); }
.btn--link-red:hover { color: var(--telc-red-hover); }

/* =========================================================================
   8. Hero bands
   ========================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--telc-red);
  color: #fff;
  padding: 5rem 0 6rem;
}
.hero__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 992px) {
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
}
.hero__title {
  font-size: clamp(2.5rem, 3vw + 1.5rem, 3.75rem);
  line-height: 1.05;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}
.hero__lead { font-size: 1.125rem; line-height: 1.5; color: #fff; max-width: 36rem; margin: 0 0 1.5rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__image { position: relative; aspect-ratio: 4/3; border-radius: var(--bs-border-radius); overflow: hidden; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* Scalloped petalled bottom edge for red hero */
.hero--scallop::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 220px;
  height: 60px;
  background-image: radial-gradient(circle at 30px 0, #fff 30px, transparent 31px);
  background-size: 60px 60px;
  background-repeat: repeat-x;
  background-position: right bottom;
  pointer-events: none;
}

/* White hero (used as a stage / teaser) */
.hero--white { background: #fff; color: var(--text-color); }
.hero--white .hero__title { color: var(--text-color); }
.hero--white .hero__lead  { color: var(--bs-body-color); }

/* Petrol hero band */
.hero--petrol { background: var(--telc-petrol); color: #fff; }
.hero--petrol .hero__title { color: #fff; }
.hero--petrol .hero__lead  { color: #fff; }

/* Compact "page hero" for inner pages */
.page-hero {
  background: var(--telc-red);
  color: #fff;
  padding: 4rem 0 4.5rem;
}
.page-hero__title { color: #fff; margin: 0 0 0.75rem; font-size: clamp(2rem, 2vw + 1rem, 2.75rem); }
.page-hero__lead { color: #fff; max-width: 48rem; margin: 0; font-size: 1.0625rem; }
.page-hero--white { background: #fff; color: var(--text-color); }
.page-hero--white .page-hero__title { color: var(--text-color); }
.page-hero--white .page-hero__lead  { color: var(--bs-body-color); }

.lede { font-size: 1.125rem; line-height: 1.55; color: var(--text-color); max-width: 42rem; }

/* =========================================================================
   9. Cards
   ========================================================================= */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}
.card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); transform: translateY(-2px); }

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .card-grid { grid-template-columns: repeat(4, 1fr); } }
.card-grid--two  { }
@media (min-width: 768px) { .card-grid--two  { grid-template-columns: repeat(2, 1fr); } }
.card-grid--three { }
@media (min-width: 768px) { .card-grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid--three { grid-template-columns: repeat(3, 1fr); } }

.card__media { position: relative; aspect-ratio: 4/3; background: var(--telc-body-color); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.625rem; flex: 1; }
.card__title { font-size: 1.125rem; font-weight: 600; color: var(--text-color); margin: 0; line-height: 1.3; }
.card__subtitle { font-size: 0.875rem; color: var(--bs-gray-600); line-height: 1.45; flex: 1; }
.card__footer { padding: 0 1.25rem 1.25rem; text-align: right; }

/* Icon card (a horizontal card with one large icon) */
.card--icon {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--card-border-radius);
  background: #fff;
  text-decoration: none;
  color: var(--text-color);
  transition: border-color 200ms ease-out, background 200ms ease-out;
}
.card--icon:hover { border-color: var(--bs-primary); background: #EBF0FF; text-decoration: none; }
.card--icon .card__icon { flex-shrink: 0; width: 48px; height: 48px; }
.card--icon .card__icon img { width: 100%; height: 100%; object-fit: contain; }
.card--icon .card__icon svg { width: 100%; height: 100%; color: var(--bs-primary); }
.card--icon .card__title { margin: 0; }

/* "Mehr erfahren" / "Details" / "Zum Shop" link with chevron */
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bs-primary);
  text-decoration: none;
}
.card__more::after { content: '\203A'; font-size: 1.25em; line-height: 0; position: relative; top: 0.05em; transition: transform 160ms ease-out; }
.card__more:hover { color: var(--bs-link-hover-color); text-decoration: none; }
.card__more:hover::after { transform: translateX(3px); }
.card__more--red   { color: var(--telc-red); }
.card__more--red:hover { color: var(--telc-red-hover); }

/* =========================================================================
   10. CEFR level badge (circular, only on exam-overview cards)
   ========================================================================= */
.overview-levels { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; }
.overview-levels--multi { display: flex; gap: 0.25rem; }

.level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.overview-levels--multi .level { width: 32px; height: 32px; font-size: 0.75rem; }

.level--a1 { background: var(--telc-level-a1); }
.level--a2 { background: var(--telc-level-a2); color: #161616; }
.level--b1 { background: var(--telc-level-b1); }
.level--b2 { background: var(--telc-level-b2); }
.level--c1 { background: var(--telc-level-c1); }
.level--c2 { background: var(--telc-level-c2); }

/* =========================================================================
   11. Test-mode chip
   ========================================================================= */
.overview-modes { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.25rem; }
.mode {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  border-radius: 2px;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.mode--paper   { background: var(--telc-mode-paper); }
.mode--hybrid  { background: var(--telc-mode-hybrid); }
.mode--digital { background: var(--telc-mode-digital); }

/* =========================================================================
   12. Pull-quote — left petrol bar
   ========================================================================= */
.quote {
  border-left: 4px solid var(--bs-primary);
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-family: var(--bs-body-font-family);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text-color);
  max-width: 48rem;
}
.quote__attribution {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--bs-gray-600);
}

/* =========================================================================
   13. Stage — image + text side by side
   ========================================================================= */
.stage {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 992px) { .stage { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.stage--reverse .stage__media { order: 2; }
@media (min-width: 992px) { .stage--reverse .stage__media { order: 0; } }
.stage__media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--bs-border-radius); }
.stage__media img { width: 100%; height: 100%; object-fit: cover; }
.stage__title { color: var(--telc-red); border-top: 1px solid var(--bs-border-color); padding-top: 1.25rem; margin-top: 0.5rem; }

/* =========================================================================
   14. Petrol CTA band (used inside .hero--petrol, or standalone)
   ========================================================================= */
.cta-band {
  background: var(--bs-primary);
  color: #fff;
  padding: 3rem 0;
  position: relative;
}
.cta-band__inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .cta-band__inner { grid-template-columns: 1fr 1fr; align-items: center; } }
.cta-band__title { color: #fff; margin: 0 0 0.5rem; font-size: clamp(1.5rem, 1.5vw + 0.75rem, 2rem); }
.cta-band__copy { color: rgba(255,255,255,0.95); max-width: 32rem; margin: 0; }
.cta-band__cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) { .cta-band__cards { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.cta-band__card {
  background: #fff;
  color: var(--text-color);
  border-radius: var(--card-border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cta-band__card-title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.cta-band__card-copy { font-size: 0.9375rem; color: var(--bs-body-color); margin: 0; }
.cta-band__card-link { margin-top: auto; }

/* =========================================================================
   15. Accordion
   ========================================================================= */
.accordion { display: flex; flex-direction: column; }
.accordion__item { border-bottom: 1px solid var(--bs-border-color); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.accordion__trigger:hover { color: var(--bs-primary); }
.accordion__icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
  position: relative;
  margin-left: 1rem;
  transition: transform 200ms ease-in-out;
}
.accordion__icon::before, .accordion__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px; height: 2px;
  background: var(--bs-primary);
  transform: translate(-50%, -50%);
  transition: background 200ms;
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion__content { display: none; padding: 0 0 1.5rem; color: var(--bs-body-color); }
.accordion__item.is-open .accordion__content { display: block; }

/* =========================================================================
   16. Filter chips (catalogue overview)
   ========================================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-pill);
  cursor: pointer;
  transition: background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}
.filter-chip:hover { border-color: var(--bs-primary); color: var(--bs-primary); }
.filter-chip.is-active { background: var(--bs-primary); color: #fff; border-color: var(--bs-primary); }

/* =========================================================================
   17. Stat strip
   ========================================================================= */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
  text-align: left;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__top    { display: block; font-size: 0.875rem; color: var(--bs-gray-600); margin-bottom: 0.25rem; }
.stat__num    { display: block; font-size: clamp(2.25rem, 1.5vw + 1.25rem, 2.75rem); font-weight: 700; color: var(--telc-red); line-height: 1; letter-spacing: -0.02em; }
.stat__bottom { display: block; font-size: 1rem; color: var(--text-color); margin-top: 0.5rem; }

/* =========================================================================
   18. Forms
   ========================================================================= */
form .field { margin-bottom: 1.25rem; }
form label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text-color); margin-bottom: 0.375rem; }
form .field-row { display: grid; gap: 1rem; }
@media (min-width: 768px) { form .field-row--two { grid-template-columns: 1fr 1fr; } }
form input[type="text"], form input[type="email"], form input[type="tel"], form input[type="url"], form input[type="search"],
form select, form textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}
form textarea { min-height: 8rem; resize: vertical; }
form .help { font-size: 0.8125rem; color: var(--bs-gray-600); margin-top: 0.25rem; }

.search-form { display: flex; gap: 0.5rem; align-items: center; }
.search-form__input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
}
.search-form__submit { white-space: nowrap; }

/* =========================================================================
   19. Breadcrumb
   ========================================================================= */
.breadcrumb {
  background: var(--bs-tertiary-bg);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}
.breadcrumb__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--bs-gray-600);
}
.breadcrumb a { color: var(--bs-gray-600); text-decoration: none; display: inline-flex; align-items: center; gap: 0.375rem; }
.breadcrumb a:hover { color: var(--bs-primary); text-decoration: none; }
.breadcrumb__sep { color: var(--bs-gray-500); }
.breadcrumb__home { display: inline-flex; }
.breadcrumb__home svg { width: 16px; height: 16px; }
.breadcrumb__current { color: var(--bs-primary); text-decoration: underline; text-underline-offset: 0.25em; }

/* =========================================================================
   20. Utility
   ========================================================================= */
.bg-red    { background: var(--telc-red); color: #fff; }
.bg-petrol { background: var(--bs-primary); color: #fff; }
.bg-alt    { background: var(--telc-body-color); }
.bg-white  { background: #fff; }
.text-white { color: #fff; }
.text-center { text-align: center; }
.text-end    { text-align: right; }
.mt-0{margin-top:0} .mt-1{margin-top:.5rem} .mt-2{margin-top:1rem} .mt-3{margin-top:1.5rem} .mt-4{margin-top:2rem} .mt-5{margin-top:3rem}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:.5rem} .mb-2{margin-bottom:1rem} .mb-3{margin-bottom:1.5rem} .mb-4{margin-bottom:2rem} .mb-5{margin-bottom:3rem}
.d-flex { display: flex; } .d-block { display: block; } .d-grid { display: grid; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
@media (max-width: 768px)  { .hide-mobile { display: none !important; } }
@media (min-width: 769px)  { .hide-desktop { display: none !important; } }

/* Asymmetric bento grid — 2 columns with one wide cell, mirroring the live
   telc.net overview page rather than three identical tiles. */
.bento {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.bento__cell--wide  { grid-column: span 1; }
.bento__cell--third { grid-column: span 1; }
@media (min-width: 768px)  {
  .bento__cell--wide  { grid-column: span 2; }
  .bento__cell--third { grid-column: span 1; }
}
@media (min-width: 1200px) {
  .bento__cell--wide  { grid-column: span 2; }
  .bento__cell--third { grid-column: span 1; }
}

/* Pricing table — telc institutional pattern, aligned to the
   `Compact Pricing Strip` on telc.net. One tier is the recommended
   choice; it gets its own column emphasis. */
.pricing {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  margin-top: var(--bs-gutter-x);
}
.pricing th,
.pricing td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--bs-border-color);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}
.pricing thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bs-gray-600);
  border-bottom: 2px solid var(--bs-primary);
  background: transparent;
}
.pricing thead th small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bs-gray-500);
  margin-top: 0.25rem;
}
.pricing tbody td:first-child { color: var(--text-color); font-weight: 500; }
.pricing .price { font-weight: 700; color: var(--text-color); }
.pricing .price sup { font-size: 0.6875rem; color: var(--bs-gray-500); font-weight: 500; margin-left: 1px; }
.pricing .col--featured { background: rgba(42, 157, 143, 0.05); }
.pricing .col--featured td { border-color: rgba(42, 157, 143, 0.2); }
.pricing .col--featured th { color: var(--bs-primary); }
.pricing .featured-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--bs-primary);
  padding: 0.125rem 0.5rem;
  border-radius: var(--bs-border-radius-pill);
  margin-bottom: 0.5rem;
}
.pricing-wrap { overflow-x: auto; }

/* Recess chip — non-interactive static pill. Different from .filter-chip:
   no cursor, no hover state, smaller, neutral border. */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bs-body-color);
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-pill);
}

/* CEFR visual — small stack of level chips used in the hero right column
   and the stage panel. Pure system block, no images required. */
.cefr-scale {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
  flex-wrap: wrap;
}
.cefr-scale__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.cefr-scale__level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}
.cefr-scale__level--a1 { background: var(--telc-level-a1); }
.cefr-scale__level--a2 { background: var(--telc-level-a2); color: var(--text-color); }
.cefr-scale__level--b1 { background: var(--telc-level-b1); }
.cefr-scale__level--b2 { background: var(--telc-level-b2); }
.cefr-scale__level--c1 { background: var(--telc-level-c1); }
.cefr-scale__level--c2 { background: var(--telc-level-c2); }
.cefr-scale__name { font-size: 0.8125rem; color: var(--bs-gray-600); font-weight: 500; }

/* Stage panel — replaces the placeholder grey box with a designed
   information block. When no `stage__media` image is supplied, this
   fills the slot with system content (CEFR scale + stats). */
.stage-panel {
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.stage-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--bs-border-color);
}
.stage-panel__row:last-child { border-bottom: 0; padding-bottom: 0; }
.stage-panel__row:first-of-type { padding-top: 0; }
.stage-panel__label { font-size: 0.8125rem; color: var(--bs-gray-600); font-weight: 500; }
.stage-panel__value { font-size: 1.0625rem; color: var(--text-color); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Module stat — compact 4-column rhythm. The eyebrow + number + meta all
   live in one tight cell so the four cells stay aligned even with
   different meta lengths. */
.module {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--card-border-radius);
  height: 100%;
}
.module__code {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bs-gray-500);
}
.module__title {
  font-size: clamp(1.5rem, 1vw + 1rem, 1.75rem);
  font-weight: 700;
  color: var(--telc-red);
  line-height: 1.1;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}
.module__meta {
  font-size: 0.875rem;
  color: var(--bs-body-color);
  line-height: 1.45;
  margin: 0;
}
.module__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  color: var(--bs-gray-600);
}
.module__spec { display: inline-flex; align-items: center; gap: 0.25rem; }
.module__spec strong { color: var(--text-color); font-weight: 600; }

.modules-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px)  { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .modules-grid { grid-template-columns: repeat(4, 1fr); } }

/* CTA band card — primary variant (subtle petrol top bar). */
.cta-band__card--primary {
  background: #fff;
  color: var(--text-color);
  position: relative;
  padding-top: 1.75rem;
}
.cta-band__card--primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bs-primary);
  border-top-left-radius: var(--card-border-radius);
  border-top-right-radius: var(--card-border-radius);
}
.cta-band__card-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bs-primary);
  margin: 0;
}

/* Hero — visual panel that fills the right column. Plain info card
   the same family as .stage-panel but tuned for the red hero. */
.hero__panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--bs-border-radius);
  padding: 1.5rem 1.75rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.hero__panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hero__panel-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__panel-row:first-of-type { padding-top: 0; }
.hero__panel-label { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.75); font-weight: 500; }
.hero__panel-cefr .cefr-scale__name { color: rgba(255, 255, 255, 0.85); }

/* Section header — small reusable eyebrow + title + lede block used on
   most top-level sections. Replaces one-off <header> patterns. */
.section-header { display: block; margin-bottom: 1.5rem; max-width: 56rem; }
.section-header .eyebrow { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 0.75rem; }

/* Pricing note — small muted paragraph below the pricing table. */
.pricing-note {
  font-size: 0.875rem;
  color: var(--bs-gray-600);
  line-height: 1.55;
  margin-top: 1.25rem;
  max-width: 56rem;
}

/* Stage panel — compact variant (smaller padding, used for the small
   Alinhado a box on the Idiomas section). */
.stage-panel--compact { padding: 1rem 1.25rem; gap: 0.5rem; }
.stage-panel__row--compact { padding-block: 0.5rem; }
.stage-panel__value--compact { font-size: 0.9375rem; }

/* =========================================================================
   21. WordPress core overrides
   ========================================================================= */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide { max-width: 90rem; margin-inline: auto; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--bs-gray-600); text-align: center; padding: 0.5rem 0; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery-item { display: block; }
.gallery-item img { width: 100%; height: auto; }
.sticky { position: relative; }
.sticky::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--telc-red);
}
