/* ==========================================================================
   Perimeter IT — Freelance Managed IT & Cybersecurity
   --------------------------------------------------------------------------
   A crisp, corporate light theme built around deep navy and an emerald
   "security" accent. Structured grid, sharper corners, and one dark band
   for contrast. Colours live in section 01.
   --------------------------------------------------------------------------
   Contents
     01. Design tokens
     02. Reset & base
     03. Accessibility helpers
     04. Layout primitives
     05. Decorative background
     06. Buttons & links
     07. Header / navigation
     08. Hero
     09. Section headings
     10. Services (numbered cards)
     11. Approach (checklist grid)
     12. Stats band (dark)
     13. Process
     14. Call to action
     15. Contact & form
     16. Footer
     17. Scroll reveal
     18. Responsive
     19. Reduced motion & print
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand palette */
  --navy: #0f2a4a;
  --navy-deep: #0a1f38;
  --emerald: #10b981;
  --emerald-deep: #059669;
  --accent: var(--emerald);
  --accent-soft: rgba(16, 185, 129, 0.1);
  --navy-soft: rgba(15, 42, 74, 0.06);

  /* Surfaces — light, cool */
  --bg: #f5f8fc;
  --bg-alt: #eef3f9;
  --surface: #ffffff;
  --border: rgba(15, 42, 74, 0.1);
  --border-strong: rgba(15, 42, 74, 0.16);

  /* Text */
  --text: #0f2038;
  --text-muted: #4a5b71;
  --text-dim: #74829a;

  /* Feedback */
  --danger: #dc2626;
  --success: #059669;

  /* Gradients */
  --grad: linear-gradient(120deg, var(--emerald), #34d399);

  /* Shape & depth — sharper, more corporate */
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(15, 42, 74, 0.06);
  --shadow: 0 20px 44px -22px rgba(15, 42, 74, 0.35);

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.3s;

  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}

p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

button,
input,
textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

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

::selection { background: var(--emerald); color: #04241a; }

/* ==========================================================================
   03. ACCESSIBILITY HELPERS
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  translate: -50% -200%;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  transition: translate 0.25s var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--alt { background: var(--bg-alt); }

.accent-text { color: var(--emerald-deep); }

/* ==========================================================================
   05. DECORATIVE BACKGROUND
   A faint blueprint grid with a single soft emerald glow. Fixed, static.
   ========================================================================== */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(15, 42, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 74, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.bg-fx::before {
  content: "";
  position: absolute;
  top: -18vmax; right: -12vmax;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 68%);
  filter: blur(30px);
}

/* ==========================================================================
   06. BUTTONS & LINKS
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.975rem;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--emerald);
  color: #04241a;
  box-shadow: 0 12px 28px -12px rgba(16, 185, 129, 0.6);
}
.btn--primary:hover { background: var(--emerald-deep); color: #fff; box-shadow: 0 16px 34px -12px rgba(5, 150, 105, 0.65); }

.btn--dark {
  background: var(--navy);
  color: #fff;
}
.btn--dark:hover { background: var(--navy-deep); }

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--surface); }

.btn--block { width: 100%; }

.btn__icon { transition: translate var(--dur) var(--ease); }
.btn:hover .btn__icon { translate: 4px 0; }

.link {
  color: var(--emerald-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--dur) var(--ease);
}
.link:hover { color: var(--navy); }

/* ==========================================================================
   07. HEADER / NAVIGATION — solid bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 248, 252, 0.85);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--emerald);
}
.brand__accent { color: var(--emerald-deep); }
.brand__sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: -2px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 2px;
  background: var(--emerald);
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { scale: 1 1; }
.nav__link.is-active { color: var(--navy); }

.nav__link--cta {
  margin-left: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--navy-deep); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.nav-toggle__bar {
  display: block;
  height: 2px; width: 100%;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   08. HERO — centered
   ========================================================================== */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }

.hero__inner { max-width: 820px; margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.83rem;
  font-weight: 600;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero__title {
  font-size: clamp(2.2rem, 1.2rem + 4vw, 3.9rem);
  margin-bottom: 1.35rem;
}
.hero__lead {
  max-width: 58ch;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

/* Trust row */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.75rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero__trust li { display: flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { color: var(--emerald-deep); flex-shrink: 0; }

/* Hero panel: a mock "security dashboard" */
.panel {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--navy-deep);
  box-shadow: var(--shadow);
  color: #dbe6f2;
  text-align: left;
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #8fa6c0;
}
.panel__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); }
.panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.07);
}
.panel__cell {
  padding: 1.4rem 1.3rem;
  background: var(--navy);
}
.panel__cell-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f97b3;
  margin-bottom: 0.5rem;
}
.panel__cell-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.panel__cell-value .ok { color: var(--emerald); }
.panel__meter {
  margin-top: 0.7rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.panel__meter i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }

/* ==========================================================================
   09. SECTION HEADINGS
   ========================================================================== */
.section__head {
  max-width: 62ch;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.section__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--emerald-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section__title {
  font-size: clamp(1.8rem, 1.2rem + 2.3vw, 2.75rem);
  margin-bottom: 1rem;
}
.section__sub {
  color: var(--text-muted);
  font-size: 1.04rem;
}
.section__note {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ==========================================================================
   10. SERVICES (numbered cards with top accent)
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.1rem;
}
.card {
  position: relative;
  padding: 1.9rem 1.6rem 1.7rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  scale: 0 1;
  transform-origin: left;
  transition: scale var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card:hover::before { scale: 1 1; }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card:hover .card__icon { background: var(--navy); color: var(--emerald); }
.card__icon svg { width: 24px; height: 24px; }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
}
.card__title { margin-bottom: 0.55rem; font-size: 1.15rem; }
.card__text { color: var(--text-muted); font-size: 0.94rem; line-height: 1.6; }

/* ==========================================================================
   11. APPROACH (checklist grid)
   ========================================================================== */
.approach {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.approach__item {
  display: flex;
  gap: 1rem;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.approach__item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.approach__check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--emerald-deep);
}
.approach__check svg { width: 20px; height: 20px; }
.approach__title { margin-bottom: 0.35rem; font-size: 1.08rem; }
.approach__text { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }

/* ==========================================================================
   12. STATS BAND (dark, for contrast)
   ========================================================================== */
.stats {
  background: var(--navy);
  color: #fff;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.5rem 1rem;
}
.stat {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:last-child { border-right: 0; }
.stat__value {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
}
.stat__label { color: #b7c6d8; font-size: 0.92rem; }

/* ==========================================================================
   13. PROCESS
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.step__num {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--emerald-deep);
}
.step__num::before { content: "0"; }
.step__title { margin-bottom: 0.4rem; font-size: 1.1rem; }
.step__text { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

/* ==========================================================================
   14. CALL TO ACTION
   ========================================================================== */
.cta__panel {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.25rem);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 130% at 50% 0%, rgba(16, 185, 129, 0.22), transparent 70%);
}
.cta__panel > * { position: relative; }
.cta__title { font-size: clamp(1.9rem, 1.3rem + 2.5vw, 2.9rem); margin-bottom: 1rem; }
.cta__text { max-width: 58ch; margin: 0 auto 2rem; color: #c6d4e4; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }

/* ==========================================================================
   15. CONTACT & FORM
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact__aside { display: flex; flex-direction: column; gap: 1.4rem; }
.contact__aside-title { font-size: 1.2rem; }
.contact__list { display: flex; flex-direction: column; gap: 0.9rem; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.contact__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--navy-soft);
  color: var(--navy);
}
.contact__icon svg { width: 20px; height: 20px; }

.contact__promo {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.contact__promo p { color: #c6d4e4; font-size: 0.95rem; margin-bottom: 0.4rem; }
.contact__promo strong { color: #fff; font-size: 1.02rem; }

/* --- Form --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field__label { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.req { color: var(--emerald-deep); }

.field__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.97rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field__input::placeholder { color: #94a3b8; }
.field__input:hover { border-color: rgba(15, 42, 74, 0.3); }
.field__input:focus {
  outline: none;
  border-color: var(--emerald);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__input--area { resize: vertical; min-height: 140px; line-height: 1.6; }

.field.has-error .field__input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.field__error { display: none; color: var(--danger); font-size: 0.83rem; font-weight: 500; }
.field.has-error .field__error { display: block; }
.field__hint { color: var(--text-dim); font-size: 0.78rem; text-align: right; }

.btn--submit { margin-top: 0.3rem; }
.btn--submit:disabled { opacity: 0.75; cursor: not-allowed; transform: none; }

.spinner {
  display: none;
  width: 17px; height: 17px;
  border: 2px solid rgba(4, 36, 26, 0.35);
  border-top-color: #04241a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn--submit.is-loading .spinner { display: block; }
.btn--submit.is-loading .btn__label { opacity: 0.75; }
@keyframes spin { to { rotate: 360deg; } }

.form__status {
  display: none;
  padding: 0.9rem 1.05rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 500;
}
.form__status.is-visible { display: block; }
.form__status.is-success {
  border: 1px solid rgba(5, 150, 105, 0.35);
  background: rgba(5, 150, 105, 0.1);
  color: #047857;
}
.form__status.is-error {
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}
.form__legal { color: var(--text-dim); font-size: 0.78rem; text-align: center; }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--navy-deep);
  color: #c6d4e4;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
.footer__brand .brand { margin-bottom: 1rem; color: #fff; }
.footer__brand .brand__mark { background: rgba(255, 255, 255, 0.08); }
.footer__brand .brand__accent { color: var(--emerald); }
.footer__summary { max-width: 48ch; color: #9db0c6; font-size: 0.92rem; line-height: 1.65; }
.footer__heading {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.footer__nav ul, .footer__contact ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__nav a { color: #9db0c6; font-size: 0.93rem; transition: color var(--dur) var(--ease); }
.footer__nav a:hover { color: var(--emerald); }
.footer__contact li { font-size: 0.93rem; }
.footer__contact .link { color: var(--emerald); }
.footer__contact .link:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8398b0;
  font-size: 0.85rem;
}

/* ==========================================================================
   17. SCROLL REVEAL
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .approach { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    padding: 0.6rem var(--gutter) 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav__link { display: block; padding: 0.8rem 0.5rem; font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--emerald-deep); }
  .nav__link--cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .stat { border-right: 0; }
}

@media (max-width: 520px) {
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   19. REDUCED MOTION & PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .approach__item:hover, .step:hover { transform: none; }
}

@media (forced-colors: active) {
  .card, .approach__item, .step, .form, .btn { border: 1px solid CanvasText; }
}

@media print {
  .bg-fx, .site-header, .nav-toggle, .panel { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  .stats, .cta__panel, .site-footer { background: #fff; color: #000; }
}
