:root {
  --ink: #111615;
  --graphite: #28302e;
  --muted: #63716e;
  --line: #dbe7e4;
  --soft: #f6faf9;
  --white: #ffffff;
  --teal: #009880;
  --teal-dark: #08796f;
  --cyan: #50c0c0;
  --aqua: #e8fbf8;
  --amber: #f2b84b;
  --shadow-sm: 0 8px 24px rgba(17, 22, 21, .06);
  --shadow-md: 0 18px 46px rgba(17, 22, 21, .10);
  --radius: 8px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(219,231,228,.38) 1px, transparent 1px),
    linear-gradient(180deg, rgba(219,231,228,.38) 1px, transparent 1px),
    var(--white);
  background-size: 72px 72px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body, main, header, footer {
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { width: 17px; height: 17px; stroke-width: 2; }

.topbar {
  min-height: 34px;
  padding: 6px clamp(18px, 4vw, 42px);
  display: flex;
  justify-content: center;
  gap: 22px;
  align-items: center;
  color: #d8e5e2;
  background: #111615;
  font-size: 12px;
}
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 66px;
  padding: 9px clamp(18px, 4vw, 42px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 231, 228, .86);
  backdrop-filter: blur(18px);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.97); }
.brand img { width: min(198px, 44vw); height: auto; }
.main-nav { justify-self: center; display: flex; gap: 4px; align-items: center; }
.main-nav a {
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--graphite);
  font-weight: 720;
  font-size: 13px;
}
.main-nav a:hover, .main-nav a.is-active { background: var(--aqua); color: var(--teal-dark); }

.header-cta, .btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 780;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.header-cta, .btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 26px rgba(0, 152, 128, .20);
}
.btn-outline { color: var(--ink); background: rgba(255,255,255,.86); border-color: var(--line); }
.btn:hover, .header-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
}

.flash {
  width: min(var(--max), calc(100% - 36px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 750;
}
.flash-success { background: #ecfff9; color: #06755e; }
.flash-error { background: #fff2f0; color: #9a2d20; }

.hero {
  width: min(var(--max), calc(100% - 36px));
  min-height: 590px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) 0 26px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}
.hero-copy, .hero-visual, .intro-grid > *, .split > *, .quote-section > *, .contact-layout > *, .service-hero > * {
  min-width: 0;
}
.hero-copy { max-width: 570px; }
.hero-copy h1, .page-hero h1, .service-hero h1 {
  margin: 13px 0 14px;
  line-height: 1.05;
  letter-spacing: 0;
  font-size: clamp(36px, 3.8vw, 50px);
}
.hero-copy p, .page-hero p, .service-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 18px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: var(--graphite);
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 760;
}
.trust-row svg { color: var(--teal); }

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: center;
}
.dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 231, 228, .95);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.dashboard-main { margin: 18px 44px 42px 22px; }
.dashboard-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 250, 249, .94);
  font-size: 12px;
}
.dashboard-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.dashboard-toolbar span:nth-child(2) { background: var(--amber); }
.dashboard-toolbar span:nth-child(3) { background: var(--teal); }
.dashboard-toolbar strong { margin-left: 6px; color: var(--graphite); }
.dashboard-main img { width: 100%; height: 318px; object-fit: cover; object-position: center; filter: saturate(1.02) contrast(1.02); }
.dashboard-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px;
  color: var(--white);
  background: rgba(17, 22, 21, .84);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}
.dashboard-overlay strong { display: block; font-size: 15px; }
.dashboard-overlay span { display: block; margin-top: 3px; color: rgba(255,255,255,.76); font-size: 13px; }
.hero-metric, .service-stack {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.hero-metric {
  width: 210px;
  padding: 14px;
}
.hero-metric svg { color: var(--teal); }
.hero-metric strong { display: block; margin-top: 8px; font-size: 14px; }
.hero-metric span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.38; }
.metric-a { left: 0; bottom: 18px; }
.metric-b { right: 0; top: 22px; }
.service-stack {
  right: 14px;
  bottom: 0;
  width: 235px;
  padding: 10px;
  display: grid;
  gap: 7px;
}
.service-stack span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius);
  color: var(--graphite);
  background: var(--soft);
  font-size: 12px;
  font-weight: 760;
}
.service-stack svg { color: var(--teal); flex: 0 0 auto; }

.stats-strip {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.90);
  box-shadow: var(--shadow-sm);
}
.stats-strip div { padding: 16px 18px; border-right: 1px solid var(--line); }
.stats-strip div:last-child { border-right: 0; }
.stats-strip strong { display: block; color: var(--teal-dark); font-size: 24px; line-height: 1; }
.stats-strip span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; font-weight: 700; }

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0;
}
.intro-grid, .split, .quote-section, .contact-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.section h2, .contact-card h2 {
  margin: 9px 0 10px;
  font-size: clamp(27px, 3.3vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}
.section p { color: var(--muted); font-size: 16px; }
.section-head { max-width: 720px; margin-bottom: 24px; }
.compact-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; }
.compact-head h2 { max-width: 650px; }

.service-section { padding-top: clamp(42px, 5vw, 62px); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service-card, .client-card, .values article, .process article, .contact-card, .contact-aside > div, .quote-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}
.service-card {
  position: relative;
  padding: 20px;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  opacity: .0;
  transition: opacity .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,152,128,.25); }
.service-card:hover::before { opacity: 1; }
.service-icon, .client-card span, .values i, .contact-aside i {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-dark);
  background: var(--aqua);
}
.service-card h3, .client-card h3, .values h3, .process h3 {
  margin: 14px 0 7px;
  font-size: 18px;
  line-height: 1.25;
}
.service-card p, .client-card p, .values p, .process p { margin: 0; color: var(--muted); font-size: 14px; }
.service-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--graphite);
  font-size: 14px;
}
.service-card a {
  margin-top: auto;
  padding-top: 16px;
  color: var(--teal-dark);
  font-weight: 850;
  font-size: 14px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.process {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - var(--max)) / 2));
  padding-right: max(18px, calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, rgba(246,250,249,.95), rgba(255,255,255,.82));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.process article { padding: 18px; }
.process article span { color: var(--amber); font-weight: 900; font-size: 13px; }

.clients { padding-top: clamp(44px, 5vw, 64px); }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.client-grid-full { grid-template-columns: repeat(4, 1fr); }
.client-card { padding: 18px; min-height: 168px; }
.client-card span { font-weight: 900; }
.client-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--teal-dark); font-weight: 850; font-size: 14px; }
.client-card small { display: block; margin-top: 12px; color: var(--muted); }

.page-hero, .service-hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(46px, 6vw, 78px) 0 clamp(24px, 4vw, 44px);
}
.page-hero.compact h1 { max-width: 900px; font-size: clamp(32px, 3.7vw, 48px); }
.page-hero.center { text-align: center; }
.page-hero.center p { margin-left: auto; margin-right: auto; }

.service-hero {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(26px, 4vw, 50px);
  align-items: center;
}
.service-hero img, .rounded-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.feature-list { display: grid; gap: 10px; margin-top: 20px; }
.feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
  font-weight: 740;
  font-size: 15px;
}
.feature-list svg { color: var(--teal); flex: 0 0 auto; }
.feature-list.boxed {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246,250,249,.94);
  grid-template-columns: repeat(2, 1fr);
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.values article { padding: 20px; }

.quote-section {
  align-items: stretch;
  padding: clamp(28px, 5vw, 50px);
  width: min(var(--max), calc(100% - 36px));
  margin-bottom: 58px;
  color: var(--white);
  background: linear-gradient(135deg, #111615, #26302e 72%, #153f3a);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.quote-section p { color: rgba(255,255,255,.76); }
.quote-section .eyebrow { color: var(--cyan); }
.quote-form { padding: 20px; color: var(--ink); background: var(--white); }

.lead-form { display: grid; gap: 12px; }
.lead-form label { display: grid; gap: 6px; font-weight: 740; color: var(--graphite); }
.lead-form span { font-size: 12px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
}
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: 3px solid rgba(80,192,192,.22);
  border-color: var(--teal);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.contact-layout { align-items: start; }
.contact-card { padding: 22px; }
.contact-aside { display: grid; gap: 12px; }
.contact-aside > div { padding: 18px; }
.contact-aside h3 { margin: 10px 0 4px; font-size: 18px; }
.contact-aside p, .contact-aside a { color: var(--muted); font-size: 14px; }

.legal-page {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(50px, 7vw, 84px) 0;
}
.legal-page h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; }
.legal-page p { color: var(--muted); font-size: 16px; }

.footer { color: #dfe8e6; background: #111615; }
.footer-main {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.24fr .84fr .72fr 1.2fr;
  gap: 30px;
}
.footer-logo { width: 205px; padding: 8px; border-radius: var(--radius); background: var(--white); }
.footer p { color: #aebbb8; font-size: 14px; }
.footer h3 { color: var(--white); margin: 0 0 12px; font-size: 16px; }
.footer a { display: block; margin: 8px 0; color: #dfe8e6; font-size: 14px; }
.social-row { display: flex; gap: 9px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); background: rgba(255,255,255,.08); }
.footer-bottom {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #9dacaa;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .hero { min-height: 560px; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); }
  .hero-copy h1 { font-size: clamp(36px, 4.4vw, 52px); }
  .dashboard-main img { height: 286px; }
  .service-stack { width: 220px; }
}

@media (max-width: 980px) {
  body { background-size: 58px 58px; }
  .topbar { display: none; }
  .site-header { grid-template-columns: auto auto; min-height: 64px; }
  .brand img { width: 190px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; justify-self: end; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    padding: 10px 0 2px;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 11px 12px; }
  .header-cta { display: none; }
  .hero, .intro-grid, .split, .quote-section, .contact-layout, .service-hero {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-top: 34px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 470px; }
  .dashboard-main { margin: 0 34px 48px 0; }
  .service-grid, .process-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .client-grid, .client-grid-full { grid-template-columns: repeat(2, 1fr); }
  .compact-head { display: block; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip div:nth-child(2) { border-right: 0; }
  .stats-strip div:nth-child(1), .stats-strip div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .service-grid, .process-grid, .values, .client-grid, .client-grid-full {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 10px;
  }
  .dashboard-main { margin: 0; }
  .dashboard-main img { height: 240px; }
  .hero-metric, .service-stack {
    position: static;
    width: auto;
  }
  .service-stack { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero, .section, .page-hero, .service-hero, .quote-section, .legal-page, .stats-strip {
    width: min(100% - 28px, var(--max));
  }
  .brand img { width: 172px; }
  .hero-copy h1, .page-hero h1, .service-hero h1 {
    font-size: 31px;
    line-height: 1.08;
    max-width: 100%;
  }
  .page-hero.compact h1 { font-size: 32px; }
  .section h2, .contact-card h2 { font-size: 27px; }
  .hero-copy p, .page-hero p, .service-hero p { font-size: 15px; }
  .hero-actions, .footer-bottom { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .form-row, .feature-list.boxed, .footer-main, .stats-strip, .service-stack {
    grid-template-columns: 1fr;
  }
  .stats-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-strip div:last-child { border-bottom: 0; }
  .dashboard-main img { height: 210px; }
  .dashboard-overlay { position: static; border-radius: 0; }
  .quote-section { padding: 22px; }
  .hero-copy, .hero-visual, .dashboard-card, .dashboard-main, .service-card, .client-card {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .hero, .section, .page-hero, .service-hero, .quote-section, .legal-page, .stats-strip {
    width: calc(100% - 24px);
  }
  .hero-copy h1, .page-hero h1, .service-hero h1 {
    font-size: 27px;
  }
  .hero-copy p, .page-hero p, .service-hero p { font-size: 14px; }
  .brand img { width: 160px; }
  .site-header { padding-left: 14px; padding-right: 14px; }
  .dashboard-toolbar strong { font-size: 11px; }
  .trust-row span { font-size: 12px; }
}
