@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Brinnan";
  src: url("../typography/Brinnan Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Brinnan";
  src: url("../typography/Brinnan Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #ededee;
  --surface: #ffffff;
  --surface-alt: #eef2f9;
  --text: #2f3a4a;
  --muted: #3f4a5b;
  --primary: #1597aa;
  --primary-dark: #127f8f;
  --border: #d7dfed;
  --line-heading: 1.12;
  --line-copy: 1.38;
  --line-compact: 1.25;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Brinnan", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: var(--line-copy);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-heading);
}

p,
li {
  line-height: var(--line-copy);
}

img,
svg,
video {
  max-width: 130%;
  height: auto;
}

.container {
  width: min(1050px, 92%);
  margin: 0 auto;
}

.menu {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f1f1f2;
  border-bottom: 1px solid #e3e3e5;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
  max-width: none;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #202b3a;
  font-size: 1rem;
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.services-submenu,
.company-submenu {
  position: absolute;
  top: calc(100% + 0.01rem);
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(10, 25, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

.company-submenu {
  left: auto;
  right: 0;
  min-width: 250px;
}

.nav-item-services:hover .services-submenu,
.nav-item-services:focus-within .services-submenu,
.nav-item-company:hover .company-submenu,
.nav-item-company:focus-within .company-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.services-submenu a,
.company-submenu a {
  display: block;
  padding: 0.42rem 0.9rem;
  font-size: 0.93rem;
  white-space: nowrap;
}

.services-submenu a:hover,
.services-submenu a:focus-visible,
.company-submenu a:hover,
.company-submenu a:focus-visible {
  color: var(--primary);
  background: rgba(21, 151, 170, 0.1);
}

.footer {
  background: #31b2c2;
  color: #0b2f35;
  padding: 1.6rem 0 2.2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.4rem;
}

.footer-block h3 {
  margin: 0 0 0.4rem;
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #0b2f35;
}

.footer-block p {
  margin: 0.15rem 0 0;
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: #0b2f35;
}

.footer-center h3 {
  text-align: center;
}

.footer-right p {
  text-align: right;
}

.footer-divider {
  width: 1px;
  height: 56px;
  background: rgba(11, 47, 53, 0.6);
}

@media (max-width: 960px) {
  .nav-links {
    gap: 1.3rem;
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.2rem;
  }

  .services-submenu,
  .company-submenu {
    left: 50%;
    right: auto;
    min-width: 210px;
    transform: translate(-50%, 6px);
  }

  .nav-item-services:hover .services-submenu,
  .nav-item-services:focus-within .services-submenu,
  .nav-item-company:hover .company-submenu,
  .nav-item-company:focus-within .company-submenu {
    transform: translate(-50%, 0);
  }

  .hero {
    padding-top: 3.1rem;
  }

  .hero-flow {
    align-items: center;
  }

  .hero .hero-copy,
  .hero .hero-flow {
    width: 100%;
    max-width: 100%;
  }

  .hero-process-labels {
    gap: 0.25rem;
  }

  .flow-arrow {
    display: none;
  }

  .credibility {
    padding: 2.2rem 0 2rem;
  }

  .credibility-logos-strip {
    margin-top: 1.4rem;
  }

  .credibility-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .credibility-map {
    margin: 0 auto;
    width: min(240px, 70vw);
  }

  .credibility-metric h3 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .credibility-metric p {
    margin: 0 auto;
    max-width: 320px;
    font-size: 1.15rem;
  }

  .credibility-metric:last-child {
    justify-self: center;
    text-align: center;
  }

  .what-we-do {
    padding-bottom: 2.4rem;
  }

  .what-we-do-separator {
    height: 46px;
  }

  .what-we-do-content {
    padding-top: 2rem;
  }

  .what-we-do-cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .service-row {
    grid-template-columns: 72px 1fr;
    align-items: start;
  }

  .service-row p {
    grid-column: 2;
  }

  .service-icon {
    width: 46px;
    height: 46px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .how-step-number {
    font-size: 1.8rem;
  }

  .how-we-work-graphic {
    width: min(520px, 100%);
  }

  .differentiators {
    padding-bottom: 2.2rem;
  }

  .differentiators-separator {
    height: 46px;
  }

  .differentiators-content {
    padding-top: 2rem;
  }

  .differentiators-strip {
    padding: 1.2rem 0;
  }

  .differentiators-inner {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .testimonials-section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .testimonials-section p {
    margin: 0 auto;
  }

  .testimonials-section img {
    grid-column: 1;
    grid-row: auto;
  }

  .cta-section {
    text-align: center;
  }

  .cta-logo {
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-divider {
    display: none;
  }

  .footer-right p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1050px, 94%);
  }

  .brand-logo {
    width: 132px;
  }

  .nav-links {
    gap: 0.55rem 0.95rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .services-submenu,
  .company-submenu {
    min-width: min(210px, 86vw);
  }

  .footer {
    padding: 1.4rem 0 1.8rem;
  }
}
