:root {
  --ink: #0b2545;
  --ink-2: #173b63;
  --blue: #0069b4;
  --blue-2: #0a86d1;
  --teal: #16a3a3;
  --mist: #eef6f8;
  --soft: #f7fafc;
  --line: #dbe7ef;
  --text: #4c6074;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(11, 37, 69, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 231, 239, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand img {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.desktop-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.desktop-nav a {
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 600;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.primary-button,
.ghost-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.72rem 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-button {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 105, 180, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--ink);
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.light-button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
}

.large {
  min-height: 50px;
  padding: 0.92rem 1.2rem;
}

.full {
  width: 100%;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 0.65rem;
}

.menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.mobile-nav {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  color: var(--text);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: clamp(640px, 88vh, 840px);
  display: grid;
  align-items: stretch;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 29, 54, 0.88) 0%, rgba(9, 29, 54, 0.72) 38%, rgba(9, 29, 54, 0.24) 72%),
    url("assets/hero-lab.webp") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(11, 37, 69, 0) 0%, rgba(11, 37, 69, 0.52) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  padding: 7rem 0 4.5rem;
}

.hero-copy {
  max-width: 700px;
}

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

.hero .eyebrow {
  color: #8ee8e1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 6vw, 5.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 630px;
  margin-bottom: 1.6rem;
  color: #d9e9f5;
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 700px;
  margin: 2rem 0 0;
}

.hero-stats div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-stats dt {
  font-weight: 800;
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  color: #c7d9e8;
  font-size: 0.9rem;
}

.trust-strip {
  background: var(--ink);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.trust-grid span {
  padding: 1.05rem;
  background: rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #d8e7f3;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 2.6rem;
}

.section-heading p:not(.eyebrow),
.split-copy p,
.local-seo p,
.form-copy p,
.faq-list p,
.map-section p {
  color: var(--text);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(11, 37, 69, 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.service-card div {
  padding: 1.35rem;
}

.service-card h3 {
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--text);
  font-size: 0.96rem;
}

.text-button,
.text-link {
  display: inline-flex;
  margin-top: 0.4rem;
  border: 0;
  padding: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.compact-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.compact-services div {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.compact-services h3 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.compact-services p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.capabilities-section {
  background: var(--soft);
}

.capability-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 38px rgba(11, 37, 69, 0.08);
}

.capability-table > div {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--line);
}

.capability-table > div:last-child {
  border-bottom: 0;
}

.capability-table [role="cell"] {
  padding: 1.1rem 1.25rem;
}

.capability-table [role="cell"]:first-child {
  background: #f2f8fb;
  color: var(--ink);
}

.capability-table [role="cell"]:last-child {
  color: var(--text);
}

.split-section {
  background: linear-gradient(180deg, var(--soft) 0%, var(--white) 100%);
}

.split-grid,
.local-grid,
.form-grid,
.faq-grid,
.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.workflow-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.workflow-list li {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  counter-increment: steps;
}

.workflow-list li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--mist);
  color: var(--blue);
  font-weight: 800;
}

.workflow-list strong,
.workflow-list span {
  display: block;
}

.workflow-list span {
  margin-top: 0.15rem;
  color: var(--text);
}

.muted-section {
  background: var(--mist);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.why-grid article {
  min-height: 260px;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.07);
}

.why-grid span {
  display: inline-flex;
  margin-bottom: 1.8rem;
  color: var(--teal);
  font-weight: 800;
}

.why-grid p {
  color: var(--text);
}

.marketing-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(22, 163, 163, 0.16), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.marketing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.marketing-grid > div:first-child {
  position: sticky;
  top: 110px;
}

.marketing-grid p {
  color: var(--text);
}

.marketing-cards {
  display: grid;
  gap: 1rem;
}

.marketing-cards article {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.07);
}

.marketing-cards h3 {
  margin-bottom: 0.45rem;
}

.marketing-cards p {
  margin-bottom: 0;
}

.local-seo {
  background: var(--ink);
  color: var(--white);
}

.local-seo h2,
.local-seo p {
  color: var(--white);
}

.local-seo p {
  opacity: 0.86;
}

.form-section {
  background: var(--soft);
}

.contact-card {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-card span {
  color: var(--text);
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 700;
}

.contact-form label span {
  font-size: 0.88rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 105, 180, 0.13);
}

.form-note {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
}

.faq-grid {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.05rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.faq-list p {
  margin: 0.7rem 0 0;
}

.map-section {
  padding: 4rem 0;
  background: var(--soft);
}

.map-grid {
  align-items: stretch;
}

.map-grid > div {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.map-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 37, 69, 0.92), rgba(0, 105, 180, 0.78)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.map-link {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(11, 37, 69, 0.16);
}

.map-grid .primary-button {
  margin: 0.6rem 0 1rem;
}

.map-grid .text-link {
  display: flex;
}

.site-footer {
  padding: 3rem 0;
  background: #071a31;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 2rem;
  align-items: center;
}

.site-footer img {
  width: 190px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(1.08);
}

.site-footer p,
.site-footer a {
  color: #c8d9e8;
}

.site-footer nav {
  display: grid;
  gap: 0.5rem;
}

.copyright {
  justify-self: end;
  margin: 0;
  text-align: right;
}

.mobile-cta {
  display: none;
}

.service-dialog {
  width: min(760px, calc(100% - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

.service-dialog::backdrop {
  background: rgba(7, 26, 49, 0.62);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-body {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.dialog-body h3 {
  margin-right: 3rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.dialog-body p,
.dialog-body li {
  color: var(--text);
}

.dialog-body ul {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

@media (max-width: 1020px) {
  .desktop-nav,
  .nav-actions {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .service-grid,
  .why-grid,
  .compact-services,
  .marketing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-grid > div:first-child {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 70px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand img {
    height: 46px;
  }

  .nav-shell {
    min-height: 68px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(9, 29, 54, 0.88) 0%, rgba(9, 29, 54, 0.76) 50%, rgba(9, 29, 54, 0.5) 100%),
      url("assets/hero-lab.webp") center right / cover no-repeat;
  }

  .hero-grid {
    padding: 5rem 0 3rem;
    align-items: end;
  }

  .hero-actions {
    display: grid;
  }

  .hero-stats,
  .trust-grid,
  .service-grid,
  .compact-services,
  .marketing-grid,
  .split-grid,
  .local-grid,
  .form-grid,
  .faq-grid,
  .map-grid,
  .footer-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    margin-top: 1.25rem;
  }

  .section-heading {
    margin-bottom: 1.8rem;
  }

  .why-grid article {
    min-height: auto;
  }

  .capability-table > div {
    grid-template-columns: 1fr;
  }

  .capability-table [role="cell"] {
    padding: 1rem;
  }

  .map-grid > div {
    padding: 1.25rem;
  }

  .copyright {
    justify-self: start;
    text-align: left;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 -8px 24px rgba(11, 37, 69, 0.12);
  }

  .mobile-cta a {
    display: grid;
    min-height: 62px;
    place-items: center;
    color: var(--ink);
    font-weight: 800;
  }

  .mobile-cta a:last-child {
    background: var(--blue);
    color: var(--white);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
