/* Institut Erasmus Dschang
   Colours are taken from the banner. Change them here and the whole site follows. */
:root {
  --blue: #182ea0;        /* logo royal blue */
  --blue-deep: #0e1b66;
  --sky: #7cc4f5;         /* banner light blue */
  --sky-soft: #eaf5fe;
  --ink: #141a33;
  --muted: #5a6382;
  --line: #dfe5f2;
  --bg: #ffffff;
  --wa: #0e7a3e;          /* darker WhatsApp green: readable with white text */
  --wa-hover: #0b6232;
  --gold: #ffce00;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14, 27, 102, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 800; color: var(--blue-deep); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 800; color: var(--blue-deep); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico-lg { width: 28px; height: 28px; color: var(--blue); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 1.05rem; padding: .9em 1.6em; }
.btn-sm { padding: .5em 1em; font-size: .95rem; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(14, 122, 62, .28); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--sky-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 150px; height: auto; }
.brand-city {
  font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 3px 8px; border-radius: 6px;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span { height: 2.5px; background: var(--blue-deep); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 72px;
  background:
    radial-gradient(900px 500px at 100% 0%, var(--sky-soft), transparent 70%),
    linear-gradient(180deg, #fff, #f6faff);
}
.hero::after { /* the banner's blue wave, as a soft band at the bottom */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -120px; height: 220px;
  background: var(--blue); border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .07;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
}
.hero .eyebrow { background: var(--sky-soft); border: 1px solid #cfe6fb; padding: 6px 12px; border-radius: 999px; }
.hl { color: var(--blue); white-space: nowrap; background: linear-gradient(transparent 62%, rgba(124, 196, 245, .55) 62%); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.levels { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.levels li {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 14px; font-weight: 800; color: var(--blue);
  background: #fff; border: 2px solid var(--line);
}
.levels li:last-child { background: var(--blue); color: #fff; border-color: var(--blue); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.photo-ring {
  border-radius: 50%; padding: 10px;
  background: linear-gradient(140deg, var(--sky), var(--blue));
  box-shadow: 0 30px 60px rgba(14, 27, 102, .22);
}
.photo-ring img { border-radius: 50%; background: #fff; width: 100%; height: auto; }
.flag-bubble {
  position: absolute; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); border: 4px solid #fff;
}
.flag-bubble svg { width: 54px; height: 34px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.fb-de { top: 4%; right: -2%; }
.fb-ca { bottom: 6%; left: -4%; }

@media (max-width: 860px) {
  .hero { padding: 28px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { width: min(80%, 340px); order: -1; }
  .flag-bubble { width: 64px; height: 64px; }
  .flag-bubble svg { width: 40px; height: 25px; }
}
@media (max-width: 520px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .levels { justify-content: space-between; }
  .levels li { width: 17%; max-width: 56px; }
  .goal { padding: 18px; }
  .section-head { margin-bottom: 28px; }
}

/* ---------- Strip ---------- */
.strip { background: var(--blue); color: #fff; }
.strip-list {
  list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.strip-list li { display: flex; flex-direction: column; border-left: 3px solid var(--sky); padding-left: 14px; }
.strip-list strong { font-size: 1.1rem; }
.strip-list span { font-size: .92rem; color: #d5e4ff; }
@media (max-width: 860px) { .strip-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: #f4f8ff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); }
.note { color: var(--muted); font-size: .95rem; margin-top: 28px; }
@media (max-width: 860px) { .section { padding: 64px 0; } }

/* Level cards: a staircase from A1 to C1 */
.level-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: end; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: 0 2px 0 var(--line);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.level-cards .card:nth-child(1) { margin-top: 64px; }
.level-cards .card:nth-child(2) { margin-top: 48px; }
.level-cards .card:nth-child(3) { margin-top: 32px; }
.level-cards .card:nth-child(4) { margin-top: 16px; }
.lvl {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 14px; background: var(--sky-soft); color: var(--blue); font-weight: 800; font-size: 1.2rem;
}
.card p { color: var(--muted); font-size: .97rem; }
.card .use { color: var(--blue); font-weight: 600; font-size: .9rem; margin: 0; }
.card-top { background: var(--blue); border-color: var(--blue); color: #fff; }
.card-top .lvl { background: var(--gold); color: var(--ink); }
.card-top p, .card-top .use { color: #e3ebff; }
@media (max-width: 960px) {
  .level-cards { grid-template-columns: 1fr 1fr; }
  .level-cards .card { margin-top: 0 !important; }
  .level-cards .card-top { grid-column: 1 / -1; }
}
/* Phone: level cards become compact rows (badge left, text right) */
@media (max-width: 520px) {
  .level-cards { grid-template-columns: 1fr; gap: 12px; }
  .level-cards .card { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 18px; }
  .level-cards .lvl { grid-row: 1 / span 3; margin: 0; }
  .level-cards h3 { margin-bottom: .2em; }
  .level-cards .card p { margin-bottom: .5em; }
}

/* Goals */
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.goal { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.goal-lvl {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .9rem;
}
.goal p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service {
  border-radius: var(--radius); padding: 32px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff 60%, var(--sky-soft));
}
.service h3 { font-size: 1.35rem; color: var(--blue-deep); }
.service > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.ticks .ico { color: var(--wa); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } .service { padding: 24px; } }

/* Steps (dark section) */
.section-dark { background: var(--blue-deep); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--sky); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 24px; }
.steps span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sky); color: var(--blue-deep); font-weight: 800; margin-bottom: 14px;
}
.steps p { color: #c9d6ff; margin: 0; font-size: .97rem; }
.tagline { margin: 44px 0 0; text-align: center; font-weight: 800; font-size: clamp(1.1rem, 2.6vw, 1.5rem); color: var(--sky); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 18px; }
  .steps span { grid-row: 1 / span 2; margin: 0; }
  .steps h3 { margin-bottom: .2em; }
}

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--blue); transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-right: 40px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-card {
  list-style: none; margin: 0; padding: 12px 28px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.contact-card li { display: flex; gap: 16px; padding: 18px 0; }
.contact-card li + li { border-top: 1px solid var(--line); }
.contact-card div { display: flex; flex-direction: column; }
.contact-card a { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } .contact-card { padding: 8px 20px; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a1450; color: #c9d6ff; padding: 40px 0 96px; font-size: .95rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.footer-inner img { background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; width: 160px; height: auto; }
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  transition: transform .2s, opacity .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float.is-hidden { opacity: 0; transform: scale(.6); pointer-events: none; }
.wa-float .ico { width: 32px; height: 32px; }

/* ---------- Simple sub-pages (legal, 404) ---------- */
.page { padding: 64px 0 88px; min-height: 60vh; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.3rem; margin-top: 2em; }
