/* ==========================================================================
   Backbone Technologies — Design System
   A single, self-contained stylesheet powering every page.
   Sections: 1) Tokens  2) Reset/base  3) Layout  4) Typography
   5) Buttons  6) Header/Nav  7) Hero  8) Components  9) Sections
   10) Forms  11) Footer  12) Utilities  13) Animations  14) Responsive
   ========================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy-950: #06131f;
  --navy-900: #0a1f33;
  --navy-800: #0e2a42;
  --navy-700: #14405f;
  --brand-700: #0a6484;
  --brand-600: #0d7ea3;   /* primary */
  --brand-500: #1296bd;
  --brand-400: #38b6d6;
  --accent-600: #10a894;
  --accent-500: #17c3b2;  /* teal accent */
  --accent-400: #4fd8c9;

  /* Neutrals */
  --ink: #0e2233;
  --ink-soft: #2c4152;
  --text-muted: #55707f;
  --line: #e3ebf0;
  --line-strong: #cdd9e1;
  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --bg-softer: #eef4f7;
  --white: #ffffff;

  /* Semantic */
  --success: #12805c;
  --success-bg: #e6f6ef;
  --error: #c53030;
  --error-bg: #fdecec;
  --warning: #9a6700;
  --warning-bg: #fff8e6;

  /* Effects */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(14, 34, 51, .06);
  --shadow-sm: 0 4px 14px rgba(14, 34, 51, .08);
  --shadow-md: 0 12px 30px rgba(14, 34, 51, .10);
  --shadow-lg: 0 24px 60px rgba(10, 31, 51, .16);
  --ring: 0 0 0 4px rgba(13, 126, 163, .22);

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 74px;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  --grad-navy: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #0c3450 100%);

  /* Motion */
  --ease: cubic-bezier(.16, .84, .44, 1);
  --dur: .28s;
}

/* 2. RESET / BASE ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Clip horizontal overflow (e.g. the off-canvas mobile menu parked to the
     right) without creating a scroll container, so position:sticky still works. */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-700); }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select, button { font-family: inherit; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* 3. LAYOUT ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--grad-navy); color: #dbe8f0; }

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

/* 4. TYPOGRAPHY ------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}
.section--navy .eyebrow { color: var(--accent-400); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b8ccda; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .6rem; }
.section-head p { margin-top: .9rem; }

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 5. BUTTONS ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur), color var(--dur), border-color var(--dur);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(13, 126, 163, .32); }
.btn--primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(13, 126, 163, .42); }

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

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); background: var(--bg-soft); }

.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { color: var(--navy-900); box-shadow: var(--shadow-md); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }

.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none !important; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  color: var(--brand-600);
}
.link-arrow svg { width: 1.05em; height: 1.05em; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 6. HEADER / NAV ----------------------------------------------------------- */
.topbar {
  background: var(--navy-950);
  color: #cbdae4;
  font-size: .84rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  padding-block: .35rem;
}
.topbar__contact { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar a { color: #cbdae4; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--accent-400); }
.topbar__socials { display: flex; align-items: center; gap: .5rem; }
.topbar__socials a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.topbar__socials a:hover { background: var(--brand-600); }
.topbar__socials svg { width: 14px; height: 14px; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur), border-color var(--dur), background var(--dur);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.96);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand__text { line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--navy-900);
  letter-spacing: -.01em;
}
.brand__name b { color: var(--brand-600); font-weight: 700; }
.brand__tag { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: .3rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .6rem .85rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
  transition: color var(--dur), background var(--dur);
}
.nav__link:hover { color: var(--brand-700); background: var(--bg-soft); }
.nav__item.is-active > .nav__link { color: var(--brand-600); }
.nav__item.is-active > .nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 6px;
  height: 2px; background: var(--grad-brand); border-radius: 2px;
}
.nav__link .chev { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.nav__item.has-dropdown:hover .chev, .nav__item.is-open .chev { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(560px, 86vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 60;
}
.nav__item.has-dropdown:hover .dropdown,
.nav__item.is-open .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown__link {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .7rem .8rem;
  border-radius: 12px;
  color: var(--ink);
  transition: background var(--dur);
}
.dropdown__link:hover { background: var(--bg-soft); color: var(--ink); }
.dropdown__ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(13,126,163,.12), rgba(23,195,178,.14));
  color: var(--brand-600);
}
.dropdown__ic svg { width: 20px; height: 20px; }
.dropdown__t { font-weight: 600; font-size: .95rem; color: var(--ink); }
.dropdown__d { font-size: .8rem; color: var(--text-muted); line-height: 1.4; }

.nav__cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

/* Hamburger */
.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  place-items: center;
  color: var(--navy-900);
}
.nav__toggle svg { width: 24px; height: 24px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* 7. HERO ------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-navy);
  color: #e6f0f6;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 82% 18%, rgba(23,195,178,.20), transparent 60%),
    radial-gradient(50% 50% at 12% 90%, rgba(13,126,163,.28), transparent 60%);
  z-index: -1;
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 40%, transparent 88%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: #d6ecff;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-400); box-shadow: 0 0 0 4px rgba(79,216,201,.25); }
.hero h1 { color: #fff; margin-top: 1.1rem; }
.hero h1 .text-gradient { background: linear-gradient(120deg, var(--accent-400), var(--brand-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: #bcd2e0; margin-top: 1.2rem; max-width: 34rem; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2.6rem); margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero__stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; }
.hero__stat .lbl { font-size: .82rem; color: #9fb8c8; letter-spacing: .02em; }
.hero__art { position: relative; }

/* 8. COMPONENTS ------------------------------------------------------------- */
/* Card */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

/* Service card */
.service-card { position: relative; overflow: hidden; }
.service-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card__ic {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, rgba(13,126,163,.12), rgba(23,195,178,.16));
  color: var(--brand-600);
}
.service-card__ic svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.28rem; }
.service-card p { margin-top: .6rem; font-size: .96rem; }
.service-card__list { margin-top: 1rem; display: grid; gap: .5rem; }
.service-card__list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.service-card__list li svg { width: 17px; height: 17px; color: var(--accent-600); flex-shrink: 0; margin-top: 3px; }
.service-card__foot { margin-top: auto; padding-top: 1.2rem; }

/* Feature / value card */
.feature { display: flex; gap: 1rem; }
.feature__ic {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy-900); color: var(--accent-400);
}
.feature__ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; }
.feature p { margin-top: .4rem; font-size: .94rem; }
.section--navy .feature__ic { background: rgba(255,255,255,.08); }

/* Stat block */
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--brand-600); line-height: 1; }
.stat .num .suffix { color: var(--accent-500); }
.stat .lbl { margin-top: .5rem; font-size: .92rem; color: var(--text-muted); font-weight: 500; }
.section--navy .stat .num { color: #fff; }
.section--navy .stat .num .suffix { color: var(--accent-400); }
.section--navy .stat .lbl { color: #9fb8c8; }

/* Pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--brand-400); color: var(--brand-700); }
.chip.is-active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip .count { font-size: .78rem; opacity: .7; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.step { position: relative; padding-left: 3rem; }
.step__num {
  counter-increment: step;
  position: absolute; left: 0; top: 2px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  box-shadow: 0 4px 10px rgba(13,126,163,.28);
}
.step h3 { font-size: 1.15rem; }
.step p { margin-top: .35rem; font-size: .94rem; }

/* Industry tag grid */
.industry {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.1rem 1.2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; color: var(--ink);
  transition: all var(--dur) var(--ease);
}
.industry:hover { border-color: var(--brand-400); transform: translateY(-3px); box-shadow: var(--shadow-sm); color: var(--ink); }
.industry__ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-softer); color: var(--brand-600); flex-shrink: 0; }
.industry__ic svg { width: 22px; height: 22px; }

/* Testimonials */
.testimonials { position: relative; }
.testi-track { overflow: hidden; }
.testi-rail { display: flex; transition: transform .5s var(--ease); }
.testi-slide { min-width: 100%; padding: .3rem; }
.testi-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.testi-card__quote { width: 44px; height: 44px; color: var(--brand-400); margin-bottom: .6rem; }
.testi-card__text { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink); line-height: 1.6; font-weight: 500; }
.testi-card__meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.testi-card__avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad-brand); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.testi-card__name { font-weight: 700; color: var(--ink); }
.testi-card__role { font-size: .88rem; color: var(--text-muted); }
.testi-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.testi-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center;
  color: var(--ink); transition: all var(--dur) var(--ease);
}
.testi-btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.testi-btn svg { width: 20px; height: 20px; }
.testi-dots { display: flex; gap: .5rem; }
.testi-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: all var(--dur) var(--ease); }
.testi-dot.is-active { background: var(--brand-600); width: 28px; border-radius: 999px; }

/* Logos strip */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); }
.logo-item { display: flex; align-items: center; gap: .6rem; color: var(--text-muted); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; opacity: .8; transition: opacity var(--dur), color var(--dur); }
.logo-item:hover { opacity: 1; color: var(--ink-soft); }
.logo-item svg { width: 30px; height: 30px; color: var(--brand-500); }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--grad-navy);
  border-radius: var(--radius-xl);
  padding: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 70% at 85% 20%, rgba(23,195,178,.25), transparent 60%),
              radial-gradient(50% 80% at 10% 90%, rgba(56,182,214,.22), transparent 60%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d6e2; max-width: 42rem; margin-inline: auto; margin-top: .8rem; }
.cta-band .hero__actions { justify-content: center; }

/* Page hero (interior) */
.page-hero {
  background: var(--grad-navy);
  color: #e6f0f6;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 85% 20%, rgba(23,195,178,.18), transparent 60%);
}
.page-hero__inner { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; margin-top: .8rem; max-width: 18ch; }
.page-hero p { color: #bcd2e0; margin-top: 1rem; max-width: 46rem; font-size: 1.08rem; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: #9fb8c8; }
.breadcrumb a { color: #bcd2e0; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--accent-400); }

/* Accordion (FAQ) */
.accordion { display: grid; gap: .8rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color var(--dur), box-shadow var(--dur); }
.acc-item.is-open { border-color: var(--brand-400); box-shadow: var(--shadow-sm); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem; text-align: left; font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.acc-trigger:hover { color: var(--brand-700); }
.acc-icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-softer); color: var(--brand-600); transition: transform var(--dur) var(--ease), background var(--dur); }
.acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--brand-600); color: #fff; }
.acc-icon svg { width: 16px; height: 16px; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding: 0 1.3rem 1.25rem; font-size: .96rem; }

/* 10. FORMS ----------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--ink); }
.field .req { color: var(--error); }
.field .hint { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: .98rem;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.input::placeholder, .textarea::placeholder { color: #9fb1bd; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--ring); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2355707f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.6rem; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: var(--error); }
.field.has-error .input:focus, .field.has-error .textarea:focus, .field.has-error .select:focus { box-shadow: 0 0 0 4px rgba(197,48,48,.18); }
.field.is-valid .input, .field.is-valid .textarea, .field.is-valid .select { border-color: var(--success); }
.field__error { display: none; align-items: center; gap: .35rem; margin-top: .4rem; font-size: .82rem; color: var(--error); font-weight: 500; }
.field.has-error .field__error { display: flex; }
.field__error svg { width: 15px; height: 15px; flex-shrink: 0; }

.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-600); flex-shrink: 0; }

/* Form status banners */
.form-status { display: none; align-items: flex-start; gap: .7rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1.3rem; font-size: .94rem; font-weight: 500; }
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.form-status--success { background: var(--success-bg); color: var(--success); }
.form-status--error { background: var(--error-bg); color: var(--error); }

/* Newsletter */
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form .input { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.newsletter-form .input::placeholder { color: #8fa9ba; }
.newsletter-form .input:focus { border-color: var(--accent-400); box-shadow: 0 0 0 4px rgba(79,216,201,.2); }
.newsletter-msg { font-size: .84rem; margin-top: .6rem; min-height: 1.2em; }
.newsletter-msg.ok { color: var(--accent-400); }
.newsletter-msg.err { color: #ff9c9c; }

/* Spinner */
.spinner { width: 1.1em; height: 1.1em; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state { text-align: center; padding: 3.5rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-soft); }
.empty-state__ic { width: 70px; height: 70px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--text-muted); box-shadow: var(--shadow-xs); }
.empty-state__ic svg { width: 34px; height: 34px; }
.empty-state h3 { font-size: 1.2rem; }
.empty-state p { margin-top: .5rem; }

/* Contact info cards */
.office-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem; height: 100%; }
.office-card__badge { display: inline-flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); background: var(--bg-softer); padding: .35rem .8rem; border-radius: 999px; }
.office-card__badge svg { width: 15px; height: 15px; flex-shrink: 0; }
.office-card h3 { margin-top: 1rem; font-size: 1.25rem; }
.office-card__list { margin-top: 1rem; display: grid; gap: .85rem; }
.office-card__row { display: flex; gap: .75rem; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.office-card__row svg { width: 20px; height: 20px; color: var(--brand-600); flex-shrink: 0; margin-top: 2px; }
.office-card__row a { color: var(--ink-soft); }
.office-card__row a:hover { color: var(--brand-600); }

/* Office map thumbnail */
.office-card__map { position: relative; height: 120px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem; background: linear-gradient(135deg, #0e2a42, #0c3450); }
.office-card__map svg { width: 100%; height: 100%; }
.office-card__map .pin { filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.office-card .btn { margin-top: 1.3rem; }

/* Contact split */
.contact-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-aside { display: grid; gap: 1rem; }
.contact-feature { display: flex; gap: .8rem; align-items: flex-start; }
.contact-feature__ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; }
.contact-feature__ic svg { width: 22px; height: 22px; }

/* Detail page layout */
.detail-layout { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.detail-nav { position: sticky; top: calc(var(--header-h) + 20px); }
.detail-nav__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 700; margin-bottom: .8rem; }
.detail-nav__list { display: grid; gap: .2rem; }
.detail-nav__link { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 10px; color: var(--ink-soft); font-weight: 500; font-size: .92rem; border-left: 3px solid transparent; }
.detail-nav__link:hover { background: var(--bg-soft); color: var(--ink); }
.detail-nav__link.is-active { background: var(--bg-softer); color: var(--brand-700); border-left-color: var(--brand-600); font-weight: 600; }
.detail-nav__link svg { width: 18px; height: 18px; flex-shrink: 0; }

.sub-service { display: flex; gap: 1.2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.sub-service:last-child { border-bottom: none; }
.sub-service__ic { flex-shrink: 0; width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(13,126,163,.1), rgba(23,195,178,.14)); color: var(--brand-600); }
.sub-service__ic svg { width: 26px; height: 26px; }
.sub-service h3 { font-size: 1.18rem; }
.sub-service p { margin-top: .4rem; font-size: .96rem; }

/* Services page toolbar + results */
.svc-toolbar { display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 1.4rem; }
.svc-search { position: relative; max-width: 640px; margin-inline: auto; width: 100%; }
.svc-search > svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }
.svc-search .input { padding-left: 3rem; padding-right: 3rem; height: 54px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.svc-search__clear { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); background: var(--bg-softer); }
.svc-search__clear:hover { color: var(--ink); background: var(--line); }
.svc-search__clear svg { width: 16px; height: 16px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.svc-count { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 1.6rem; font-weight: 500; }
.svc-count b { color: var(--ink); }
.svc-result { gap: 0; }
.svc-result__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: .75rem; }
.svc-result__ic { width: 48px; height: 48px; margin: 0; border-radius: 12px; }
.svc-result__ic svg { width: 24px; height: 24px; }
.svc-result__cat { font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--brand-700); background: var(--bg-softer); padding: .32rem .66rem; border-radius: 999px; text-align: center; line-height: 1.25; }
.svc-result h3 { font-size: 1.1rem; }
.svc-result p { font-size: .92rem; margin-top: .45rem; flex: 1; }
.svc-result .link-arrow { margin-top: 1.1rem; font-size: .9rem; }
.svc-result mark { background: rgba(79,216,201,.32); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Service detail page */
.detail-hero-head { display: flex; align-items: center; gap: 1rem; margin-top: .8rem; }
.detail-hero-ic { flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--accent-400); }
.detail-hero-ic svg { width: 32px; height: 32px; }
.detail-hero-head h1 { margin-top: 0; }
.detail-benefits { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.detail-benefits .badge-soft svg { width: 15px; height: 15px; }
.detail-cta-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 1.6rem 1.8rem;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.detail-cta-inline h3 { font-size: 1.15rem; }
.detail-cta-inline p { margin-top: .3rem; font-size: .93rem; }
.detail-related { margin-top: 3rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.related-card { color: var(--ink); }
.related-card:hover { color: var(--ink); }
.related-card h3 { font-size: 1.12rem; }
.related-card p { font-size: .9rem; margin-top: .4rem; }
.related-card .service-card__foot { display: inline-flex; padding-top: 1rem; margin-top: auto; }
@media (max-width: 560px) { .detail-hero-ic { width: 52px; height: 52px; } .detail-hero-ic svg { width: 26px; height: 26px; } }

/* Back to top */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--navy-900); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--dur), visibility var(--dur), transform var(--dur) var(--ease), background var(--dur);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--brand-600); }
.back-top svg { width: 22px; height: 22px; }

/* 11. FOOTER ---------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #b7cad6; }
.footer-main { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(1.8rem, 4vw, 3rem); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name b { color: var(--accent-400); }
.footer-brand .brand__tag { color: #8ba3b3; }
.footer-about { margin-top: 1.1rem; font-size: .94rem; color: #9fb6c4; max-width: 32ch; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.footer-socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: #cfe0ea; transition: background var(--dur), transform var(--dur); }
.footer-socials a:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; }
.topbar__socials a[aria-disabled="true"], .footer-socials a[aria-disabled="true"] { cursor: default; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .01em; }
.footer-links { display: grid; gap: .7rem; }
.footer-links a { color: #9fb6c4; font-size: .93rem; display: inline-flex; align-items: center; gap: .5em; }
.footer-links a:hover { color: #fff; }
.footer-links a svg { width: 14px; height: 14px; opacity: 0; transform: translateX(-4px); transition: all var(--dur) var(--ease); color: var(--accent-400); }
.footer-links a:hover svg { opacity: 1; transform: translateX(0); }
.footer-newsletter p { font-size: .92rem; color: #9fb6c4; margin-bottom: 1rem; }
.footer-contact-row { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .9rem; color: #9fb6c4; }
.footer-contact-row svg { width: 18px; height: 18px; color: var(--accent-400); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.4rem; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .86rem; color: #8ba3b3; }
.footer-bottom__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-bottom__links a { color: #8ba3b3; }
.footer-bottom__links a:hover { color: #fff; }

/* 12. UTILITIES ------------------------------------------------------------- */
.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; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.full-width { width: 100%; }
.relative { position: relative; }
.badge-soft { display: inline-flex; align-items: center; gap: .45em; padding: .3rem .75rem; border-radius: 999px; background: var(--bg-softer); color: var(--brand-700); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }

/* 13. ANIMATIONS ------------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }

.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.pulse-node { animation: pulseNode 3s ease-in-out infinite; }
@keyframes pulseNode { 0%,100% { opacity: .4; r: 3; } 50% { opacity: 1; r: 5; } }

/* 14. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-nav { position: static; }
  .detail-nav__list { display: flex; flex-wrap: wrap; gap: .5rem; }
  .detail-nav__link { border-left: none; border: 1px solid var(--line); }
  .detail-nav__link.is-active { border-color: var(--brand-400); border-left: 1px solid var(--brand-400); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
  .contact-split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .topbar__contact .topbar__email-text { display: none; }

  /* Mobile nav */
  .nav__toggle { display: grid; }
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 0 auto;
    width: min(360px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    overflow-y: auto;
    z-index: 999;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__item { width: 100%; }
  .nav__link { width: 100%; padding: .9rem .8rem; font-size: 1.05rem; border-radius: 10px; justify-content: space-between; }
  .nav__item.is-active > .nav__link::after { display: none; }
  .nav__item.is-active > .nav__link { background: var(--bg-soft); }

  /* Mobile dropdown → accordion */
  .dropdown {
    position: static; transform: none; width: 100%;
    box-shadow: none; border: none; border-radius: 0;
    grid-template-columns: 1fr; padding: .25rem .25rem .5rem;
    opacity: 1; visibility: visible;
    display: none;
  }
  .nav__item.is-open .dropdown { display: grid; }
  .nav__item.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: none; }
  .dropdown__d { display: none; }
  .dropdown__link { padding: .7rem .6rem; }

  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(6,19,31,.5);
    opacity: 0; visibility: hidden; transition: opacity var(--dur); z-index: 998;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .hero__actions .btn, .cta-band .btn { flex: 1; min-width: 150px; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topbar__contact { gap: .9rem; }
  .hero__stats { gap: 1.4rem; }
  .brand__tag { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .float-anim, .pulse-node { animation: none; }
}

/* Print */
@media print {
  .topbar, .site-header, .site-footer, .back-top, .hero__art, .nav__toggle { display: none !important; }
  body { color: #000; }
  .section { padding-block: 1rem; }
}
