/* StructAssure Ltd - site stylesheet
   Plain CSS, no build step. Brand: navy #1B244D, yellow #FFCC57.
   Light palette on :root; dark override under prefers-color-scheme. */

:root {
  color-scheme: light;
  --navy: #1B244D;
  --navy-deep: #131A3A;
  --yellow: #FFCC57;
  --yellow-ink: #1B244D;      /* text colour on a yellow surface */

  --bg: #F4F5F9;
  --surface: #FFFFFF;
  --surface-2: #EBEDF4;
  --text: #171D3B;
  --text-muted: #4E556E;
  --line: #D8DCE8;
  --line-strong: #B9BFD1;
  --link: #1B244D;
  --link-hover: #0F1530;
  --eyebrow: #8A6A0D;          /* dark gold for small labels on light ground */
  --focus: #1B244D;

  --band-bg: var(--navy);      /* dark bands (hero, footer) */
  --band-text: #F3F4F9;
  --band-muted: #C3C8DC;
  --band-line: rgba(255, 255, 255, 0.14);

  --shadow: 0 1px 2px rgba(23, 29, 59, 0.06), 0 8px 24px rgba(23, 29, 59, 0.06);
  --radius: 4px;

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

  --gutter: clamp(16px, 5vw, 40px);
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0E1328;
    --surface: #161D3F;
    --surface-2: #1F2750;
    --text: #E9EBF4;
    --text-muted: #A9B0C8;
    --line: #2B3459;
    --line-strong: #3C4670;
    --link: #FFCC57;
    --link-hover: #FFDC8A;
    --eyebrow: #FFCC57;
    --focus: #FFCC57;

    --band-bg: #0A0E1F;
    --band-text: #F3F4F9;
    --band-muted: #B4BAD0;
    --band-line: rgba(255, 255, 255, 0.12);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }
p, ul, ol { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; }
small { font-size: 0.875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.muted { color: var(--text-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-top: 5px solid var(--yellow);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding-block: 0.9rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 212px; height: auto; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.35rem;
}
.site-nav a {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
@media (max-width: 560px) {
  .site-header .wrap { padding-block: 0.75rem; }
  .brand img { width: 176px; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0.15rem; margin-left: -0.5rem; }
  .site-nav a { font-size: 0.86rem; padding: 0.4rem 0.45rem; letter-spacing: 0; }
}

/* ---------- Bands and sections ---------- */
.band {
  background: var(--band-bg);
  color: var(--band-text);
}
.band a { color: var(--yellow); }
.band a:hover { color: #FFE39A; }
.band .muted { color: var(--band-muted); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }

.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 0.9rem;
}
.band .eyebrow { color: var(--yellow); }
.eyebrow::before {
  content: ""; flex: none; width: 1.6rem; height: 3px;
  background: currentColor;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-muted); max-width: 60ch; }
.band .lede { color: var(--band-muted); }

.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head h2 { max-width: 24ch; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); position: relative; overflow: hidden; }
.hero::after {
  /* faint engineering grid, decorative */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; margin-bottom: 1.25rem; }
.hero .lede { margin-bottom: 2rem; }
.hero-page { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.hero-page h1 { max-width: 22ch; }
.hero-page .lede { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid var(--yellow);
  background: var(--yellow);
  color: var(--yellow-ink);
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: #F5BE3E; border-color: #F5BE3E; color: var(--yellow-ink); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
/* Buttons on dark bands: .band a would otherwise recolour the label yellow-on-yellow */
.band .btn, .band .btn:hover { color: var(--yellow-ink); }
.band .btn-outline { color: var(--band-text); border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.band .btn-outline:hover { color: var(--band-text); border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.btn-note { font-size: 0.9rem; color: var(--band-muted); }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.7rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 0.6rem; }
.card > p:last-of-type { margin-bottom: 0; }
.card .card-foot { margin-top: auto; padding-top: 1.1rem; }
.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.1em; color: var(--eyebrow); margin-bottom: 0.9rem;
}
.card-accent { border-top: 4px solid var(--yellow); }

.arrow-link { font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.arrow-link::after { content: " \2192"; }
.arrow-link:hover { text-decoration: underline; }

/* Two-column feature: text + list */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.7rem;
  background: var(--yellow); border-radius: 1px; transform: rotate(45deg);
}

/* Definition-style spec table */
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.spec dt { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); padding-top: 0.15rem; }
.spec dd { margin: 0; }
@media (max-width: 480px) { .spec { grid-template-columns: 1fr; gap: 0.15rem 0; } .spec dd { margin-bottom: 0.8rem; } }

/* Programme / logos strip */
.strip { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; list-style: none; padding: 0; margin: 0; }
.strip li { font-family: var(--font-head); font-weight: 600; letter-spacing: 0.01em; color: var(--text-muted); }
.band .strip li { color: var(--band-muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1.5rem; }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; color: var(--yellow); margin-bottom: 0.35rem; }
.stat span { color: var(--band-muted); font-size: 0.95rem; }

/* ---------- Notice (disclaimer) ---------- */
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.97rem;
}
.notice strong { font-family: var(--font-head); }
.band .notice { background: rgba(255, 255, 255, 0.06); border-color: var(--band-line); border-left-color: var(--yellow); color: var(--band-text); }

/* ---------- Products ---------- */
.products { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: 1px solid var(--line); }
.product-body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-kicker { font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--eyebrow); margin-bottom: 0.5rem; }
.product h3 { margin-bottom: 0.4rem; }
.product-price { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.product-price small { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--text-muted); margin-left: 0.4rem; }
.product ul { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1rem; }
.product .btn-row { margin-top: auto; padding-top: 0.75rem; }
.product-featured { border-top: 4px solid var(--yellow); }

/* ---------- Director block ---------- */
.director { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(280px, 480px) 1fr; align-items: start; }
@media (max-width: 720px) { .director { grid-template-columns: 1fr; } }
.director img.portrait { width: 100%; max-width: 300px; border-radius: var(--radius); border: 1px solid var(--line); }
.badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem;
  background: #FFFFFF;              /* badges are dark-on-transparent: keep a white plate in both themes */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin-top: 1rem;
  width: fit-content;
  max-width: 100%;
}
.badges img { height: 59px; width: auto; }
.creds { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.creds li { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.creds li span { font-family: var(--font-body); font-weight: 400; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; padding-right: 2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: -0.1rem; font-size: 1.4rem; color: var(--eyebrow); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 0.7rem; max-width: var(--measure); color: var(--text-muted); }

/* ---------- Prose pages ---------- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose table th, .prose table td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose table th { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.table-wrap { overflow-x: auto; }

/* ---------- Contact ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.contact-card .big-link { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem); word-break: break-word; }

/* ---------- CTA band ---------- */
.cta { text-align: left; }
.cta h2 { max-width: 20ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 5px solid var(--yellow); font-size: 0.93rem; }
.site-footer .wrap { padding-block: 2.75rem 2rem; }
.footer-grid { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-grid h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--band-text); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer .brand img { width: 190px; }
.footer-legal { border-top: 1px solid var(--band-line); margin-top: 2.25rem; padding-top: 1.25rem; color: var(--band-muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }

/* ---------- Print ---------- */
@media print {
  .site-nav, .btn { display: none !important; }
  .band { background: #fff !important; color: #000 !important; }
}
