:root {
  --bg: #f2f5f7;
  --bg-deep: #e6ecef;
  --surface: #ffffff;
  --ink: #14252c;
  --muted: #5a6b73;
  --brand: #1b4d5c;
  --brand-deep: #123842;
  --accent: #d9765b;
  --accent-hover: #c5644a;
  --line: #d5dee3;
  --focus: #2a7a8c;
  --success: #2f6b5a;
  --radius: 4px;
  --pad: clamp(1.25rem, 4.5vw, 3.25rem);
  --max: 1120px;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --shadow-soft: 0 18px 40px rgba(20, 37, 44, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(42, 122, 140, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(217, 118, 91, 0.06), transparent 50%),
    var(--bg);
  line-height: 1.55;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 0.85rem 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-solid,
.site-header.page-header {
  background: rgba(242, 245, 247, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.25rem;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
}

.btn-brand:hover {
  background: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--brand);
}

.btn-outline:hover {
  border-color: var(--brand);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ——— Hero (split appointment) ——— */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.hero-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5.5rem, 10vh, 7rem) 0 clamp(2rem, 4vh, 2.75rem);
  background:
    linear-gradient(165deg, #eef3f5 0%, #f7f9fa 45%, #e8f0f2 100%);
}

.hero-copy-panel .container {
  width: min(100% - (var(--pad) * 2), 32rem);
  margin-left: var(--pad);
  margin-right: var(--pad);
}

.hero-copy-panel .brand {
  display: inline-block;
  font-size: clamp(2.1rem, 4.2vw, 2.85rem);
  margin-bottom: 1.1rem;
  color: var(--brand);
}

.hero-copy-panel h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.55rem);
  max-width: 11ch;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-copy-panel .lede {
  max-width: 32ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-copy-panel .cta-row .btn-ghost {
  border-color: var(--line);
  color: var(--brand);
}

.hero-copy-panel .cta-row .btn-ghost:hover {
  background: rgba(27, 77, 92, 0.06);
}

.hero-media {
  position: relative;
  min-height: 52vh;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-book {
  grid-column: 1 / -1;
  background: var(--brand);
  color: #fff;
}

.hero-book .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 1.1rem 0;
}

.hero-book .book-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-book .book-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 0.15rem;
}

.hero-book .book-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy-panel {
    padding-top: 5.5rem;
    order: 1;
  }

  .hero-copy-panel .container {
    width: min(100% - (var(--pad) * 2), var(--max));
    margin-inline: auto;
  }

  .hero-media {
    order: 2;
    min-height: 42vh;
    max-height: 52vh;
  }

  .hero-book {
    order: 3;
  }

  .hero-book .container {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.section-tint {
  background: var(--bg-deep);
}

.section-brand {
  background: var(--brand);
  color: #fff;
}

.section-brand .muted,
.section-brand .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--muted);
}

.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-row .section-head {
  margin-bottom: 0;
}

/* ——— Service chips ——— */
.chip-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chip:hover,
.chip.is-active {
  border-color: var(--brand);
  background: #e8f1f4;
}

.service-index {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row h3 {
  font-size: 1.35rem;
}

.service-row p {
  color: var(--muted);
  font-size: 0.98rem;
}

.service-row .link {
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.service-row .link:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

/* ——— Team ——— */
.team-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.team-card figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-deep);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card .body {
  padding: 1.15rem 1.2rem 1.35rem;
}

.team-card .role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.team-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.team-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .team-rail {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}

@media (min-width: 561px) and (max-width: 860px) {
  .team-rail {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

/* ——— Insurance strip ——— */
.insure-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}

.insure-strip .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.5rem;
}

.insure-strip span:not(.label) {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand);
  opacity: 0.85;
}

/* ——— Reviews ——— */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.quote {
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  font-style: italic;
}

.quote cite {
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

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

/* ——— Book band ——— */
.book-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.book-band h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0.5rem 0 0.75rem;
}

.book-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36ch;
}

.book-band .cta-row .btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 720px) {
  .book-band {
    grid-template-columns: 1fr;
  }
}

/* ——— Page hero (inner) ——— */
.page-hero {
  padding: clamp(6.5rem, 14vh, 8rem) 0 2.5rem;
  background: linear-gradient(180deg, #e8f0f2 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  max-width: 14ch;
  margin-bottom: 0.75rem;
}

.page-hero .lede {
  max-width: 38ch;
  color: var(--muted);
}

/* ——— Detail layout ——— */
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 1.75rem 0 0.65rem;
}

.prose p + p {
  margin-top: 0.85rem;
}

.prose ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.prose li + li {
  margin-top: 0.4rem;
}

.aside-card {
  position: sticky;
  top: 5.5rem;
  padding: 1.35rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.aside-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.aside-card dl {
  margin: 0 0 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.aside-card dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-card dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--brand);
}

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

  .aside-card {
    position: static;
  }
}

/* ——— Patient / FAQ ——— */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.faq-item p {
  color: var(--muted);
  max-width: 52ch;
}

.info-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.info-panel {
  padding: 1.5rem 1.55rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}

.info-panel p,
.info-panel li {
  color: var(--muted);
}

.info-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.info-panel li + li {
  margin-top: 0.35rem;
}

@media (max-width: 720px) {
  .info-split {
    grid-template-columns: 1fr;
  }
}

/* ——— Pricing ——— */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price-card {
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
}

.price-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brand);
  margin: 0.85rem 0;
}

.price-card .amount span {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.price-card li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* ——— Forms ——— */
.book-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.95rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.form textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--success);
  min-height: 1.25rem;
}

.hours-block h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.hours-table th {
  font-weight: 600;
  color: var(--brand);
}

.hours-table td {
  color: var(--muted);
  text-align: right;
}

.map-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(27, 77, 92, 0.12), rgba(217, 118, 91, 0.1)),
    var(--bg-deep);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .book-layout {
    grid-template-columns: 1fr;
  }
}

/* ——— Blog ——— */
.blog-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.blog-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-row time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.blog-row h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.blog-row p {
  color: var(--muted);
  max-width: 48ch;
}

@media (max-width: 560px) {
  .blog-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ——— About ——— */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-hero-grid .media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.about-hero-grid .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.value {
  padding: 1.35rem 1.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.value h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.value p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .about-hero-grid,
  .values {
    grid-template-columns: 1fr;
  }
}

/* ——— 404 ——— */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--pad) 4rem;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin-bottom: 0.5rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer p,
.site-footer a {
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

/* ——— Motion ——— */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
