/* ==========================================================================
   Halian Systems — Design System
   Fonts: Sora (display/headings) + Source Sans Pro (body) — matches the
   live haliansystems.com typography.
   Palette: dark-tech theme — deep navy backgrounds with tonal shifts between
   sections, slate-navy card surfaces, and an emerald/cyber-blue accent pair.
   ========================================================================== */

:root {
  /* Base palette — deep navy, alternated section-by-section for depth */
  --bg: #0B132B;
  --bg-soft: #0F172A;
  --bg-deep: #020617;
  --ink: #F8FAFC;
  --ink-soft: #94A3B8;
  --border: #334155;

  /* Card / surface elements (distinct from all three section backgrounds) */
  --surface: #1E293B;
  --surface-hover: #24304A;

  /* "Navy" family repurposed as dark UI chrome (buttons, hover fills) rather
     than text — navy-900 is the one exception, kept as the light heading/
     high-contrast text color since that's its dominant use across the site. */
  --navy-900: #F8FAFC;
  --navy-800: #2A3B52;
  --navy-700: #1E293B; /* primary "solid dark" button/chrome surface */
  --navy-600: #334155;
  --navy-100: rgba(148, 163, 184, 0.12);

  /* Accent palette — emerald primary, cyber-blue secondary */
  --purple: #10B981;
  --purple-dark: #0C8F68;
  --purple-soft: rgba(16, 185, 129, 0.14);
  --green: #3B82F6;
  --green-dark: #2563EB;
  --green-soft: rgba(59, 130, 246, 0.14);

  /* Gradient used sparingly for hero/CTA surfaces */
  --gradient-brand: linear-gradient(135deg, #0B132B 0%, #020617 100%);
  --gradient-accent: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 12px 34px rgba(16, 185, 129, 0.4);

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Source Sans Pro", "Segoe UI", sans-serif;

  --container: 1240px;
  --container-narrow: 860px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: page-fade-in .38s ease backwards;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes page-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}
body.page-exit {
  animation: page-fade-out .22s ease forwards;
  /* Freeze layout during exit so the page doesn't reflow/scroll while fading. */
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  body, body.page-exit { animation: none; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Skip to content ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 400;
  background: var(--purple);
  color: #04140F;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
button { font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

/* ---------- Small utility classes (replace one-off inline styles) ---------- */
.u-muted { color: var(--ink-soft); }
.u-mt-24 { margin-top: 24px; }
.u-gap-16 { gap: 16px; }
.u-narrow-820 { max-width: 820px; margin: 0 auto; }
.h2-compact { font-size: 1.5rem; }
.service-included-grid { align-items: start; gap: 48px; margin-bottom: 56px; }
a.mini-card { display: block; }

section { padding: 96px 0; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--green);
  display: inline-block;
  border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.bg-soft { background: var(--bg-soft); }
.bg-deep { background: var(--bg-deep); }
.bg-navy { background: var(--gradient-brand); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .eyebrow { color: #B9E6C8; }
.bg-navy .section-head p { color: rgba(255,255,255,0.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #04140F;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(16,185,129,0.55); }
.btn-navy {
  background: var(--navy-700);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-navy:hover { transform: translateY(-2px); background: var(--navy-800); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: inherit;
}
.btn-outline:hover { border-color: currentColor; background: rgba(255,255,255,0.08); }
.btn-outline-navy {
  background: transparent;
  border-color: rgba(248,250,252,0.3);
  color: var(--ink);
}
.btn-outline-navy:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--purple);
  font-family: var(--font-display);
  font-size: 0.92rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Utility top bar ---------- */
.topbar {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar-contacts { display: flex; align-items: center; gap: 20px; }
.topbar-contacts a { display: flex; align-items: center; gap: 6px; color: #fff; transition: color .15s ease; }
.topbar-contacts a:hover { color: #8FE3B0; }
.topbar-contacts svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-tagline { color: rgba(255,255,255,0.55); }
@media (max-width: 760px) { .topbar { display: none; } }

/* ---------- Mobile sticky call/book bar ---------- */
.mobile-cta-bar { display: none; }
@media (max-width: 980px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .mobile-cta-bar a { flex: 1; }
  body { padding-bottom: 68px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
/* backdrop-filter lives on a pseudo-element, not .site-header itself, because
   filter/backdrop-filter on an ancestor creates a new containing block for
   position:fixed descendants (like .main-nav), which breaks the mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11,19,43,0.78);
  backdrop-filter: saturate(180%) blur(12px);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo-mark {
  width: 42px; height: 42px; flex-shrink: 0;
}
.brand .logo-text {
  font-family: var(--font-display);
  line-height: 1.1;
}
.brand .logo-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 0.01em;
}
.brand .logo-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--navy-100); color: var(--purple); }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: #04140F !important; }
.main-nav a.nav-mobile-cta, .main-nav a.nav-mobile-cta:hover { background: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: all .2s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-6px); }
.nav-toggle::after { position: absolute; transform: translateY(6px); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open::before { transform: rotate(45deg); }
.nav-toggle.open::after { transform: rotate(-45deg); }

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 84px; left: 0; right: 0; bottom: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 16px; font-size: 1.05rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .header-cta .btn-navy-desktop { display: none; }
  .nav-toggle { display: flex; }
}
@media (min-width: 981px) {
  .nav-mobile-cta { display: none; }
}

/* ---------- Nav dropdown (Services mega-menu) ---------- */
.nav-item { display: flex; align-items: center; }
.nav-drop-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 6px;
  margin-left: -6px;
}
.nav-drop-toggle svg { width: 16px; height: 16px; transition: transform .18s ease; }
.nav-dropdown { list-style: none; margin: 0; padding: 0; }
.nav-dropdown a { display: block; }
.nav-dropdown-heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 10px 6px;
}
.nav-dropdown-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  color: var(--ink) !important;
  font-weight: 600;
  white-space: normal !important;
  transition: background .12s ease, color .12s ease;
}
.nav-dropdown-link:hover { background: var(--surface-hover); color: var(--purple) !important; }
.ndl-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
}
.ndl-icon svg { width: 15px; height: 15px; }
.nav-dropdown-link:hover .ndl-icon { background: var(--purple); color: #fff; }
.nav-dropdown-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 185, 129, 0.25);
}
.nav-dropdown-cta strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--navy-900); }
.nav-dropdown-cta p { font-size: 0.8rem; color: var(--ink-soft); margin: 4px 0 12px; }

@media (min-width: 981px) {
  .nav-dropdown {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    left: 50%;
    width: min(860px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr);
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 200;
  }
  .nav-item.has-dropdown:focus-within .nav-dropdown,
  .nav-item.has-dropdown.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-item.has-dropdown.open .nav-drop-toggle svg { transform: rotate(180deg); }
  .nav-dropdown-col { padding-right: 6px; min-width: 0; }
  .nav-dropdown-link { padding: 8px 10px; font-size: 0.84rem; }
  .nav-dropdown-featured {
    background: var(--purple-soft);
    border-radius: var(--radius-sm);
    padding: 14px;
    min-width: 0;
  }
  .nav-dropdown-featured .nav-dropdown-cta .btn { white-space: normal; }
  .nav-dropdown-featured .nav-dropdown-link { padding: 8px 10px; }
  .nav-dropdown .nav-dropdown-all {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 10px 10px 0;
    border-top: 1px solid var(--border);
    color: var(--purple);
    font-weight: 700;
    font-size: 0.86rem;
  }
}
@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  .nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-item.has-dropdown:hover .nav-drop-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 980px) {
  .nav-item.has-dropdown { flex-direction: column; align-items: stretch; position: relative; }
  .nav-item.has-dropdown > a { flex: 1; }
  .nav-item.has-dropdown .nav-drop-toggle {
    position: absolute;
    right: 4px;
    top: 6px;
    width: 44px; height: 44px;
    margin: 0;
  }
  .nav-dropdown {
    display: none;
    flex-direction: column;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin: 0 0 8px;
  }
  .nav-item.has-dropdown.open .nav-drop-toggle svg { transform: rotate(180deg); }
  .nav-item.has-dropdown.open .nav-dropdown { display: flex; }
  .nav-dropdown-col, .nav-dropdown-featured { width: 100%; }
  .nav-dropdown-link { padding: 12px 10px; font-size: 0.96rem; border-bottom: 1px solid var(--border); }
  .nav-dropdown-featured { background: none; padding: 0; }
  .nav-dropdown-featured .nav-dropdown-cta { padding: 12px 10px 4px; border-top: none; }
  .nav-dropdown-all { color: var(--purple) !important; padding: 12px 10px; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease, color .15s ease, border-color .15s ease;
  z-index: 140;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--purple); border-color: var(--purple); color: #04140F; }
@media (max-width: 980px) {
  .back-to-top { bottom: 84px; right: 16px; width: 42px; height: 42px; }
}
@media (min-width: 981px) {
  .back-to-top { bottom: 32px; }
}
.cookie-banner-open .back-to-top { display: none; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--bg-deep);
  color: rgba(255,255,255,0.82);
  padding: 18px 24px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.88rem; max-width: 640px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn-outline-navy { border-color: rgba(255,255,255,0.35); color: #fff; }
.cookie-banner .btn-outline-navy:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 980px) {
  .cookie-banner { bottom: 68px; padding: 16px 20px; }
}
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ---------- Service page jump nav (scroll-spy) ---------- */
.service-jumpnav {
  position: sticky;
  top: 84px;
  z-index: 90;
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 761px) {
  .service-jumpnav { top: 122px; }
}
.service-jumpnav-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.service-jumpnav-track::-webkit-scrollbar { display: none; }
.service-jumpnav-track a {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  white-space: nowrap;
  border: 1.5px solid var(--border);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.service-jumpnav-track a:hover { border-color: var(--purple); color: var(--purple); }
.service-jumpnav-track a.active {
  background: var(--gradient-accent);
  color: #04140F;
  border-color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(560px 320px at 88% -10%, rgba(16,185,129,0.32), transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(59,130,246,0.28), transparent 60%);
  pointer-events: none;
  transform: translateY(var(--parallax-shift, 0px));
  will-change: transform;
}
.hero .inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero .lead { font-size: 1.18rem; color: rgba(255,255,255,0.86); max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.page-hero {
  background: var(--gradient-brand);
  color: #fff;
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  background: radial-gradient(480px 280px at 90% 0%, rgba(16,185,129,0.3), transparent 60%);
  pointer-events: none;
  transform: translateY(var(--parallax-shift, 0px));
  will-change: transform;
}
.page-hero .inner { position: relative; z-index: 2; max-width: 720px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.page-hero .eyebrow { color: #B9E6C8; }

/* ---------- Hero particles (animated + parallax) ---------- */
.hero-particles {
  position: absolute;
  left: 0; right: 0;
  top: -60px; bottom: -60px;
  z-index: 1;
  pointer-events: none;
  display: block;
  width: 100%;
  height: calc(100% + 120px);
  transform: translateY(var(--parallax-shift-slow, 0px));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-particles { display: none; }
  .hero::before, .page-hero::before { transform: none; }
}

/* ---------- Stats ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.stats-strip .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
}
.stats-strip .stat span { font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.stats-strip.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) { .stats-strip.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats-strip.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover {
  transform: translateY(-7px);
  background: var(--surface-hover);
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.35), 0 28px 56px -20px rgba(16,185,129,0.65), 0 0 40px -8px rgba(16,185,129,0.3);
}
.card:hover .icon-badge { box-shadow: 0 0 22px rgba(16,185,129,0.7); transform: scale(1.06); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-accent);
  color: #04140F;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: box-shadow .22s ease, transform .22s ease;
}
.icon-badge svg { width: 26px; height: 26px; }

.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-accent);
  color: #04140F;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.approach-card { text-align: left; }
.approach-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

.service-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.98rem;
  color: var(--ink);
}
.check-list li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--purple);
  margin-top: 2px;
}

.mini-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border: 1px solid var(--border);
}
.mini-card h4 { font-size: 1rem; margin-bottom: 6px; font-family: var(--font-display); }
.mini-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Pillar / Service Blocks ---------- */
.pillar {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.pillar:last-of-type { border-bottom: none; }
.pillar-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .pillar-head { grid-template-columns: 1fr; gap: 24px; }
}
.pillar-tag {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 14px;
}
.pillar-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-card p.quote { flex: 1; font-size: 1rem; color: var(--ink); }
.testimonial-card .who { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.testimonial-card .who span { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; font-family: var(--font-body); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--navy-900);
}
.faq-q .plus {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--purple);
  border-radius: 2px;
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; transition: transform .2s ease; }
.faq-item.open .plus::after { transform: rotate(90deg); scale: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a p { padding-bottom: 22px; color: var(--ink-soft); margin: 0; max-width: 700px; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card.featured {
  border-color: var(--purple);
  box-shadow: var(--shadow-accent);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: #04140F;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.2rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--navy-900); }
.price small { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.pricing-card .desc { color: var(--ink-soft); font-size: 0.95rem; }
.pricing-card .check-list { margin: 20px 0 28px; flex: 1; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.field label .req { color: var(--purple); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--surface);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 16px; }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--purple); margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 8px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Blog ---------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-card:hover {
  transform: translateY(-7px);
  border-color: var(--purple);
  box-shadow: 0 0 0 1px rgba(16,185,129,0.35), 0 28px 56px -20px rgba(16,185,129,0.65), 0 0 40px -8px rgba(16,185,129,0.3);
}
.post-thumb {
  height: 170px;
  background: var(--gradient-accent);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.post-thumb span {
  background: rgba(255,255,255,0.92);
  color: var(--purple-dark);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.post-card .post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.post-card .post-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 12px; }
.post-card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }

.article-hero { background: var(--gradient-brand); color: #fff; padding: 56px 0 64px; }
.article-hero .meta { color: #B9E6C8; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.article-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 780px; }
.article-hero .sub { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 700px; }
.article-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.article-byline .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #04140F; font-size: 0.9rem;
}

.article-body { max-width: 740px; margin: 0 auto; padding: 64px 0; }
.article-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.4em; }
.article-body p, .article-body li { font-size: 1.06rem; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.article-body ul li { list-style: disc; padding: 4px 0; }
.article-body ol li { list-style: decimal; padding: 4px 0; }
.article-body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--purple);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.article-cta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 48px 0 0;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.tag-pill {
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ---------- Partners marquee ---------- */
.partners-strip { padding: 44px 0; }
.partners-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 56px;
  animation: partners-scroll 42s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}
.partner-logo img { max-height: 32px; max-width: 120px; width: auto; height: auto; }
.partner-logo.text-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
}
@media (max-width: 640px) {
  .partner-logo { height: 32px; }
  .partner-logo img { max-height: 26px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 240px at 15% 10%, rgba(16,185,129,0.32), transparent 60%);
}
.cta-band .inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta-band .eyebrow { color: #B9E6C8; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }
@media (max-width: 640px) { .cta-band { padding: 40px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255,255,255,0.75); padding: 72px 0 28px; border-top: 1px solid var(--border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1.7fr 0.9fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-services { grid-column: 1 / -1; order: 3; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand .logo-text strong { color: #fff; }
.footer-brand .brand .logo-text span { color: #8FE3B0; }
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.6); max-width: 320px; margin-top: 16px; }
.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; break-inside: avoid; }
.footer-col a { font-size: 0.94rem; color: rgba(255,255,255,0.68); transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-services ul { column-count: 3; column-gap: 24px; }
@media (max-width: 860px) { .footer-services ul { column-count: 3; } }
@media (max-width: 560px) { .footer-services ul { column-count: 1; } }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal-links { display: flex; align-items: center; gap: 18px; }
.footer-legal-links a { color: rgba(255,255,255,0.5); transition: color .15s ease; }
.footer-legal-links a:hover { color: #fff; }
.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color .15s ease;
}
.footer-cookie-link:hover { color: #fff; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.footer-socials a:hover { background: var(--purple); }
.footer-socials svg { width: 16px; height: 16px; color: #fff; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-12 { gap: 12px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.9); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
