/* ============================================================
   Avermond — UK & EU Admissions
   Design system. Rebrand by find/replacing "Avermond" across the
   site and swapping assets/crest.svg. Colours live in :root below.
   ============================================================ */

:root {
  /* Brand palette (from crest logo) */
  --crimson-900: #6E0F1B;
  --crimson:     #8A1327;   /* primary */
  --crimson-600: #A31D30;
  --gold-deep:   #A6863F;
  --gold:        #C2A15A;
  --gold-soft:   #DFCB95;

  /* Paper / ink */
  --cream:   #FBF6EC;   /* page background */
  --cream-2: #F4EBDA;   /* alt sections */
  --paper:   #FFFFFF;
  --ink:     #241C18;   /* headings / body */
  --ink-soft:#5B5049;   /* secondary text */
  --ink-mute:#8A7F76;   /* meta */

  --rule: rgba(166, 134, 63, 0.30);      /* gold hairline */
  --rule-strong: rgba(166, 134, 63, 0.55);
  --shadow: 0 1px 2px rgba(36,28,24,.05), 0 8px 30px rgba(36,28,24,.07);
  --shadow-lg: 0 20px 50px rgba(36,28,24,.14);

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 4px;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin: .35rem 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--cream-2); }
.section--ink { background: var(--crimson-900); color: #F3E7D6; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 1rem;
}
.section--ink .eyebrow { color: var(--gold-soft); }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.center { text-align: center; }
.measure { max-width: 68ch; margin-inline: auto; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--crimson); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--crimson-600); }
.btn--ghost { background: transparent; color: var(--crimson); border-color: var(--rule-strong); }
.btn--ghost:hover { background: rgba(138,19,39,.05); }
.btn--gold { background: var(--gold); color: #3a2c10; }
.btn--gold:hover { background: var(--gold-soft); }
.btn--wa { background: #25D366; color: #06331b; }
.btn--wa:hover { background: #3ce07a; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: .32rem .7rem; border-radius: 100px;
  background: rgba(194,161,90,.16); color: var(--gold-deep);
  border: 1px solid var(--rule);
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,236,.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  color: var(--crimson); letter-spacing: .01em; line-height: 1;
}
.brand__sub { display: block; font-family: var(--sans); font-size: .58rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-top: 2px; }

.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink); font-size: .95rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: var(--radius); display: inline-block;
}
.nav__links a:hover { color: var(--crimson); background: rgba(166,134,63,.08); text-decoration: none; }
.nav__links .btn { color: #fff; }
.nav__links .btn:hover { color: #fff; }

/* dropdown */
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .4rem; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: .16s ease; list-style: none; margin: 0;
}
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: block; padding: .55rem .7rem; border-radius: 3px; font-size: .93rem; }
.menu a small { display:block; color: var(--ink-mute); font-size: .76rem; font-weight: 400; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 61px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--rule); padding: 1rem;
    gap: .2rem; transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: none; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 1rem; }
  .has-menu { border-bottom: 1px solid var(--rule); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(1200px 500px at 80% -10%, rgba(194,161,90,.18), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--cream-2)); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.25rem; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); }
.stat { }
.stat__num { font-family: var(--serif); font-size: 2rem; color: var(--crimson); line-height: 1; }
.stat__label { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }
.hero__crest { display: grid; place-items: center; }
.hero__crest svg { width: min(320px, 78%); filter: drop-shadow(0 18px 30px rgba(110,15,27,.18)); }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__crest { order: -1; }
  .hero__crest svg { width: 180px; }
}

/* ============================================================
   Cards / grids
   ============================================================ */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__ico { width: 40px; height: 40px; color: var(--crimson); margin-bottom: .9rem; }
.card h3 { margin-bottom: .35rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card__price { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--crimson); font-family: var(--serif); font-size: 1.05rem; }
.card__link { margin-top: 1rem; font-weight: 600; font-size: .92rem; }
.card--feature { border-top: 3px solid var(--gold); }

/* number-tag list (process steps) */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  counter-increment: s; content: counter(s);
  font-family: var(--serif); font-weight: 600; color: var(--crimson);
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--gold); border-radius: 50%; background: var(--paper);
}
.steps h4 { margin: .3rem 0 .2rem; font-family: var(--sans); font-size: 1.02rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* independence / trust panel */
.pledge { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
@media (max-width: 760px){ .pledge { grid-template-columns: 1fr; } }
.pledge__item { padding-left: 1rem; border-left: 2px solid var(--gold); }
.pledge__item h4 { font-family: var(--sans); font-size: 1rem; margin: 0 0 .3rem; }
.pledge__item p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

/* pricing table */
.ptable { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .96rem; }
.ptable th, .ptable td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--rule); }
.ptable thead th { background: var(--crimson-900); color: #F3E7D6; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: rgba(194,161,90,.07); }
.ptable .price { font-family: var(--serif); font-weight: 600; color: var(--crimson); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* destination cards */
.dest { position: relative; display: block; padding: 1.5rem 1.5rem 1.4rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: .15s ease; text-decoration: none; color: var(--ink); }
.dest:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; border-color: var(--rule-strong); }
.dest__flag { font-size: 1.8rem; line-height: 1; }
.dest h3 { margin: .7rem 0 .2rem; color: var(--crimson); }
.dest p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.dest__tag { margin-top: .8rem; font-size: .78rem; color: var(--gold-deep); font-weight: 700; letter-spacing: .04em; }

/* fact box on country pages */
.factbox { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--crimson);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); }
.factbox dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; margin: 0; }
.factbox dt { font-weight: 600; color: var(--ink); }
.factbox dd { margin: 0; color: var(--ink-soft); }

/* quote */
.quote { font-family: var(--serif); font-size: clamp(1.3rem,2.6vw,1.9rem); line-height: 1.4;
  color: var(--ink); max-width: 30ch; }
.quote__mark { color: var(--gold); font-size: 2.4em; line-height: 0; vertical-align: -.35em; margin-right: .1em; }

/* GCSE distinct accent — Avermond Learning (forest green) */
.gcse-accent { --crimson: #14432E; --crimson-600: #1C5C40; --crimson-900: #0F2E20; }

/* Test-prep distinct accent — Avermond Test Prep (matte professional blue) */
.lang-accent { --crimson: #234B6E; --crimson-600: #2E5D88; --crimson-900: #16324A; }

/* ============================================================
   Lead capture
   ============================================================ */
.capture { background:
    radial-gradient(900px 400px at 15% 120%, rgba(194,161,90,.22), transparent 55%),
    var(--crimson-900); color: #F3E7D6; }
.capture h2 { color: #fff; }
.capture .lead { color: #EAD9BF; }
.form-card { background: var(--paper); color: var(--ink); border-radius: 6px; padding: clamp(1.4rem,3vw,2.2rem); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: .95rem;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: var(--cream);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); background: #fff; }
.form-note { font-size: .8rem; color: var(--ink-mute); margin-top: .8rem; }
.form-ok { display: none; padding: 1rem; background: rgba(20,67,46,.1); border: 1px solid #14432E; border-radius: var(--radius); color: #14432E; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #201713; color: #C9BCA9; font-size: .92rem; }
.site-footer a { color: #E7D8BF; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; padding-block: 3.2rem; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .4rem 0; }
.footer-brand__name { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.footer-legal { border-top: 1px solid rgba(233,216,191,.15); padding-block: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .82rem; color: #9C8E7C; }

/* ============================================================
   Founder proof
   ============================================================ */
.founder-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.7rem; }
.founder-head { display: flex; gap: 1.1rem; align-items: center; }
.avatar { width: 88px; height: 88px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--crimson-600), var(--crimson-900));
  border: 2px solid var(--gold); box-shadow: var(--shadow); overflow: hidden; }
.avatar svg { width: 46px; height: 46px; color: var(--gold-soft); }
.founder-head h3 { margin: 0; }
.founder-role { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold-deep); font-weight: 700; margin: .25rem 0 .4rem; }
.verified-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--gold-deep); }
.checklist { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.checklist li { position: relative; padding-left: 1.5rem; margin: .45rem 0; font-size: .95rem; color: var(--ink-soft); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-deep); font-weight: 700; }
.verify-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.verify-row a { font-size: .8rem; font-weight: 600; padding: .32rem .75rem; border: 1px solid var(--rule-strong);
  border-radius: 100px; color: var(--crimson); }
.verify-row a:hover { background: rgba(138,19,39,.05); text-decoration: none; }
.ph-note { font-size: .8rem; color: var(--ink-mute); font-style: italic; }

/* compact founder strip (homepage) */
.founder-strip { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.5rem; }
.founder-strip__faces { display: flex; flex: none; }
.avatar--sm { width: 54px; height: 54px; border-width: 2px; box-shadow: 0 0 0 3px var(--paper); }
.avatar--sm:not(:first-child) { margin-left: -18px; }
.avatar--sm svg { width: 27px; height: 27px; }
.founder-strip__text { flex: 1 1 320px; }
.founder-strip__text p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.founder-strip__text strong { color: var(--ink); }

/* ============================================================
   Mock-test runner (Test Prep)
   ============================================================ */
.mock-card { position: relative; text-align: left; cursor: pointer; font: inherit; width: 100%;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem; display: flex; flex-direction: column;
  gap: .5rem; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.mock-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--rule-strong); }
.mock-card__num { font-family: var(--serif); font-size: 1.5rem; color: var(--crimson); line-height: 1; }
.mock-card__meta { font-size: .86rem; color: var(--ink-soft); }
.mock-card__go { margin-top: .4rem; font-size: .85rem; font-weight: 600; color: var(--crimson); }

/* locked (subscription) mock cards — premium amber tone + faint lock */
.mock-card--locked { background: linear-gradient(180deg, var(--paper), #F5ECD9); border-color: var(--rule-strong); }
.mock-card--locked .mock-card__num { color: var(--gold-deep); }
.mock-card--locked .mock-card__meta { color: var(--ink-mute); }
.mock-card--locked .mock-card__go { color: var(--gold-deep); }
.mock-lock { position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px;
  color: var(--gold-deep); opacity: .4; pointer-events: none; }
.mock-card--locked:hover .mock-lock { opacity: .7; }

/* completed mock — green shine */
.mock-card--done { border-color: #2e8b57;
  background: linear-gradient(180deg, #ffffff, #eefaf1);
  box-shadow: 0 0 0 1.5px rgba(46,139,87,.35), 0 6px 22px rgba(46,139,87,.28); }
.mock-card--done:hover { box-shadow: 0 0 0 1.5px rgba(46,139,87,.5), 0 12px 30px rgba(46,139,87,.38); }
.mock-card--done .mock-card__num { color: #1c6b41; }
.mock-card--done::after { content: "✓"; position: absolute; top: .9rem; right: 1.1rem;
  width: 24px; height: 24px; border-radius: 50%; background: #2e8b57; color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

.seg { display: flex; flex-wrap: wrap; gap: .45rem; border-bottom: 1px solid var(--rule);
  padding-bottom: .8rem; margin-bottom: 1.6rem; }
.seg button { font: inherit; font-weight: 600; font-size: .95rem; padding: .55rem 1rem;
  border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink);
  border-radius: 100px; cursor: pointer; transition: background .12s ease, color .12s ease; }
.seg button:hover { background: rgba(35,75,110,.07); }
.seg button[aria-selected="true"] { background: var(--crimson); color: #fff; border-color: var(--crimson); }

.section-panel { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--crimson);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1.8rem; }
.back-link { background: none; border: 0; font: inherit; font-weight: 600; color: var(--crimson);
  cursor: pointer; padding: 0; margin-bottom: 1rem; }
.back-link:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* login-gated teaser (blurred preview + unlock overlay) */
.locked-wrap { position: relative; overflow: hidden; border-radius: 8px; }
.locked-wrap > .locked-preview { filter: blur(4px) saturate(.75); opacity: .6; pointer-events: none; user-select: none; }
.locked-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem;
  background: linear-gradient(180deg, rgba(251,246,236,.15), rgba(251,246,236,.5)); }
.locked-overlay__card { background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 1.6rem 1.8rem; text-align: center; max-width: 440px; }
.locked-overlay__lock { width: 52px; height: 52px; border-radius: 50%; background: rgba(35,75,110,.12);
  color: #234B6E; display: grid; place-items: center; margin: 0 auto .9rem; }

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-mute { color: var(--ink-soft); }
.badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.anim { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.anim.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .anim { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }
