/* ==========================================================================
   Jago English - Design System
   English for Everyone · Bahasa Inggris untuk Semua
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --red: #e63946;
  --red-dark: #c1121f;
  --red-soft: #fdecee;
  --teal: #00a896;
  --teal-dark: #027a6e;
  --teal-soft: #e2f5f3;
  --gold: #ffb703;
  --gold-soft: #fff4d9;
  --navy: #1d3557;
  --navy-soft: #eaf0f7;
  --ink: #23243a;
  --muted: #5b6478;
  --line: #e4e7ee;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --cream: #fff8f0;

  --grad-brand: linear-gradient(135deg, var(--red) 0%, #ff7b54 100%);
  --grad-playful: linear-gradient(135deg, var(--teal) 0%, var(--gold) 100%);
  --grad-dark: linear-gradient(135deg, #16233c 0%, #1d3557 60%, #274b7a 100%);

  --font-display: "Baloo 2", "Trebuchet MS", Verdana, sans-serif;
  --font-body: "Poppins", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(29, 53, 87, 0.08);
  --shadow-md: 0 8px 24px rgba(29, 53, 87, 0.12);
  --shadow-lg: 0 16px 48px rgba(29, 53, 87, 0.18);

  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding-top: var(--header-h);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style-position: inside;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1001;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  color: var(--navy);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

p {
  color: var(--muted);
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 62ch;
}

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

.section-intro {
  max-width: 68ch;
  margin: 0 auto 2.5rem;
}

.accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent-teal {
  background: var(--grad-playful);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout utilities ---------- */
.container {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

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

.section-cream {
  background: var(--cream);
}

.section-navy {
  background: var(--grad-dark);
  color: #dbe5f3;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.section-navy p {
  color: #b9c7dd;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  text-decoration: none !important;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 26px rgba(230, 57, 70, 0.45);
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 168, 150, 0.35);
}

.btn-outline {
  border-color: currentColor;
  color: var(--navy);
  background: transparent;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--red-dark);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
}

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-red {
  background: var(--red-soft);
  color: var(--red-dark);
}

.badge-teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.badge-gold {
  background: var(--gold-soft);
  color: #8a5a00;
}

.badge-navy {
  background: var(--navy-soft);
  color: var(--navy);
}

.badge-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(4px);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Icons ---------- */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-lg {
  width: 40px;
  height: 40px;
  stroke-width: 1.7;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Icon tiles (feature cards) ---------- */
.icon-tile {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #fff;
}

.tile-red { background: var(--grad-brand); }
.tile-teal { background: linear-gradient(135deg, var(--teal), #34c0ae); }
.tile-gold { background: linear-gradient(135deg, var(--gold), #ffd166); }
.tile-navy { background: linear-gradient(135deg, var(--navy), #3d5a8f); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  z-index: 1000;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.logo-accent {
  color: var(--red);
}

.logo-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav ul {
  list-style: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.dropdown-toggle:hover,
.has-dropdown.open > .dropdown-toggle {
  background: var(--navy-soft);
  color: var(--navy);
}

.nav-link.active {
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 600;
}

.caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.has-dropdown {
  position: relative;
}

.has-dropdown.open .caret {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.has-dropdown.open > .dropdown,
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none !important;
}

.dropdown a:hover {
  background: var(--navy-soft);
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-toggle:hover {
  background: var(--navy);
  color: #fff;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.nav-burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .nav-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-dark);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.28;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--red), transparent 70%);
  top: -160px;
  right: -120px;
}

.hero::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--teal), transparent 70%);
  bottom: -180px;
  left: -120px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  color: #fff;
  margin: 1.1rem 0 1.2rem;
}

.hero p {
  color: #c3d0e4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.2rem;
}

.hero-playful {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 183, 3, 0.5), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(230, 57, 70, 0.45), transparent 45%),
    linear-gradient(140deg, #0d7268 0%, #027a6e 45%, #1d3557 100%);
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.94rem;
}

.card-link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--red-dark);
}

.card-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.card-link:hover .icon {
  transform: translateX(4px);
}

.card .badge {
  align-self: flex-start;
  margin-bottom: 0.9rem;
}

.card-topline {
  border-top: 5px solid var(--teal);
}

.card-topline.t-red { border-top-color: var(--red); }
.card-topline.t-gold { border-top-color: var(--gold); }
.card-topline.t-navy { border-top-color: var(--navy); }

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
}

.step-num {
  counter-increment: step;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.step-num::before {
  content: counter(step);
}

.steps.on-light .step {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.steps.on-light .step p {
  color: var(--muted);
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 540px;
}

.table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.table td {
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

.table .say {
  font-weight: 600;
  color: var(--navy);
}

.table .hint {
  color: var(--muted);
  font-style: italic;
}

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 0.8rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}

.field.field-error input,
.field.field-error select,
.field.field-error textarea {
  border-color: var(--red);
  background: var(--red-soft);
}

.field.field-error label {
  color: var(--red-dark);
}

.form-error-list {
  font-size: 0.9rem;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.83rem;
  color: var(--muted);
}

.form-success {
  display: none;
  background: var(--teal-soft);
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.form-success.show {
  display: block;
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.quote-stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1rem;
}

.quote-card blockquote {
  font-size: 0.97rem;
  color: var(--ink);
  flex: 1;
}

.quote-who {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.quote-who strong {
  display: block;
  color: var(--navy);
  font-size: 0.93rem;
}

.quote-who span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.92rem;
  color: inherit;
  opacity: 0.85;
}

.stats-section .stat-num {
  color: var(--red);
}

.stats-section .stat-label {
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad-brand);
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0.8rem auto 1.8rem;
  max-width: 56ch;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -120px;
  right: -80px;
}

/* ---------- Quiz game (kids) ---------- */
.quiz-shell {
  background: #fff;
  border: 3px dashed var(--teal);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.quiz-screen[hidden] {
  display: none;
}

.quiz-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
}

.quiz-word {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0.8rem 0 1.4rem;
  animation: pop-in 0.3s ease;
}

.quiz-options {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 1.2rem;
}

.quiz-opt {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--line);
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.quiz-opt:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: var(--teal-soft);
}

.quiz-opt.correct {
  background: var(--teal);
  border-color: var(--teal-dark);
  color: #fff;
  animation: pop-in 0.25s ease;
}

.quiz-opt.wrong {
  background: var(--red-soft);
  border-color: var(--red);
  color: var(--red-dark);
  animation: shake 0.35s ease;
}

.quiz-opt:disabled {
  cursor: default;
  opacity: 0.85;
}

.quiz-feedback {
  min-height: 1.6em;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.quiz-feedback.good { color: var(--teal-dark); }
.quiz-feedback.bad { color: var(--red-dark); }

.quiz-progress {
  height: 12px;
  border-radius: 999px;
  background: var(--navy-soft);
  overflow: hidden;
  margin-bottom: 1rem;
}

.quiz-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad-playful);
  transition: width 0.3s ease;
}

.quiz-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-soft);
  color: #8a5a00;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.quiz-final {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 4.5rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin: 0.5rem 0;
}

@keyframes pop-in {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* ---------- Playful extras (kids page) ---------- */
.playful .hero {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.blob-divider {
  height: 46px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--grad-dark);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.6rem);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  color: #fff;
  margin: 0.8rem 0 0.9rem;
}

.page-hero p {
  color: #c3d0e4;
  max-width: 66ch;
}

.breadcrumb {
  font-size: 0.86rem;
  color: #93a5c4;
}

.breadcrumb a {
  color: #cdd9ec;
}

.playful .page-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 183, 3, 0.45), transparent 40%),
    radial-gradient(circle at 8% 85%, rgba(230, 57, 70, 0.4), transparent 42%),
    linear-gradient(140deg, #0d7268 0%, #027a6e 50%, #1d3557 100%);
}

/* ---------- Checklists ---------- */
.check-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.check-list .icon {
  width: 22px;
  height: 22px;
  color: var(--teal);
  margin-top: 2px;
}

.section-navy .check-list .icon {
  color: var(--gold);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #14213a;
  color: #aab8d0;
  margin-top: 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  padding-block: 3.5rem 2.5rem;
}

.footer-brand p {
  color: #aab8d0;
  margin-top: 0.9rem;
  max-width: 30ch;
}

.site-footer .logo-text {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: #aab8d0;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-contact .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.3rem;
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #aab8d0;
}

/* ---------- FAQ accordions ---------- */
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 1.3rem;
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--red);
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  content: "−";
}

.faq[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq p {
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
}

/* ---------- Placeholder map ---------- */
.map-placeholder {
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, #e9eef6 0 14px, #f2f5fa 14px 28px);
  border: 1px dashed #b9c4d6;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1.5rem;
}

/* ---------- Info contact cards ---------- */
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.contact-card .icon-tile {
  width: 46px;
  height: 46px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 999;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-list > li > .nav-link,
  .nav-list > li > .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    font-size: 1.02rem;
  }

  .nav-group-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    padding: 1rem 1rem 0.3rem;
  }

  .dropdown {
    position: static;
    translate: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0.3rem 1rem;
    display: none;
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }

  .has-dropdown:hover > .dropdown {
    display: none;
  }

  .has-dropdown.open:hover > .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 0.65rem 1rem;
    color: var(--muted);
  }

  .nav-burger {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }
}

@media (min-width: 981px) {
  .nav-group-label {
    display: none;
  }

  .has-dropdown:hover > .caret {
    transform: rotate(180deg);
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .lang-toggle {
    padding: 0.4rem 0.7rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quiz-options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
