/* MAXXII Traffic Solutions palette */
:root {
  --green: #0f8f8a;
  --green-dark: #0b5f73;
  --ink: #102a43;
  --lime: #2bb3a3;
  --accent-soft: #e7f5f4;
  --muted: #d8e2ea;
  --surface: #f6f9fb;
  --white: #ffffff;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: sans-serif, system-ui;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(16, 42, 67, 0.12);
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height:1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 76px;
  padding: 0.45rem 0;
  flex-wrap: nowrap;
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  flex: 1;
  flex-wrap: nowrap;
}

.header-nav-wrap .nav {
  justify-content: flex-end;
}

.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  line-height: 1;
}

/* MAXXII Traffic Solutions header wordmark */
.logo-img {
  max-height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .bi {
  font-size: 1.55rem;
  line-height: 1;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 8px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--green);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0;
}

.nav-chevron {
  display: inline-flex;
  font-size: 0.68rem;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.18s ease;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  margin: 0;
  padding: 0.45rem 0;
  min-width: 235px;
  list-style: none;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(16, 42, 67, 0.15);
  border: 1px solid rgba(16, 42, 67, 0.08);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-submenu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  margin-inline: 6px;
  border-radius: 3px;
}

.nav-submenu a:hover {
  background: rgba(15, 143, 138, 0.1);
}

.btn-nav-login {
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* Home page */
.home-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 10rem 0;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(8, 25, 43, 0.94) 0%, rgba(8, 25, 43, 0.72) 42%, rgba(8, 25, 43, 0.36) 100%),
    radial-gradient(circle at 35% 75%, rgba(43, 179, 163, 0.24), transparent 36%);
}

.home-hero__inner {
  width: 100%;
  padding: clamp(4rem, 10vw, 8rem) 0;
  @media (min-width: 720px) {
    padding-inline: 12rem;
  }
}

.home-hero__content {
  max-width: 42rem;
}

.home-hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}

.home-hero p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  margin-bottom: 1.75rem;
}

.home-intro {
  background: var(--surface);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.home-intro__inner {
  max-width: 820px;
}

.home-intro h2 {
  max-width: 620px;
  margin-inline: auto;
  color: #2f4f64;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.home-intro p {
  max-width: 72ch;
  margin: 0 auto 1.5rem;
  color: #526879;
}

.services-overview {
  background: var(--white);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.service-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.7rem 1.25rem;
  margin-top: 2rem;
}

.service-icon {
  display: block;
  min-width: 0;
  text-align: center;
  color: var(--ink);
}

.service-icon > .bi {
  display: inline-grid;
  place-items: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(15, 143, 138, 0.16);
  font-size: 2.25rem;
  margin: 0 auto 0.85rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-icon:hover > .bi,
.service-icon:focus-visible > .bi {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.service-icon h3 {
  min-height: 2.55rem;
  color: var(--green-dark);
  font-size: 0.92rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.service-icon p {
  color: #526879;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.green-divider {
  height: 72px;
  background:
    radial-gradient(circle, rgba(15, 143, 138, 0.18) 1.5px, transparent 2px) 0 0 / 22px 22px,
    linear-gradient(90deg, #edf8f7, #d8f0ee);
}

.feature-stack {
  background:
    radial-gradient(ellipse at 17% 20%, rgba(15, 143, 138, 0.09), transparent 34%),
    radial-gradient(ellipse at 90% 72%, rgba(15, 143, 138, 0.08), transparent 30%),
    var(--surface);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.feature-row--reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.feature-row--reverse .feature-copy {
  order: 2;
}

.feature-copy h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.feature-copy p {
  color: #526879;
  max-width: 58ch;
}

.feature-photo {
  position: relative;
  margin: 0;
  overflow: visible;
}

.feature-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 28px 60px rgba(16, 42, 67, 0.2);
}

.feature-photo figcaption {
  position: absolute;
  left: -2rem;
  bottom: 2rem;
  width: min(72%, 270px);
  padding: 1.05rem 1.25rem;
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(15, 143, 138, 0.28);
}

.feature-row--reverse .feature-photo figcaption {
  left: auto;
  right: -2rem;
}

.mini-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 1rem 1.4rem;
  margin: 1.4rem 0 1.5rem;
}

.mini-services span {
  position: relative;
  padding-top: 1.45rem;
  color: #243b53;
  font-size: 0.85rem;
  font-weight: 600;
}

.mini-services span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--green);
}

.gallery-section {
  background: var(--surface);
  padding-top: 0;
}

.photo-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.photo-collage__item {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  color: var(--white);
  cursor: zoom-in;
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.13);
}

.photo-collage__item::after {
  content: "\F62C";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  /* background: rgba(8, 25, 43, 0.74); */
  color: var(--white);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.photo-collage__item:hover::after,
.photo-collage__item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.photo-collage__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.photo-collage__item:hover img,
.photo-collage__item:focus-visible img {
  transform: scale(1.035);
}

.photo-collage__wide {
  grid-column: span 2;
}

.photo-collage__wide img {
  height: 260px !important;
}

.stats-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.stats-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.stats-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 25, 43, 0.84);
}

.home-metrics {
  background:
    linear-gradient(180deg, var(--white), #f1f8f7);
}

.home-metrics::before,
.home-metrics .stats-band__media {
  display: none;
}

.stats-band h2 {
  color: var(--ink);
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.home-metrics .eyebrow {
  text-align: center;
}

.stats-band .stats {
  margin-top: 0;
  grid-template-columns: repeat(4, 1fr);
}

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--green-dark);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.home-metrics .stats > div {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
}

.stats-band .stat-val {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
}

.stats-band .stat-label {
  color: var(--green-dark);
  font-weight: 600;
}

.benefits-section {
  background: var(--white);
}

.home-why-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(43, 179, 163, 0.14), transparent 28%),
    linear-gradient(180deg, #f1f8f7, var(--white));
}

.home-why-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.home-why-header h2 {
  max-width: 680px;
  margin-bottom: 0;
}

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

.home-why-grid article {
  min-height: 230px;
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-why-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(16, 42, 67, 0.13);
}

.home-why-grid .bi {
  display: inline-grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 1.65rem;
}

.home-why-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.home-why-grid p {
  color: #526879;
  font-size: 0.94rem;
  margin: 0;
}

.benefits-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.benefits-callout {
  padding: 3rem 2.2rem;
  background:
    radial-gradient(circle, rgba(16, 42, 67, 0.1) 1.5px, transparent 2px) 0 0 / 12px 12px,
    var(--surface);
  border-radius: 8px;
}

.benefits-callout h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-bottom: 1rem;
}

.benefits-list {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
  margin: 0;
  padding-left: 1.2rem;
}

.benefits-list li {
  break-inside: avoid;
  margin-bottom: 1rem;
  color: #334e68;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
}

/* Hero */
.hero {
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero--cover {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 10vh, 6rem) 0;
  background-color: #08192b;
}

/* Full-res photo as <img> for sharper rendering than CSS background-scale */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero--cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(8, 25, 43, 0.92) 0%,
    rgba(8, 25, 43, 0.72) 38%,
    rgba(8, 25, 43, 0.45) 65%,
    rgba(8, 25, 43, 0.35) 100%
  );
  pointer-events: none;
}

.hero--cover .hero__foreground {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  max-width: 38rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  text-transform: none;
  letter-spacing: -0.02em;
}

.text-highlight {
  color: var(--lime);
  font-weight: 600;
}

.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 38rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

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

.btn-learn-more {
  gap: 0.5rem;
}

.btn-learn-more .btn-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-learn-more:hover .btn-arrow {
  transform: translateX(4px);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark h2 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.82);
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-intro {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 2.5rem;
  color: #526879;
}

.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.75);
}

/* Cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 42, 67, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 16px 48px rgba(16, 42, 67, 0.14);
}

.card h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: #526879;
  margin-bottom: 0;
}

.card-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .card h3 {
  color: var(--white);
}

.section-dark .card p {
  color: rgba(255, 255, 255, 0.78);
}

/* Cards with top image */
.card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  overflow: hidden;
  background: #102a43;
  padding: 0.4rem;
}

/* Keep photos sharp: never upscale small assets past native pixels */
.card__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(260px, 48vw);
  object-fit: contain;
  object-position: center;
  border-radius: 5px;
}

.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card--media .card-link {
  margin-top: auto;
  padding-top: 0.85rem;
}

.image-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .image-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.image-strip figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-strip img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-iso {
  max-width: 92px;
  height: auto;
  margin-top: 1.1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.stat-val {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lime);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.benefit {
  padding: 1.25rem 0;
  border-top: 3px solid var(--green);
}

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

.benefit p {
  font-size: 0.92rem;
  color: #526879;
  margin: 0;
}

.section-dark .benefit p {
  color: rgba(255, 255, 255, 0.78);
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--ink), var(--green-dark));
  color: var(--white);
  padding: 2.5rem 0 2rem;
  border-radius: 0 0 3rem 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.page-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 55ch;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(16, 42, 67, 0.15);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background:
    radial-gradient(circle at 15% 10%, rgba(43, 179, 163, 0.12), transparent 30%),
    #08192b;
  color: rgba(255, 255, 255, 0.75);
  padding: clamp(2.8rem, 5vw, 4rem) 0 1.25rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(150px, 0.75fr) minmax(260px, 1.15fr) minmax(230px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: 2.4rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  min-height: 112px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--white);
}

.footer-logo img {
  max-width: 100%;
  height: auto;
}

.footer-brand p,
.footer-cta p {
  max-width: 28ch;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.68);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--white);
  background: var(--green);
  transform: translateY(-2px);
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.65rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

/* .site-footer a:hover {
  color: var(--lime);
} */

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-links a::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.footer-contact .bi {
  color: var(--lime);
  font-size: 1.05rem;
  line-height: 1.6;
}

.footer-cta .btn {
  margin-top: 0.2rem;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bar a {
  color: var(--lime);
}

.footer-bar__links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--green-dark);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top .bi {
  font-size: 1.35rem;
  line-height: 1;
}

/* Survey list */
.survey-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.survey-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(16, 42, 67, 0.1);
}

.survey-list li:last-child {
  border-bottom: none;
}

.survey-list strong {
  display: block;
  font-family: var(--font-head);
  margin-bottom: 0.25rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--lime);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.survey-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.survey-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.survey-hero h1 {
  max-width: 760px;
}

.survey-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 1.4rem;
}

.survey-hero__panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.survey-hero__panel div {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.survey-hero__panel .bi {
  color: var(--lime);
  font-size: 2rem;
}

.survey-hero__panel span {
  font-family: var(--font-head);
  font-weight: 600;
}

.survey-media-section {
  background: var(--surface);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.survey-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.survey-media-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(16, 42, 67, 0.14);
}

.survey-media-grid img {
  width: 100%;
  height: clamp(260px, 28vw, 430px);
  object-fit: cover;
  transition: transform 0.25s ease;
}

.survey-media-grid a:hover img,
.survey-media-grid a:focus-visible img {
  transform: scale(1.035);
}

.survey-types-section {
  background: var(--surface);
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.section-heading-left {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading-left h2 {
  margin-bottom: 0.45rem;
}

.section-heading-left p:not(.eyebrow) {
  color: #526879;
  margin: 0;
}

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

.survey-card {
  min-height: 245px;
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.survey-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 138, 0.25);
  box-shadow: 0 18px 44px rgba(16, 42, 67, 0.13);
}

.survey-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--green-dark);
  font-size: 1.75rem;
}

.survey-card h3 {
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.survey-card p {
  color: #526879;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

.survey-cta {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--white);
}

.survey-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), var(--green-dark));
  color: var(--white);
}

.survey-cta h2 {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.survey-cta p {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.services-hero {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.services-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.services-hero__copy p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 1.4rem;
}

.services-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.services-hero__image {
  position: relative;
}

.services-hero__image img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.services-hero__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100% - 2.5rem);
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: rgba(8, 25, 43, 0.86);
  color: var(--white);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.services-hero__badge .bi {
  color: var(--lime);
  font-size: 1.45rem;
}

.services-hero__badge span {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
}

.services-page-section {
  background: var(--surface);
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 1.15rem;
  align-items: stretch;
}

.service-panel {
  min-height: 260px;
  padding: 1.6rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 0 12px 34px rgba(16, 42, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 138, 0.24);
  box-shadow: 0 20px 46px rgba(16, 42, 67, 0.13);
}

.service-panel--featured {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}

.service-panel__media {
  background: var(--ink);
}

.service-panel__media img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.service-panel__body {
  padding: 1.6rem;
}

.service-panel__icon {
  display: inline-grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--green-dark);
  font-size: 1.75rem;
}

.service-panel h3 {
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
}

.service-panel p {
  color: #526879;
  margin-bottom: 1.2rem;
}

.service-panel .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-process {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--white);
}

.service-process__heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

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

.process-step {
  position: relative;
  min-height: 230px;
  padding: 1.5rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4f9fb);
  border: 1px solid rgba(16, 42, 67, 0.08);
}

.process-step span {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(16, 42, 67, 0.18);
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.process-step .bi {
  color: var(--green);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.process-step h3 {
  margin-bottom: 0.55rem;
}

.process-step p {
  color: #526879;
  font-size: 0.94rem;
  margin: 0;
}

.service-benefits-section {
  background: #0f243a;
  color: var(--white);
}

.service-benefits-section h2 {
  color: var(--white);
}

.service-benefits-section .section-heading-left p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.service-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-benefit-grid > div {
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-benefit-grid .bi {
  color: var(--lime);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-benefit-grid h3 {
  color: var(--white);
}

.service-benefit-grid p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
}

.bms-hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.bms-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.bms-hero h1 {
  max-width: 780px;
}

.bms-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 1.4rem;
}

.bms-hero__panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.bms-hero__panel div {
  min-height: 136px;
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.bms-hero__panel .bi {
  color: var(--lime);
  font-size: 2rem;
}

.bms-hero__panel span {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.3;
}

.bms-section {
  background: var(--surface);
}

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

.bms-card {
  min-height: 245px;
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bms-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 138, 0.25);
  box-shadow: 0 20px 46px rgba(16, 42, 67, 0.13);
}

.bms-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--green-dark);
  font-size: 1.75rem;
}

.bms-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}

.bms-card p {
  color: #526879;
  font-size: 0.94rem;
  margin: 0;
}

.bms-process {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: var(--white);
}

.bms-faq-section {
  background: var(--surface);
}

.bms-faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.bms-faq-layout > div:first-child p:not(.eyebrow) {
  color: #526879;
  max-width: 52ch;
}

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

.faq-list details {
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.08);
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.07);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .bi {
  color: var(--green);
  font-size: 1.2rem;
  flex: 0 0 auto;
}

.faq-list details p {
  padding: 0 1.2rem 1.15rem 3.15rem;
  color: #526879;
  margin: 0;
}

/* Contact page address panel */
.contact-panel {
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(16, 42, 67, 0.06);
}

.contact-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-panel .label {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin: 1rem 0 0.35rem;
}

.contact-panel .label:first-of-type {
  margin-top: 0;
}

.contact-panel address {
  font-style: normal;
  color: #526879;
  line-height: 1.65;
  margin: 0;
}

.contact-panel a[href^="tel"] {
  font-weight: 600;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 68px;
  }

  .logo-img {
    max-height: 48px;
    max-width: 132px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-nav-wrap {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 49;
    display: block;
    max-height: calc(100vh - 68px);
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--white);
    border-top: 1px solid rgba(16, 42, 67, 0.08);
    box-shadow: 0 18px 44px rgba(16, 42, 67, 0.16);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  body.nav-open .header-nav-wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-nav-wrap .nav,
  .nav {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
  }

  .nav a,
  .nav-dropdown > a {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 1rem;
  }

  .nav-submenu {
    position: static;
    min-width: 0;
    padding: 0 0 0.45rem 1rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: block;
    background: transparent;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-submenu a {
    padding: 0.45rem 0;
    font-size: 0.92rem;
    color: #526879;
  }

  .service-icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .survey-hero__inner,
  .survey-card-grid,
  .services-hero__inner,
  .bms-hero__inner,
  .bms-card-grid,
  .bms-faq-layout {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-panel--featured {
    grid-row: auto;
    grid-column: span 2;
  }

  .process-grid,
  .service-benefit-grid,
  .stats-band .stats,
  .home-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-copy {
    order: 0;
  }

  .feature-photo figcaption,
  .feature-row--reverse .feature-photo figcaption {
    left: 1rem;
    right: auto;
    bottom: 1rem;
  }

  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .header-inner {
    min-height: 64px;
  }

  .logo-img {
    max-height: 44px;
    max-width: 118px;
  }

  .header-nav-wrap {
    top: 64px;
    max-height: calc(100vh - 64px);
  }

  .home-hero {
    min-height: 610px;
  }

  .home-hero::after {
    display: none;
  }

  .service-icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 1rem;
  }

  .service-icon h3 {
    min-height: auto;
  }

  .photo-collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .survey-hero__inner,
  .survey-media-grid,
  .survey-card-grid,
  .services-hero__inner,
  .services-grid,
  .process-grid,
  .service-benefit-grid,
  .stats-band .stats,
  .home-why-grid,
  .bms-hero__inner,
  .bms-card-grid,
  .bms-faq-layout {
    grid-template-columns: 1fr;
  }

  .service-panel--featured {
    grid-column: auto;
  }

  .service-panel__media img {
    height: 240px;
  }

  .survey-hero__panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .bms-hero__panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .survey-card {
    min-height: auto;
  }

  .survey-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-why-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand p,
  .footer-cta p {
    max-width: none;
  }

  .photo-collage__item img,
  .photo-collage__wide img {
    height: 150px !important;
  }

  .benefits-list {
    columns: 1;
  }
}

@media (max-width: 460px) {
  .service-icon-grid,
  .mini-services,
  .photo-collage {
    grid-template-columns: 1fr;
  }

  .survey-hero__panel {
    grid-template-columns: 1fr;
  }

  .bms-hero__panel {
    grid-template-columns: 1fr;
  }

  .faq-list details p {
    padding-left: 1.2rem;
  }

  .photo-collage__wide {
    grid-column: auto;
  }

  .feature-photo figcaption {
    position: static;
    width: 100%;
    border-radius: 0 0 6px 6px;
  }
}
