/* Chawsax — "Clear Vision" theme
   Colours and type follow the developer brief. Edit tokens here only. */

:root {
  --navy: #17385f;
  --navy-deep: #102a48;
  --green: #25803c;
  --green-dark: #1d6a31;
  --green-soft: #b7e7bb;
  --ink: #142c45;
  --muted: #526374;
  --pale: #f3f6f4;
  --pale-2: #e4ece6;
  --line: #dfe7e2;
  --white: #fff;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 7vw, 88px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.65 var(--font);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(36px, 5.2vw, 62px); letter-spacing: -.04em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.025em; }
h3 { font-size: 21px; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Top bar & header ---------- */

.topbar { background: var(--navy); color: #dbe5ef; font-size: 12px; letter-spacing: .05em; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact { display: flex; gap: 22px; }
@media (max-width: 760px) { .topbar__contact { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e6ece8;
  backdrop-filter: saturate(1.4) blur(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 62px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.nav__list a:hover { background: var(--pale); }
.nav__list a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid #bfcfc5; border-radius: var(--radius);
  background: #fff; color: var(--navy); font: 600 15px var(--font); cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand img { height: 50px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(20, 44, 69, .35);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green); padding-left: 12px; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 12px 20px;
  border: 1px solid var(--green); border-radius: var(--radius);
  background: var(--green); color: #fff;
  font: 700 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--outline { background: transparent; color: var(--navy); border-color: #bfcfc5; }
.btn--outline:hover { background: var(--pale); border-color: var(--navy); color: var(--navy); }
.btn--light { background: transparent; color: #fff; border-color: #8196ac; }
.btn--light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn--small { min-height: 42px; padding: 10px 16px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link { color: var(--green-dark); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: " →"; }

/* ---------- Common blocks ---------- */

.eyebrow {
  margin: 0 0 14px; color: var(--green);
  font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 600px; }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--pale); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #d4dfe9; }
.section--navy .eyebrow { color: var(--green-soft); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-head h2 { margin: 0; }
.section-head > p { max-width: 380px; margin: 0; color: var(--muted); }
@media (max-width: 760px) { .section-head { display: block; } .section-head > p { margin-top: 14px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .split, .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.card p, .card li { color: var(--muted); font-size: 15.5px; }
.card ul { margin-bottom: 0; }
.card li + li { margin-top: 4px; }
.card .text-link { margin-top: auto; padding-top: 18px; font-size: 15px; }
.card__num { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.card h3 { margin-top: 14px; }
.card h3:first-child { margin-top: 0; }

.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 32px; }
.h3-size { font-size: 24px; }
a.card { text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: #a9c3b0; box-shadow: 0 14px 30px -20px rgba(20, 44, 69, .45); }
@media (prefers-reduced-motion: no-preference) { a.card:hover { transform: translateY(-2px); } }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li + li { margin-top: 8px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--pale-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2325803c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.detail { border-top: 1px solid #cfdcd2; padding: 18px 0; }
.detail:last-child { border-bottom: 1px solid #cfdcd2; }
.detail strong { display: block; color: var(--navy); font-size: 17px; }
.detail p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--pale-2); color: var(--navy); border-radius: 4px; padding: 8px 12px; font-size: 14px; font-weight: 600; }

.note {
  border-left: 4px solid var(--green); background: var(--pale);
  padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink); font-size: 15.5px;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- Home hero ---------- */

.hero { background: linear-gradient(110deg, #fff 52%, #f1f6f2 52%); }
.hero .container {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 7vw, 92px);
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero__panel {
  background: var(--navy); color: #fff; padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius); box-shadow: 16px 16px 0 #dfeadf;
}
.hero__panel .eyebrow { color: var(--green-soft); }
.hero__panel h2 { color: #fff; font-size: clamp(26px, 2.6vw, 32px); }
.track-list { list-style: none; margin: 22px 0 0; padding: 0; }
.track-list a {
  display: flex; gap: 18px; align-items: baseline;
  border-top: 1px solid #47617e; padding: 15px 0;
  color: #fff; text-decoration: none; font-weight: 700;
}
.track-list a:hover { color: var(--green-soft); }
.track-list span { color: #a9d9af; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
@media (max-width: 860px) {
  .hero { background: #f6f9f6; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__panel { box-shadow: none; }
}

.sector-strip { background: var(--navy-deep); color: #fff; font-size: 14px; }
.sector-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 20px; }
.sector-strip strong { letter-spacing: .12em; font-size: 12px; color: var(--green-soft); margin-right: auto; }
.sector-strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) { .sector-strip strong { width: 100%; } }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { background: linear-gradient(110deg, var(--pale) 62%, #e8f0ea 62%); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 820px; }
.page-hero .lead { max-width: 700px; margin-bottom: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9aaab8; }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 20px 22px 20px 74px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 22px; top: 20px;
  color: var(--green); font-weight: 800; font-size: 15px; letter-spacing: .06em;
}
.steps strong { display: block; color: var(--navy); }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Clients ---------- */

.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.client {
  display: grid; place-items: center; min-height: 120px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center;
}
.client img { max-height: 64px; width: auto; }
.client small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- CTA band ---------- */

.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; max-width: 620px; }
.cta-band .actions { margin-top: 0; }

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

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; color: var(--green-soft); }
.contact-list strong { display: block; color: #fff; }
.contact-list a { color: #fff; overflow-wrap: anywhere; }
.contact-list span { color: #d4dfe9; }

.contact-list--light li { border-top-color: var(--line); }
.contact-list--light svg { color: var(--green); }
.contact-list--light strong { color: var(--navy); }
.contact-list--light a { color: var(--ink); }
.contact-list--light span { color: var(--muted); }

/* ---------- Enquiry form ---------- */

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--navy); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #b9c7be; border-radius: var(--radius);
  background: #fff; color: var(--ink); font: 16px/1.4 var(--font);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid rgba(37, 128, 60, .25); outline-offset: 0; }
.field[hidden] { display: none; }
fieldset.training-fields { border: 1px dashed #b9c7be; border-radius: var(--radius); padding: 16px; margin: 0; }
fieldset.training-fields legend { padding: 0 6px; font-weight: 700; color: var(--green-dark); font-size: 14px; }
.form-error { color: #a12a2a; font-weight: 600; font-size: 15px; margin: 14px 0 0; }
.form-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* ---------- Prose (privacy etc.) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose p, .prose li { color: #2c4157; }

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

.site-footer { background: #0e2440; color: #c6d3e0; font-size: 15px; }
.site-footer .container { padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.01em; margin-bottom: 8px; }
.footer-brand span { color: #6cc07d; }
.site-footer h2 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #e3ebf3; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px;
}

/* ---------- Mobile quick actions ---------- */

.quick-actions { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .quick-actions {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px -14px rgba(20, 44, 69, .5);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quick-actions a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 60px; color: var(--navy); font-size: 12.5px; font-weight: 700; text-decoration: none;
  }
  .quick-actions a + a { border-left: 1px solid var(--line); }
  .quick-actions a:first-child { background: var(--green); color: #fff; }
  .quick-actions svg { width: 21px; height: 21px; }
}

@media print {
  .topbar, .site-header, .quick-actions, .site-footer, .actions { display: none !important; }
  body { padding: 0; }
}

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-2 { margin-bottom: 14px; }
