@import url("../fonts/fonts.css");

/* ==========================================================================
   S Growth Alliances LLP — "Chain of custody"
   The site is built like the consignment note that follows bio-medical waste
   from the ward to its documented end state: a docket rail carrying reference
   codes, hairline rules, and the four statutory colour codes as the palette.

   Colour contract (WCAG AA verified):
     teal #4fbfd4 is 2.16:1 on white — FILL ONLY, never text on paper.
     On paper, accents resolve to --accent #0f6d7d (5.5:1) or --navy (10.3:1).
     Teal is used for text only inside .band (7.4:1 on --deep).
   ========================================================================== */

:root {
  /* surfaces */
  --paper: #f6f5f1;
  --card: #fffefb;
  --deep: #16213f;
  --deep-2: #1d2b52;

  /* ink */
  --ink: #141a26;
  --navy: #26386e;
  --grey: #5c6472;
  --grey-d: #4a5261;

  /* accents */
  --teal: #4fbfd4;          /* dark bands + fills only */
  --teal-lt: #7fd6e6;
  --accent: #0f6d7d;        /* the paper-safe teal */
  --rule: #ded9cf;
  --rule-2: #ebe7de;
  --mist: #aebbd4;

  /* statutory colour codes */
  --y: #f2c200;  --y-ink: #8a6a00;  --y-bg: #fdf6dd;
  --r: #d64545;  --r-ink: #a83232;  --r-bg: #fbeaea;
  --w: #e9ecef;  --w-ink: #5c6472;  --w-bg: #f4f6f8;
  --b: #3f7fd6;  --b-ink: #1f4f9c;  --b-bg: #e9f0fb;

  /* type */
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* space */
  --gut: clamp(20px, 5vw, 40px);
  --rail: 172px;
  --max: 1180px;
  --sec: clamp(56px, 8vw, 104px);

  --shadow: 0 1px 2px rgba(20, 26, 38, .04), 0 12px 32px -12px rgba(20, 26, 38, .12);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 650; line-height: 1.12; letter-spacing: -.022em; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--deep); color: #fff; padding: 12px 18px;
  font: 600 13px/1 var(--mono); letter-spacing: .06em;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- primitives ---------- */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* the four statutory colour codes as a segmented strip — the site's signature */
.custody {
  display: flex; height: 5px; width: 100%;
  position: relative; z-index: 60;
}
.custody i { flex: 1; display: block; }
.custody i:nth-child(1) { background: var(--y); }
.custody i:nth-child(2) { background: var(--r); }
.custody i:nth-child(3) { background: #cfd6dd; }
.custody i:nth-child(4) { background: var(--b); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 241, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.hdr-in {
  max-width: var(--max); margin-inline: auto; padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand img { height: 34px; width: auto; }
.brand b { display: block; font-size: 15px; font-weight: 650; color: var(--navy); letter-spacing: -.015em; }
.brand span {
  display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: var(--grey);
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 8px 11px; border-radius: 3px; white-space: nowrap;
}
.nav a:hover { background: rgba(15, 109, 125, .08); color: var(--accent); }
.nav a[aria-current="page"] {
  color: var(--navy); font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.nav .cta {
  background: var(--deep); color: #fff; padding: 9px 15px; margin-left: 8px;
  font-weight: 600;
}
.nav .cta:hover { background: var(--navy); color: #fff; }
/* on the page the CTA points at, the aria-current rule above would otherwise
   paint navy text on the navy pill (1.4:1) */
.nav a.cta[aria-current="page"] { color: #fff; box-shadow: none; }

.burger {
  display: none; background: none; border: 1px solid var(--rule);
  border-radius: 3px; padding: 9px 11px; cursor: pointer;
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gut) 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--rule-2); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .cta { margin: 12px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- section + docket rail ---------- */
.sec { padding-block: var(--sec); border-bottom: 1px solid var(--rule); }
.sec.tight { padding-block: clamp(40px, 5vw, 64px); }

.docket { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
/* minmax(0,1fr) not 1fr: a bare 1fr has an auto (min-content) minimum, so a
   wide child such as the segregation table would push the whole page wide */
@media (max-width: 860px) { .docket { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.rail { position: relative; }
.rail-in { position: sticky; top: 104px; }
@media (max-width: 860px) { .rail-in { position: static; } }
.rail .num {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: .06em;
}
.rail .lbl {
  margin-top: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--grey);
  padding-top: 10px; border-top: 1px solid var(--rule);
}
@media (max-width: 860px) {
  .rail-in { display: flex; align-items: baseline; gap: 12px; }
  .rail .lbl { border-top: 0; padding-top: 0; margin-top: 0; }
}

.eyebrow { color: var(--accent); }
h2.t { font-size: clamp(28px, 3.6vw, 42px); font-stretch: 108%; margin-block: 10px 16px; color: var(--navy); }
h3.t { font-size: clamp(20px, 2.2vw, 25px); margin-block: 6px 10px; color: var(--navy); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--grey-d); max-width: 68ch; }
.sec p + p { margin-top: 14px; }
.body-copy { max-width: 68ch; color: var(--grey-d); }

/* ---------- hero ---------- */
.hero {
  background: var(--deep);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--deep);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 88% -10%, rgba(79, 191, 212, .20), transparent 70%),
    radial-gradient(560px 340px at 4% 108%, rgba(79, 191, 212, .10), transparent 72%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 96px); }

.hero .eyebrow { color: var(--teal); }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.03;
  margin-block: 18px 20px;
  color: #fff;
  max-width: 26ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .sub { font-size: clamp(16.5px, 1.7vw, 19.5px); color: #ccd6e8; max-width: 56ch; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 3px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-p { background: var(--teal); color: #0d1b2e; }
.btn-p:hover { background: var(--teal-lt); color: #0d1b2e; }
.btn-o { border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-o:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-d { background: var(--deep); color: #fff; }
.btn-d:hover { background: var(--navy); color: #fff; }
.btn-g { border-color: var(--rule); color: var(--navy); background: var(--card); }
.btn-g:hover { border-color: var(--accent); color: var(--accent); }
.btn .ar { font-family: var(--mono); font-size: 13px; }

/* ---------- interior page header ---------- */
.phead {
  background: var(--deep); color: #fff; position: relative; overflow: hidden;
}
.phead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(660px 380px at 92% -20%, rgba(79, 191, 212, .17), transparent 70%);
}
.phead .wrap { position: relative; z-index: 2; padding-block: clamp(44px, 6.5vw, 82px); }
.phead .eyebrow { color: var(--teal); }
.phead h1 {
  font-size: clamp(31px, 4.6vw, 52px); font-stretch: 110%; font-weight: 700;
  letter-spacing: -.03em; line-height: 1.06; margin-block: 14px 18px;
  color: #fff; max-width: 20ch; text-wrap: balance;
}
.phead .lead { color: #ccd6e8; max-width: 64ch; }
.crumb { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.crumb a { color: var(--mist); text-decoration: none; display: inline-block; padding: 5px 2px; }
.crumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; margin-top: 34px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } }

.cell { background: var(--card); padding: 26px 24px; }
.cell .k {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.cell h2, .cell h3 { font-size: 17.5px; margin-block: 11px 8px; color: var(--navy); letter-spacing: -.015em; }
.cell p { font-size: 14.5px; color: var(--grey-d); line-height: 1.6; }

/* key/value fact strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
@media (max-width: 780px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts > div { background: var(--card); padding: 20px 20px 22px; }
.facts .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.facts .v { font-size: 17px; font-weight: 650; color: var(--navy); margin-top: 6px; letter-spacing: -.015em; line-height: 1.25; }

/* ---------- tables ---------- */
.tw {
  overflow-x: auto; margin-top: 14px; border: 1px solid var(--rule);
  border-radius: 4px; background: var(--card);
  /* a fade on the right edge hints that there is more table off-screen */
  background-image: linear-gradient(to right, transparent calc(100% - 44px), rgba(20, 26, 38, .07));
  background-attachment: local;
}
.tw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
caption { text-align: left; padding: 16px 20px 0; font-size: 13px; color: var(--grey); }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
thead th {
  background: var(--deep); color: #fff; font-family: var(--mono); font-weight: 600;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 0;
}
tbody tr:last-child td { border-bottom: 0; }
td b { color: var(--navy); }

/* colour-code swatch — always ringed, so the boundary is perceivable
   even where the fill itself is under 3:1 against the surface */
.sw { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; color: var(--navy); white-space: nowrap; }
.sw i { width: 15px; height: 15px; border-radius: 3px; border: 1px solid rgba(20, 26, 38, .35); flex: none; }
.sw.y i { background: var(--y); } .sw.r i { background: var(--r); }
.sw.w i { background: #fff; } .sw.b i { background: var(--b); }

/* ---------- checklists ---------- */
.ck { list-style: none; padding: 0; margin-top: 20px; }
.ck li {
  position: relative; padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--rule-2); font-size: 15px; color: var(--grey-d); line-height: 1.55;
}
.ck li:last-child { border-bottom: 0; }
.ck li::before {
  content: ""; position: absolute; left: 3px; top: 19px;
  width: 9px; height: 9px; border: 1.5px solid var(--accent); border-radius: 2px;
}
.ck li b { color: var(--navy); font-weight: 650; }

/* ---------- dark band ---------- */
.band { background: var(--deep); color: #fff; border-bottom: 0; }
.band h2.t, .band h3.t { color: #fff; }
.band .lead, .band .body-copy, .band p { color: #ccd6e8; }
.band .eyebrow { color: var(--teal); }
.band .rail .num { color: var(--teal); }
.band .rail .lbl { color: var(--mist); border-top-color: rgba(255, 255, 255, .2); }
/* :not(.btn) matters — a bare `.band a` outranks `.btn-p` on specificity and
   would repaint the primary CTA's dark label light teal on a teal fill (1.3:1) */
.band a:not(.btn) { color: var(--teal-lt); }
.band .ck li { color: #ccd6e8; border-bottom-color: rgba(255, 255, 255, .14); }
.band .ck li b { color: #fff; }
.band .ck li::before { border-color: var(--teal); }
.band .info { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .16); }
.band .info-row { border-bottom-color: rgba(255, 255, 255, .12); }
.band .info-row .v { color: #fff; }
.band .info-row .k { color: var(--mist); }
.band .cell { background: rgba(255, 255, 255, .04); }
.band .grid { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .16); }
.band .cell h2, .cell h3 { color: #fff; }
.band .cell p { color: var(--mist); }
.band .cell .k { color: var(--teal); }

/* ---------- notice ---------- */
.notice {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  background: var(--card); border-radius: 3px; padding: 18px 20px; margin-top: 28px;
}
.notice .hd { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 7px; }
.notice p { font-size: 14.5px; color: var(--grey-d); line-height: 1.6; }
.band .notice { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .18); border-left-color: var(--teal); }
.band .notice .hd { color: var(--teal); }
.band .notice p { color: var(--mist); }

/* ---------- steps ---------- */
.steps { counter-reset: s; margin-top: 34px; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.step { background: var(--card); padding: 24px; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 10px; } }
.step .n { counter-increment: s; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 4px; }
.step .n::before { content: "0" counter(s); }
.step h3 { font-size: 17px; margin-bottom: 6px; color: var(--navy); }
.step p { font-size: 14.5px; color: var(--grey-d); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.f { display: flex; flex-direction: column; gap: 6px; }
.f.wide { grid-column: 1 / -1; }
.f label { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--grey-d); }
.f input, .f select, .f textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 13px; border: 1px solid var(--rule); border-radius: 3px; background: var(--card);
  width: 100%;
}
.f textarea { resize: vertical; min-height: 118px; }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 109, 125, .14);
}
button.btn { cursor: pointer; font-family: inherit; }

@media (max-width: 900px) { .contact-cols { grid-template-columns: 1fr !important; } }

.info { border: 1px solid var(--rule); border-radius: 4px; background: var(--card); overflow: hidden; }
.info-row { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--rule-2); font-size: 14.5px; }
.info-row:last-child { border-bottom: 0; }
@media (max-width: 520px) { .info-row { grid-template-columns: 1fr; gap: 4px; } }
.info-row .k { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
.info-row .v { color: var(--grey-d); line-height: 1.55; }

/* ---------- footer ---------- */
footer { background: var(--deep); color: var(--mist); padding-block: 54px 30px; }
footer a { color: #cfe9f0; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.f-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .f-top { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .f-top { grid-template-columns: 1fr; } }
.f-top h2 { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.f-top li { list-style: none; font-size: 14px; }
/* padded to clear the 24px minimum pointer-target size — these are navigation
   links in a list, not links inline in a sentence, so the exemption doesn't apply */
.f-top li a { display: inline-block; padding: 5px 0; }
.f-top li { margin-bottom: 1px; }
.f-top p { font-size: 13.5px; line-height: 1.6; }
.f-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.f-brand img { height: 32px; width: auto; }
.f-brand b { display: block; color: #fff; font-size: 14.5px; }
.f-brand span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.f-bot {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #8494b4;
}

/* ---------- motion ----------
   Content is visible by default. Only when JS has confirmed it is running
   (html.js) do we hide-then-reveal, so a failed or slow script can never
   leave the page blank. */
.js .rv { opacity: 0; transform: translateY(14px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22, .8, .3, 1); }
.js .rv.in.d1 { transition-delay: .07s; }
.js .rv.in.d2 { transition-delay: .14s; }
.js .rv.in.d3 { transition-delay: .21s; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .an { animation: rise .7s cubic-bezier(.22, .8, .3, 1) both; }
.hero .an-1 { animation-delay: .05s; } .hero .an-2 { animation-delay: .13s; }
.hero .an-3 { animation-delay: .21s; } .hero .an-4 { animation-delay: .29s; }
.hero .an-5 { animation-delay: .37s; }
.custody i { transform-origin: left; animation: grow .5s ease both; }
.custody i:nth-child(1) { animation-delay: .02s; } .custody i:nth-child(2) { animation-delay: .09s; }
.custody i:nth-child(3) { animation-delay: .16s; } .custody i:nth-child(4) { animation-delay: .23s; }

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero .an, .custody i { animation: none !important; }
}

@media print {
  .hdr, .burger, .btns, footer .f-bot { display: none; }
  body { background: #fff; color: #000; }
  .hero, .band { background: #fff !important; color: #000 !important; }
  .hero h1, .band h2.t { color: #000 !important; }
}

/* ---------- linked section cards (home) ---------- */
a.cell.lnk { text-decoration: none; color: inherit; display: block; transition: background .18s ease; }
a.cell.lnk h2, a.cell.lnk h3 { color: var(--navy); }
a.cell.lnk:hover { background: #fff; }
a.cell.lnk:hover h2, a.cell.lnk:hover h3 { color: var(--accent); }
a.cell.lnk:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- status notice on the hero ---------- */
.hero .notice {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .2);
  border-left-color: var(--teal);
  max-width: 74ch;
}
.hero .notice .hd { color: var(--teal); }
.hero .notice p { color: #ccd6e8; }
