/* ==========================================================================
   Ondo Education — shared styles
   Layout concept: two rings joined by one arc (from the logo). Rings and arcs
   recur as markers, step numbers and section decoration; everything else stays
   quiet, white and navy, with sky blue used for light and emphasis.
   ========================================================================== */

:root {
  /* Colour: sampled from the logo */
  --navy: #05225a;
  --royal: #1356a0;
  --sky: #70adea;
  --mist: #edf3fb;
  --paper: #ffffff;
  --ink: #0a1b40;
  --muted: #4d5f7e;
  --line: #d3e0f2;
  --error: #b3261e;
  --ok: #1b7f4b;

  /* Type */
  --font-display: "Urbanist", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* Urbanist and Figtree have no Cyrillic, so Mongolian uses fonts that do. */
html[lang="mn"] {
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}
html[lang="mn"] h1 { letter-spacing: -0.02em; }
html[lang="mn"] h2, html[lang="mn"] h3 { letter-spacing: -0.01em; }

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img, svg { max-width: 100%; display: block; }
a { color: var(--royal); text-underline-offset: 0.2em; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; max-width: 65ch; }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #e6eefc; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--royal);
}
.section--navy .eyebrow { color: var(--sky); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 2px solid var(--navy);
  background: var(--navy); color: #fff;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--royal); border-color: var(--royal); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--sky { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn--sky:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 3.1rem; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nav a:not(.btn) {
  white-space: nowrap; font-weight: 600; font-size: 0.98rem; color: var(--ink); text-decoration: none;
  padding-block: 0.35rem; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--royal); }
.nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--sky); color: var(--navy); }
.nav .btn { min-height: 2.6rem; padding: 0.5rem 1.2rem; font-size: 0.95rem; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 0.75rem;
  background: var(--mist); border: 1px solid var(--line); border-radius: 999px; color: var(--royal);
}
.lang-switch .globe { width: 1.05rem; height: 1.05rem; margin-right: 0.4rem; flex: none; }
.lang-switch button {
  min-width: 2.6rem; min-height: 2.1rem; padding: 0 0.7rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy); cursor: pointer;
  font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.08em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.lang-switch button:hover { background: rgba(5, 34, 90, 0.08); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: 0 4px 10px -4px rgba(5, 34, 90, 0.65); }
.nav-toggle {
  display: none; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 2px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 1.3rem; height: 1.3rem; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
  .nav .lang-switch { align-self: flex-start; margin-top: 1rem; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav .nav-item > a.nav-link { flex: 1; border-bottom: 0; }
  .submenu-toggle { width: 2.4rem; height: 2.4rem; }
  .submenu {
    position: static; width: 100%; padding: 0 0 0.6rem; translate: none; opacity: 1; visibility: visible;
    display: none; transition: none;
  }
  .nav-item:hover .submenu, .nav-item:focus-within .submenu { translate: none; }
  .nav-item.is-open .submenu { display: block; }
  .nav-item.is-dismissed .submenu { display: none; }
  .submenu-panel { padding: 0 0 0 0.25rem; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .submenu-head { display: none; }
  .nav .submenu a.submenu-link { padding: 0.55rem 0.25rem; }
  .nav .submenu a.submenu-all { border-top: 0; padding: 0.6rem 0.25rem 0.2rem; }
}

/* Services drop-down -------------------------------------------------- */
.nav-item { position: relative; display: flex; align-items: center; gap: 0.1rem; }
.submenu-toggle {
  display: grid; place-items: center; width: 1.7rem; height: 1.7rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--navy); cursor: pointer;
}
.submenu-toggle:hover { background: var(--mist); }
.submenu-toggle svg { width: 0.95rem; height: 0.95rem; transition: rotate 0.2s var(--ease); }
.nav-item:hover .submenu-toggle svg,
.nav-item:focus-within .submenu-toggle svg,
.nav-item.is-open .submenu-toggle svg { rotate: 180deg; }
.submenu {
  position: absolute; top: 100%; left: 50%; z-index: 60; width: min(25rem, 92vw); padding-top: 1rem;
  translate: -50% 6px; opacity: 0; visibility: hidden;
  transition: opacity 0.18s var(--ease), translate 0.18s var(--ease), visibility 0s linear 0.18s;
}
.nav-item:hover .submenu,
.nav-item:focus-within .submenu,
.nav-item.is-open .submenu { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.nav-item.is-dismissed .submenu { opacity: 0 !important; visibility: hidden !important; }
.submenu-panel {
  display: grid; gap: 0.15rem; padding: 0.75rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 28px 60px -26px rgba(5, 34, 90, 0.5);
}
.submenu-head { margin: 0; padding: 0.5rem 0.75rem 0.4rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--royal); }
.nav .submenu a.submenu-link {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.85rem; align-items: center;
  padding: 0.65rem 0.75rem; border: 0; border-radius: 14px; white-space: normal;
  font-weight: 700; font-size: 1rem; line-height: 1.25; color: var(--navy);
}
.nav .submenu a.submenu-link:hover { background: var(--mist); color: var(--navy); }
.sub-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--mist); color: var(--navy); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.sub-icon svg { width: 1.25rem; height: 1.25rem; }
.submenu-link:hover .sub-icon { background: var(--navy); color: #fff; }
.submenu-link small { display: block; margin-top: 0.15rem; font-size: 0.85rem; font-weight: 500; line-height: 1.35; color: var(--muted); }
.nav .submenu a.submenu-all {
  display: flex; align-items: center; justify-content: space-between; margin-top: 0.35rem; padding: 0.8rem 0.75rem 0.4rem;
  border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 0.92rem; font-weight: 700; color: var(--royal);
}
.nav .submenu a.submenu-all:hover { color: var(--navy); }
.submenu-all svg { width: 1.05rem; height: 1.05rem; transition: translate 0.2s var(--ease); }
.submenu-all:hover svg { translate: 4px 0; }

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

/* Visa partner (Nomad Migration) */
.partner-card { display: grid; gap: 1.1rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(5, 34, 90, 0.07); }
.partner-card img { width: 100%; max-width: 21rem; height: auto; justify-self: center; }
.partner-card p { color: var(--muted); font-size: 0.97rem; }
.partner-label { font-size: 0.78rem !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--royal) !important; }
.partner-card--logo { place-items: center; min-height: 15rem; }
.partner-card--logo img { max-width: 24rem; }

/* Hero (home) --------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--navy) 0%, var(--royal) 45%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.hero-note { font-size: 0.92rem; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.hero-note::before { content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--mist); }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.arc-draw { stroke-dasharray: 520; stroke-dashoffset: 0; animation: arcdraw 1.6s var(--ease) 0.2s both; }
@keyframes arcdraw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
.ring-label { font: 700 13px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; fill: var(--navy); }
.ring-sub { font: 500 15px/1 var(--font-body); fill: var(--muted); }
.arc-chip text { font: 700 13px/1 var(--font-body); fill: var(--navy); letter-spacing: 0.04em; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 34rem; }
}

/* Page hero (inner pages) -------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); background: var(--mist); position: relative; overflow: hidden; }
.page-hero .wrap { display: grid; gap: 1.25rem; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 18ch; }
.page-hero .lede { max-width: 58ch; }
.page-hero::after {
  content: ""; position: absolute; right: -6rem; top: 50%; translate: 0 -50%;
  width: clamp(14rem, 34vw, 26rem); aspect-ratio: 1; border-radius: 50%;
  border: clamp(1.4rem, 3.4vw, 2.6rem) solid transparent;
  background:
    linear-gradient(var(--mist), var(--mist)) padding-box,
    linear-gradient(135deg, var(--navy) 35%, var(--sky) 100%) border-box;
  opacity: 0.9;
}
@media (max-width: 700px) { .page-hero::after { opacity: 0.35; right: -9rem; } }

/* Two ways (home) ----------------------------------------------------- */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.way {
  display: grid; align-content: start; gap: 1.1rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius);
  background: var(--mist); color: var(--ink); text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.25s var(--ease);
}
.way:hover { transform: translateY(-4px); color: var(--ink); }
.way--navy { background: var(--navy); color: #dbe6fa; }
.way--navy:hover { color: #dbe6fa; }
.way--navy h3 { color: #fff; }
.way h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.way p { color: inherit; opacity: 0.9; }
.way-icon { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--navy); }
.way--navy .way-icon { background: var(--sky); }
.way-icon svg { width: 1.6rem; height: 1.6rem; }
.way ul { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.way li { display: flex; gap: 0.6rem; align-items: baseline; }
.way li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sky); translate: 0 -0.05em; }
.way .more { margin-top: 0.5rem; font-weight: 700; display: inline-flex; gap: 0.5rem; align-items: center; color: inherit; }
.way .more svg { width: 1.1rem; height: 1.1rem; transition: translate 0.2s var(--ease); }
.way:hover .more svg { translate: 4px 0; }
@media (max-width: 760px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* Steps (real sequence) ---------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 1.7rem; left: 1.7rem; right: 1.7rem; height: 2px; background: linear-gradient(90deg, var(--navy), var(--sky)); }
.steps li { position: relative; display: grid; gap: 0.6rem; align-content: start; counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step);
  width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--paper); border: 3px solid var(--navy); color: var(--navy);
  font: 800 1.25rem/1 var(--font-display);
}
.steps li:last-child::before { background: var(--navy); color: #fff; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 0.97rem; color: var(--muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { top: 1.7rem; bottom: 1.7rem; left: 1.7rem; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--navy), var(--sky)); }
  .steps li { grid-template-columns: 3.4rem minmax(0, 1fr); column-gap: 1.25rem; padding-bottom: 1.75rem; }
  .steps li::before { grid-row: 1 / span 2; }
}

/* Checklist ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.5rem; }
.checks li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.checks li::before {
  content: ""; width: 1.6rem; height: 1.6rem; border-radius: 50%; margin-top: 0.1rem;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.checks strong { display: block; color: var(--navy); font-weight: 700; line-height: 1.3; }
.checks span { font-size: 0.95rem; color: var(--muted); }
.checks--one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .checks { grid-template-columns: minmax(0, 1fr); } }

/* FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font: 700 1.15rem/1.35 var(--font-display); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--navy);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 0.8rem 2px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 2px 0.8rem no-repeat;
  transition: rotate 0.25s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details > p { padding: 0 3rem 1.4rem 0; color: var(--muted); }

/* CTA band ------------------------------------------------------------ */
.cta {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.6);
  padding: clamp(2rem, 6vw, 4.5rem); display: grid; gap: 1.5rem; justify-items: start;
  background: var(--navy); color: #c9d9f5;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 20ch; }
.cta::after {
  content: ""; position: absolute; right: -5rem; bottom: -9rem; width: clamp(16rem, 36vw, 28rem); aspect-ratio: 1; border-radius: 50%;
  border: clamp(1.6rem, 3.6vw, 2.8rem) solid var(--royal); opacity: 0.55;
}

/* Services ------------------------------------------------------------ */
.subnav { position: sticky; top: calc(4.75rem + env(safe-area-inset-top, 0px)); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 0.5rem; overflow-x: auto; padding-block: 0.7rem; }
.subnav a { white-space: nowrap; padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; text-decoration: none; color: var(--navy); border: 2px solid var(--line); }
.subnav a:hover, .subnav a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.service { padding-block: clamp(3.5rem, 8vw, 6rem); scroll-margin-top: 9rem; }
.service + .service { border-top: 1px solid var(--line); }
.service-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: 2.5rem; }
.service-tag { display: inline-flex; align-items: center; gap: 0.6rem; }
.service-tag::before { content: ""; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 4px solid var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { display: grid; gap: 0.7rem; align-content: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.97rem; color: var(--muted); }
.card-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--navy); }
.card-icon svg { width: 1.3rem; height: 1.3rem; }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) and (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Course finder ------------------------------------------------------- */
.finder { margin-top: 2.5rem; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius); background: var(--navy); color: #dbe6fa; display: grid; gap: 1.5rem; }
.finder h3 { color: #fff; font-size: 1.5rem; }
.finder-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.finder label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.finder .field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
@media (max-width: 900px) { .finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .finder-grid { grid-template-columns: minmax(0, 1fr); } }

/* Timeline (application calendar) ------------------------------------ */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 3px solid var(--sky); margin-left: 0.5rem; }
.timeline li { position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.25rem; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -0.8rem; top: 0.25rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--paper); border: 4px solid var(--navy); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { font: 800 1.05rem/1.3 var(--font-display); color: var(--navy); }
.timeline h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.timeline p { font-size: 0.97rem; color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; } }

/* About --------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.principle { padding: 1.75rem; border-radius: var(--radius); background: var(--paper); display: grid; gap: 0.6rem; align-content: start; }
.principle h3 { font-size: 1.25rem; }
.principle p { color: var(--muted); }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.statement { font: 700 clamp(1.4rem, 2.8vw, 2.1rem)/1.3 var(--font-display); color: var(--navy); letter-spacing: -0.015em; max-width: 30ch; text-wrap: balance; }
.prose { display: grid; gap: 1.1rem; }
.prose p { color: var(--ink); }
.not-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.not-list li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.75rem; }
.not-list li::before {
  content: ""; width: 1.6rem; height: 1.6rem; border-radius: 50%; margin-top: 0.1rem; border: 2px solid var(--sky);
  background:
    linear-gradient(var(--sky), var(--sky)) center / 0.7rem 2px no-repeat;
}

/* Booking ------------------------------------------------------------- */
.book { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3.5vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 18px 50px -28px rgba(5, 34, 90, 0.35); }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 1rem; min-width: 0; }
.form legend { padding: 0; margin-bottom: 0.25rem; font: 800 1.2rem/1.2 var(--font-display); color: var(--navy); }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-weight: 700; font-size: 0.93rem; color: var(--navy); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  font: 500 1rem/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 12px;
  transition: border-color 0.15s;
}
textarea { min-height: 7rem; resize: vertical; }
/* Drop-downs: replace the browser arrow with one that has room inside the box. */
select {
  -webkit-appearance: none; appearance: none;
  padding-right: 3rem; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305225a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1rem 1rem;
}
select::-ms-expand { display: none; }
/* Date, select and text boxes share one height so rows line up (Safari/Chrome style date boxes are taller by default). */
input[type="date"] { -webkit-appearance: none; appearance: none; height: 3rem; line-height: 1.2; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; margin: 0; }
input[type="date"]::-webkit-datetime-edit { padding: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; padding: 0; cursor: pointer; }
select { height: 3rem; }
input:hover, select:hover, textarea:hover { border-color: var(--sky); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(112, 173, 234, 0.35); }
.finder select { border-color: transparent; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.error-msg { color: var(--error); font-size: 0.88rem; font-weight: 600; min-height: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 2.8rem; padding: 0.55rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: 0.93rem; color: var(--muted); }
.field .consent { font-weight: 500; font-size: 0.93rem; color: var(--muted); }
.consent input { width: 1.3rem; height: 1.3rem; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--navy); }
.side { display: grid; gap: 1.25rem; position: sticky; top: 6.5rem; }
@media (max-width: 900px) { .side { position: static; } }
.panel { padding: 1.75rem; border-radius: var(--radius); background: var(--mist); display: grid; gap: 1rem; }
.panel--navy { background: var(--navy); color: #dbe6fa; }
.panel--navy h3 { color: #fff; }
.panel h3 { font-size: 1.2rem; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.8rem; align-items: start; }
.mini-steps li::before { content: counter(ms); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--sky); color: #fff; font: 800 0.95rem/1 var(--font-display); }
.contact-list { display: grid; gap: 0.75rem; margin: 0; }
.contact-list dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.contact-list dd { margin: 0; user-select: all; overflow-wrap: anywhere; }
.confirm { display: grid; gap: 1.25rem; justify-items: start; padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: var(--radius); background: var(--mist); }
.confirm-mark { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.confirm-mark svg { width: 2rem; height: 2rem; }
.summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.5rem 1.25rem; margin: 0; padding: 1.25rem; border-radius: 12px; background: var(--paper); width: 100%; }
.summary dt { font-weight: 700; color: var(--navy); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.demo-note { font-size: 0.88rem; color: var(--muted); padding: 0.75rem 1rem; border-radius: 10px; border: 1px dashed var(--sky); background: var(--paper); }

/* Funds calculator ---------------------------------------------------- */
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .row--3 { grid-template-columns: minmax(0, 1fr); } }
.field .label { font-weight: 700; font-size: 0.93rem; color: var(--navy); }
.form-note { font-size: 0.95rem; color: var(--muted); max-width: 60ch; }
input[readonly] { background: var(--mist); color: var(--navy); font-weight: 700; }
.running { display: none; }
@media (max-width: 900px) {
  .running {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    position: sticky; top: calc(4.75rem + env(safe-area-inset-top, 0px)); z-index: 5;
    padding: 0.8rem 1.1rem; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600;
  }
  .running strong { font: 800 1.4rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
}
.lines { margin: 0; display: grid; gap: 0.8rem; }
.lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.lines dt { color: #dbe6fa; }
.lines dt small { display: block; font-size: 0.82rem; color: var(--sky); }
.lines dd { margin: 0; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total { display: grid; gap: 0.35rem; }
.total span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.total strong { font: 800 clamp(2.4rem, 5vw, 3.2rem)/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.panel textarea { min-height: 7.5rem; font-size: 0.9rem; }
.panel p { color: var(--muted); font-size: 0.95rem; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #b9cbeb; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1fr); gap: 2.5rem; }
.footer-grid img { height: 3rem; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: #b9cbeb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; font-size: 0.9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
