:root {
  --navy: #1c355e;
  --navy-deep: #122840;
  --blue: #6a9bc3;
  --steel: #a8b8c8;
  --white: #ffffff;
  --off-white: #f6f7f8;
  --warm-white: #f8f8f6;
  --ink: #171d24;
  --body: #4c5562;
  --muted: #788391;
  --line: #d9dee4;
  --font: "Inter Variable", Inter, Arial, Helvetica, sans-serif;
  --width: 78rem;
  --gutter: clamp(1.1rem, 3vw, 2.25rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--body);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
summary { cursor: pointer; }

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 4.8vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.1vw, 2.9rem); }
h3 { font-size: clamp(1.12rem, 1.5vw, 1.38rem); }

p { margin-top: 0; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.site-width {
  width: min(calc(100% - (2 * var(--gutter))), var(--width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 999;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--navy-deep);
  text-decoration: none;
}

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

/* HEADER */

.top-strip {
  color: #e4eaf0;
  background: var(--navy-deep);
  font-size: .76rem;
}

.top-strip__inner {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-strip p { margin: 0; }

.top-strip a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  min-height: 4.15rem;
  align-items: center;
  gap: 1.4rem;
}

.logo {
  color: var(--navy-deep);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav { display: none; }

.desktop-nav > a,
.services-dropdown > summary {
  color: var(--ink);
  font-size: .83rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav > a[aria-current="page"] {
  color: var(--navy);
  font-weight: 760;
}

.services-dropdown { position: relative; }
.services-dropdown > summary { list-style: none; }
.services-dropdown > summary::-webkit-details-marker { display: none; }

.services-dropdown > summary::after {
  content: " ▾";
  color: var(--muted);
  font-size: .7em;
}

.services-dropdown__menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: -1rem;
  width: 25rem;
  padding: .35rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.services-dropdown__menu a {
  display: block;
  padding: .8rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 620;
  text-decoration: none;
}

.services-dropdown__menu a:last-child { border-bottom: 0; }

.header-cta {
  display: none;
  margin-left: .25rem;
  padding: .68rem .9rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 2px;
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
}

.header-cta:hover { background: var(--navy-deep); }

.mobile-nav {
  position: relative;
  margin-left: auto;
}

.mobile-nav > summary {
  padding: .55rem .75rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 700;
  list-style: none;
}

.mobile-nav > summary::-webkit-details-marker { display: none; }

.mobile-nav nav {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  width: min(88vw, 22rem);
  padding: .6rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.mobile-nav nav a {
  display: block;
  padding: .8rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  font-weight: 620;
  text-decoration: none;
}

.mobile-nav nav a:last-child { border-bottom: 0; }

/* PAGE INTRO */

.page-intro {
  padding-block: clamp(4.25rem, 7vw, 6.5rem);
  background: var(--warm-white);
  border-bottom: 1px solid var(--line);
}

.page-intro__inner {
  max-width: 61rem;
}

.page-intro__label,
.section-label {
  margin-bottom: .9rem;
  color: var(--navy);
  font-size: .7rem;
  font-weight: 820;
  letter-spacing: .1em;
}

.section-label--light { color: var(--steel); }

.page-intro h1 {
  max-width: 16ch;
}

.page-intro p:last-child {
  max-width: 63ch;
  margin: 1.2rem 0 0;
  color: var(--ink);
  font-size: clamp(1.04rem, 1.35vw, 1.15rem);
}

/* DIRECT CONTACT */

.contact-section {
  padding-block: clamp(4.75rem, 8vw, 7rem);
}

.contact-layout {
  display: grid;
  gap: clamp(2.75rem, 6vw, 6rem);
  align-items: stretch;
}

.contact-copy {
  max-width: 42rem;
  align-self: center;
}

.contact-copy > h2 {
  margin-bottom: 1.4rem;
}

.contact-methods {
  border-top: 1px solid var(--line);
}

.contact-method {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-method > span {
  display: block;
  margin-bottom: .2rem;
  color: var(--navy);
  font-size: .7rem;
  font-weight: 820;
  letter-spacing: .09em;
}

.contact-method strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -.025em;
}

.contact-method p {
  max-width: 48ch;
  margin: .3rem 0 0;
  color: var(--body);
  font-size: .9rem;
}

.contact-method:hover strong {
  text-decoration: underline;
  text-underline-offset: .22rem;
}

.assessment-route {
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.assessment-route h3 {
  max-width: 22ch;
  margin-bottom: .6rem;
}

.assessment-route p {
  max-width: 55ch;
}

.primary-link {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.05rem;
  color: var(--white);
  background: var(--navy);
  border-radius: 2px;
  font-size: .84rem;
  font-weight: 760;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--navy-deep);
}

.contact-note {
  max-width: 65ch;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}

.contact-photo {
  min-height: 38rem;
  margin: 0;
  overflow: hidden;
  background: #e2e7ea;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  min-height: inherit;
  height: 100%;
  flex-direction: column;
  justify-content: end;
  padding: 1.4rem;
  background: #e2e7ea;
  border: 1px solid #ced5dc;
}

.photo-placeholder span {
  margin-bottom: .3rem;
  color: var(--navy);
  font-size: .68rem;
  font-weight: 820;
  letter-spacing: .1em;
}

.photo-placeholder p {
  max-width: 34ch;
  margin-bottom: 0;
  font-size: .88rem;
  line-height: 1.5;
}

/* ROUTING */

.routing-section {
  padding-block: clamp(4.75rem, 8vw, 7rem);
  background: var(--off-white);
  border-top: 1px solid var(--line);
}

.routing-layout {
  display: grid;
  gap: clamp(2.75rem, 6vw, 6rem);
  align-items: start;
}

.routing-layout > div:first-child {
  max-width: 38rem;
}

.routing-layout h2 {
  max-width: 18ch;
  margin-bottom: .8rem;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-list > a {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.service-list > a > span {
  padding-top: .12rem;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.service-list strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.service-list p {
  max-width: 58ch;
  margin: .25rem 0 0;
}

.service-list > a:hover strong {
  text-decoration: underline;
  text-underline-offset: .18rem;
}

/* NEXT */

.next-section {
  padding-block: clamp(4.5rem, 7vw, 6.25rem);
  border-top: 1px solid var(--line);
}

.next-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.next-layout h2 {
  max-width: 18ch;
}

.next-copy {
  max-width: 62ch;
}

.next-copy p:first-child {
  color: var(--ink);
  font-size: clamp(1.03rem, 1.3vw, 1.12rem);
  font-weight: 580;
}

/* SERVICE AREA */

.service-area {
  color: #dce4eb;
  background: var(--navy);
}

.service-area__layout {
  display: grid;
  gap: 2rem;
  padding-block: clamp(4.25rem, 7vw, 6.5rem);
  align-items: start;
}

.service-area h2 {
  max-width: 21ch;
  color: var(--white);
}

.service-area__copy {
  max-width: 60ch;
}

.service-area__copy p {
  color: #dce4eb;
}

.service-area__copy p:first-child {
  color: var(--white);
  font-size: clamp(1.03rem, 1.3vw, 1.12rem);
  font-weight: 580;
}

/* FOOTER */

.site-footer {
  padding: clamp(3.5rem, 6vw, 5rem) 0 5.5rem;
  color: #d3dce4;
  background: var(--navy-deep);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.logo--footer {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-brand p {
  max-width: 38ch;
}

.footer-brand > a:not(.logo) {
  color: var(--white);
  font-weight: 700;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: .5rem;
}

.site-footer nav strong {
  margin-bottom: .3rem;
  color: var(--white);
  font-size: .78rem;
}

.site-footer nav a {
  color: #dbe3e9;
  font-size: .83rem;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  display: grid;
  gap: .5rem;
  margin-top: 2.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .75rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* MOBILE QUICK ACTIONS */

.mobile-actions {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.mobile-actions a {
  display: grid;
  min-height: 3.5rem;
  place-items: center;
  padding: .65rem;
  color: var(--navy-deep);
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.mobile-actions a:first-child {
  color: var(--white);
  background: var(--navy);
}

/* TABLET */

@media (min-width: 48rem) {
  .contact-layout {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  }

  .routing-layout,
  .next-layout,
  .service-area__layout {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }

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

  .footer-bottom {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }

  .footer-bottom p:last-child {
    text-align: right;
  }
}

/* DESKTOP */

@media (min-width: 64rem) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin-left: auto;
  }

  .header-cta {
    display: inline-flex;
  }

  .mobile-nav {
    display: none;
  }

  .contact-layout {
    grid-template-columns: minmax(0, .9fr) minmax(35rem, 1.1fr);
  }

  .contact-photo {
    min-height: 48rem;
  }

  .site-footer {
    padding-bottom: 3rem;
  }

  .mobile-actions {
    display: none;
  }
}

/* MOBILE */

@media (max-width: 47.99rem) {
  body {
    padding-bottom: 3.5rem;
  }

  .top-strip__inner p {
    max-width: 24ch;
  }

  .page-intro h1 {
    max-width: 14ch;
    font-size: clamp(2.45rem, 10.5vw, 3.25rem);
  }

  .contact-photo {
    min-height: 27rem;
  }

  .primary-link {
    width: 100%;
  }

  .routing-layout h2,
  .next-layout h2,
  .service-area h2 {
    max-width: 17ch;
  }
}

@media (max-width: 24.5rem) {
  .top-strip {
    font-size: .7rem;
  }

  .logo {
    font-size: .92rem;
    letter-spacing: .07em;
  }

  .mobile-nav > summary {
    padding-inline: .6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   SITEWIDE QA PATCH — MOBILE UTILITY BAR
   Keeps the service area readable without turning the top strip
   into a three-line block on small screens.
   ========================================================= */

.top-strip__area {
  white-space: nowrap;
}

@media (max-width: 47.99rem) {
  .top-strip__descriptor {
    display: none;
  }

  .top-strip__inner {
    gap: .75rem;
  }

  .top-strip__inner p {
    max-width: none !important;
    white-space: nowrap;
  }
}

