:root {
    --site-teal: #006b80;
    --site-teal-dark: #005365;
    --site-tint: #FEFCF7;
    --site-line: #e8e4db;
    --site-copy-font: Arial, Helvetica, sans-serif;
    --site-copy-size: .8rem;
    --site-copy-color: #212529;
    --site-copy-line-height: 1.5;
}

body {
    padding-top: var(--header-height, 50px);
    padding-bottom: 20px;
    background-color: #f5f7f7;
}

.site-content {
    width: calc(100% - 3rem);
    max-width: 1200px;
    min-height: calc(100vh - 70px);
    margin: 0 auto;
    padding: 24px 0;
    background-color: #fff;
}

.site-content > br { display: none; }
.site-content > div { margin-top: 0 !important; }
.site-content > div:not(.home-section) + div:not(.home-section) {
    margin-top: 24px !important;
    padding-top: 24px;
    border-top: 1px solid var(--site-line);
}

/* Accessibility improvements keep the approved layout and typography. */
html { scroll-padding-top: calc(var(--header-height, 50px) + 12px); }
.site-content { overflow-wrap: break-word; }
.site-content > div { max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
.site-content img, .site-content iframe { max-width: 100%; }
.site-content a { color: var(--site-teal); }
.site-content a:not(.btn):not([aria-label]) { text-decoration: underline; text-underline-offset: 3px; }
.site-content .btn-primary { color: #fff; background-color: #0069d9; border-color: #0069d9; }
.site-content .btn-primary:hover, .site-content .btn-primary:active { color: #fff; background-color: #0062cc; border-color: #0062cc; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #005365; outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 1100; padding: 10px 16px; background: #fff; color: #005365; font-size: 1rem; }
.skip-link:focus { top: 12px; }
.site-navigation { z-index: 1030 !important; }
.site-navigation .navbar-nav .nav-link { color: #e6f0f2; }
.site-navigation a:focus-visible, .site-navigation button:focus-visible { outline-color: #fff; }
.site-navigation .dropdown-item:focus-visible { outline-color: #005365; outline-offset: -3px; }
.site-navigation .dropdown-item:active { color: #fff; background-color: #0069d9; }
.site-navigation .navbar-toggler { border-color: rgba(255,255,255,.7); }
.site-navigation .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }
.knowledge-toggle { border: 0; background: none; font: inherit; text-align: left; cursor: pointer; appearance: none; }
.article-question { display: inline; margin: 0; font: inherit; font-weight: 700; }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.form-name { font-weight: 400; }

/* Regular copy matches the original appointment reminders. */
.home-page,
.services-page,
.about-page {
    font-family: var(--site-copy-font);
    font-size: var(--site-copy-size);
    font-weight: 400;
    line-height: var(--site-copy-line-height);
    color: var(--site-copy-color);
}

.home-page a,
.services-page a {
    color: var(--site-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.home-page a:hover, .services-page a:hover { color: var(--site-teal-dark); }
.home-page a:focus-visible, .services-page a:focus-visible {
    outline: 2px solid var(--site-teal);
    outline-offset: 4px;
}
.home-page p { margin-bottom: 12px; }
.home-page h1, .home-page h2 { color: var(--site-copy-color); font-weight: 600; line-height: 1.25; }

/* Home: a clear introduction, one appointment area, and prominent prices. */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 12px 32px 32px;
}
.home-eyebrow,
.home-price-eyebrow {
    margin-bottom: 10px;
    color: var(--site-copy-color);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.home-hero h1 { margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.025em; }
.home-hero h1 span { color: inherit; }
.home-location-details { margin: 16px 0 0; padding: 0; list-style: none; }
.home-location-details li { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 8px; margin-bottom: 6px; }
.home-location-icon { margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-page .home-insurance-note { margin: 20px 0 10px; }
.home-insurance { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.home-insurance img { width: 100px; height: 27px; object-fit: contain; }

.home-appointment { padding: 22px; border-left: 3px solid #e6ddcb; background: var(--site-tint); }
.home-appointment > h2 { margin-bottom: 14px; font-size: 1.15rem; }
/* Reuse the original Bootstrap button classes, padding, icon, and .btn shadow. */
a.appointment-button {
    max-width: 100%;
    padding-left: 68px;
    padding-right: 68px;
    color: #fff;
    text-decoration: none;
    white-space: normal;
}
a.appointment-button:hover, a.appointment-button:active { color: #fff; text-decoration: none; }
.home-appointment .home-book-link { display: block; margin-bottom: 16px; }
.home-appointment-notes p { margin-bottom: 8px; }
.home-telemedicine { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--site-line); }
.home-telemedicine h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: inherit; font: inherit; }
.home-telemedicine svg { flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.home-telemedicine p { margin-bottom: 0; }

.home-section { display: flex; flex-wrap: wrap; width: 100%; margin: 0; padding: 30px 16px; border-top: 1px solid var(--site-line); }
.home-self-pay { align-items: center; background: #fff; }
.home-self-pay h2 { margin-bottom: 12px; font-size: 1.5rem; }
.home-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.home-price-grid > div { display: flex; flex-direction: column; padding: 12px 0; }
.home-price-grid dt { font: inherit; }
.home-price-amount { order: -1; margin: 0 0 10px; color: var(--site-teal); font-size: 2.25rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.home-price-note { margin: 0; }

.home-feature { align-items: center; padding-top: 32px; padding-bottom: 32px; }
.home-feature h2 { margin-bottom: 14px; font-size: 1.3rem; }
.home-feature p:last-child { margin-bottom: 0; }
.home-feature--tinted { background: var(--site-tint); }
.home-feature-image { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.home-contact { align-items: center; background: #fff; }
.home-contact .fab { margin-right: 8px; font-size: 1.8rem; }

/* Services: plain white sections with the same regular copy. */
.services-page { padding: 8px 32px 16px; background: #fff; }
.services-page h1, .services-page h2 { color: var(--site-copy-color); font-weight: 600; line-height: 1.25; }
.services-page h1 { margin: 0 0 12px; font-size: 1.85rem; }
.services-page h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.05rem; }
.service-category-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.services-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.services-header p { max-width: 560px; margin: 0; }
.services-book-link { flex-shrink: 0; margin-top: 4px; }
.services-jump-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 22px 0; }
.services-jump-links a { padding: 4px 0; color: var(--site-copy-color); font-weight: 600; }
.services-jump-links a:hover { color: var(--site-teal-dark); }
.services-section { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 24px 20px; border-top: 1px solid var(--site-line); scroll-margin-top: calc(var(--header-height, 50px) + 12px); }
.services-category { align-self: start; }
.services-category h2:last-child { margin-bottom: 0; }
.services-group { min-width: 0; }
.services-group-fee { padding-bottom: 12px; margin-bottom: 4px; text-align: right; }
.services-visit-fee { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; }
.services-visit-fee .service-price { font-size: 1rem; }
.service-price { color: var(--site-teal); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.service-prices { margin: 0; }
.service-price-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; gap: 20px; padding: 12px 0; }
.service-price-row + .service-price-row { border-top: 1px solid var(--site-line); }
.service-price-row dt { font: inherit; }
.service-price-row dd { margin: 0; font-size: 1rem; text-align: right; }
.service-detail { display: block; margin: 4px 0 0; font: inherit; color: inherit; }
.services-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 0 28px; margin: 0; padding-left: 18px; list-style: disc; }
.services-list li { padding: 8px 0; }
.services-list li::marker { color: var(--site-copy-color); }

/* About: a simple introduction, short sections, and the existing office photos. */
.about-page { padding: 8px 32px 16px; }
.about-page h1, .about-page h2 { color: var(--site-copy-color); font-weight: 600; line-height: 1.25; }
.about-page h1 { margin: 0 0 10px; font-size: 1.85rem; }
.about-page h2 { margin: 0 0 8px; font-size: 1.05rem; }
.about-page p { margin: 0 0 10px; }
.about-intro p:last-child, .about-section p:last-child { margin-bottom: 0; }
.about-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--site-line); }
.about-section { min-width: 0; }
.about-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.about-photos img { display: block; width: 100%; height: auto; }

/* Preserve the legacy styles used on the other pages. */
.body-content { padding-left: 15px; padding-right: 15px; }
.dl-horizontal dt { white-space: normal; }
input, select, textarea { max-width: 280px; }
.alert-warning { padding: 4px 7px; border-radius: 4px; }
.shadow, .btn { box-shadow: 0 8px 16px 0 rgba(0,0,0,.2), 0 6px 20px 0 rgba(0,0,0,.19); }

@media (min-width: 992px) {
    .home-feature--reverse > :first-child { order: 2; }
}
@media (max-width: 991.98px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .home-hero-copy { max-width: 640px; }
    .home-section > [class*="col-lg-"] + [class*="col-lg-"] { margin-top: 20px; }
    .site-content img[style*="height:"] { height: auto !important; }
}
@media (max-width: 1199.98px) {
    .site-navigation .navbar-collapse { max-height: calc(100vh - var(--header-height, 56px)); max-height: calc(100dvh - var(--header-height, 56px)); overflow-y: auto; }
    .site-navigation .nav-link { min-height: 40px; }
}
@media (max-width: 767.98px) {
    a.appointment-button { padding-left: 20px; padding-right: 20px; }
    .site-content { width: calc(100% - 2rem); }
    .home-hero { padding: 0 20px 24px; }
    .home-appointment { padding: 18px; }
    .home-section { padding: 24px 5px; }
    .home-feature h2 { font-size: 1.15rem; }
    .services-page { padding: 0 20px 12px; }
    .about-page { padding: 0 20px 12px; }
    .about-details { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .about-section + .about-section { padding-top: 18px; border-top: 1px solid var(--site-line); }
    .about-photos { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .services-header { flex-direction: column; gap: 14px; }
    .services-book-link { margin-top: 0; }
    .services-section { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 16px; }
    .site-content .patient-upload { max-width: 100%; padding-left: 20px !important; padding-right: 20px !important; }
    .home-hero, .home-appointment, .home-hero-copy, .services-header > *, .services-section > * { min-width: 0; }
    .services-book-link { max-width: 100%; flex-shrink: 1; }
}
@media (max-width: 575.98px) {
    .home-price-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .home-price-grid > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; }
    .home-price-amount { margin: 0; font-size: 2rem; }
    .services-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .collapsing, .btn { transition: none; }
}
