/* ==========================================================================
   Little Sprouts — default pediatric theme
   No external fonts, no build step. All assets served from /theme-assets.
   ========================================================================== */

:root {
    --ink: #1f2b2b;
    --ink-soft: #3e5050;
    --muted: #6b7a7a;
    --paper: #fffdf8;
    --cream: #f7f2e8;
    --white: #ffffff;
    --line: #e5ded1;
    --accent: #0f766e;
    --accent-dark: #0b5a54;
    --accent-soft: #e6f4f1;
    --coral: #f97362;
    --sun: #f6c667;
    --radius: 24px;
    --radius-sm: 14px;
    --shadow: 0 20px 45px -28px rgba(31, 43, 43, 0.45);
    --container: 1160px;
    --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

body.nav-open {
    overflow: hidden;
}

img,
svg,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-dark);
}

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

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

address {
    font-style: normal;
}

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only,
.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--ink);
    color: var(--white);
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    color: var(--white);
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--tight {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

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

.eyebrow {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    margin-bottom: 0.55rem;
}

.section-lead {
    color: var(--ink-soft);
    font-size: 1.06rem;
    max-width: 60ch;
    margin-bottom: 0;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: 0.96rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 12px 24px -16px rgba(15, 118, 110, 0.8);
}

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

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: rgba(31, 43, 43, 0.22);
}

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

.btn-light {
    background: var(--white);
    color: var(--accent-dark);
}

.btn-light:hover {
    background: var(--cream);
    color: var(--accent-dark);
}

.btn-lg {
    padding: 0.95rem 1.6rem;
    font-size: 1.02rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 650;
    color: var(--accent);
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link--light {
    color: rgba(255, 255, 255, 0.88);
}

.text-link--light:hover {
    color: var(--white);
}

/* Top bar ------------------------------------------------------------------ */
.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 40px;
    flex-wrap: wrap;
    padding-block: 0.35rem;
}

.topbar-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.topbar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7bd7a5;
    box-shadow: 0 0 0 3px rgba(123, 215, 165, 0.18);
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
}

.topbar-links a:hover {
    color: var(--white);
}

.topbar-links .icon {
    width: 15px;
    height: 15px;
}

.topbar-address {
    color: rgba(255, 255, 255, 0.65);
}

/* Header ------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.brand:hover {
    color: var(--ink);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    flex: none;
}

.brand-mark svg {
    width: 26px;
    height: 26px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand-tag {
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 34ch;
}

.brand-logo {
    max-height: 52px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 550;
    color: var(--ink-soft);
    text-decoration: none;
    position: relative;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.nav-group {
    position: relative;
}

.nav-sub {
    list-style: none;
    margin: 0;
    padding: 0.55rem;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-sublink {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    font-size: 0.92rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.nav-sublink:hover {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.nav-cta {
    margin-left: 0.6rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    content: "";
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar::before {
    transform: translateY(-5px);
}

.nav-toggle-bar::after {
    transform: translateY(3px);
}

/* Hero --------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(246, 198, 103, 0.28), transparent 38%),
        radial-gradient(circle at 92% 8%, rgba(249, 115, 98, 0.12), transparent 42%),
        linear-gradient(180deg, var(--cream) 0%, var(--paper) 78%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-block: clamp(3rem, 7vw, 6rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.2rem;
    padding: 0.4rem 0.85rem 0.4rem 0.6rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: var(--accent-dark);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 3px rgba(249, 115, 98, 0.18);
}

.hero-title {
    font-size: clamp(2.4rem, 5.6vw, 4.15rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 13ch;
}

.hero-sub {
    font-size: clamp(1.02rem, 1.6vw, 1.16rem);
    color: var(--ink-soft);
    max-width: 54ch;
    margin-bottom: 1.7rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.hero-note {
    margin: 1.2rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 5 / 4.4;
    object-fit: cover;
    border-radius: 46% 46% 24px 24px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.hero-media.is-placeholder,
.hero--plain .hero-placeholder {
    background: var(--accent-soft);
}

.hero-placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 4.4;
    border-radius: 46% 46% 24px 24px;
    background: linear-gradient(160deg, var(--accent-soft), #f3e7d4);
    box-shadow: var(--shadow);
}

.hero-placeholder svg {
    width: 62%;
    height: auto;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: -6% -4% 12% 14%;
    border-radius: 50%;
    background: rgba(249, 115, 98, 0.12);
    z-index: 0;
}

.hero-float {
    position: absolute;
    z-index: 2;
    right: -0.5rem;
    bottom: 1.6rem;
    background: var(--white);
    border-radius: 18px;
    padding: 0.95rem 1.15rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    max-width: 220px;
}

.hero-float-label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-float-value {
    margin: 0.15rem 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
}

.hero-float a {
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
}

/* Trust strip -------------------------------------------------------------- */
.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding-block: 1.6rem;
}

.trust-item {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.trust-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}

.trust-icon svg {
    width: 17px;
    height: 17px;
}

.trust-title {
    margin: 0 0 0.15rem;
    font-weight: 700;
    font-size: 0.94rem;
}

.trust-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Quick info --------------------------------------------------------------- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.quick-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.quick-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

.quick-card--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.quick-card--accent .quick-title {
    color: var(--white);
}

.quick-card--accent p {
    color: rgba(255, 255, 255, 0.82);
}

.quick-card--accent .btn {
    background: var(--white);
    color: var(--accent-dark);
    margin-top: auto;
}

.quick-title {
    font-size: 1.22rem;
    margin: 0;
}

.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.hours-list li {
    padding: 0.2rem 0;
    border-bottom: 1px dashed rgba(31, 43, 43, 0.08);
}

.hours-list li:last-child {
    border-bottom: 0;
}

/* Services ----------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem 1.7rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    color: var(--coral);
    margin-bottom: 0.9rem;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 0.45rem;
}

.service-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
}

/* Split -------------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split-media {
    position: relative;
}

.split-media img {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    border-radius: 120px 24px 120px 24px;
    box-shadow: var(--shadow);
}

.portrait-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 4.6;
    border-radius: 120px 24px 120px 24px;
    background: linear-gradient(150deg, var(--accent-soft), #f6ebd8);
    overflow: hidden;
}

.portrait-initials {
    font-family: var(--font-display);
    font-size: 7rem;
    color: var(--accent);
    opacity: 0.55;
}

.portrait-ring {
    position: absolute;
    inset: 12%;
    border: 2px dashed rgba(15, 118, 110, 0.3);
    border-radius: 50%;
}

.split-badge {
    position: absolute;
    left: -0.8rem;
    bottom: 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.85rem 1.05rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    max-width: 220px;
}

.split-badge-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
}

.split-badge-label {
    font-size: 0.78rem;
    color: var(--muted);
}

.split-content p {
    color: var(--ink-soft);
}

.split-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
    margin-top: 1.4rem;
}

/* Gallery ------------------------------------------------------------------ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-grid--full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
    margin: 0;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: var(--cream);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 1.6rem 1rem 0.85rem;
    background: linear-gradient(180deg, transparent, rgba(23, 33, 33, 0.72));
    color: var(--white);
    font-size: 0.85rem;
}

.gallery-item figcaption strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
}

/* Post cards --------------------------------------------------------------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.post-card-media {
    aspect-ratio: 16 / 10;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}

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

.post-card-placeholder {
    font-family: var(--font-display);
    font-size: 3.4rem;
    color: var(--accent);
    opacity: 0.4;
}

.post-card-body {
    padding: 1.35rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.post-category {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    text-decoration: none;
}

.post-category:hover {
    text-decoration: underline;
}

.post-card-title {
    font-size: 1.28rem;
    margin: 0;
    line-height: 1.25;
}

.post-card-title a {
    color: var(--ink);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--accent-dark);
}

.post-card-excerpt {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.post-card-meta {
    margin-top: auto;
    padding-top: 0.65rem;
    display: flex;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--muted);
}

/* CTA band ----------------------------------------------------------------- */
.cta-band {
    background:
        radial-gradient(circle at 88% 15%, rgba(246, 198, 103, 0.24), transparent 45%),
        linear-gradient(135deg, #0f766e, #0a4f4a);
    border-radius: 32px;
    color: var(--white);
    padding: clamp(2rem, 5vw, 3.6rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-title {
    color: var(--white);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.cta-copy p {
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 56ch;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

/* Page hero ---------------------------------------------------------------- */
.page-hero {
    background:
        radial-gradient(circle at 85% 10%, rgba(249, 115, 98, 0.1), transparent 40%),
        var(--cream);
    border-bottom: 1px solid var(--line);
    padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    gap: 2rem;
    align-items: end;
}

.page-title {
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    margin-bottom: 0.6rem;
    letter-spacing: -0.025em;
}

.page-lead {
    color: var(--ink-soft);
    font-size: 1.06rem;
    max-width: 62ch;
    margin-bottom: 0;
}

.page-hero-aside {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.1rem 1.25rem;
}

.aside-label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.aside-name {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
}

.aside-detail {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

/* Blog --------------------------------------------------------------------- */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(2rem, 4vw, 3.2rem);
    align-items: start;
}

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

.search-summary {
    margin-top: 1.2rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.3rem;
}

.sidebar-title {
    font-size: 1.02rem;
    margin-bottom: 0.8rem;
}

.search-row {
    display: flex;
    gap: 0.45rem;
}

.search-row input {
    min-width: 0;
    flex: 1;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    font: inherit;
    font-size: 0.88rem;
    background: var(--paper);
    color: var(--ink);
}

.search-row .btn {
    padding: 0.6rem 0.95rem;
    font-size: 0.84rem;
}

.category-list,
.recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li + li {
    border-top: 1px solid rgba(31, 43, 43, 0.06);
}

.category-list a {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.category-list a:hover,
.category-list a.is-active {
    color: var(--accent-dark);
}

.category-list a.is-active {
    font-weight: 700;
}

.category-count {
    font-size: 0.76rem;
    color: var(--muted);
    background: var(--cream);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
}

.recent-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(31, 43, 43, 0.06);
}

.recent-list li:last-child {
    border-bottom: 0;
}

.recent-list a {
    font-size: 0.9rem;
    font-weight: 550;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.35;
}

.recent-list a:hover {
    color: var(--accent-dark);
}

.recent-list time {
    font-size: 0.74rem;
    color: var(--muted);
}

.sidebar-card--accent {
    background: var(--accent-soft);
    border-color: transparent;
}

.sidebar-card--accent p {
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.sidebar-card--accent .btn {
    width: 100%;
    margin-bottom: 0.6rem;
}

.empty-state {
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state p {
    color: var(--ink-soft);
    max-width: 50ch;
    margin-inline: auto;
}

/* Article ------------------------------------------------------------------ */
.article-header {
    background: var(--cream);
    padding: clamp(2.4rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
}

.article-header-inner {
    max-width: 780px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.article-title {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.article-lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 62ch;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 1.2rem;
}

.article-cover {
    margin: 0;
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.article-cover img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.article-layout {
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.article-body {
    max-width: 760px;
}

.article-tags {
    margin: 2rem 0 0;
}

.article-cta {
    margin-top: 2.5rem;
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.article-cta h2 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
}

.article-cta p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.article-cta-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Prose -------------------------------------------------------------------- */
.prose {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}

.prose h2 {
    font-size: 1.6rem;
    margin: 2.1rem 0 0.7rem;
    color: var(--ink);
}

.prose h3 {
    font-size: 1.28rem;
    margin: 1.7rem 0 0.55rem;
    color: var(--ink);
}

.prose > :first-child {
    margin-top: 0;
}

.prose ul,
.prose ol {
    padding-left: 1.35em;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose blockquote {
    margin: 1.5rem 0;
    padding: 0.9rem 1.3rem;
    border-left: 3px solid var(--coral);
    background: var(--cream);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.prose img {
    border-radius: var(--radius-sm);
    margin: 1.2rem 0;
}

.prose a {
    color: var(--accent-dark);
}

.prose--narrow {
    max-width: 760px;
}

/* About -------------------------------------------------------------------- */
.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.about-prose {
    font-size: 1.04rem;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: sticky;
    top: 100px;
}

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

.doctor-card img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
}

.doctor-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3.4;
    background: linear-gradient(150deg, var(--accent-soft), #f6ebd8);
}

.doctor-placeholder span {
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: var(--accent);
    opacity: 0.55;
}

.doctor-card-body {
    padding: 1.1rem 1.25rem 1.3rem;
}

.doctor-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.doctor-title {
    margin: 0.1rem 0 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.doctor-credentials {
    margin: 0.3rem 0 0;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar-address {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 0.7rem;
}

/* About page (modern) ------------------------------------------------------ */
.about-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    padding: clamp(3.2rem, 7vw, 5.8rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 8% 18%, rgba(15, 118, 110, 0.12), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(249, 115, 98, 0.14), transparent 28%),
        linear-gradient(180deg, #fbf8f1 0%, var(--cream) 100%);
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 118, 110, 0.16) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.28;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 55%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 55%);
}

.about-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
    gap: clamp(2.4rem, 5vw, 5rem);
    align-items: center;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 13ch;
    margin: 0.5rem 0 1rem;
    text-wrap: balance;
}

.about-lead {
    max-width: 56ch;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(1.04rem, 1.5vw, 1.18rem);
    line-height: 1.7;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.6rem;
}

.about-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.15rem;
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 0;
}

.about-points li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink-soft);
    font-size: 0.86rem;
}

.about-points li::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
}

.about-visual {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 480px;
}

.about-portrait {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: var(--white);
    border: 1px solid rgba(31, 43, 43, 0.08);
    border-radius: 32px;
    box-shadow: 0 30px 70px -34px rgba(31, 43, 43, 0.45);
}

.about-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.about-portrait img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about-portrait-art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(145deg, var(--accent-soft) 0%, #f7f2e8 55%, #fde9e4 100%);
}

.about-art-ring {
    position: absolute;
    width: 68%;
    aspect-ratio: 1;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 50%;
}

.about-art-ring::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px dashed rgba(15, 118, 110, 0.2);
    border-radius: 50%;
}

.about-monogram {
    position: relative;
    z-index: 1;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(5rem, 11vw, 8rem);
    line-height: 1;
    letter-spacing: -0.08em;
    opacity: 0.92;
}

.about-art-dot {
    position: absolute;
    right: -8%;
    bottom: 10%;
    width: clamp(80px, 18vw, 130px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--coral);
    opacity: 0.85;
}

.about-portrait-caption {
    position: absolute;
    z-index: 3;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px -18px rgba(31, 43, 43, 0.4);
    backdrop-filter: blur(12px);
}

.about-portrait-name {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
}

.about-portrait-role {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.about-welcome {
    position: absolute;
    z-index: 4;
    top: 1.4rem;
    right: -1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 30px -20px rgba(31, 43, 43, 0.7);
}

.about-welcome-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 4px rgba(249, 115, 98, 0.18);
}

.about-values {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-value {
    padding: 1.9rem 1.6rem;
    border-left: 1px solid var(--line);
}

.about-value:first-child {
    border-left: 0;
    padding-left: 0;
}

.about-value:last-child {
    padding-right: 0;
}

.about-value-number {
    display: block;
    color: var(--coral);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.about-value-title {
    margin: 0.45rem 0 0.3rem;
    font-size: 1.05rem;
}

.about-value-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.65;
}

.about-story {
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.about-story-main .section-title {
    max-width: 16ch;
}

.about-fallback {
    max-width: 68ch;
    margin-top: 1.3rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.75;
}

.about-fallback-lead {
    margin: 0 0 1rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    line-height: 1.45;
}

.about-fallback p:last-child {
    margin-bottom: 0;
}

.about-signature {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin: 1.6rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.about-signature span {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.about-signature small {
    color: var(--muted);
    font-size: 0.8rem;
}

.about-expect {
    margin-top: 2.6rem;
}

.about-expect-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-expect-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.about-expect-number {
    padding-top: 0.2rem;
    color: var(--coral);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.about-expect-title {
    margin: 0 0 0.15rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
}

.about-expect-text {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    line-height: 1.6;
}

.about-space {
    margin-top: 2.4rem;
    padding: 1.4rem 1.5rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.about-space .about-subhead {
    margin: 0 0 0.4rem;
}

.about-space p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.7;
}

.about-subhead {
    margin: 2.5rem 0 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.about-services-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-services-list li {
    display: flex;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.about-service-mark {
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--coral);
}

.about-service-title {
    margin: 0 0 0.15rem;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
}

.about-service-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.about-rail {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-rail-card {
    padding: 1.35rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.about-rail-label {
    margin: 0 0 0.65rem;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-address {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0 0 0.7rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.about-rail-card .hours-list {
    margin: 0;
}

.about-rail-card--accent {
    background: var(--ink);
    border-color: transparent;
    color: rgba(255, 255, 255, 0.72);
}

.about-rail-card--accent .about-rail-label {
    color: rgba(255, 255, 255, 0.55);
}

.about-rail-phone {
    display: inline-block;
    margin: 0.1rem 0 0.5rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
    line-height: 1.2;
    text-decoration: none;
}

.about-rail-phone:hover {
    color: var(--coral);
}

.about-rail-card--accent p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.6;
}

/* Contact ------------------------------------------------------------------ */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.contact-block {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.3rem;
}

.contact-block:last-of-type {
    border-bottom: 0;
}

.contact-heading {
    font-size: 1.1rem;
    margin-bottom: 0.55rem;
}

.contact-line {
    display: block;
    font-size: 0.98rem;
    color: var(--ink-soft);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.contact-line:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.contact-line--large {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
}

.contact-note {
    margin: 0.5rem 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.contact-address {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.emergency-note {
    background: #fff4ef;
    border: 1px solid #ffd9cc;
    color: #8c3b24;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    font-size: 0.86rem;
    margin: 0;
}

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3vw, 2.2rem);
    box-shadow: var(--shadow);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.form-lead {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field label {
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--ink);
}

.field label span[aria-hidden] {
    color: var(--coral);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font: inherit;
    font-size: 0.94rem;
    background: var(--paper);
    color: var(--ink);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field.has-error input,
.field.has-error textarea {
    border-color: #d4573c;
    background: #fff7f4;
}

.field-error {
    margin: 0;
    font-size: 0.78rem;
    color: #b13b22;
}

.field--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--ink-soft);
}

.field--checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    flex: none;
    accent-color: var(--accent);
}

.turnstile-field {
    margin: 0.2rem 0;
}

.cf-turnstile {
    min-height: 65px;
}

.form-fineprint {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.alert {
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}

.alert p {
    margin: 0;
}

.alert--success {
    background: var(--accent-soft);
    border: 1px solid #bfe3dc;
    color: var(--accent-dark);
}

.alert--error {
    background: #fff4ef;
    border: 1px solid #ffd9cc;
    color: #8c3b24;
}

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    line-height: 0;
}

.map-wrap iframe {
    width: 100%;
    height: clamp(320px, 45vw, 460px);
    border: 0;
}

/* Pagination --------------------------------------------------------------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    text-decoration: none;
}

.page-link.is-current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Error -------------------------------------------------------------------- */
.error-page {
    min-height: 55vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.error-inner {
    max-width: 620px;
}

.error-code {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--accent-soft);
}

.error-inner .hero-actions {
    justify-content: center;
}

/* Footer ------------------------------------------------------------------- */
.site-footer {
    background: #1c2828;
    color: rgba(255, 255, 255, 0.72);
    padding-top: clamp(2.8rem, 6vw, 4.5rem);
    margin-top: clamp(2rem, 5vw, 4rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.7fr)) minmax(0, 1fr);
    gap: clamp(1.8rem, 4vw, 3rem);
    padding-bottom: 2.5rem;
}

.brand--footer {
    color: var(--white);
}

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

.brand--footer .brand-mark {
    background: rgba(255, 255, 255, 0.1);
    color: #9fe0d8;
}

.brand--footer .brand-tag {
    color: rgba(255, 255, 255, 0.55);
}

.footer-about {
    margin: 1rem 0 1.1rem;
    font-size: 0.9rem;
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.62);
}

.socials {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
}

.socials a {
    display: inline-flex;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.socials a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-contact address {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}

.footer-hours {
    white-space: pre-line;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-block: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-note {
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal {
    padding-bottom: 1.6rem;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.38);
}

.footer-legal p {
    margin: 0;
    max-width: 80ch;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
    .services-grid,
    .post-grid,
    .gallery-grid,
    .gallery-grid--full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .blog-layout,
    .about-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .sidebar,
    .about-sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(86vw, 360px);
        background: var(--paper);
        flex-direction: column;
        align-items: stretch;
        padding: 5.5rem 1.4rem 2rem;
        gap: 0.2rem;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
        transform: translateX(105%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        z-index: 60;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .nav-toggle {
        position: relative;
        z-index: 70;
    }

    .nav-link {
        padding: 0.75rem 0.85rem;
    }

    .nav-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 0.4rem 0.9rem;
        min-width: 0;
    }

    .nav-sublink {
        color: var(--muted);
    }

    .nav-cta {
        margin: 0.8rem 0 0;
    }

    .hero-grid,
    .split,
    .contact-layout,
    .page-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
        max-width: 520px;
    }

    .hero-title {
        max-width: none;
    }

    .hero-float {
        right: 0.5rem;
    }

    .page-hero-aside {
        max-width: 420px;
    }

    .about-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .doctor-card {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .topbar-address {
        display: none;
    }

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

    .brand-tag {
        display: none;
    }

    .trust-grid,
    .quick-grid,
    .form-grid,
    .services-grid,
    .post-grid,
    .post-grid--blog,
    .gallery-grid,
    .gallery-grid--full,
    .about-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .trust-strip .trust-grid {
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .doctor-card {
        grid-column: auto;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-float {
        position: static;
        margin-top: 1rem;
        max-width: none;
    }

    .split-badge {
        left: 0.5rem;
    }

    .section-head--split {
        align-items: flex-start;
    }
}

@media (max-width: 980px) {
    .about-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .about-hero-copy {
        max-width: 760px;
    }

    .about-title {
        max-width: 15ch;
    }

    .about-visual {
        justify-self: center;
        width: min(100%, 440px);
    }

    .about-story-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-rail {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-rail-card--accent {
        grid-column: span 2;
    }

    .about-values-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-value {
        padding: 1.4rem 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .about-value:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .about-value:last-child {
        padding-bottom: 0;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding-top: 2.6rem;
    }

    .about-title {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    .about-lead {
        font-size: 1rem;
    }

    .about-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-actions .btn {
        justify-content: center;
    }

    .about-welcome {
        top: 0.9rem;
        right: 0.9rem;
    }

    .about-portrait {
        border-radius: 24px;
    }

    .about-services-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-expect-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .about-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-rail-card--accent {
        grid-column: auto;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
