/* =========================================================
   Ashford Education Group - main stylesheet
   To change the brand colours, edit the values just below.
   ========================================================= */
:root {
  --green: #0e3b32;
  --green-2: #15524a;
  --slate: #33414e;
  --lime: #c7d96b;
  --lime-dark: #5d6b12;
  --bg: #f3f5f4;
  --white: #ffffff;
  --line: #d9dfdc;
  --text: #17211f;
  --muted: #55625f;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green-2); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.02em; color: var(--green); }
h1 { font-size: clamp(2.2rem, 6.5vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--green); color: var(--white); padding: 8px 12px; z-index: 100; }

.kicker { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-2); margin-bottom: 1rem; }
.kicker::before { content: ""; width: 24px; height: 4px; background: var(--lime); }
.lead { font-size: 1.2rem; color: var(--slate); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.9rem 1.5rem; border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-2); color: var(--white); }
.btn-lime { background: var(--lime); color: var(--green); }
.btn-lime:hover { background: #d6e682; color: var(--green); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
.arrow::after { content: " \2192"; }

/* ---------- Utility bar and header ---------- */
.topbar { background: var(--green); color: #c9d6d2; font-size: 0.85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar span + span::before { content: "|"; margin: 0 10px; opacity: 0.4; }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); 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: 12px; text-decoration: none; color: var(--green); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-name small { display: block; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-toggle { display: none; background: var(--green); border: 0; border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; color: var(--white); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; text-decoration: none; color: var(--slate); font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; padding: 10px 14px; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--green); }
.site-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--lime); }
.site-nav .btn { margin-left: 10px; padding: 0.7rem 1.2rem; color: var(--white); border-bottom: 2px solid transparent; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--white); border-bottom: 4px solid var(--lime); padding: 8px 20px 24px; }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--lime); padding-left: 14px; }
  .site-nav .btn { margin: 18px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { background: var(--green); color: #dbe5e1; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-top: 88px; padding-bottom: 88px; align-items: end; }
.hero h1 { color: var(--white); }
.hero h1 span { color: var(--lime); }
.hero .lead { color: #c9d6d2; }
.hero .kicker { color: var(--lime); }
.hero-panel { background: var(--white); color: var(--text); padding: 28px; border-top: 6px solid var(--lime); }
.hero-panel h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero-panel ol { list-style: none; margin: 0; padding: 0; }
.hero-panel li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.hero-panel li:first-child { border-top: 0; padding-top: 0; }
.hero-panel .code { font-family: var(--font-head); font-weight: 700; color: var(--green-2); min-width: 28px; }
.hero-panel strong { display: block; font-family: var(--font-head); color: var(--green); }
.hero-panel span.d { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; padding-bottom: 56px; } }

.page-hero { background: var(--green); color: #c9d6d2; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 56px 56px; }
.page-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5.5vw, 3.2rem); max-width: 18em; }
.page-hero .lead { color: #c9d6d2; }
.page-hero .kicker { color: var(--lime); }
.breadcrumb { font-size: 0.85rem; margin-bottom: 18px; color: #9fb3ad; }
.breadcrumb a { color: #c9d6d2; }
@media (max-width: 640px) { .page-hero .wrap { padding-top: 44px; padding-bottom: 44px; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-grey { background: var(--bg); }
.section-slate { background: var(--slate); color: #d7dee3; }
.section-slate h2, .section-slate h3 { color: var(--white); }
.section-slate .kicker { color: var(--lime); }
.section-head { max-width: 44em; margin-bottom: 2.75rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 2.75rem; }
.section-head-row .section-head { margin: 0; }
@media (max-width: 760px) { .section { padding: 56px 0; } }

/* ---------- Card grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--white); padding: 32px 28px; display: flex; flex-direction: column; }
.card .icon { width: 48px; height: 48px; background: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); }
.card a { margin-top: auto; font-family: var(--font-head); font-weight: 600; text-decoration: none; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card { padding: 26px 22px; } }

/* ---------- Divisions ---------- */
.divisions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.division { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--green); padding: 30px 28px; }
.division.future { border-top-color: var(--line); background: transparent; border-style: dashed; border-top-style: solid; }
.division .label { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime-dark); margin-bottom: 10px; display: block; }
.division p { color: var(--muted); }
@media (max-width: 900px) { .divisions { grid-template-columns: 1fr; } }

/* ---------- Split with numbered principles ---------- */
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.section-slate .principles li { border-top-color: rgba(255,255,255,0.15); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--green-2); }
.section-slate .principles li::before { color: var(--lime); }
.principles h3 { margin-bottom: 0.3em; }
.principles p { margin: 0; color: var(--muted); }
.section-slate .principles p { color: #c3ccd3; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.process li { list-style: none; counter-increment: s; padding: 0 24px 0 0; position: relative; }
.process li::before { content: counter(s); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--lime); color: var(--green); font-family: var(--font-head); font-weight: 700; margin-bottom: 18px; position: relative; z-index: 1; }
.process li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--line); }
.process li:last-child::after { display: none; }
.process p { color: var(--muted); font-size: 0.97rem; }
.process { padding: 0; margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 24px; }
  .process li { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding: 0; }
  .process li::before { margin: 0; grid-row: span 2; }
  .process li::after { display: none; }
}

/* ---------- Programme table (rows) ---------- */
.prog-table { border-top: 3px solid var(--green); }
.prog-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.prog-row h3 { margin-bottom: 0.3em; }
.prog-row .lbl { display: block; font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.prog-row p { margin: 0 0 12px; font-size: 0.97rem; }
.prog-row .fee { font-family: var(--font-head); font-weight: 700; color: var(--green); }
.prog-row .btn { padding: 0.6rem 1rem; font-size: 0.92rem; }
.prog-head { display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr 1fr; gap: 28px; padding: 12px 0; font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.prog-row .lbl.m { display: none; }
@media (max-width: 900px) {
  .prog-head { display: none; }
  .prog-row { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .prog-row .lbl.m { display: block; margin-top: 8px; }
}

/* ---------- Lists ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; background: var(--lime); }
.checklist li::after { content: ""; position: absolute; left: 6px; top: calc(0.3em + 4px); width: 6px; height: 10px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }
.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

/* ---------- Placeholder profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.profile { border: 1px dashed #a9b6b1; padding: 24px; background: var(--white); }
.profile .initials { width: 56px; height: 56px; background: var(--bg); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
@media (max-width: 900px) { .profiles { grid-template-columns: 1fr; } }

/* ---------- CTA strip ---------- */
.cta { background: var(--lime); }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.cta h2 { margin: 0 0 0.25em; }
.cta p { margin: 0; color: var(--green); }
.cta .btn-row { margin: 0; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; gap: 36px; } }
.form { background: var(--bg); border-top: 6px solid var(--green); padding: 36px; }
@media (max-width: 640px) { .form { padding: 24px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--green); }
.field .hint { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #b9c4c0; border-radius: var(--radius); background: var(--white); color: var(--text); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(199, 217, 107, 0.7); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.checks label { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 400; color: var(--text); margin: 0; }
.checks input { width: 18px; height: 18px; accent-color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; padding: 14px 16px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #e3f0d0; color: #2c3a07; }
.form-status.err { background: #f6e1dc; color: #7a2512; }
.form .btn { width: 100%; }
@media (min-width: 641px) { .form .btn { width: auto; } }

.info-block { border-left: 4px solid var(--lime); padding: 4px 0 4px 22px; margin-bottom: 28px; }
.info-block dl { margin: 0; display: grid; gap: 18px; }
.info-block dt { font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.info-block dd { margin: 4px 0 0; font-size: 1.05rem; }

.notice { background: var(--bg); border-left: 4px solid var(--green); padding: 20px 24px; }
.notice p:last-child { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a2b25; color: #b7c6c1; padding: 64px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #b7c6c1; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.footer-brand svg { width: 36px; height: 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: #8ea39d; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Keeps headings visible below the sticky header when jumping to a section */
[id] { scroll-margin-top: 90px; }
@media (max-width: 640px) { .topbar .hide-sm + span::before { content: none; } }

/* ---------- Seal and motto ---------- */
.hero-seal { width: 104px; margin-bottom: 26px; }
.hero-seal svg { width: 100%; }
.seal-wrap svg { width: 100%; max-width: 300px; margin: 0 auto; }
.footer-motto { font-family: var(--font-head); color: var(--lime); font-size: 0.9rem; letter-spacing: 0.04em; }
@media (max-width: 640px) { .hero-seal { width: 84px; } .seal-wrap svg { max-width: 220px; } }
.hero .wrap:has(.hero-seal-big) { align-items: center; }
.hero-seal-big { text-align: center; }
.hero-seal-big svg { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255,255,255,0.06), 0 0 0 11px rgba(199,217,107,0.35); }
.hero-seal-big p { margin: 22px 0 0; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime); font-size: 0.85rem; }
@media (max-width: 900px) { .hero-seal-big svg { max-width: 220px; } .hero-seal-big { order: -1; } }
