/* 30-3 website styles - Brand System v2.0 (October 2026)
   Layout: white page, left-aligned column, Warm Cream only for the few panels that need setting off. */
:root {
  --midnight: #0F2D46;
  --terracotta: #D3542B;
  --mustard: #D1A027;
  --stone: #B7ADA1;
  --cream: #F8F6F1;
  --white: #FFFFFF;
  --slate: #5F6B76;
  --hairline: #E4DED5;
  --font: "Aptos", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--midnight);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 20px; } }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--midnight); color: var(--white); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--hairline); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; flex-wrap: wrap; padding-block: 16px;
}
.logo { display: block; padding: 14px 0; }
.logo img { width: 180px; }
.nav { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--stone); }
.nav a[aria-current="page"] { border-bottom-color: var(--terracotta); }
@media (max-width: 640px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 8px 16px; }
  .nav { gap: 6px 22px; }
}

/* ---------- Type helpers ---------- */
.label {
  display: block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--terracotta);
}
.rule { width: 56px; height: 4px; background: var(--terracotta); margin-bottom: 28px; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); line-height: 1.08; letter-spacing: -0.01em; margin: 14px 0 22px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.15; letter-spacing: -0.005em; margin: 10px 0 14px; }
h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 8px; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.muted { color: var(--slate); }
.accent { color: var(--terracotta); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border: 2px solid var(--midnight); border-radius: 2px;
  background: var(--midnight); color: var(--white);
}
.btn:hover { background: #17405f; border-color: #17405f; }
.btn.secondary { background: transparent; color: var(--midnight); }
.btn.secondary:hover { background: var(--cream); }

/* ---------- Sections ---------- */
.hero { padding-block: 72px 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: end; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-block: 48px; } }

.section { padding-block: 72px; border-top: 1px solid var(--hairline); }
@media (max-width: 640px) { .section { padding-block: 52px; } }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head p { font-size: 1.1rem; }

.panel { background: var(--cream); padding: 32px; }
@media (max-width: 480px) { .panel { padding: 24px 20px; } }

/* Stats */
.stats { display: grid; gap: 0; }
.stat { display: grid; gap: 6px; padding-block: 16px; border-top: 1px solid var(--hairline); }
.stat:first-child { border-top: 0; padding-top: 0; }
.stat:last-child { padding-bottom: 0; }
.stat b { font-size: 2.1rem; line-height: 1; color: var(--terracotta); font-variant-numeric: tabular-nums; }

/* Generic column grids */
.cols { display: grid; gap: 40px 48px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; gap: 32px; } }

.item { border-top: 2px solid var(--midnight); padding-top: 18px; min-width: 0; }
.item .num { display: block; font-weight: 700; font-size: 14px; color: var(--terracotta); margin-bottom: 10px; font-variant-numeric: tabular-nums; }

/* People / Perspective / Progress */
.ppp .word { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 10px; display: block; }
.ppp p { font-size: 1.2rem; line-height: 1.45; }

/* 3x3 grid */
.grid9 { display: grid; grid-template-columns: minmax(170px, 1.15fr) repeat(3, minmax(0, 1fr)); gap: 4px; }
.g-head { background: var(--midnight); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 16px; }
.g-pillar { padding: 18px 20px 18px 0; min-width: 0; }
.g-pillar h3 { margin-bottom: 4px; }
.g-pillar p { font-size: 15px; color: var(--slate); line-height: 1.45; }
.g-cell { background: var(--cream); padding: 18px 16px; font-size: 16px; line-height: 1.4; min-width: 0; }
.g-cell .lvl { display: none; }
@media (max-width: 760px) {
  .grid9 { grid-template-columns: 1fr; gap: 4px; }
  .g-head { display: none; }
  .g-pillar { padding: 24px 0 8px; }
  .g-cell .lvl { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 2px; }
}

/* Tag list */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--hairline); padding: 6px 12px; font-size: 15px; }

/* CTA */
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.cta .actions { margin-top: 0; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* Founders */
.founder h2 { font-size: 1.6rem; margin: 0 0 4px; }
.founder .role { font-weight: 700; color: var(--terracotta); font-size: 15px; margin-bottom: 20px; }
.creds { margin-top: 20px; border-top: 1px solid var(--hairline); }
.creds li { padding-block: 10px; border-bottom: 1px solid var(--hairline); font-size: 15px; }

/* Service lines */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 48px; padding-block: 36px; border-top: 1px solid var(--hairline); }
.service:first-of-type { border-top: 2px solid var(--midnight); }
.service h3 { font-size: 1.5rem; }
.service ul li { padding-left: 18px; position: relative; margin-bottom: 6px; }
.service ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* Programmes */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px 48px; padding-block: 32px; border-top: 1px solid var(--hairline); }
.stage > .label { color: var(--midnight); padding-top: 4px; }
.progs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prog { background: var(--cream); padding: 22px 24px; min-width: 0; }
.prog h3 { margin-bottom: 6px; }
.prog .meta { font-size: 14px; color: var(--slate); margin-bottom: 10px; }
.prog p { font-size: 16px; line-height: 1.5; }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .progs { grid-template-columns: 1fr; } }

/* Steps (real sequences) */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { border-top: 2px solid var(--midnight); padding-top: 16px; min-width: 0; }
.step .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--midnight); color: var(--white); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.step p { font-size: 15px; line-height: 1.5; }
.step .q { font-weight: 700; margin-bottom: 6px; }
@media (max-width: 960px) { .steps, .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps, .steps.four { grid-template-columns: 1fr; } }
.horizons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; align-items: center; }
.horizons span { background: var(--cream); padding: 6px 12px; font-size: 15px; }
.horizons .label { background: none; padding: 0 8px 0 0; color: var(--midnight); }

/* Contact */
.contact-line { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
.contact-line a { text-decoration-color: var(--terracotta); text-underline-offset: 6px; }
.dl { display: grid; gap: 20px; }
.dl div { border-top: 1px solid var(--hairline); padding-top: 14px; }
.dl dt { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.dl dd { margin: 0; }
.checklist li { padding: 12px 0 12px 30px; border-top: 1px solid var(--hairline); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 14px; height: 2px; background: var(--terracotta); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--terracotta); padding-block: 48px 32px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.foot .mark { width: 56px; margin-bottom: 14px; }
.foot .name { font-weight: 700; margin-bottom: 6px; }
.brandline { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 16px; }
.foot h2 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin: 0 0 12px; }
.foot li { margin-bottom: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--slate); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* ---------- Home hero logo ---------- */
.hero-logo { display: flex; justify-content: center; align-items: center; }
.hero-logo img { width: 100%; max-width: 380px; }
@media (max-width: 860px) { .hero-logo { justify-content: flex-start; } .hero-logo img { max-width: 260px; } }

/* Section heading with brand mark */
.section-head.with-mark { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.section-head.with-mark h2 { margin: 0; }
.section-mark { width: 96px; flex: none; }
@media (max-width: 640px) { .section-mark { width: 64px; } }

/* ---------- Enquiry form ---------- */
.form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--midnight);
  background: var(--white); border: 1px solid var(--stone); border-radius: 2px; padding: 11px 12px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--terracotta); outline-offset: 0; border-color: var(--terracotta); }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--terracotta); background: var(--white); font-size: 15px; }
#enquiry { scroll-margin-top: 24px; }
