/* ==========================================================================
   ASJ Consultancy — website styles
   ========================================================================== */

:root {
  color-scheme: light;

  --navy: #14243A;
  --navy-2: #1F3452;
  --ivory: #F8F6F0;
  --ivory-2: #F1EDE3;
  --gold: #C9A55A;
  --gold-ink: #7A5A1A;
  --charcoal: #252A31;
  --muted: #555C69;
  --line: #DDD7CA;
  --line-dark: rgba(248, 246, 240, 0.18);
  --white: #FFFFFF;
  --error: #A3382B;
  --error-soft: #FBEDEA;
  --focus: #2C6BD6;

  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-h1: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);

  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  --radius: 4px;
  --w-page: 1180px;
  --gutter: 20px;
  --header-h: 76px;
  --section-y: clamp(56px, 36px + 5vw, 112px);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 88px; } }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 72px); }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--navy); color: var(--ivory); padding: var(--s-2) var(--s-4); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--s-3); }

.container { width: 100%; max-width: var(--w-page); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--ivory-2); }
.section-dark { background: var(--navy); color: var(--ivory); border-top: 0 !important; }
.section-dark + .section { border-top: 0; }

/* ---------- Type ---------- */

h1, .h1 { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -0.01em; color: var(--navy); }
.h2 { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -0.005em; color: var(--navy); }
.h3 { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; color: var(--navy); }
.section-dark .h2, .section-dark .h3 { color: var(--ivory); }
.label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.section-dark .label { color: var(--gold); }
.lede { font-size: var(--fs-md); line-height: 1.6; color: var(--muted); max-width: 40em; }
.section-dark .lede, .section-dark p { color: rgba(248, 246, 240, 0.82); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.prose { display: grid; gap: var(--s-4); align-content: start; max-width: 40em; }

.head { display: grid; gap: var(--s-4); align-content: start; margin-bottom: var(--s-10); max-width: 44rem; }
.two-col { display: grid; gap: var(--s-8); }
@media (min-width: 960px) {
  .two-col { grid-template-columns: 5fr 7fr; gap: var(--s-16); }
  .two-col > .head { margin-bottom: 0; }
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-6); border-radius: var(--radius);
  border: 1.5px solid var(--navy); background: var(--navy); color: var(--ivory);
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--ivory); }
.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }
.btn-light:hover { background: var(--white); border-color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 var(--s-5); font-size: var(--fs-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--navy); }
.section-dark .link { color: var(--ivory); }
.section-dark .link:hover { text-decoration-color: var(--ivory); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; flex: none; }
.logo-crown { width: 36px; }
.logo-word { width: 164px; }
@media (max-width: 380px) { .logo-word { width: 136px; } .logo-crown { width: 30px; } }

.nav-menu { display: flex; align-items: center; gap: var(--s-6); }
.nav-menu a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent;
  font-weight: 500; font-size: 0.9375rem; color: var(--charcoal); text-decoration: none;
}
.nav-menu a:not(.btn):hover { color: var(--navy); border-bottom-color: var(--line); }
.nav-menu a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--navy); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
    border: 1.5px solid var(--navy); border-radius: var(--radius); background: transparent;
    font-weight: 600; font-size: var(--fs-sm); color: var(--navy);
  }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-8); background: var(--ivory); border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a:not(.btn) { min-height: 56px; font-size: var(--fs-md); border-bottom: 1px solid var(--line); }
  .nav-menu a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--navy); padding-left: var(--s-3); }
  .nav-cta { margin-top: var(--s-6); }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 24px + 4vw, 88px) 0 var(--section-y); }
.hero-grid { display: grid; gap: var(--s-10); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--s-16); } }
.hero-copy { display: grid; gap: var(--s-6); justify-items: start; }
.hero-note { font-size: var(--fs-sm); color: var(--muted); max-width: 34em; }

.page-hero { padding: clamp(40px, 24px + 4vw, 88px) 0 clamp(32px, 20px + 3vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero .hero-copy > * { max-width: 46rem; }

.photo { display: grid; gap: var(--s-3); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 28%; border-radius: var(--radius); }
.photo figcaption { font-size: var(--fs-sm); color: var(--muted); }
.photo figcaption b { color: var(--charcoal); font-weight: 600; }
@media (max-width: 959px) { .hero .photo { max-width: 420px; } }

/* ---------- Lists & rows ---------- */

.points { display: grid; gap: var(--s-5); max-width: 40em; }
.points li { padding-left: var(--s-6); position: relative; }
.points li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; background: var(--gold); }
.points strong { color: var(--navy); }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: var(--s-2) var(--s-8); padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.row h3 { font-family: var(--font-serif); font-weight: 600; font-size: var(--fs-h3); line-height: 1.3; color: var(--navy); }
.row p { color: var(--muted); }
.row .link { justify-self: start; white-space: nowrap; }
@media (min-width: 860px) {
  .row { grid-template-columns: 4fr 7fr; align-items: baseline; }
  .rows-link .row { grid-template-columns: 4fr 6fr 2fr; }
  .rows-link .row .link { justify-self: end; }
}
.section-dark .rows, .section-dark .row { border-color: var(--line-dark); }
.section-dark .row h3 { color: var(--ivory); }
.section-dark .row p { color: rgba(248, 246, 240, 0.78); }

.dark-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-10); }
.dark-foot p { max-width: 36em; }

.columns { display: grid; gap: var(--s-6) var(--s-8); }
@media (min-width: 640px) { .columns { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .columns-3 { grid-template-columns: repeat(3, 1fr); } .columns-4 { grid-template-columns: repeat(4, 1fr); } }
.columns > div { border-top: 2px solid var(--navy); padding-top: var(--s-4); }
.columns > div > :first-child { margin-bottom: var(--s-2); }
.columns h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.125rem; color: var(--navy); margin-bottom: var(--s-2); }
.columns p { color: var(--muted); font-size: 1rem; }

.plain-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .plain-list { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }
.plain-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--navy); }

/* ---------- Founder & quote ---------- */

.founder { display: grid; gap: var(--s-10); align-items: start; }
@media (min-width: 900px) { .founder { grid-template-columns: 5fr 7fr; gap: var(--s-16); } }
.founder .photo { max-width: 440px; }
.role { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: calc(var(--s-2) * -1); }
.quote { padding-left: var(--s-6); border-left: 3px solid var(--gold); max-width: 36em; }
.quote p { font-family: var(--font-serif); font-size: 1.375rem; line-height: 1.45; color: var(--navy); }
.quote cite { display: block; margin-top: var(--s-3); font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }

/* ---------- CTA box ---------- */

.cta-box {
  display: grid; gap: var(--s-6); align-items: center;
  padding: clamp(28px, 20px + 3vw, 56px); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius);
}
@media (min-width: 900px) { .cta-box { grid-template-columns: 1fr auto; gap: var(--s-12); } }
.cta-box p { color: var(--muted); max-width: 40em; margin-top: var(--s-3); }

/* ---------- Programmes ---------- */

.subnav { position: sticky; top: var(--header-h); z-index: 30; background: var(--ivory); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: var(--s-6); overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 52px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--navy); border-bottom-color: var(--navy); }

.programme { display: grid; gap: var(--s-8); padding: var(--s-12) 0; border-top: 1px solid var(--line); }
.programme:first-child { border-top: 0; padding-top: 0; }
.programme:last-child { padding-bottom: 0; }
@media (min-width: 960px) { .programme { grid-template-columns: 5fr 7fr; gap: var(--s-16); } }
.programme-intro { display: grid; gap: var(--s-4); align-content: start; justify-items: start; }
.status { font-size: var(--fs-sm); font-weight: 600; color: var(--gold-ink); }
.details { display: grid; gap: var(--s-6); }
.details dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); }
.details dd { color: var(--charcoal); }
.details dd + dt { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.bullets { display: grid; gap: var(--s-2); }
.bullets li { position: relative; padding-left: var(--s-5); }
.bullets li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; background: var(--navy); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 64px; padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-base); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '\2212'; }
.faq-body { padding: 0 var(--s-10) var(--s-6) 0; color: var(--muted); }
.faq-body a { color: var(--navy); font-weight: 600; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: var(--s-10); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 4fr; gap: var(--s-16); } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 16px + 2vw, 44px); }
.form { display: grid; gap: var(--s-5); }
.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field-label { font-weight: 600; font-size: var(--fs-sm); color: var(--charcoal); }
.field-label .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: var(--s-3) var(--s-4);
  background: var(--white); border: 1px solid #B9B2A3; border-radius: var(--radius);
  font-size: 1rem; line-height: 1.5; color: var(--charcoal);
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: var(--s-12);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%2314243A' stroke-width='2'/%3E%3C/svg%3E") right 16px center no-repeat;
}
.textarea { min-height: 160px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #858B95; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(44, 107, 214, 0.25); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: var(--fs-sm); font-weight: 600; }
.field-error:empty { display: none; }

.choice-group { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.choice-group legend { padding: 0; margin-bottom: var(--s-2); }
.choice-group .opts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.radio { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; }
.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.form-status { padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-weight: 600; font-size: var(--fs-sm); }
.form-status.is-error { background: var(--error-soft); color: var(--error); }
.form-success { display: grid; gap: var(--s-4); justify-items: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.aside { display: grid; gap: var(--s-8); }
.aside-block { display: grid; gap: var(--s-3); justify-items: start; padding-top: var(--s-5); border-top: 2px solid var(--navy); }
.aside-block p { color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: rgba(248, 246, 240, 0.8); padding: var(--s-16) 0 var(--s-8); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: var(--s-10); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-8); } }
.footer-brand { display: grid; gap: var(--s-4); max-width: 22rem; align-content: start; }
.footer-brand img { width: 180px; }
.footer-col h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s-3); }
.footer-col ul { display: grid; gap: var(--s-2); }
.footer-col a { text-decoration: none; color: rgba(248, 246, 240, 0.88); }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--line-dark); font-size: var(--fs-sm); color: rgba(248, 246, 240, 0.6); }

@media print {
  .site-header, .subnav { display: none !important; }
}
