/* ===== Brand colours (taken from the ICCP poster) ===== */
:root {
  --navy: #002d5f;
  --navy-2: #0a3b75;
  --red: #e0202b;
  --red-dark: #c11a24;
  --bg: #f7f7f7;
  --white: #ffffff;
  --text: #3d4a5c;
  --muted: #6b7686;
  --line: #e1e4e9;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 17px; border-top: 8px solid var(--navy); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.container { width: min(1140px, 100% - 48px); margin-inline: auto; }
.hidden { display: none !important; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; }
h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 32px; max-width: 22ch; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
p + p { margin-top: 12px; }
.small { font-size: .92rem; color: var(--muted); margin-top: 24px; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.eyebrow.light { color: #ff8a90; }

/* ===== Buttons ===== */
.btn { display: inline-block; background: var(--red); color: var(--white); text-decoration: none; font-weight: 600; padding: 14px 26px; border: 2px solid var(--red); border-radius: var(--radius); cursor: pointer; font: 600 1rem var(--sans); transition: background .2s, transform .2s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-small { padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; padding: 16px; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,247,247,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--red); font-weight: 600; font-size: 1.3rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--navy); }
.nav a.btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ===== Hero ===== */
.hero { padding: 72px 0 64px; }
.phonetic { color: var(--muted); font-size: 1.15rem; margin-top: 28px; }
.hero hr { border: 0; border-top: 1px solid #d5d9df; margin: 22px 0 40px; }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.02; letter-spacing: -.01em; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 46ch; margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; }
.skills h3 { font-size: 1.3rem; }
.skills h3 span { color: var(--red); }

/* ===== Facts band ===== */
.facts-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 30px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--navy); line-height: 1.2; }
.facts span { color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section.alt { background: var(--white); }
.section.navy { background: var(--navy); color: #d7e0ec; }
.section.navy h2, .section.navy h3 { color: var(--white); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gap-lg { gap: 72px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 28px; }
.callout { margin-top: 40px; padding: 24px 28px; border-left: 4px solid var(--red); background: var(--white); font-size: 1.15rem; color: var(--navy); font-weight: 500; }
.small-head { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }

.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 3px; background: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--bg); border: 1px solid var(--line); padding: 6px 14px; border-radius: 30px; font-size: .95rem; color: var(--navy); }

/* ===== Levels ===== */
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.level { background: var(--white); border: 1px solid var(--line); padding: 36px; }
.level-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.level-name { font-size: 1.25rem; font-weight: 600; color: var(--text); }
.level-name small { display: block; font-size: .85rem; font-weight: 500; color: var(--muted); }
.level-range { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--navy); white-space: nowrap; }
.cefr { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 18px; }
.cefr i { height: 6px; background: var(--line); }
.cefr i.on { background: var(--navy); }
.advanced .cefr i.on { background: var(--red); }
.cefr-labels { display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.level-promise { margin: 24px 0 20px; font-weight: 500; color: var(--navy); }
details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
summary { cursor: pointer; font-weight: 600; color: var(--red); }
.weeks { margin: 14px 0 0 22px; font-size: .95rem; }
.weeks li { padding: 3px 0; }
.weeks li::marker { color: var(--muted); font-size: .85em; }

.table-wrap { overflow-x: auto; margin-top: 40px; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); min-width: 600px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); }
.compare tbody th { color: var(--navy); width: 22%; font-weight: 600; }

/* ===== Method ===== */
.split-bar { display: flex; gap: 4px; margin-bottom: 56px; }
.split-bar div { padding: 18px; color: var(--white); background: var(--navy-2); min-width: 0; font-size: .95rem; }
.split-bar div:first-child { background: var(--red); }
.split-bar strong { display: block; font-size: 1.8rem; line-height: 1.1; }
.rhythm { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.rhythm li { background: rgba(255,255,255,.07); padding: 12px; font-size: .95rem; }
.rhythm b { display: block; color: var(--white); font-size: 1.3rem; }
.note-light { margin-top: 40px; color: #aebbd0; }

/* ===== Placement / certificate ===== */
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 56px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; color: var(--navy); }
.steps span { color: var(--muted); }
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.grades div { background: var(--white); border: 1px solid var(--line); padding: 16px; text-align: center; }
.grades strong { display: block; color: var(--navy); }

/* ===== Fees ===== */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price { border: 1px solid var(--line); padding: 30px; background: var(--bg); }
.price strong { display: block; font-size: 2.2rem; color: var(--navy); line-height: 1.2; margin: 6px 0; }
.price span { color: var(--muted); }
.price.featured { background: var(--navy); border-color: var(--navy); }
.price.featured h3, .price.featured strong { color: var(--white); }
.price.featured span { color: #ff8a90; font-weight: 600; }
.discounts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 28px; margin-top: 36px; }
.discounts li { display: flex; gap: 10px; }
.discounts b { color: var(--red); flex: 0 0 42px; }

/* ===== Register ===== */
.register { background: var(--navy); }
.register-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.register-intro { color: #d7e0ec; }
.register-intro h2 { color: var(--white); }
.start-date { display: inline-block; background: var(--red); color: var(--white); padding: 18px 26px; margin-bottom: 32px; }
.start-date span { display: block; font-size: .95rem; }
.start-date strong { font-size: 1.8rem; line-height: 1.1; }
.enrol { margin-left: 22px; }
.enrol li { padding: 5px 0; }
.register .small { color: #aebbd0; }

.form { background: var(--white); padding: 36px; border-radius: var(--radius); }
.row { margin-bottom: 16px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 1rem var(--sans); color: var(--text); background: var(--bg); border: 1px solid #cfd5dd; border-radius: var(--radius); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; background: var(--white); }
.form .invalid { border-color: var(--red); background: #fff4f4; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0 22px; color: var(--text); }
.form .check input { width: auto; margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #1a7f44; }
.form-status.err { color: var(--red); }

/* ===== Footer ===== */
.site-footer { background: var(--white); border-top: 1px solid var(--line); border-bottom: 8px solid var(--navy); padding: 40px 0; font-size: .95rem; }
.footer-inner { display: flex; gap: 28px; align-items: center; }
.footer-inner .copy { margin-left: auto; color: var(--muted); }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .grid-3, .grid-2, .levels, .prices, .register-inner { grid-template-columns: 1fr; }
  .gap-lg { gap: 56px; }
  .skills { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav a.btn { text-align: center; margin-top: 8px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row.two { grid-template-columns: 1fr; }
  .form, .level { padding: 24px; }
  .split-bar { flex-direction: column; }
  .rhythm { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner .copy { margin-left: 0; }
}
