:root {
  --navy: #0a3156;
  --deep-navy: #061f38;
  --teal: #238b91;
  --mint: #8ed8c3;
  --seafoam: #d9f0e9;
  --paper: #fbfcf8;
  --soft: #eef7f3;
  --ink: #17222b;
  --muted: #5c6b73;
  --warm: #b7684b;
  --line: rgba(10, 49, 86, 0.16);
  --shadow: 0 20px 60px rgba(6, 31, 56, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 18px;
  color: var(--deep-navy);
  background: var(--mint);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 3px 32px;
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  --logo-height: 80px;
  position: relative;
  display: block;
  width: calc(var(--logo-height) * 3.2);
  height: var(--logo-height);
  overflow: hidden;
}

.brand img {
  position: absolute;
  top: calc(var(--logo-height) * -0.049);
  left: calc(var(--logo-height) * -0.483);
  width: auto;
  max-width: none;
  height: calc(var(--logo-height) * 1.434);
}

.site-nav {
  justify-self: end;
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--deep-navy);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--seafoam);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: calc(100vh - 87px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.96) 0%, rgba(217, 240, 233, 0.86) 36%, rgba(35, 139, 145, 0.18) 62%, rgba(6, 31, 56, 0.18) 100%),
    linear-gradient(135deg, rgba(142, 216, 195, 0.46), rgba(35, 139, 145, 0.22)),
    url("assets/heropic.jpg") center / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 84px 56px 84px max(56px, calc((100vw - 1240px) / 2));
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card .card-kicker {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--deep-navy);
  line-height: 1.05;
}

h1 {
  max-width: 720px;
  font-size: 4.35rem;
}

h2 {
  font-size: 2.55rem;
}

h3 {
  font-size: 1.36rem;
}

p {
  margin: 0;
}

.hero-lede {
  max-width: 620px;
  margin-top: 22px;
  color: #30414b;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-actions .button {
  min-width: 168px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(10, 49, 86, 0.24);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--deep-navy);
}

.button.secondary {
  color: var(--navy);
  border-color: var(--line);
  background: #ffffff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--seafoam);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 650px;
  margin: 72px 0 0;
}

.hero-facts div {
  min-height: 104px;
  padding: 18px;
  border-left: 5px solid var(--mint);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-facts dt {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 650;
}

.intro-band {
  padding: 52px 0;
  color: #ffffff;
  background: var(--navy);
}

.section-inner,
.section,
.bio-section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: start;
}

.intro-band .eyebrow {
  color: #ffffff;
}

.intro-band p:not(.eyebrow) {
  max-width: 920px;
  color: #d8ebe8;
  font-size: 1.12rem;
}

.section {
  padding: 92px 0;
}

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

.section-heading p:not(.eyebrow):not(.search-status) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

.search-status {
  min-height: 24px;
  color: var(--warm);
  font-weight: 800;
}

.service-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, var(--soft));
  box-shadow: 0 12px 34px rgba(6, 31, 56, 0.06);
}

.service-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.service-search span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-search input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: #ffffff;
  font: inherit;
  font-weight: 500;
}

.service-search input::placeholder {
  color: rgba(92, 107, 115, 0.58);
}

.service-search input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(35, 139, 145, 0.14);
}

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

.service-card {
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(6, 31, 56, 0.06);
}

.service-card.feature {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff, var(--soft));
  border-top: 6px solid var(--teal);
}

.service-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.service-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(35, 139, 145, 0.24);
  border-radius: 8px;
  color: var(--teal);
  background: var(--seafoam);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card p:not(.card-kicker) {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 9px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 22px;
  color: #263742;
  font-weight: 650;
}

.service-card li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(142, 216, 195, 0.22);
}

.service-card.is-hidden,
.resource-link.is-hidden {
  display: none;
}

.bio-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 92px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bio-image {
  height: 620px;
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
}

.bio-copy {
  display: grid;
  gap: 18px;
}

.bio-copy p:not(.eyebrow) {
  color: #33464f;
  font-size: 1.05rem;
}

.appointments {
  border-bottom: 1px solid var(--line);
}

.appointment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.appointment-form,
.directions-panel {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(6, 31, 56, 0.06);
}

.appointment-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: var(--deep-navy);
  font-weight: 850;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfffd;
  font: inherit;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(35, 139, 145, 0.14);
}

.form-note {
  min-height: 24px;
  color: var(--teal);
  font-weight: 800;
}

.directions-panel {
  padding: 28px;
  border-top: 6px solid var(--warm);
}

.directions-panel p {
  margin: 14px 0 18px;
  color: var(--muted);
}

.directions-panel address {
  margin: 0 0 18px;
  color: var(--deep-navy);
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.map-embed {
  width: 100%;
  height: 260px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.resource-link {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep-navy);
  background: #ffffff;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(6, 31, 56, 0.06);
}

.resource-link span {
  color: var(--teal);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.resource-link.external {
  color: #ffffff;
  background: var(--navy);
}

.resource-link.external span {
  color: var(--mint);
}

.resource-link:hover,
.resource-link:focus-visible {
  border-color: var(--teal);
  outline: none;
  transform: translateY(-1px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  color: #dceeed;
  background: var(--deep-navy);
}

.site-footer img {
  width: 170px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  background: #ffffff;
}

.site-footer p {
  font-weight: 850;
}

.site-footer a {
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand {
    --logo-height: 78px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
  }

  .site-nav {
    display: none;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-copy {
    padding: 72px 32px;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.15rem;
  }

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

  .service-search-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .bio-section,
  .appointment-layout,
  .split {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 660px) {
  .site-header {
    padding: 3px 18px;
  }

  .brand {
    --logo-height: 70px;
  }

  .hero {
    min-height: auto;
    background-position: 58% center;
  }

  .hero-copy {
    padding: 54px 24px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-facts,
  .service-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .service-search {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: 88px;
  }

  .intro-band {
    padding: 42px 0;
  }

  .section-inner,
  .section,
  .bio-section {
    width: calc(100% - 32px);
  }

  .section,
  .bio-section {
    padding: 66px 0;
  }

  .service-card.feature {
    grid-column: auto;
  }

  .bio-image {
    height: 460px;
  }
}
