/* ==========================================================================
   Purotech — site styles
   Colour tokens taken verbatim from BRAND.md v0.1 (colour foundation only).
   Typography is NOT yet defined in the brand guidelines; the stack below is a
   provisional match for the geometric sans used in the wordmark.
   ========================================================================== */

:root {
  /* Core blues */
  --puro-deep:    #00089E;  /* primary / headings */
  --puro-royal:   #2060F0;  /* buttons, links, actions */
  --puro-sky:     #45AFEB;  /* accents, icons, hovers */
  --puro-cyan:    #ADE6FD;  /* soft fills, backgrounds */
  --puro-grad-dk: #0D2EC0;  /* dark stop for the brand gradient */

  /* Neutrals */
  --puro-ink:     #14182B;  /* body text */
  --puro-slate:   #6B7280;  /* borders, decorative rules (per BRAND.md) */
  --puro-mist:    #F4F6FB;  /* section background tint */
  --puro-white:   #FFFFFF;

  /* Slate Grey #6B7280 measures 4.47:1 on Mist — a hair under WCAG AA (4.5:1)
     for normal text. This slightly darker tint clears AA on both White (5.61)
     and Mist (5.19). Slate itself is retained above for borders and rules,
     where contrast minimums don't apply. */
  --puro-slate-text: #616875;

  /* Signature gradient — use as a feature, one element per view.
     Decorative only: its light stop is Sky Blue, which must never sit behind
     text (BRAND.md §5). See --puro-gradient-text for text-bearing panels. */
  --puro-gradient: linear-gradient(135deg, #45AFEB 0%, #2060F0 50%, #0D2EC0 100%);

  /* Text-safe variant of the signature gradient: same 135° direction and same
     family, but starting at Royal Blue so the lightest pixel behind any text
     is 5.26:1 against white rather than Sky Blue's 2.45:1. */
  --puro-gradient-text: linear-gradient(135deg, #2060F0 0%, #0D2EC0 55%, #00089E 100%);

  /* Bootstrap overrides */
  --bs-primary: var(--puro-royal);
  --bs-body-color: var(--puro-ink);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-border-color: #E2E7F0;
}

/* --------------------------------------------------------------- Base --- */

html { scroll-behavior: smooth; }

body {
  color: var(--puro-ink);
  background: var(--puro-white);
  -webkit-font-smoothing: antialiased;
}

/* Keep section headings clear of the ~65px sticky navbar when an in-page
   anchor is followed. */
main section[id] { scroll-margin-top: 84px; }

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  color: var(--puro-deep);
  letter-spacing: -0.01em;
}

a { color: var(--puro-royal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--puro-grad-dk); }

/* Focus ring uses the action colour, per BRAND.md §2 */
:focus-visible {
  outline: 3px solid var(--puro-royal);
  outline-offset: 2px;
  border-radius: 4px;
}

.section { padding: 5.5rem 0; }
.section--mist { background: var(--puro-mist); }

.lead-muted { color: var(--puro-slate-text); font-size: 1.075rem; line-height: 1.7; }

/* Small uppercase section label */
.eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--puro-royal);
  margin-bottom: 0.75rem;
}

/* Short gradient rule under headings */
.rule {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--puro-gradient);
  margin: 1.25rem 0 1.75rem;
}
.rule--center { margin-left: auto; margin-right: auto; }

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

.btn { font-weight: 500; border-radius: 6px; padding: 0.7rem 1.5rem; }

.btn-puro {
  background: var(--puro-royal);
  border-color: var(--puro-royal);
  color: #fff;
}
.btn-puro:hover, .btn-puro:focus {
  background: var(--puro-grad-dk);
  border-color: var(--puro-grad-dk);
  color: #fff;
}

.btn-puro-outline {
  background: transparent;
  border: 1px solid var(--puro-royal);
  color: var(--puro-royal);
}
.btn-puro-outline:hover, .btn-puro-outline:focus {
  background: var(--puro-royal);
  color: #fff;
}

/* On the dark gradient band */
.btn-on-dark {
  background: #fff;
  color: var(--puro-deep);
  border-color: #fff;
}
.btn-on-dark:hover { background: var(--puro-cyan); color: var(--puro-deep); }

/* ------------------------------------------------------------- Navbar --- */

.navbar-puro {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--bs-border-color);
}

.navbar-puro .navbar-brand img { height: 34px; width: auto; }

.navbar-puro .nav-link {
  font-weight: 500;
  color: var(--puro-ink);
  padding: 0.5rem 0.95rem;
}
.navbar-puro .nav-link:hover { color: var(--puro-royal); }
.navbar-puro .nav-link.active { color: var(--puro-deep); font-weight: 600; }

/* Language switcher */
.lang-toggle {
  border: 1px solid var(--bs-border-color);
  background: #fff;
  color: var(--puro-ink);
  font-weight: 500;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}
.lang-toggle:hover { border-color: var(--puro-sky); color: var(--puro-royal); }
.lang-menu .dropdown-item.active,
.lang-menu .dropdown-item:active {
  background: var(--puro-mist);
  color: var(--puro-deep);
  font-weight: 600;
}
.lang-menu .dropdown-item .lang-native { color: var(--puro-slate-text); font-size: 0.85em; }

/* --------------------------------------------------------------- Hero --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: var(--puro-white);
}

/* Soft watery wash — Pale Cyan, purely decorative */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: 60vw;
  height: 130%;
  background: radial-gradient(closest-side, var(--puro-cyan) 0%, rgba(173, 230, 253, 0) 72%);
  opacity: 0.7;
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  font-weight: 700;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: var(--puro-slate-text);
  line-height: 1.65;
  max-width: 34em;
}

.hero-img { max-width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(0, 8, 158, 0.16)); }

.badge-made {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--puro-mist);
  border: 1px solid var(--bs-border-color);
  color: var(--puro-deep);
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

/* --------------------------------------------------------- Stats band --- */
/* The single gradient feature element on the page (BRAND.md §3). */

.stats-band {
  background: var(--puro-gradient-text);  /* not --puro-gradient: it carries text */
  color: #fff;
  padding: 3.25rem 0;
}
.stat-value {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.9rem;
  /* 0.85 alpha measured 4.25:1 against Royal Blue; 0.92 clears AA at 4.69:1. */
  color: rgba(255, 255, 255, 0.92);
  margin-top: 0.35rem;
}

/* ------------------------------------------------------ Range strip --- */
/* Slim signpost band sitting between the stats and What-we-do. */

.range-strip {
  background: var(--puro-mist);
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.9rem 0;
}
.range-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}
.range-strip-label {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--puro-slate-text);
}
.range-strip-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
}
.range-strip-links a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--puro-deep);
  text-decoration: none;
  padding: 0.15rem 0;
}
.range-strip-links a::after {
  content: "→";
  margin-left: 0.4rem;
  color: var(--puro-royal);
  transition: transform 0.15s ease;
  display: inline-block;
}
.range-strip-links a:hover { color: var(--puro-royal); }
.range-strip-links a:hover::after { transform: translateX(3px); }

@media (max-width: 575.98px) {
  .range-strip-links { flex-direction: column; align-items: center; gap: 0.35rem; }
}

/* -------------------------------------------------------------- Cards --- */

.card-puro {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card-puro:hover {
  border-color: var(--puro-sky);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 8, 158, 0.08);
}
.card-puro h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card-puro p { color: var(--puro-slate-text); margin-bottom: 0; line-height: 1.65; }

/* Icon chip — Sky Blue is decorative only, never carries text (BRAND.md §5) */
.icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--puro-cyan);
  color: var(--puro-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.icon-chip svg { width: 26px; height: 26px; }

/* ------------------------------------------------------- How it works --- */

.step-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--puro-deep);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.cutaway-img { max-width: 340px; width: 100%; height: auto; }

/* ----------------------------------------------------------- Products --- */

.nav-pills-puro .nav-link {
  color: var(--puro-ink);
  font-weight: 500;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  margin: 0 0.35rem 0.5rem 0;
  background: #fff;
}
.nav-pills-puro .nav-link:hover { border-color: var(--puro-sky); color: var(--puro-royal); }
.nav-pills-puro .nav-link.active {
  background: var(--puro-deep);
  border-color: var(--puro-deep);
  color: #fff;
}

/* NB: this element also carries Bootstrap's .table-responsive. Use overflow-x
   rather than `overflow: hidden` — the latter wins the cascade and leaves the
   wide spec tables clipped and unscrollable on narrow viewports. A non-visible
   overflow-x still clips the rounded corners, which is all we wanted.

   overflow-y must be stated explicitly: per CSS, when one axis is not `visible`
   the other computes `visible` to `auto`. That gave a vertical scrollbar off ~1px
   of subpixel table height (441.42px inside a 441px box). Nothing overflows
   vertically here, so `hidden` clips nothing. */
.spec-table {
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}
.spec-table table { margin-bottom: 0; }
.spec-table thead th {
  background: var(--puro-deep);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  white-space: nowrap;
  border: 0;
  padding: 0.9rem 1rem;
}
.spec-table tbody td { padding: 0.8rem 1rem; vertical-align: middle; font-size: 0.94rem; }
.spec-table tbody tr:nth-child(odd) { background: var(--puro-mist); }
.spec-table tbody td:first-child { font-weight: 600; color: var(--puro-deep); white-space: nowrap; }

.table-note { font-size: 0.85rem; color: var(--puro-slate-text); margin-top: 1rem; line-height: 1.6; }

.kit-img { max-width: 100%; height: auto; }

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

.contact-panel {
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 2rem;
}
.form-control, .form-select {
  border-color: var(--bs-border-color);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--puro-royal);
  box-shadow: 0 0 0 3px rgba(32, 96, 240, 0.15);
}
.form-label { font-weight: 500; font-size: 0.92rem; }

/* Honeypot. Moved off-canvas rather than display:none — some bots skip fields
   that are explicitly hidden, which would defeat the trap. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-check-input:checked { background-color: var(--puro-royal); border-color: var(--puro-royal); }
.form-check-input:focus { border-color: var(--puro-royal); box-shadow: 0 0 0 3px rgba(32, 96, 240, 0.15); }
.form-check-label { font-size: 0.92rem; color: var(--puro-slate-text); }

/* Send result. Colours chosen to clear AA on white (see README). */
.form-status { display: none; margin-bottom: 1rem; padding: 0.85rem 1rem; border-radius: 6px; font-size: 0.94rem; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #E7F7EE; border: 1px solid #9FD9BA; color: #14603A; }  /* 7.0:1 */
.form-status.is-error   { background: #FDECEC; border: 1px solid #F0B4B4; color: #8A1C1C; }  /* 7.4:1 */
.form-status ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 0.9rem; margin-bottom: 1.35rem; }
.contact-list svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--puro-royal); margin-top: 3px; }
.contact-list a { color: var(--puro-deep); font-weight: 500; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

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

.footer {
  background: var(--puro-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 1.75rem;
  font-size: 0.92rem;
}
.footer img { height: 30px; width: auto; }
.footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.55rem; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer :focus-visible { outline-color: var(--puro-cyan); }

/* Registered address, sitting under the copyright line. */
.footer-address {
  margin: 0.35rem 0 0;
  font-style: normal;   /* Bootstrap's reboot already does this; explicit for clarity */
  font-size: 0.85rem;
  color: inherit;       /* inherits .footer-base's rgba(255,255,255,.55) */
}

/* Build stamp. sterlingsep.com renders this at rgba(255,255,255,.18) — near
   invisible. It is still text, so it is toned up here to clear WCAG AA against
   Deep Blue while staying visually recessive. */
.footer-version {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}

/* Reverse the logo out of Deep Blue. The supplied PNG is dark-on-transparent;
   invert + hue-rotate lands it as a clean white mark until a proper reversed
   asset is produced (BRAND.md §7 — logo variants not yet defined). */
.logo-reversed { filter: brightness(0) invert(1); opacity: 0.95; }

/* ------------------------------------------------------ Accessibility --- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--puro-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card-puro:hover { transform: none; }
}

@media (max-width: 991.98px) {
  .section { padding: 3.75rem 0; }
  .hero { padding: 3rem 0; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero .rule { margin-inline: auto; }        /* follow the centred hero text */
  .hero .badge-made { margin-inline: auto; }
  .hero::before { display: none; }
  .navbar-puro .nav-link { padding: 0.6rem 0; }
}
