/* =========================================================
   B.E.S.T. — British Education Services & Training
   Design system + components. Mobile first.
   ========================================================= */

:root {
  --navy: #1D1A4F;
  --navy-2: #2B2783;
  --navy-3: #3B37A6;
  --ivory: #FBF8EE;
  --cream: #FBF1C9;
  --line: #EEE2B6;
  --gold: #F5C400;
  --gold-d: #8C6A00;
  --red: #D7262B;
  --red-d: #B31D22;
  --wa: #25D366;
  --wa-d: #1DA851;
  --ink: #1A202C;
  --muted: #4A5568;
  --white: #FFFFFF;

  --ff-head: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(29, 26, 79, .06);
  --shadow: 0 10px 30px rgba(29, 26, 79, .10);
  --shadow-lg: 0 24px 60px rgba(29, 26, 79, .18);
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: #E3E2F6; }
.section--navy h2, .section--navy h3 { color: var(--ivory); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section--navy .eyebrow { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--navy .lead { color: #CBC9EC; }
.gold-rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 18px 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--bg); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1.2 var(--ff-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--fg); }
.btn-primary { --bg: var(--red); }
.btn-primary:hover { background: var(--red-d); border-color: var(--red-d); }
.btn-wa { --bg: var(--wa); --fg: #0B2E17; }
.btn-wa:hover { background: var(--wa-d); border-color: var(--wa-d); --fg: #fff; }
.btn-outline { background: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); --fg: #fff; }
.btn-light { --bg: var(--ivory); --fg: var(--navy); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); --fg: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar ---------- */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { height: 48px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--ff-head); font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; }
.brand-sub { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.main-nav {
  position: fixed; inset: calc(var(--header-h) + 1px) 0 0 0; z-index: 49;
  background: var(--ivory); padding: 16px var(--gutter) 120px;
  overflow-y: auto; transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.main-nav.open { transform: none; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { border-bottom: 1px solid var(--line); }
.main-nav a { display: block; padding: 14px 4px; text-decoration: none; color: var(--navy); font-weight: 600; }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .sub { padding-left: 14px; padding-bottom: 8px; }
.main-nav .sub a { padding: 8px 4px; font-weight: 500; color: var(--muted); }
.nav-cta { margin-top: 20px; display: grid; gap: 10px; }
.main-nav .nav-cta .btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; text-align: center; color: var(--fg); }
.header-cta { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(245,196,0,.16), transparent 60%),
    linear-gradient(180deg, var(--ivory), var(--cream));
  padding: 48px 0 56px;
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero .lead { max-width: 560px; }
.hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
.hero-tagline { font-family: var(--ff-head); font-style: italic; color: var(--gold-d); font-size: 1.05rem; margin-bottom: 10px; }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(245,196,0,.18), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #CBC9EC; padding: 56px 0 60px;
}
.page-hero h1 { color: var(--ivory); font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { color: #CBC9EC; max-width: 680px; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb span { opacity: .7; }
.page-hero .btn-row { margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.08); color: var(--ivory); border: 1px solid rgba(255,255,255,.18);
}
.chip-light { background: var(--white); color: var(--navy); border-color: var(--line); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.stat { background: var(--white); padding: 20px 16px; text-align: center; }
.stat b { display: block; font-family: var(--ff-head); font-size: 1.9rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Goal selector ---------- */
.goal-grid { display: grid; gap: 14px; }
.goal {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.goal:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.goal-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--navy); flex: none; }
.goal-ico svg { width: 24px; height: 24px; }
.goal h3 { font-size: 1.1rem; margin-bottom: 4px; }
.goal p { margin: 0; font-size: .92rem; color: var(--muted); }
.goal .tests { margin-top: 8px; font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .02em; }

/* ---------- Course cards ---------- */
.card-grid { display: grid; gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DCCFA5; }
.card-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin-bottom: 16px; }
.card-ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .tag { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-d); background: var(--cream); padding: 4px 10px; border-radius: 999px; }
.card-list { list-style: none; padding: 0; margin: 0 0 18px; font-size: .92rem; }
.card-list li { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; }
.card-list svg { width: 16px; height: 16px; color: var(--gold-d); margin-top: 5px; flex: none; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); text-decoration: none; }
.card-link svg { width: 18px; height: 18px; transition: transform .15s; }
.card:hover .card-link svg { transform: translateX(4px); }
.stretched::after { content: ""; position: absolute; inset: 0; }

/* ---------- Results wall ---------- */
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.result {
  position: relative; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line); padding: 18px 16px 16px; text-align: center; overflow: hidden;
}
.result::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.result .band { font-family: var(--ff-head); font-weight: 800; font-size: 2.3rem; color: var(--navy); line-height: 1; }
.result .band small { font-size: .9rem; color: var(--muted); font-weight: 600; font-family: var(--ff-body); }
.result .exam { display: inline-block; margin: 8px 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.result .who { font-weight: 600; font-size: .92rem; color: var(--ink); }
.result .note { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.result--cta { background: var(--navy); border-color: var(--navy); color: #CBC9EC; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.result--cta .band { color: var(--gold); }
.result--cta a { color: #fff; font-weight: 700; }
.results-foot { margin-top: 18px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Google reviews ---------- */
.reviews-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 22px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.rs-left { display: flex; align-items: center; gap: 16px; }
.rs-left .g { width: 40px; height: 40px; }
.rs-score { font-family: var(--ff-body); font-weight: 800; font-size: 2.2rem; color: var(--navy); line-height: 1; }
.rs-stars { display: flex; gap: 2px; color: #FBBC05; }
.rs-stars svg { width: 18px; height: 18px; }
.rs-meta { font-size: .9rem; color: var(--muted); }
.rs-meta strong { color: var(--ink); }

.reviews-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 14px; scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-grid { display: grid; gap: 16px; }
.review {
  scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
}
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.05rem;
  background: var(--av, var(--navy));
}
.review-who { flex: 1; min-width: 0; }
.review-who b { display: block; font-size: .96rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-who span { font-size: .8rem; color: var(--muted); }
.review-head .g { width: 22px; height: 22px; }
.review .rs-stars svg { width: 15px; height: 15px; }
.review-text { font-size: .95rem; color: #2D3748; margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review.expanded .review-text { -webkit-line-clamp: unset; display: block; }
.review-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--muted); font: 600 .85rem var(--ff-body); cursor: pointer; text-decoration: underline; }
.review-more[hidden] { display: none; }
.carousel-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.carousel-btn:hover { border-color: var(--navy); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-btn.prev svg { transform: rotate(180deg); }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: #D5CDB5; cursor: pointer; }
.dots button[aria-current="true"] { background: var(--navy); width: 22px; border-radius: 6px; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: 32px; align-items: center; }
.photo-slot {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(160deg, rgba(29,26,79,.92), rgba(43,39,131,.92)),
    repeating-linear-gradient(45deg, rgba(245,196,0,.25) 0 2px, transparent 2px 14px);
  display: grid; place-items: center; color: var(--ivory); text-align: center; padding: 24px;
  box-shadow: var(--shadow-lg);
}
.photo-slot img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot .ph-mark { width: 84px; margin: 0 auto 14px; opacity: .95; }
.photo-slot .ph-name { font-family: var(--ff-head); font-size: 1.4rem; color: var(--ivory); }
.photo-slot .ph-role { font-size: .85rem; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.photo-slot--wide { aspect-ratio: 16 / 10; }
.photo-slot.has-photo { margin: 0; padding: 0; max-width: 100%; place-items: end stretch; }
.photo-slot.has-photo img.photo { object-position: 50% 28%; }
.photo-cap {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px;
  padding: 48px 20px 18px; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(29, 26, 79, .92) 55%);
}
.photo-cap .ph-name { font-size: 1.25rem; }
.founder-quote {
  font-family: var(--ff-head); font-style: italic; font-size: 1.25rem; color: var(--navy);
  border-left: 3px solid var(--gold); padding-left: 18px; margin: 20px 0;
}
.sign { font-family: var(--ff-head); font-size: 1.1rem; color: var(--navy); font-weight: 700; }
.sign small { display: block; font-family: var(--ff-body); font-weight: 500; font-size: .85rem; color: var(--muted); }

/* ---------- Feature list (why us) ---------- */
.feature-grid { display: grid; gap: 22px; }
.feature { display: flex; gap: 16px; }
.feature-ico { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(245,196,0,.14); color: var(--gold); border: 1px solid rgba(245,196,0,.4); }
.feature-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { margin: 0; font-size: .95rem; }
.section--navy .feature p { color: #CBC9EC; }
.feature q { display: block; margin-top: 8px; font-size: .85rem; font-style: italic; color: var(--gold); quotes: "“" "”"; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px 72px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--gold);
  font-family: var(--ff-head); font-weight: 700;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative;
  font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold-d); border-bottom: 2px solid var(--gold-d); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 18px; color: #2D3748; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Info / content blocks (course pages) ---------- */
.content-grid { display: grid; gap: 32px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); margin: 0 0 1.5em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy); color: var(--ivory); font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #FBF9F4; }

.sidebar { display: grid; gap: 18px; align-content: start; }
.side-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 1.15rem; }
.side-card--navy { background: var(--navy); border-color: var(--navy); color: #CBC9EC; }
.side-card--navy h3 { color: var(--ivory); }
.side-card .btn { width: 100%; margin-top: 8px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { color: var(--navy); text-align: right; }

.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: #FFF8E5; border: 1px solid #EBD89A; font-size: .93rem; margin: 1.2em 0; }
.callout svg { width: 22px; height: 22px; color: var(--gold-d); flex: none; margin-top: 2px; }
.callout p:last-child { margin: 0; }
.callout--navy { background: rgba(29,26,79,.05); border-color: rgba(29,26,79,.15); }
.callout--navy svg { color: var(--navy); }

.module-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 1.5em; }
.module { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.module svg { width: 24px; height: 24px; color: var(--red); margin-bottom: 8px; }
.module b { display: block; color: var(--navy); font-size: 1rem; }
.module span { font-size: .85rem; color: var(--muted); }

/* ---------- Band calculator ---------- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); max-width: 640px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.calc-result { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius); background: var(--navy); color: #CBC9EC; }
.calc-result b { font-family: var(--ff-head); font-size: 2.6rem; color: var(--gold); line-height: 1; min-width: 70px; }
.calc-result small { display: block; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid #D8D0BA; border-radius: 12px; background: #fff;
  font: 1rem var(--ff-body); color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29,26,79,.12); }
.form-note { font-size: .82rem; color: var(--muted); }
.form-row { display: grid; gap: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 22px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); color: var(--navy); display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list b { display: block; color: var(--navy); }
.contact-list a { text-decoration: none; }
.hours { width: 100%; min-width: 0; font-size: .93rem; }
.hours td { padding: 7px 0; border-bottom: 1px dashed var(--line); background: none !important; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.hours tr.closed td:last-child { color: var(--red); }
.hours tr.today td { color: var(--red); font-weight: 700; }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--cream); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 10% 120%, rgba(245,196,0,.25), transparent 60%),
    linear-gradient(135deg, var(--red), #99181D);
  color: #F5DCE0; border-radius: var(--radius-lg); padding: 40px 26px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 620px; margin: 0 auto 22px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #14123A; color: #B9B7DE; padding: 60px 0 0; font-size: .93rem; }
.site-footer a { color: #E3E2F6; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 240px; margin-bottom: 14px; }
.footer-tag { font-family: var(--ff-head); font-style: italic; color: var(--gold); }
.site-footer h4 { color: var(--ivory); font-family: var(--ff-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0 96px; font-size: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.disclaimer { max-width: 720px; }

/* ---------- Floating WhatsApp + mobile action bar ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(29,26,79,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; font-size: .75rem; font-weight: 600; text-decoration: none; color: var(--navy); }
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar a.wa { color: var(--wa-d); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.split { display: grid; gap: 32px; align-items: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Content is always visible; .in only adds a subtle lift once scrolled into view */
.reveal.in { animation: lift .5s ease both; }
@keyframes lift { from { transform: translateY(10px); } to { transform: none; } }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 560px) {
  .goal-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .reviews-track { grid-auto-columns: 62%; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: repeat(4, 1fr); }
  .calc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 84px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .founder { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-track { grid-auto-columns: calc((100% - 32px) / 3); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .cta-band { padding: 56px 40px; }
  .wa-float { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); right: calc(24px + env(safe-area-inset-right, 0px)); }
  .mobile-bar { display: none; }
  .footer-bottom { padding-bottom: 22px; }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.four { grid-template-columns: repeat(4, 1fr); }
  .goal-grid { grid-template-columns: repeat(4, 1fr); }
  .goal { flex-direction: column; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { padding: 70px 18px 20px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .results-grid { grid-template-columns: repeat(6, 1fr); }
  .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .wa-float, .mobile-bar, .cta-band { display: none !important; }
}

/* "IELTS @ BEST" checklist (Why section) */
.why-best { margin-top: 44px; padding: 28px; border: 1px solid rgb(201 162 39 / .35); border-radius: 16px; background: rgb(255 255 255 / .04); }
.why-best h3 { margin-bottom: 16px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 28px; }
.why-list li { display: flex; gap: 10px; align-items: flex-start; color: #E3E2F6; font-size: .98rem; }
.why-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
@media (min-width: 720px) { .why-list { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Brand refresh: logo colours, quote bands, artwork accents
   ========================================================= */
:root {
  --b-red: #D7262B;
  --b-yellow: #FFE414;
  --b-indigo: #2B2783;
  --b-ink: #1D1A4F;
  --tri: linear-gradient(90deg, var(--b-red) 0 33.3%, var(--b-yellow) 33.3% 66.6%, var(--b-indigo) 66.6% 100%);
}

/* Logo tricolour lines */
.site-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--tri); }
.site-footer { border-top: 6px solid transparent; border-image: var(--tri) 1; }

/* Hero: dot-grid artwork accents (as on the institute's posters) */
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none;
  background-image: radial-gradient(var(--b-red) 2.2px, transparent 2.6px);
  background-size: 18px 18px; opacity: .28;
}
.hero::before { right: 3%; top: 28px; width: 216px; height: 126px; }
.hero::after { left: -20px; bottom: 26px; width: 162px; height: 90px; background-image: radial-gradient(var(--b-indigo) 2.2px, transparent 2.6px); }
.hero > .wrap { position: relative; z-index: 1; }

/* Quote bands */
.quote-band { position: relative; overflow: hidden; padding-block: 64px; }
.quote-band::before {
  content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 100%; pointer-events: none;
  background-image: radial-gradient(rgba(29, 26, 79, .16) 1.8px, transparent 2.2px); background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.quote-band--yellow { background: var(--b-yellow); color: var(--b-ink); }
.quote-band--indigo { background: radial-gradient(900px 420px at 85% 50%, #3B37A6, transparent 70%), var(--b-indigo); color: #FFFFFF; }
.quote-band--indigo::before { background-image: radial-gradient(rgba(255, 255, 255, .10) 1.8px, transparent 2.2px); left: 0; right: auto;
  -webkit-mask-image: linear-gradient(270deg, transparent, #000 70%); mask-image: linear-gradient(270deg, transparent, #000 70%); }
.quote-grid { position: relative; display: grid; gap: 28px; align-items: center; }
.quote-art { width: 100%; max-width: 360px; margin: 0 auto; }
.quote { margin: 0; position: relative; min-width: 0; }
.quote::before {
  content: "\201C"; position: absolute; top: -18px; left: -4px;
  font-family: var(--ff-head); font-size: 8rem; line-height: 1; color: var(--b-red);
}
.quote-band--indigo .quote::before { color: var(--b-yellow); }
.quote blockquote { margin: 0; padding-top: 58px; }
.quote p {
  margin: 0; color: inherit; font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(1.55rem, 3.3vw, 2.45rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance;
}
.quote figcaption {
  margin-top: 20px; display: flex; align-items: center; gap: 12px;
  font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}
.quote figcaption::before { content: ""; width: 36px; height: 3px; border-radius: 2px; background: currentColor; }
@media (min-width: 860px) {
  .quote-band { padding-block: 76px; }
  .quote-grid { grid-template-columns: 360px 1fr; gap: 64px; }
  .quote-grid--flip { grid-template-columns: 1fr 360px; }
}

/* Course cards and results: a touch of the logo colours */
.feature-ico { background: rgba(255, 228, 20, .12); }

/* "How to join": dashed flight path joining the steps on wide screens */
@media (min-width: 1024px) {
  .steps { position: relative; }
  .steps::before {
    content: ""; position: absolute; left: 4%; right: 4%; top: 39px; z-index: 0;
    border-top: 2px dashed var(--b-red); opacity: .55;
  }
  .step { z-index: 1; }
}

/* While the mobile menu is open, the floating WhatsApp button and bottom bar would cover it */
body:has(.main-nav.open) .wa-float,
body:has(.main-nav.open) .mobile-bar { display: none; }

/* =========================================================
   Hero, visual first: short headline, artwork, quick badges
   ========================================================= */
.hero { padding: 28px 0 44px; }
.hero-grid { grid-template-areas: "head" "art" "body"; gap: 18px; }
.hero-head { grid-area: head; }
.hero-visual { grid-area: art; }
.hero-body { grid-area: body; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.2rem); line-height: 1.02; margin-bottom: 14px; }
.hero h1 em { display: inline-block; }
.hero-tagline { font-size: .98rem; margin-bottom: 8px; }
.hero-dest { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--b-indigo); }
.hero-visual .hero-art { max-width: 400px; }

.hero-pills { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-pills li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .88rem; font-weight: 600; color: var(--muted);
}
.hero-pills strong { color: var(--navy); }
.hero-pills .icon { width: 16px; height: 16px; color: var(--b-red); }
.hero-pills .stars { color: var(--gold); display: inline-flex; gap: 1px; }
.hero-pills .stars svg { width: 13px; height: 13px; }
.hero .lead { margin-bottom: 20px; }

.award-badge {
  margin-top: 22px; display: flex; gap: 12px; align-items: center; max-width: 470px;
  padding: 12px 16px; border-radius: 16px; background: var(--navy); color: #E3E2F6;
  box-shadow: var(--shadow);
}
.award-ico { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--b-yellow); color: var(--b-ink); }
.award-ico svg { width: 22px; height: 22px; }
.award-badge b { display: block; color: #FFFFFF; font-size: .92rem; line-height: 1.3; }
.award-badge span { font-size: .8rem; }

/* the top-right dot pattern sat behind the headline on phones */
@media (max-width: 767px) { .hero::before { display: none; } }

@media (min-width: 768px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; grid-template-areas: "head art" "body art"; column-gap: 40px; row-gap: 22px; }
  .hero-head { align-self: end; }
  .hero-body { align-self: start; }
  .hero-visual .hero-art { max-width: 520px; }
}

/* Full desktop menu only where the logo, six links and the WhatsApp button fit on one line */
@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static; transform: none; visibility: visible; padding: 0; background: none; overflow: visible;
  }
  .main-nav > ul { display: flex; align-items: center; gap: 4px; }
  .main-nav > ul > li { border: 0; position: relative; }
  .main-nav a { padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
  .main-nav > ul > li > a:hover { background: var(--cream); color: var(--navy); }
  .main-nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .6; }
  .main-nav .sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
  }
  .main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .main-nav .sub a { padding: 9px 12px; color: var(--ink); }
  .main-nav .sub a:hover { background: var(--cream); color: var(--navy); }
  .nav-cta { display: none; }
  .header-cta { display: inline-flex; }
}

/* Artwork keeps its proportions when it shrinks on phones (no empty bands above and below) */
.hero-art, .quote-art { height: auto; }

/* Location map with the school pin */
.map-live { position: relative; z-index: 0; overflow: hidden; }
.school-pin-wrap { background: none; border: 0; }
.school-pin { position: relative; width: 56px; height: 68px; filter: drop-shadow(0 6px 8px rgba(29, 26, 79, .35)); }
.school-pin svg { position: relative; width: 56px; height: 68px; }
.school-pin-pulse {
  position: absolute; left: 50%; bottom: -6px; width: 30px; height: 12px; margin-left: -15px; border-radius: 50%;
  background: rgba(215, 38, 43, .45); animation: pin-pulse 1.8s ease-out infinite;
}
@keyframes pin-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .school-pin-pulse { animation: none; } }
.leaflet-tooltip.school-pin-label {
  background: var(--navy); color: #FFFFFF; border: 0; border-radius: 999px; padding: 4px 12px;
  font: 800 .78rem/1.3 var(--ff-body); letter-spacing: .02em; box-shadow: var(--shadow);
}
.leaflet-tooltip.school-pin-label::before { border-bottom-color: var(--navy); }
.map-open {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; color: var(--navy) !important;
  font: 700 .8rem/1.3 var(--ff-body); text-decoration: none; box-shadow: var(--shadow);
}
.map-live .leaflet-popup-content { font: .88rem/1.45 var(--ff-body); }

/* SEO: location line inside the hero H1 */
.h1-loc { display: block; margin-top: .5rem; font-family: var(--ff-body); font-size: clamp(.95rem, .6rem + 1vw, 1.15rem); font-weight: 700; font-style: normal; letter-spacing: .01em; line-height: 1.35; color: var(--navy-2); }

/* Urdu touch (Nastaliq) */
.ur { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif; direction: rtl; unicode-bidi: isolate; font-weight: 500; line-height: 2.1; }
.ur-line { width: fit-content; max-width: 100%; margin: .35rem 0 .6rem; font-size: clamp(1rem, .85rem + .5vw, 1.2rem); color: var(--red-d); text-align: right; }
.page-hero .ur-line { color: var(--gold); }
.footer-tag-ur { margin-top: -4px; color: var(--gold); font-size: 1rem; width: fit-content; text-align: right; }
.ur-addr { display: block; width: fit-content; font-size: .95rem; color: var(--navy-2); text-align: right; margin-top: 2px; }
.ur-cta { margin: 26px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ur-cta p { margin: 0; font-size: 1.1rem; text-align: center; color: #fff; }
.ur-cta .btn .ur { line-height: 1.9; font-size: 1.02rem; }

/* ---------- Back to top (sits above the WhatsApp button) ---------- */
.to-top {
  position: fixed; z-index: 60;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: linear-gradient(120deg, var(--navy-2) 0%, var(--red) 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 10px 26px rgba(29,26,79,.28);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .25s, transform .25s, visibility .25s, box-shadow .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 14px 32px rgba(43,39,131,.45); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) {
  .to-top { right: calc(28px + env(safe-area-inset-right, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
body:has(.main-nav.open) .to-top { display: none; }
@media print { .to-top { display: none; } }
