/* =========================================================================
   SUBSEAZEN ENGINEERING SERVICES — Design System
   Palette: offshore navy + steel + brand green, mist ground, safety-red accent
   Type: Space Grotesk (display) · Inter (body) · IBM Plex Mono (spec/data)
   ========================================================================= */

:root {
  /* Core palette */
  --abyss:      #0a1a2f;
  --abyss-2:    #0d2138;
  --steel:      #13293f;
  --steel-line: #1e3a56;
  --brand:      #6cae3e;
  --brand-2:    #86c73f;
  --brand-deep: #4f8a2c;
  --safety:     #d64420;
  --ink:        #10202f;
  --slate:      #56697a;
  --slate-2:    #7c8c9a;
  --mist:       #f4f7f9;
  --mist-2:     #eaf0f3;
  --line:       #dce5eb;
  --white:      #ffffff;

  /* Type */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem);
  --step-1:  clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.6rem);

  /* Space + structure */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(16,32,47,.06), 0 8px 30px -12px rgba(16,32,47,.18);
  --shadow-lg: 0 30px 60px -28px rgba(10,26,47,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
::selection { background: var(--brand); color: #06131f; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.dark { background: var(--abyss); color: #d8e2ea; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }

/* ---------- Spec eyebrow (signature) ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--brand);
}
.dark .eyebrow { color: var(--brand-2); }
.dark .eyebrow::before { background: var(--brand-2); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: var(--step-3); margin-top: .9rem; }
.section-head p { margin-top: 1rem; color: var(--slate); font-size: var(--step-1); }
.dark .section-head p { color: #9fb2c1; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand); --fg: #06131f;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-mono); font-size: var(--step--1);
  letter-spacing: .06em; text-transform: uppercase; font-weight: 500;
  padding: .95rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(108,174,62,.7); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: #dce7ee; border-color: var(--steel-line); }
.btn--ghost:hover { --bg: rgba(255,255,255,.05); box-shadow: none; border-color: var(--brand-2); }
.btn--outline { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--outline:hover { --bg: var(--white); box-shadow: var(--shadow); border-color: var(--brand); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,26,47,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--steel-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.28rem; color: #fff; letter-spacing: -.02em; }
.brand__sub { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--brand-2); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__links a {
  font-size: .92rem; color: #b9c8d4; padding: .55rem .8rem; border-radius: var(--radius);
  transition: color .2s, background .2s; font-weight: 450;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav__links a.is-active { color: var(--brand-2); }
.nav__cta { margin-left: .6rem; }

.nav__toggle {
  display: none; width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--steel-line); border-radius: var(--radius); position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px;
  background: #dce7ee; transform: translate(-50%,-50%); transition: .3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.open .nav__toggle span { background: transparent; }
.nav.open .nav__toggle span::before { top: 0; transform: translate(-50%,-50%) rotate(45deg); }
.nav.open .nav__toggle span::after { top: 0; transform: translate(-50%,-50%) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--abyss); border-bottom: 1px solid var(--steel-line);
    padding: 1rem var(--gutter) 1.5rem; gap: .15rem;
    transform: translateY(-140%); transition: transform .4s var(--ease); z-index: 40;
  }
  .nav.open .nav__links { transform: translateY(0); }
  .nav__links a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav__cta { margin: .8rem 0 0; }
  .btn.nav__cta { justify-content: center; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; background: var(--abyss); color: #dce7ee; overflow: hidden; isolation: isolate; }
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image:
    linear-gradient(rgba(108,174,62,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,174,62,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 80% 0%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -12vw; top: -18vw;
  background: radial-gradient(closest-side, rgba(108,174,62,.22), transparent 70%);
  filter: blur(10px);
}
.hero__inner { padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem); position: relative; }
.hero__ribbon {
  display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center;
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate-2); margin-bottom: 1.8rem;
}
.hero__ribbon b { color: var(--brand-2); font-weight: 500; }
.hero__ribbon span { display: inline-flex; align-items: center; gap: .5rem; }
.hero h1 {
  font-size: var(--step-4); max-width: 16ch; color: #fff; font-weight: 600;
}
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero__lead { margin-top: 1.6rem; max-width: 56ch; font-size: var(--step-1); color: #a9bccb; }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__stats {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--steel-line); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.hero__stat { padding: 1.6rem 1.4rem; border-right: 1px solid var(--steel-line); }
.hero__stat:last-child { border-right: none; }
.hero__stat b { font-family: var(--f-display); font-size: var(--step-2); color: #fff; display: block; letter-spacing: -.03em; }
.hero__stat span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); }
@media (max-width: 720px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stat:nth-child(2) { border-right: none; }
  .hero__stat:nth-child(1), .hero__stat:nth-child(2) { border-bottom: 1px solid var(--steel-line); }
}

/* ---------- Capability index strip ---------- */
.capstrip { background: var(--steel); border-block: 1px solid var(--steel-line); }
.capstrip__row { display: flex; flex-wrap: wrap; gap: 0; }
.capstrip__item {
  flex: 1 1 200px; padding: 1.5rem var(--gutter); border-right: 1px solid var(--steel-line);
  display: flex; gap: 1rem; align-items: flex-start; color: #c4d2dd; transition: background .3s;
}
.capstrip__item:last-child { border-right: none; }
.capstrip__item:hover { background: rgba(108,174,62,.08); }
.capstrip__num { font-family: var(--f-mono); font-size: .72rem; color: var(--brand-2); letter-spacing: .1em; padding-top: 3px; }
.capstrip__item h3 { font-size: 1.05rem; color: #fff; }
.capstrip__item p { font-size: .82rem; color: var(--slate-2); margin-top: .25rem; }

/* =========================================================================
   CARD GRIDS
   ========================================================================= */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Service card */
.svc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.svc::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand);
  transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd9e1; }
.svc:hover::after { transform: scaleY(1); }
.svc__code { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; color: var(--brand-deep); }
.svc__icon { width: 40px; height: 40px; color: var(--brand-deep); }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--slate); font-size: .93rem; }
.svc__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.tag {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; color: var(--slate);
  background: var(--mist-2); border: 1px solid var(--line); border-radius: 3px; padding: .25rem .5rem;
}

/* Feature list */
.flist { list-style: none; display: grid; gap: .85rem; }
.flist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--slate); }
.flist li b { color: var(--ink); font-weight: 600; }
.flist svg { width: 18px; height: 18px; color: var(--brand-deep); flex: none; margin-top: 4px; }

/* Split feature block */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* =========================================================================
   STANDARDS TABLE (API)
   ========================================================================= */
.stdtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stdtable thead th {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  text-align: left; color: var(--brand-2); padding: 1rem 1.1rem; background: var(--steel);
  border-bottom: 1px solid var(--steel-line);
}
.stdtable tbody td { padding: 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--slate); }
.stdtable tbody tr { background: var(--white); transition: background .2s; }
.stdtable tbody tr:hover { background: var(--mist); }
.stdtable .std-code { font-family: var(--f-mono); color: var(--ink); font-weight: 500; white-space: nowrap; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* =========================================================================
   PRODUCTS
   ========================================================================= */
.filterbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.search {
  position: relative; flex: 1 1 260px; max-width: 360px;
}
.search input {
  width: 100%; font: inherit; font-size: .95rem; padding: .8rem 1rem .8rem 2.6rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108,174,62,.15); outline: none; }
.search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--slate-2); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  padding: .5rem .85rem; border: 1px solid var(--line); background: var(--white); color: var(--slate);
  border-radius: 100px; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--ink); }
.chip.is-active { background: var(--abyss); color: #fff; border-color: var(--abyss); }
.chip .count { opacity: .55; margin-left: .3rem; }

.prodgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .prodgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prodgrid { grid-template-columns: 1fr; } }

.prod {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.prod:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod__vis {
  height: 132px; position: relative; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--mist) 0%, var(--mist-2) 100%);
  border-bottom: 1px solid var(--line);
}
.prod__vis svg { width: 60px; height: 84px; }
.prod__band { position: absolute; top: 12px; left: 12px; right: 12px; height: 8px; border-radius: 2px; }
.prod__cat {
  position: absolute; bottom: 10px; right: 12px; font-family: var(--f-mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2);
}
.prod__body { padding: 1.1rem 1.15rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.prod__code { font-family: var(--f-mono); font-size: .72rem; color: var(--brand-deep); letter-spacing: .05em; }
.prod h3 { font-size: 1.02rem; letter-spacing: -.01em; }
.prod__spec { list-style: none; display: grid; gap: .3rem; margin-top: .3rem; }
.prod__spec li { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--slate); border-bottom: 1px dashed var(--line); padding-bottom: .3rem; }
.prod__spec li span:last-child { font-family: var(--f-mono); color: var(--ink); text-align: right; }
.prod__foot { margin-top: auto; padding-top: .3rem; }
.prod__link { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-deep); display: inline-flex; align-items: center; gap: .4rem; }
.prod__link svg { width: 13px; height: 13px; }
.noresults { text-align: center; padding: 4rem 1rem; color: var(--slate); font-family: var(--f-mono); }

/* =========================================================================
   PROJECTS
   ========================================================================= */
.proj {
  display: grid; grid-template-columns: 56px 1.4fr 1fr; gap: 1.5rem; align-items: start;
  padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.proj:hover { border-color: #cdd9e1; box-shadow: var(--shadow); transform: translateY(-2px); }
.proj__no { font-family: var(--f-mono); font-size: 1.4rem; color: var(--brand); font-weight: 500; letter-spacing: -.02em; }
.proj__client { font-family: var(--f-display); font-size: var(--step-1); font-weight: 600; }
.proj__loc { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-2); margin-top: .3rem; display: block; }
.proj__scope { color: var(--slate); font-size: .92rem; margin-top: .8rem; }
.proj__disc { font-size: .84rem; color: var(--slate); }
.proj__disc b { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: .4rem; font-weight: 500; }
@media (max-width: 760px) { .proj { grid-template-columns: 40px 1fr; } .proj__disc { grid-column: 1 / -1; padding-top: .8rem; border-top: 1px solid var(--line); } }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.clients div {
  background: var(--white); aspect-ratio: 3/2; display: grid; place-items: center; padding: 1.2rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--slate); text-align: center; transition: color .3s, background .3s;
}
.clients div:hover { color: var(--abyss); background: var(--mist); }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   CERTIFICATIONS
   ========================================================================= */
.certcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden;
}
.certcard--feature { border-color: var(--brand); box-shadow: 0 20px 50px -30px rgba(108,174,62,.55); }
.certseal {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--abyss); color: var(--brand-2); font-family: var(--f-mono); font-size: .62rem; text-align: center; letter-spacing: .02em; line-height: 1.1;
}
.certcard h3 { font-size: var(--step-1); }
.certcard .meta { font-family: var(--f-mono); font-size: .78rem; color: var(--slate); display: grid; gap: .35rem; }
.certcard .meta b { color: var(--ink); }
.stdpills { display: flex; flex-wrap: wrap; gap: .5rem; }
.stdpill { font-family: var(--f-mono); font-size: .74rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--mist); }

/* =========================================================================
   CONTACT + FORM
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.office {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; background: var(--white);
  transition: border-color .3s, box-shadow .3s;
}
.office:hover { border-color: #cdd9e1; box-shadow: var(--shadow); }
.office h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.office .flag { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep); border: 1px solid var(--line); border-radius: 3px; padding: .15rem .45rem; }
.office address { font-style: normal; color: var(--slate); font-size: .9rem; margin-top: .6rem; }
.office .tel { font-family: var(--f-mono); font-size: .82rem; color: var(--ink); margin-top: .5rem; display: block; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.field label .req { color: var(--safety); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--mist); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 3px rgba(108,174,62,.14); outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .78rem; color: var(--slate-2); margin-top: .3rem; }
.form__status { margin-top: 1rem; font-size: .9rem; padding: .8rem 1rem; border-radius: var(--radius); display: none; }
.form__status.ok { display: block; background: rgba(108,174,62,.12); color: var(--brand-deep); border: 1px solid rgba(108,174,62,.35); }
.form__status.err { display: block; background: rgba(214,68,32,.1); color: var(--safety); border: 1px solid rgba(214,68,32,.3); }

.mapwrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.mapwrap iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.2) contrast(1.05); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--abyss); color: #9fb2c1; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--steel-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 1.1rem; font-weight: 500; }
.footer-grid a { color: #a9bccb; font-size: .9rem; display: block; padding: .28rem 0; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: .88rem; color: #8ea2b2; }
.footer-brand .brand__name { font-size: 1.35rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--steel-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; color: var(--slate-2);
}
.footer-bottom a { color: var(--slate-2); }
.footer-bottom a:hover { color: var(--brand-2); }

/* =========================================================================
   WHATSAPP FLOAT
   ========================================================================= */
.wa {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6); transition: transform .3s var(--ease); color: #fff;
}
.wa:hover { transform: scale(1.08) translateY(-2px); }
.wa svg { width: 30px; height: 30px; }
.wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: wa-pulse 2.4s var(--ease) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* =========================================================================
   PAGE BANNER (sub-pages)
   ========================================================================= */
.pbanner { background: var(--abyss); color: #dce7ee; position: relative; overflow: hidden; isolation: isolate; }
.pbanner .hero__grid { opacity: .4; }
.pbanner__inner { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.pbanner h1 { font-size: var(--step-3); color: #fff; max-width: 20ch; margin-top: .8rem; }
.pbanner p { margin-top: 1rem; max-width: 60ch; color: #a9bccb; font-size: var(--step-1); }
.crumbs { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }
.crumbs a:hover { color: var(--brand-2); }

/* CTA band */
.ctaband { background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #06131f; }
.ctaband__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.ctaband h2 { font-size: var(--step-2); color: #06131f; max-width: 20ch; }
.ctaband .btn { --bg: var(--abyss); --fg: #fff; }
.ctaband .btn:hover { box-shadow: 0 12px 24px -12px rgba(10,26,47,.6); }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Prose */
.prose p { color: var(--slate); margin-bottom: 1rem; max-width: 68ch; }
.lead-xl { font-size: var(--step-2); font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); max-width: 24ch; }
.mono-label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep); }

/* Screen-reader only */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Cards keep a white background inside .dark sections, so their headings must
   not inherit the section's white heading colour. */
.dark .svc h3,
.dark .certcard h3,
.dark .office h3,
.dark .prod h3 { color: var(--ink); }

/* =========================================================================
   SCOPE OF SERVICES — components added for the service-discipline pages.
   New classes only; nothing above is overridden.
   ========================================================================= */

/* In-section anchor targets clear the sticky header */
.svc[id], .group[id] { scroll-margin-top: 88px; }

/* Group label + spacing between blocks inside a section */
.group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.group > .mono-label { display: block; margin-bottom: 1rem; }
.group__intro { color: var(--slate); max-width: 70ch; margin: -.3rem 0 1.25rem; }
.dark .group__intro { color: #9fb2c1; }
.dark .group > .mono-label { color: var(--brand-2); }

/* Square-bullet list for dense scope lists */
.blist { list-style: none; padding: 0; display: grid; gap: .45rem; }
.blist li { position: relative; padding-left: 1.1rem; color: var(--slate); font-size: .92rem; line-height: 1.5; }
.blist li::before { content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px; background: var(--brand); border-radius: 1px; }
.blist--2 { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; }
@media (max-width: 640px) { .blist--2 { grid-template-columns: 1fr; } }

/* Linked discipline cards */
.svc__more { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-deep); display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; }
.svc__more svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
a.svc:hover .svc__more svg { transform: translateX(3px); }

/* Process steps (concept → execution) */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.steps li { background: var(--white); padding: 1.3rem 1.2rem; }
.steps__no { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: var(--brand-deep); }
.steps h3 { font-size: 1.05rem; margin-top: .4rem; }
.steps p { font-size: .85rem; color: var(--slate); margin-top: .3rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* Timeline (company milestones) */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline li { position: relative; padding: 1.7rem 1.25rem 0 0; border-top: 2px solid var(--line); }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--white); }
.timeline__year { font-family: var(--f-display); font-size: var(--step-2); font-weight: 600; letter-spacing: -.03em; color: var(--ink); display: block; line-height: 1; }
.timeline h3 { font-size: 1.05rem; margin-top: .6rem; }
.timeline p { color: var(--slate); font-size: .9rem; margin-top: .4rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 1.75rem 1.6rem; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: .3rem; left: -8px; }
}

/* Four-across client grid (avoids empty cells with eight names) */
.clients.clients--4 { grid-template-columns: repeat(4, 1fr); }
.clients.clients--4 div { aspect-ratio: 5 / 2; }
@media (max-width: 900px) { .clients.clients--4 { grid-template-columns: repeat(2, 1fr); } }

/* Fire-class suitability dots */
.fdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.fdot--yes { background: #2e9b4f; }
.fdot--ltd { background: #e39a2d; }
.fdot--no  { background: #c23a2b; }
.stdtable td.fcell, .stdtable th.fcell { text-align: center; }
.stdtable td.fcell { vertical-align: middle; }
.stdtable tbody th { padding: 1.1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.fclass { display: block; margin-top: .25rem; font-family: var(--f-body); font-size: .72rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #9fb2c1; }
.flegend { display: flex; flex-wrap: wrap; gap: 1.25rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; color: var(--slate); margin-bottom: 1rem; }
.flegend span { display: inline-flex; align-items: center; gap: .45rem; }

/* Callout note */
.callout { margin-top: 1.5rem; padding: 1.1rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius); color: var(--slate); font-size: .93rem; }
.callout b { color: var(--ink); }
.callout--safety { border-left-color: var(--safety); }
