/* ============================================================
   Sepcon Systems: shared styles
   Palette, layout, components. Vanilla CSS, no frameworks.
   Type system (industrial / technical register): Space Grotesk
   headings + Inter body, self-hosted woff2, latin subset.
   ============================================================ */

/* --- self-hosted fonts --- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

:root {
  --brand: #00622e;          /* primary green: white text passes WCAG AA */
  --brand-dark: #024d25;     /* hover */
  --brand-bright: #00923e;   /* logo green: decorative accents only */
  --ink: #0c1f2c;            /* headings */
  --body: #2b3a44;           /* body text */
  --muted: #51616b;          /* secondary text */
  --accent: #0a66b3;         /* water-blue links */
  --accent-dark: #08518f;
  --line: #e3e9ec;
  --soft: #f2f7f6;
  --white: #ffffff;
  --hero-bg: #062a1c;        /* dark fallback behind the hero photo */

  --maxw: 1140px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(12,31,44,.06), 0 6px 20px rgba(12,31,44,.08);
  --space: clamp(3rem, 6vw, 5rem);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- small normalize --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
ul { padding: 0; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- focus + skip link --- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* --- layout helpers --- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--space); }
.section--soft { background: var(--soft); }
.section--brand { background: var(--brand); color: #fff; }
.section__intro { max-width: 60ch; color: var(--muted); margin-top: .75rem; }
.section--brand .section__intro { color: rgba(255,255,255,.85); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .5rem;
}
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section p + p { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  text-decoration: none;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.button--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.button--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.button--ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.button--lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.button--block { width: 100%; }

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 220px; height: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.nav-list { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .55rem .7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-link:hover { color: var(--brand); background: var(--soft); }
.caret { transition: transform .2s ease; }

/* submenu (desktop = dropdown) */
.has-submenu { position: relative; }
.submenu {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: .4rem;
  display: none;
}
/* invisible hover bridge across the 6px gap, so the dropdown does not vanish
   when the cursor crosses from the toggle to the panel */
.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.nav-submenu-toggle[aria-expanded="true"] + .submenu { display: block; }
.nav-submenu-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.submenu .nav-link { display: flex; width: 100%; }
.nav-cta { margin-left: .5rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .75rem clamp(1rem, 4vw, 2rem) 1.25rem;
  }
  .site-header.is-open .primary-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-link { padding: .8rem .6rem; font-size: 1rem; }
  .has-submenu { position: static; }
  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: .2rem 0 .4rem .6rem;
    padding-left: .4rem;
    min-width: 0;
  }
  .nav-submenu-toggle[aria-expanded="true"] + .submenu { display: block; }
  .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display: none; }
  .nav-submenu-toggle[aria-expanded="true"] + .submenu { display: block; }
  .nav-cta { margin: .6rem 0 0; }
  .nav-cta .button { width: 100%; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4,30,20,.55) 0%, rgba(4,40,26,.72) 60%, rgba(2,30,20,.85) 100%);
}
.hero__content { padding-block: clamp(4rem, 12vw, 8rem); max-width: 760px; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 700;
  color: #d8f3e2;
  margin-bottom: 1rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.4rem); }
.hero__lead { margin-top: 1.25rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.92); max-width: 60ch; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* ============================================================
   Stats strip
   ============================================================ */
.stats { padding-block: clamp(2rem, 4vw, 2.75rem); }
.stats__grid { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding-inline: .5rem; }
.stat__value { display: block; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; color: #fff; line-height: 1.1; }
.stat__label { display: block; margin-top: .35rem; font-size: .9rem; color: rgba(255,255,255,.85); }

/* ============================================================
   About
   ============================================================ */
.grid--about { grid-template-columns: 1.4fr 1fr; align-items: start; }
.callout {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-bright);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.callout__quote { font-size: 1.15rem; color: var(--ink); font-style: italic; line-height: 1.5; }
.check-list { list-style: none; margin: 1.5rem 0 0; display: grid; gap: .65rem; }
.check-list li { position: relative; padding-left: 1.9rem; color: var(--body); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .15rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--brand-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center / 80% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.5z'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ============================================================
   Cards (segments)
   ============================================================ */
.cards { margin-top: 2rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 90px;
}
.card__media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__title { font-size: 1.25rem; }
.link-arrow { margin-top: auto; font-weight: 600; text-decoration: none; align-self: flex-start; }
.link-arrow:hover { text-decoration: underline; }

/* ============================================================
   Pillars (why)
   ============================================================ */
.pillars { margin-top: 2rem; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.pillar__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--soft); color: var(--brand); margin-bottom: 1rem;
}
.pillar h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: .96rem; }

/* ============================================================
   Systems & products
   ============================================================ */
.grid--systems { grid-template-columns: 1.1fr 1fr; align-items: center; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.tags li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}
.figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.figure img { border-radius: 8px; }
.figure figcaption { margin-top: .75rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* ============================================================
   Services + applications
   ============================================================ */
.services, .apps { margin-top: 2rem; }
.service, .app {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--brand-bright);
}
.service h3, .app h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service p, .app p { color: var(--muted); font-size: .96rem; }
/* undraw-style line icon on photo-less cards */
.card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--soft); color: var(--brand); margin-bottom: 1rem;
}
.card-ico svg { width: 24px; height: 24px; }
.apps__note { margin-top: 2rem; font-weight: 600; color: var(--ink); max-width: 75ch; }

/* ============================================================
   Contact + email enquiry starters
   ============================================================ */
.grid--contact { grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.contact-details { list-style: none; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-details__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.contact-details address { font-style: normal; color: var(--ink); }
.contact-details a { font-weight: 600; }

.enquiry-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.enquiry-panel__title { font-size: 1.25rem; margin-bottom: .4rem; }
.enquiry-panel__intro { color: var(--muted); margin-bottom: 1.25rem; }
.enquiry-starters { display: grid; gap: .75rem; }
.enquiry-starter {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .9rem 1.1rem; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.enquiry-starter:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-1px); }
.enquiry-starter:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.enquiry-starter__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--soft); color: var(--brand); flex: none;
}
.enquiry-starter__icon svg { width: 22px; height: 22px; }
.enquiry-starter__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.enquiry-starter__text strong { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.enquiry-starter__text span { color: var(--muted); font-size: .9rem; }
.enquiry-starter__arrow { color: var(--brand); font-weight: 700; flex: none; }
.enquiry-panel__hint { margin-top: 1.25rem; font-size: .85rem; color: var(--muted); }
.enquiry-panel__hint a { font-weight: 600; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: #c8d2d8; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
/* The logo art sits on an opaque light field, so seat it on a white chip on the
   dark footer (per house standard) rather than inverting it to a white block. */
.site-footer__brand img {
  width: 196px; height: auto;
  background: #fff;
  padding: 9px 13px;
  border-radius: 10px;
}
.site-footer__brand p { margin-top: 1rem; max-width: 42ch; font-size: .92rem; }
.site-footer__heading { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .9rem; }
.site-footer__nav ul { list-style: none; display: grid; gap: .5rem; }
.site-footer a { color: #c8d2d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; font-size: .92rem; line-height: 1.7; }
.site-footer__contact p { margin-top: .75rem; font-size: .92rem; }
.site-footer__standards {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.6rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
  color: #c8d2d8;
}
.site-footer__standards span { display: inline-flex; align-items: center; gap: .45rem; }
.site-footer__standards svg { width: 15px; height: 15px; color: var(--brand-on-dark); flex: none; }
.site-footer__bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .82rem;
  color: #93a2aa;
}
.site-footer__bottom a { color: #93a2aa; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid--about, .grid--systems, .grid--contact { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .button { width: 100%; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Type system application + go-live remediation additions
   ============================================================ */
:root {
  --ease: cubic-bezier(.4, 0, .2, 1);
  --brand-on-dark: #4cd592;   /* bright green: rings/accents on near-black */
  --muted-on-dark: #aebfc7;   /* muted text on near-black */
}

/* Space Grotesk headings, Inter body (set on :root --font / --font-head) */
h1, h2, h3,
.eyebrow, .hero__eyebrow, .stat__value,
.site-footer__heading, .button, .nav-link, summary {
  font-family: var(--font-head);
}

/* Hero: dark CSS background behind the photo (audit-resolvable + load fallback) */
.hero { background: var(--hero-bg); }

/* Active nav item */
.nav-link[aria-current="page"] { color: var(--brand); background: var(--soft); }
.nav-submenu-toggle.is-active { color: var(--brand); }
@media (max-width: 900px) {
  .nav-link[aria-current="page"] { background: var(--soft); }
}

/* ============================================================
   Page hero (inner pages) + breadcrumb
   ============================================================ */
.page-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--hero-bg);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%; z-index: -2;
}
.page-hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4,30,20,.72) 0%, rgba(3,32,21,.86) 100%);
}
.page-hero__inner { padding-block: clamp(2.5rem, 7vw, 4.5rem); max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.page-hero__lead { margin-top: 1rem; font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: rgba(255,255,255,.92); max-width: 60ch; }
.page-hero .eyebrow { color: #9be8bf; }

.breadcrumb { font-size: .85rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.75); }
.breadcrumb li + li::before { content: "/"; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.92); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; }

/* ============================================================
   CTA band (closing call to action)
   ============================================================ */
.cta-band { background: var(--brand); color: #fff; }
.cta-band .container { padding-block: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 56ch; margin: .75rem auto 0; }
.cta-band .hero__actions { justify-content: center; margin-top: 1.75rem; }
.cta-band .eyebrow { color: #cdeeda; }
.cta-band .button--ghost { color: #fff; border-color: rgba(255,255,255,.85); }
.cta-band .button--ghost:hover { background: rgba(255,255,255,.15); }

/* ============================================================
   FAQ (native details/summary)
   ============================================================ */
.faq { margin-top: 2rem; display: grid; gap: .75rem; max-width: 860px; }
.faq__item {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0 1.25rem;
}
.faq__item summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--ink);
  padding: 1.1rem 2rem 1.1rem 0; position: relative; font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: .15rem; top: 1.3rem;
  width: 12px; height: 12px;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M5 0h2v5h5v2H7v5H5V7H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M5 0h2v5h5v2H7v5H5V7H0V5h5z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 1.2rem; color: var(--body); }
.faq__answer p { color: var(--body); }

/* ============================================================
   Gallery grid (pairs with the lightbox carousel below)
   ============================================================ */
.gallery { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; padding: 0; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { padding: .65rem .85rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
/* ProPage gallery lightbox / carousel styles. Pairs with tools/gallery-carousel.js.
   Paste into css/main.css (after the .gallery rules).

   ONLY TWO project-specific tokens to wire up - set these aliases to the brand's
   on-dark tokens (the lightbox is a near-black overlay, so it needs the on-DARK pair),
   e.g. for technoprimeconstructions.com: --lb-accent: var(--brand-on-dark); --lb-muted:
   var(--muted-on-dark);  for nellikuru.com: --lb-accent: var(--red-on-dark); --lb-muted:
   var(--steel-muted). --ease and --radius are standard house tokens already present.
   The ken-burns zoom is gated by prefers-reduced-motion. */
:root {
  --lb-accent: var(--brand-on-dark);   /* on-dark accent: hover/active/focus rings - REPOINT per brand */
  --lb-muted:  var(--muted-on-dark);     /* on-dark muted text: counter + caption    - REPOINT per brand */
  --lb-bg:     rgba(6,20,14,0.97);   /* overlay backdrop: a near-black tint of the brand dark */
  --lb-tile:   #06140e;               /* image/thumb backing: the brand dark */
}
.js .gallery a { cursor:zoom-in; }
.lb-lock { overflow:hidden; }
.lb { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; gap:0.5rem; background:var(--lb-bg); padding:clamp(0.6rem,0.3rem + 1vw,1.1rem); }
.lb[hidden] { display:none; }
.lb:focus { outline:none; }
.lb-toolbar { flex:none; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.lb-counter { font-size:0.95rem; font-weight:600; color:var(--lb-muted); font-variant-numeric:tabular-nums; padding-left:0.3rem; }
.lb-tools { display:flex; align-items:center; gap:0.4rem; }
.lb-btn { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border-radius:999px; border:1px solid rgba(255,255,255,0.16); background:rgba(255,255,255,0.06); color:#fff; cursor:pointer; transition:background-color .18s var(--ease), border-color .18s var(--ease); }
.lb-btn:hover { background:rgba(255,255,255,0.14); border-color:var(--lb-accent); }
.lb-btn:focus-visible { outline:3px solid var(--lb-accent); outline-offset:2px; }
.lb-btn svg { width:20px; height:20px; }
.lb-main { position:relative; flex:1; min-height:0; display:flex; align-items:center; justify-content:center; }
.lb-stage { margin:0; display:flex; flex-direction:column; align-items:center; gap:0.7rem; max-width:100%; }
.lb-imgwrap { display:inline-block; max-width:100%; overflow:hidden; border-radius:var(--radius); line-height:0; background:var(--lb-tile); box-shadow:0 18px 50px rgba(0,0,0,0.55); }
.lb-img { display:block; max-width:100%; max-height:calc(100vh - 210px); max-height:calc(100dvh - 210px); width:auto; height:auto; object-fit:contain; }
.lb-caption { color:var(--lb-muted); font-size:0.95rem; text-align:center; max-width:62ch; }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; padding:0; border-radius:999px; border:1px solid rgba(255,255,255,0.18); background:rgba(18,21,26,0.62); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; transition:background-color .18s var(--ease), border-color .18s var(--ease); }
.lb-nav:hover { background:rgba(18,21,26,0.95); border-color:var(--lb-accent); }
.lb-nav:focus-visible { outline:3px solid var(--lb-accent); outline-offset:2px; }
.lb-nav svg { width:26px; height:26px; }
.lb-prev { left:clamp(0.3rem,1vw,1.1rem); }
.lb-next { right:clamp(0.3rem,1vw,1.1rem); }
.lb-thumbs { flex:none; display:flex; gap:0.5rem; overflow-x:auto; overflow-y:hidden; padding:0.3rem 0.2rem; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,0.3) transparent; justify-content:center; }
.lb-thumbs::-webkit-scrollbar { height:8px; }
.lb-thumbs::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.25); border-radius:8px; }
.lb-thumb { flex:none; width:88px; height:62px; padding:0; border:2px solid transparent; border-radius:8px; overflow:hidden; background:var(--lb-tile); cursor:pointer; opacity:0.5; transition:opacity .18s var(--ease), border-color .18s var(--ease); }
.lb-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.lb-thumb:hover { opacity:0.85; }
.lb-thumb[aria-current="true"] { opacity:1; border-color:var(--lb-accent); }
.lb-thumb:focus-visible { outline:3px solid var(--lb-accent); outline-offset:2px; }
/* slow ken-burns zoom on each shown image */
@media (prefers-reduced-motion:no-preference){
  .lb-img.is-zooming { animation:lb-kenburns 7s var(--ease) both; }
}
@keyframes lb-kenburns { from { transform:scale(1); } to { transform:scale(1.07); } }
@media (max-width:600px){
  .lb-img { max-height:calc(100vh - 184px); max-height:calc(100dvh - 184px); }
  .lb-nav { width:44px; height:44px; } .lb-nav svg { width:22px; height:22px; }
  .lb-thumb { width:66px; height:48px; }
  .lb-thumbs { justify-content:flex-start; }
}
@media (prefers-reduced-motion:reduce){
  .lb-btn,.lb-nav,.lb-thumb { transition:none; }
}

/* ============================================================
   Home hero carousel (pure-CSS radio carousel; JS adds autoplay,
   arrows, swipe). Recoloured to the Sepcon green brand.
   ============================================================ */
.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; opacity: 0;
}

.hero-cx {
  position: relative;
  height: calc(100svh - 72px);
  min-height: 480px;
  max-height: 860px;
  background: var(--hero-bg);
  overflow: hidden;
  isolation: isolate;
}
.cx-radio { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; white-space: nowrap; }
.cx-track { position: absolute; inset: 0; z-index: 0; }
.cx-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease; }
.cx-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cx-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,30,20,.30) 0%, rgba(4,32,21,.40) 52%, rgba(2,28,18,.66) 100%);
}
.cx-slide.has-cap .cx-scrim {
  background: linear-gradient(180deg, rgba(4,30,20,.52) 0%, rgba(4,34,22,.60) 48%, rgba(2,28,18,.86) 100%);
}
#cx-1:checked~.cx-track #cxs-1,#cx-2:checked~.cx-track #cxs-2,#cx-3:checked~.cx-track #cxs-3,#cx-4:checked~.cx-track #cxs-4,#cx-5:checked~.cx-track #cxs-5 { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: no-preference) {
  .cx-slide img { transform: scale(1.05); transition: transform 8s ease, opacity .9s ease; }
  #cx-1:checked~.cx-track #cxs-1 img,#cx-2:checked~.cx-track #cxs-2 img,#cx-3:checked~.cx-track #cxs-3 img,#cx-4:checked~.cx-track #cxs-4 img,#cx-5:checked~.cx-track #cxs-5 img { transform: scale(1); }
  .cx-cap-inner { opacity: 0; transform: translateY(20px); transition: opacity .7s ease .2s, transform .7s ease .2s; }
  #cx-1:checked~.cx-track #cxs-1 .cx-cap-inner,#cx-2:checked~.cx-track #cxs-2 .cx-cap-inner,#cx-3:checked~.cx-track #cxs-3 .cx-cap-inner,#cx-4:checked~.cx-track #cxs-4 .cx-cap-inner,#cx-5:checked~.cx-track #cxs-5 .cx-cap-inner { opacity: 1; transform: none; }
}

.cx-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(2rem,6vw,4rem) clamp(1rem,4vw,2rem) clamp(3.4rem,8vw,5rem); }
.cx-cap-inner { max-width: var(--maxw); margin-inline: auto; color: #fff; }
.cx-eyebrow { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.cx-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand-on-dark); border-radius: 2px; }
.cx-title { font-family: var(--font-head); font-weight: 700; color: #fff; line-height: 1.02; font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem); letter-spacing: -.015em; text-shadow: 0 2px 24px rgba(2,20,12,.45); }
.cx-title strong { display: block; font-weight: 700; }
.cx-title strong::after { content: ""; display: block; width: 84px; height: 5px; border-radius: 3px; background: var(--brand-on-dark); margin-top: 1.1rem; }
.cx-lead { margin-top: 1.3rem; max-width: 52ch; color: rgba(255,255,255,.94); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.5; text-shadow: 0 1px 12px rgba(2,20,12,.4); }
.cx-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* dots (radio labels, work with JS off) */
.cx-dots { position: absolute; left: 0; right: 0; bottom: clamp(1.1rem,3vw,1.6rem); z-index: 3; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; padding-inline: clamp(1rem,4vw,2rem); }
.cx-dot { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.45); cursor: pointer; transition: background .2s, width .2s; }
.cx-dot:hover { background: rgba(255,255,255,.8); }
#cx-1:checked~.cx-dots [for=cx-1],#cx-2:checked~.cx-dots [for=cx-2],#cx-3:checked~.cx-dots [for=cx-3],#cx-4:checked~.cx-dots [for=cx-4],#cx-5:checked~.cx-dots [for=cx-5] { background: var(--brand-on-dark); width: 40px; }
.cx-radio:focus-visible~.cx-dots { outline: 2px solid #fff; outline-offset: 6px; border-radius: 8px; }

/* arrows (JS only; hidden until html.js so no-JS users get no dead controls) */
.cx-arrow { display: none; }
.js .cx-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(2,28,18,.45); border: 1px solid rgba(255,255,255,.4); color: #fff; cursor: pointer; transition: background .18s; }
.js .cx-arrow:hover { background: rgba(2,28,18,.74); }
.js .cx-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.js .cx-arrow svg { width: 24px; height: 24px; }
.cx-prev { left: clamp(.6rem,2vw,1.4rem); } .cx-next { right: clamp(.6rem,2vw,1.4rem); }
@media (max-width: 640px) {
  .js .cx-arrow { width: 44px; height: 44px; }
  .cx-title strong::after { height: 4px; margin-top: .8rem; }
  .cx-dot { width: 18px; }
  #cx-1:checked~.cx-dots [for=cx-1],#cx-2:checked~.cx-dots [for=cx-2],#cx-3:checked~.cx-dots [for=cx-3],#cx-4:checked~.cx-dots [for=cx-4],#cx-5:checked~.cx-dots [for=cx-5] { width: 26px; }
}

/* ============================================================
   Credentials & compliance (About page)
   ============================================================ */
.cred-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2rem; }
.cred-group__title { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cred-tag { font-family: var(--font); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 999px; }
.cred-tag--ok { background: #e2f3ea; color: #024d25; }
.cred-tag--pending { background: #fbeccb; color: #7a5300; }
.cred-list { list-style: none; display: grid; gap: .6rem; padding: 0; }
.cred { display: flex; align-items: center; gap: .65rem; padding: .65rem .9rem; border-radius: 10px; font-weight: 600; }
.cred svg { width: 18px; height: 18px; flex: none; }
.cred--ok { background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.cred--ok svg { color: var(--brand); }
.cred--pending { border: 1px dashed #b6c2c8; color: var(--muted); background: transparent; }
.cred--pending svg { color: #9aa7ad; }
.cred-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .cred-groups { grid-template-columns: 1fr; } }
