:root {
  --ink: #333333;
  --muted: #667176;
  --sage-900: #00636b;
  --sage-800: #007d88;
  --sage-700: #00929f;
  --sage-300: #75d69c;
  --sage-200: #b9efd0;
  --sage-100: #e5f8ed;
  --secondary-blue: #5472d2;
  --cream: #fbfbfb;
  --paper: #ffffff;
  --line: #e5e5e5;
  --shadow: 0 24px 60px rgb(0 73 80 / 18%);
  --radius: 20px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 6vw, 5.85rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.42rem;
  font-weight: 600;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.section-pad {
  padding-block: 110px;
}

.centered {
  text-align: center;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--sage-900);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.utility-bar {
  color: #e8fbfc;
  background: var(--sage-900);
  font-size: 0.84rem;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 8px;
}

.utility-bar a:hover {
  color: var(--paper);
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid rgb(0 146 159 / 12%);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--sage-800);
  line-height: 1;
  text-transform: uppercase;
}

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

.brand span {
  display: grid;
  gap: 5px;
}

.brand strong {
  font-size: 1.24rem;
  letter-spacing: 0.08em;
}

.brand em {
  font-size: 0.94rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 34px);
  font-size: 0.94rem;
  font-weight: 500;
}

.desktop-nav > a:not(.button) {
  padding-block: 12px;
  border-bottom: 1px solid transparent;
}

.desktop-nav > a:not(.button):hover {
  color: var(--sage-800);
  border-color: var(--sage-800);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  padding: 10px 14px;
  color: var(--sage-900);
  background: var(--sage-100);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.mobile-nav nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  width: min(78vw, 290px);
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.mobile-nav nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.mobile-nav nav a:hover {
  background: var(--sage-100);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  color: var(--sage-900);
  background: var(--sage-100);
  border: 1px solid var(--sage-100);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: 180ms ease;
}

.button:hover {
  color: var(--paper);
  background: var(--sage-800);
  border-color: var(--sage-800);
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding: 10px 17px;
  font-size: 0.88rem;
}

.button-wide {
  width: 100%;
}

.button-outline {
  color: var(--sage-800);
  background: transparent;
  border-color: var(--sage-300);
}

.button-dark {
  color: var(--paper);
  background: var(--sage-800);
  border-color: var(--sage-800);
}

.button-dark:hover {
  background: var(--sage-900);
}

.button-white {
  color: var(--sage-900);
  background: var(--paper);
  border-color: var(--paper);
}

.button-ghost {
  color: var(--paper);
  background: transparent;
  border-color: rgb(255 255 255 / 52%);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 720px;
  color: var(--paper);
  background: var(--sage-900);
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("assets/hero-office.png") 100% 48% / auto 138% no-repeat;
  opacity: 0;
  transform: scale(1.018);
  animation: hero-image-fade 1.45s ease-out 100ms forwards;
}

.hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 48 54 / 82%) 0%, rgb(0 48 54 / 58%) 46%, rgb(0 48 54 / 24%) 100%);
  opacity: 0;
  animation: hero-overlay-fade 900ms ease-out 180ms forwards;
}

@keyframes hero-image-fade {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-overlay-fade {
  to {
    opacity: 1;
  }
}

.hero-grid {
  display: grid;
  min-height: 720px;
  align-items: center;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.7fr);
  gap: 70px;
  padding-block: 80px;
}

.hero-copy {
  padding-top: 20px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--sage-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--sage-200);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 0;
  color: #effcfd;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.appointment-card {
  padding: 38px;
  color: var(--ink);
  background: rgb(255 255 255 / 96%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(8px);
}

.appointment-card img {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.brand img,
.appointment-card img,
.service-icon {
  filter: hue-rotate(88deg) saturate(1.65) brightness(0.96);
}

.appointment-card .card-kicker {
  margin-bottom: 8px;
  color: var(--sage-700);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.appointment-card h2 {
  margin-bottom: 28px;
  font-size: 2rem;
}

.appointment-card .button + .button {
  margin-top: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.intro {
  background: var(--paper);
}

.intro-grid h2 {
  max-width: 540px;
}

.intro-copy {
  padding-top: 26px;
  color: var(--muted);
  font-size: 1.06rem;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--sage-800);
  font-weight: 700;
}

.text-link:hover span {
  transform: translateX(4px);
}

.trust-strip {
  display: grid;
  margin-top: 80px;
  overflow: hidden;
  background: var(--sage-100);
  border-radius: var(--radius);
  grid-template-columns: repeat(3, 1fr);
}

.trust-strip > div {
  display: grid;
  padding: 34px;
  border-right: 1px solid rgb(0 146 159 / 16%);
  grid-template-columns: auto 1fr;
  column-gap: 18px;
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-strip span {
  grid-row: span 2;
  color: var(--sage-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-strip strong {
  color: var(--sage-900);
  font-size: 1.1rem;
}

.trust-strip small {
  color: var(--muted);
}

.services {
  background: var(--cream);
}

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

.section-heading > p:last-child {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
}

.service-grid {
  display: grid;
  margin-top: 54px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Each card is a link to its service page, so it needs to be a block box. */
.service-card {
  display: block;
  min-height: 350px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  transition: 180ms ease;
}

.service-card h3 {
  transition: 180ms ease;
}

.service-card:hover h3 {
  color: var(--sage-800);
}

.service-card:hover {
  border-color: var(--sage-300);
  box-shadow: 0 18px 40px rgb(0 73 80 / 12%);
  transform: translateY(-4px);
}

.service-icon {
  width: 158px;
  height: 158px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.button-row {
  margin-top: 38px;
}

.feature {
  background: var(--paper);
}

.feature-grid {
  align-items: center;
}

.feature-photo {
  position: relative;
}

.feature-photo::before {
  position: absolute;
  z-index: -1;
  right: -24px;
  bottom: -24px;
  width: 68%;
  height: 72%;
  background: var(--sage-200);
  border-radius: 24px;
  content: "";
}

.feature-photo img {
  width: 100%;
  min-height: 580px;
  object-fit: cover;
  border-radius: 24px;
}

.feature-copy {
  padding-left: 24px;
}

.feature-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.check-list {
  display: grid;
  margin: 30px 0 38px;
  padding: 0;
  list-style: none;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 23px;
  height: 23px;
  color: var(--sage-900);
  background: var(--sage-100);
  border-radius: 50%;
  content: "✓";
  font-size: 0.8rem;
  place-items: center;
}

/* Photo underlay, same idea as the hero: image on one layer, tinted overlay on
   another, content above both. The sage background stays as the fallback, so
   this section still looks right if the photo is missing. */
.reviews {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper);
  background: var(--sage-900);
}

.reviews::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("assets/affordable-care-room.jpg") 50% 50% / cover no-repeat;
}

/* Heavier than the hero's overlay because white review cards and small print
   sit on top of it across the full width, not just down one side. */
.reviews::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, rgb(0 48 54 / 93%) 0%, rgb(0 48 54 / 84%) 52%, rgb(0 48 54 / 90%) 100%);
}

.reviews-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.reviews-heading h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.review-grid {
  display: grid;
  margin-top: 58px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 32px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 16px;
}

.quote-mark {
  height: 52px;
  color: var(--sage-300);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 0.8;
}

.review-card > p {
  margin: 28px 0;
  font-size: 1.08rem;
}

.review-card footer {
  display: grid;
  margin-top: auto;
}

.review-card footer span {
  color: #9b7b2f;
  letter-spacing: 0.08em;
}

.review-card footer small {
  margin-top: 8px;
  color: var(--muted);
}

.visit {
  background: var(--paper);
}

.visit-grid {
  display: grid;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.visit-card {
  padding: 40px 36px 20px;
  border-right: 1px solid var(--line);
}

.visit-card:last-child {
  border-right: 0;
}

.visit-number {
  display: inline-block;
  margin-bottom: 50px;
  color: var(--sage-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.visit-card p {
  color: var(--muted);
}

.visit-card a {
  color: var(--sage-800);
  font-weight: 700;
}

.contact-band {
  padding-block: 78px;
  color: var(--paper);
  background: var(--sage-800);
}

.contact-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 70px;
}

.contact-grid h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.contact-actions {
  display: grid;
  min-width: 230px;
  gap: 12px;
}

.site-footer {
  padding-top: 86px;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  padding-bottom: 68px;
  grid-template-columns: 1.25fr 1fr 1fr 0.7fr;
  gap: 58px;
}

.footer-grid h3 {
  font-size: 1.1rem;
}

.footer-grid address {
  margin-bottom: 13px;
  font-style: normal;
}

.footer-grid > div:not(.footer-brand) > a,
.footer-grid > div:not(.footer-brand) > span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid > div:not(.footer-brand) > a:hover {
  color: var(--sage-800);
}

.footer-brand .brand {
  margin-bottom: 24px;
}

.footer-brand > p {
  max-width: 280px;
  color: var(--muted);
}

.hours-list {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 4px;
  border-bottom: 1px solid var(--line);
}

.hours-list dt,
.hours-list dd {
  margin: 0;
}

.hours-list dd {
  text-align: right;
}

.footer-links {
  display: grid;
  color: var(--muted);
  gap: 5px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--sage-800);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-block: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.footer-credit {
  white-space: nowrap;
}

.footer-credit a {
  color: var(--sage-800);
  font-weight: 600;
  transition: 180ms ease;
}

.footer-credit a:hover {
  color: var(--sage-900);
  text-decoration: underline;
}

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

  .mobile-nav {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr 330px;
    gap: 36px;
  }

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

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

@media (min-width: 1600px) {
  .hero::before {
    background-size: 110% auto;
  }
}
@media (max-width: 760px) {
  .section-pad {
    padding-block: 76px;
  }

  .utility-inner {
    justify-content: center;
    text-align: center;
  }

  .utility-inner a:first-child {
    display: none;
  }

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

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand em {
    font-size: 0.76rem;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 90px 64px;
  }

  .hero::before {
    background-position: 49% 48%;
    background-size: auto 112%;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgb(0 48 54 / 80%) 0%, rgb(0 48 54 / 58%) 100%);
  }

  .appointment-card {
    max-width: 440px;
  }

  .split,
  .reviews-heading,
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .intro-copy,
  .feature-copy {
    padding: 0;
  }

  .trust-strip,
  .review-grid,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip > div {
    border-right: 0;
    border-bottom: 1px solid rgb(0 146 159 / 16%);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

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

  .feature-photo img {
    min-height: 430px;
  }

  .feature-photo::before {
    right: 0;
  }

  .review-card {
    min-height: 340px;
  }

  .visit-card {
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .visit-card:last-child {
    border-bottom: 0;
  }

  .visit-number {
    margin-bottom: 28px;
  }

  .contact-actions {
    width: 100%;
    max-width: 340px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 440px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  /* Narrow phones used to hide the wordmark entirely. Scale the mark and type
     down instead so the practice name still reads in the header. */
  .header-inner {
    gap: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 1rem;
    letter-spacing: 0.06em;
  }

  .brand em {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .appointment-card,
  .service-card,
  .review-card {
    padding: 26px;
  }
}

/* Service pages */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a:hover {
  color: var(--sage-800);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.service-hero {
  padding-bottom: 30px;
}

.service-hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 48px;
}

.service-hero-icon {
  width: min(100%, 260px);
  margin-inline: auto;
}

.service-lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.12rem;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Narrow measure keeps the answers scannable — for readers and for the answer
   engines that quote the first line under each heading. Constrain the children
   rather than the container so the text stays flush with the hero's left edge
   instead of floating to the middle of the page. */
.service-body > * {
  max-width: 760px;
}

.service-body h2 {
  margin-top: 52px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.service-body h2:first-of-type {
  margin-top: 0;
}

.service-body h3 {
  margin-top: 32px;
}

.service-body p {
  color: var(--muted);
}

.related-services {
  background: var(--cream);
}

.related-grid {
  margin-top: 34px;
}

@media (max-width: 860px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-hero-icon {
    order: -1;
    width: 180px;
  }
}

/* 404 page */

.notfound {
  padding-block: clamp(56px, 9vw, 104px);
  background: linear-gradient(180deg, var(--sage-100), var(--paper) 72%);
}

.notfound-inner {
  max-width: 720px;
  text-align: center;
}

.notfound-mark {
  position: relative;
  display: grid;
  margin-bottom: 30px;
  place-items: center;
}

/* The 404 sits behind the mascot as a watermark, so the tooth stays the subject. */
.notfound-code {
  position: absolute;
  color: var(--sage-200);
  font-size: clamp(7rem, 20vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  opacity: 0.55;
  user-select: none;
}

.notfound-mark img {
  position: relative;
  width: clamp(112px, 17vw, 158px);
  height: auto;
  animation: notfound-float 4.5s ease-in-out infinite;
}

@keyframes notfound-float {
  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(6px);
  }
}

.notfound h1 {
  margin-inline: auto;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.notfound-lead {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--sage-800);
  font-size: 0.92rem;
  font-weight: 600;
}

.notfound-links a:hover {
  color: var(--sage-900);
  text-decoration: underline;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .hero::before,
  .hero-overlay {
    opacity: 1;
    transform: none;
  }
}








