:root {
  color-scheme: light;
  --ink: #102033;
  --muted: #5e6b7b;
  --line: #dce5ee;
  --paper: #f7fafc;
  --white: #ffffff;
  --navy: #07172b;
  --blue: #0e4c92;
  --teal: #18a999;
  --slate: #26384d;
  --shadow: 0 18px 40px rgba(10, 32, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(7, 23, 43, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0px solid rgba(255, 255, 255, 0.34);
  background: transparent;
  padding: 5px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
  color: #91fff2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px) 56px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(3, 13, 26, 0.9), rgba(3, 13, 26, 0.64) 43%, rgba(3, 13, 26, 0.2)),
    linear-gradient(0deg, rgba(3, 13, 26, 0.48), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 3vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.24;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: #062229;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin: 36px 0 0;
}

.hero-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.hero-metrics dt,
.case-card span,
.blog-grid p {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.section,
.diagnostic,
.contact {
  padding: clamp(58px, 9vw, 108px) clamp(20px, 5vw, 72px);
}

.intro,
.diagnostic,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: start;
}

.intro p,
.section-heading p,
.diagnostic-copy p,
.contact p {
  color: var(--muted);
  font-size: 1.03rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.service-grid,
.case-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.case-card,
.blog-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.service-card p,
.case-card p {
  color: var(--muted);
}

.icon {
  display: inline-grid;
  min-width: 42px;
  min-height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid #b6dde5;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.chip {
  min-height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.case-card.hidden {
  display: none;
}

.diagnostic {
  background: var(--navy);
  color: var(--white);
}

.diagnostic-copy p {
  color: rgba(255, 255, 255, 0.75);
}

.diagnostic-panel,
.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd7e3;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(24, 169, 153, 0.25);
  border-color: var(--teal);
}

.diagnostic-result,
.form-status {
  min-height: 28px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.contact {
  background: #eef4f8;
  padding-top: clamp(100px, 11vw, 136px);
}

.contact-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-bottom: 2px solid var(--teal);
  color: var(--navy);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #06111f;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(7, 23, 43, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .intro,
  .diagnostic,
  .contact {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .case-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 92vh;
  }

  .hero-metrics,
  .service-grid,
  .case-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
.brand-logo {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
