:root {
  --cream: #f6fafb;
  --paper: #ffffff;
  --lavender: #e8f3f3;
  --sage: #dcebea;
  --teal: #187b7b;
  --navy: #10243f;
  --muted: #5f6f7c;
  --line: rgba(16, 36, 63, .12);
  --shadow: 0 18px 44px rgba(16, 36, 63, .11);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.skip { position: absolute; left: -999px; top: 1rem; background: var(--navy); color: white; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem clamp(1rem, 4vw, 3rem);
  font-size: .86rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .75rem clamp(1rem, 4vw, 3rem);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; letter-spacing: 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; background: white; }
.brand small { color: var(--teal); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1rem; margin-left: auto; font-weight: 700; font-size: .94rem; }
.nav-links a { color: rgba(24, 38, 56, .78); }
.nav-links a:hover { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.phone { display: inline-flex; align-items: center; gap: .4rem; color: var(--teal); font-weight: 800; }
svg { width: 1.15em; height: 1.15em; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .55rem .8rem; color: var(--navy); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: .95rem 1.35rem;
  background: var(--navy);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(24, 38, 56, .18);
}
.button.small { padding: .72rem 1rem; font-size: .92rem; }
.button.ghost { background: white; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.button.light { background: white; color: var(--navy); }
.button.ghost-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,.55); box-shadow: none; }
.text-link { color: var(--teal); font-weight: 900; }

.hero, .page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4.2rem) clamp(1rem, 4vw, 2rem);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .92fr);
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: center;
}
.hero h1, .page-hero h1, .section h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.04;
  letter-spacing: 0;
  margin: 0;
}
.hero h1 { font-size: clamp(2.45rem, 5.2vw, 4.8rem); max-width: 760px; font-weight: 900; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 720px; }
.eyebrow { margin: 0 0 .7rem; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 900; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.8rem; }
.hero-media { position: relative; }
.hero-media img, .telehealth img, .two-col > img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.floating-note {
  position: absolute;
  left: -1rem;
  bottom: 1.2rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}
.floating-note b, .floating-note span { display: block; }
.floating-note span { color: var(--muted); font-size: .9rem; }

.trustbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  max-width: 1180px;
  margin: 0 auto .75rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.trustbar span, .logo-grid span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .68);
  border-radius: 8px;
  padding: .7rem 1rem;
  font-weight: 800;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3.35rem) clamp(1rem, 4vw, 2rem);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .35rem 1rem;
  margin-bottom: 1.25rem;
}
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-head h2 { max-width: 820px; }
.section-head .text-link { align-self: end; white-space: nowrap; }
.section h2, .page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 3.25rem); font-weight: 900; }
.section p, .page-hero p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.soft-panel, .service-card, .service-name-card, .doctor-card, .post-card, .appointment-form, .faqs details, .quote-grid blockquote, .review-card, .side-card, .contact-info-panel {
  background: rgba(255, 253, 248, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(24, 38, 56, .08);
}
.soft-panel { padding: 1.5rem; }
.soft-panel a { display: block; padding: .8rem 0; color: var(--teal); font-weight: 900; border-bottom: 1px solid var(--line); }
.soft-panel ul { padding-left: 1.1rem; }

.card-grid, .doctor-grid, .blog-grid, .quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.service-name-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.service-card, .doctor-card, .post-card { padding: 1.25rem; transition: transform .2s ease, box-shadow .2s ease; }
.service-name-card {
  position: relative;
  min-height: 100%;
  padding: 1.35rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-name-card::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  top: -2.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(24, 123, 123, .08);
}
.service-card:hover, .service-name-card:hover, .doctor-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
.service-card small, .service-name-card small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(90, 145, 143, .12);
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0;
}
.service-card h3, .service-name-card h3, .doctor-card h3, .post-card h2 { margin: 1rem 0 .45rem; line-height: 1.15; }
.service-name-card p { margin-bottom: 0; font-size: .96rem; }
.local-band, .final-cta {
  border-radius: 18px;
  background: linear-gradient(135deg, #12385a, #187b7b);
  color: white;
  padding: clamp(1.8rem, 4vw, 3.1rem);
}
.local-band p, .final-cta p { color: rgba(255,255,255,.86); }
.local-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.appointment-form { padding: clamp(1rem, 3vw, 2rem); }
.simple-form { max-width: 860px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1rem; }
.steps span { background: var(--sage); border-radius: 999px; padding: .75rem; text-align: center; font-weight: 900; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 800; color: rgba(24, 38, 56, .86); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .9rem 1rem;
  background: white;
  color: var(--navy);
}
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.consent { display: flex; align-items: flex-start; gap: .55rem; font-weight: 700; }
.consent input { width: auto; margin-top: .35rem; }
.hp { position: absolute; left: -9999px; }
.form-status.success { color: #236647; font-weight: 900; }
.form-status.error { color: #9c2d2d; font-weight: 900; }
.form-note { margin: 0; color: var(--muted); font-size: .94rem; }

.doctor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.doctor-card { overflow: hidden; }
.doctor-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender), var(--sage));
  font: 900 1.5rem Georgia, serif;
}
.doctor-card a { color: var(--teal); font-weight: 900; }
.logo-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.quote-grid { grid-template-columns: repeat(3, 1fr); }
.quote-grid blockquote { margin: 0; padding: 1.4rem; font-family: Georgia, serif; font-size: 1.25rem; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.review-summary {
  max-width: 720px;
  margin: -.35rem 0 1.1rem;
  color: var(--muted);
  font-weight: 750;
}
.review-card {
  display: block;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,252,.9));
  border-radius: 16px;
  min-height: 100%;
}
.review-card p { margin: .85rem 0 1.1rem; color: rgba(16, 36, 63, .78); }
.review-card strong { color: var(--navy); }
.review-card span { display: inline-block; margin-top: .65rem; color: var(--teal); font-weight: 900; }
.stars { color: #e0a621; letter-spacing: .08em; font-weight: 900; font-size: 1.05rem; }
.faqs details { padding: 1rem 1.2rem; margin-bottom: .8rem; }
.faqs summary { cursor: pointer; font-weight: 900; }
.breadcrumbs { display: flex; gap: .5rem; margin-bottom: 1rem; color: var(--muted); font-weight: 800; }
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.8rem; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.side-card { padding: 1.5rem; }
.side-card h3 { margin: .4rem 0 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: rgba(16, 36, 63, .82);
  font-weight: 750;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48rem;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(24, 123, 123, .11);
}
.condition-panel {
  margin-top: 1.6rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 18px;
  background: rgba(232, 243, 243, .7);
  border: 1px solid var(--line);
}
.condition-panel h2 { margin-bottom: 1rem; }
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.pill-grid span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: .7rem 1rem;
  color: var(--navy);
  font-weight: 850;
}
.centered-prose { text-align: center; margin: 1.8rem auto 0; }
.contact-ref { max-width: 1180px; }
.contact-ref-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(1.3rem, 4vw, 2.5rem);
  align-items: start;
}
.contact-info-panel { padding: clamp(1.2rem, 3vw, 2rem); }
.contact-method {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-method span {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(24, 123, 123, .12);
  color: var(--teal);
  font-weight: 900;
}
.contact-method small { display: block; color: var(--muted); font-weight: 800; }
.contact-method b { display: block; line-height: 1.25; }
.contact-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.contact-badges span {
  border-radius: 999px;
  background: rgba(24, 123, 123, .1);
  color: var(--teal);
  padding: .55rem .8rem;
  font-weight: 850;
  font-size: .9rem;
}
.contact-ref .appointment {
  max-width: none;
  padding: 0;
}
.contact-ref .appointment .section-head { margin-bottom: 1rem; }
.team-hero h1 { max-width: 760px; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.35rem;
}
.cta-actions .button { margin: 0; }

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, .8fr) minmax(240px, 1fr);
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 3.25rem) clamp(1rem, 4vw, 3rem);
  background: #152333;
  color: white;
}
.footer a, .footer p { display: block; color: rgba(255,255,255,.78); margin: .45rem 0; }
.footer h2, .footer h3 { margin: .4rem 0 .7rem; }
.social-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: .75rem;
  margin-top: .9rem;
}
.footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  color: white;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.footer .social-links a:hover {
  transform: translateY(-2px);
  background: white;
  color: var(--teal);
}
.compact-hero { padding-bottom: clamp(.7rem, 1.6vw, 1.25rem); }
.compact-hero + .section { padding-top: clamp(.9rem, 2vw, 1.5rem); }
.disclaimer { grid-column: 1 / -1; color: rgba(255,255,255,.64); border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; }
.float-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: .5rem;
  z-index: 18;
}
.float-cta a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem .85rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .hero, .two-col { grid-template-columns: 1fr; }
  .card-grid, .service-name-grid, .doctor-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout, .contact-ref-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav.open .nav-links {
    display: grid;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 100%;
    padding: 1rem;
    border-radius: 20px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .brand span { font-size: .95rem; }
  .hero { padding-top: 2.2rem; }
  .hero h1 { font-size: 2.35rem; }
  .hero-actions, .local-band { align-items: stretch; flex-direction: column; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .text-link { justify-self: start; white-space: normal; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; text-align: center; }
  .card-grid, .service-name-grid, .doctor-grid, .quote-grid, .review-grid, .blog-grid, .form-grid, .steps, .footer { grid-template-columns: 1fr; }
  .service-card, .doctor-card, .post-card, .appointment-form { border-radius: 18px; }
  .service-name-card { border-radius: 18px; }
  .section { padding-top: 1.7rem; padding-bottom: 1.7rem; }
  .page-hero { padding-top: 1.8rem; padding-bottom: 1.8rem; }
  .cta-actions { flex-direction: column; }
  .cta-actions .button { width: 100%; }
  .review-card { padding: 1.2rem; }
  .social-links { justify-content: flex-start; }
  .doctor-photo { max-height: 320px; }
  input, select, textarea { border-radius: 12px; }
  .float-cta { left: .75rem; right: .75rem; bottom: .75rem; grid-template-columns: repeat(3, 1fr); }
  .float-cta a { justify-content: center; padding: .65rem .4rem; }
  .float-cta span { font-size: .78rem; }
  body { padding-bottom: 4.4rem; }
}
