/* ============================================
   Dr. Khademi's Injury Centers — Stylesheet
   Revamped: healing palette, modern layout
   ============================================ */

:root {
    --deep:           #0f4872;
    --primary:        #1a8aaa;
    --primary-mid:    #2aaac8;
    --primary-light:  #5dcfe0;
    --sage:           #52b788;
    --sage-light:     #95d5b2;
    --warm:           #e07a5f;
    --warm-dark:      #c4634b;
    --gold:           #e8a020;
    --gold-dark:      #c47a10;
    --bg:             #f5fdfc;
    --bg-alt:         #edf8f5;
    --bg-card:        #ffffff;
    --text:           #182e2b;
    --text-muted:     #4d6b65;
    --border:         #c4e4df;
    --white:          #ffffff;
    --shadow-sm:      0 1px 4px rgba(5,50,60,.07);
    --shadow:         0 4px 14px rgba(5,50,60,.10);
    --shadow-lg:      0 12px 32px rgba(5,50,60,.14);
    --shadow-xl:      0 24px 56px rgba(5,50,60,.18);
    --radius:         14px;
    --radius-lg:      22px;
    --ease:           all 0.28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--ease); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.22; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
p  { color: var(--text-muted); line-height: 1.75; }

/* ── Container ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Scroll Progress ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-light), var(--sage));
    z-index: 2000;
    transition: width .1s linear;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--ease);
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}
.btn-lg   { padding: 1.05rem 2.1rem; font-size: 1rem;    border-radius: 12px; }
.btn-sm   { padding: .5rem 1.1rem;   font-size: .875rem; border-radius: 8px;  }
.btn-full { width: 100%; justify-content: center; }

.btn-primary       { background: var(--primary);  color: var(--white); font-weight: 700; }
.btn-primary:hover { background: var(--deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(5,50,60,.22); }

.btn-warm          { background: var(--warm);  color: var(--white); }
.btn-warm:hover    { background: var(--warm-dark); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-white         { background: var(--white); color: var(--primary); }
.btn-white:hover   { background: var(--bg-alt); transform: translateY(-2px); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }

/* ============================================
   Navigation
   ============================================ */
.nav-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease;
}
.nav-header.scrolled { box-shadow: var(--shadow); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-mark { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--deep); letter-spacing: -.01em; }
.logo-sub  { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--deep); letter-spacing: -.01em; text-transform: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: .15rem;
}
.nav-links li a {
    padding: .45rem .8rem;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--text);
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--primary); background: var(--bg-alt); }
.nav-cta { margin-left: .5rem; padding: .5rem 1.2rem !important; font-size: .875rem !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 8px;
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(130deg, var(--deep) 0%, #0d3e60 55%, var(--primary) 100%);
    padding-top: 70px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 35%, rgba(93,207,224,.16) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 80%, rgba(82,183,136,.10) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 5.5rem 1.5rem 6rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 3rem;
}
.hero-text { max-width: 640px; }

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-image-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(93,207,224,.22) 0%, transparent 70%);
    pointer-events: none;
}
.hero-spine-img {
    width: 100%;
    max-width: 460px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.08) saturate(1.2) contrast(1.05);
    mask-image:
        radial-gradient(ellipse 80% 90% at 50% 48%, black 20%, transparent 75%),
        linear-gradient(to bottom, black 50%, transparent 92%);
    -webkit-mask-image:
        radial-gradient(ellipse 80% 90% at 50% 48%, black 20%, transparent 75%),
        linear-gradient(to bottom, black 50%, transparent 92%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    animation: spine-rock 7s ease-in-out infinite;
    transform-origin: center 80%;
}

@keyframes spine-rock {
    0%   { transform: rotate(-1.2deg); }
    50%  { transform: rotate(1.2deg);  }
    100% { transform: rotate(-1.2deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(72,194,197,.18);
    border: 1px solid rgba(72,194,197,.35);
    color: var(--primary-light);
    padding: .55rem 1.25rem;
    border-radius: 100px;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 1.5rem;
}

.hero h1  { color: var(--white); margin-bottom: 1.25rem; }
.hero-highlight {
    background: linear-gradient(120deg, var(--primary-light), var(--sage-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.08rem;
    color: rgba(255,255,255,.72);
    margin-bottom: 2.4rem;
    max-width: 520px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(6px);
    width: fit-content;
}
.stat { display: flex; flex-direction: column; padding: 0 1.25rem; gap: .12rem; }
.stat:first-child { padding-left: 0; }
.stat strong { font-size: 1.65rem; font-weight: 800; color: var(--white); line-height: 1.1; white-space: nowrap; }
.stat > span { font-size: .72rem; color: rgba(255,255,255,.58); font-weight: 500; }
.stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,.15); flex-shrink: 0; }

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar { background: var(--primary); padding: 1rem 0; }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255,255,255,.88);
    font-size: .84rem;
    font-weight: 500;
}
.trust-icon { width: 18px; height: 18px; color: var(--sage-light); flex-shrink: 0; }

/* ============================================
   Section base
   ============================================ */
.section     { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
    background: linear-gradient(135deg, var(--deep) 0%, #0d3d52 100%);
    color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.62); }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}
.section-header h2 { margin: .6rem 0 1rem; color: var(--deep); }
.section-header p  { font-size: 1.02rem; }

.section-header-light { text-align: center; max-width: 580px; margin: 0 auto 4rem; }
.section-header-light h2 { color: var(--white); margin: .6rem 0 1rem; }

.section-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary-mid);
    background: rgba(10,138,158,.12);
    padding: .3rem .85rem;
    border-radius: 100px;
}
.section-tag-light { color: var(--primary-light); background: rgba(72,194,197,.16); }

/* ============================================
   Services Feature Strip
   ============================================ */
.service-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3.5rem;
    min-height: 380px;
}
.service-feature-img {
    overflow: hidden;
    position: relative;
}
.service-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.service-feature:hover .service-feature-img img {
    transform: scale(1.04);
}
.service-feature-content {
    background: var(--deep);
    padding: 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.service-feature-content h3 {
    color: var(--white);
    font-size: 1.7rem;
    line-height: 1.25;
}
.service-feature-content p { color: rgba(255,255,255,.68); }
.service-feature-content .section-tag { align-self: flex-start; }

/* ============================================
   Services Grid
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.service-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 2.1rem;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--sage));
    opacity: 0;
    transition: opacity .28s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--icon-color) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.service-icon svg { width: 24px; height: 24px; stroke: var(--icon-color); }
.service-card h3 { color: var(--deep); margin-bottom: .7rem; font-size: 1.15rem; }

/* ============================================
   Conditions
   ============================================ */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}
.condition-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    cursor: default;
}
.condition-card:hover {
    border-color: var(--primary-mid);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.condition-icon {
    width: 46px;
    height: 46px;
    background: rgba(10,138,158,.1);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-mid);
    transition: background .25s ease;
}
.condition-card:hover .condition-icon { background: rgba(10,138,158,.18); }
.condition-icon svg { width: 22px; height: 22px; }
.condition-card h4 { color: var(--deep); margin-bottom: .4rem; }
.condition-card p  { font-size: .875rem; }

/* ============================================
   About
   ============================================ */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-image-wrap {
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.about-photo-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.about-photo-item-secondary {
    width: 88%;
    align-self: flex-end;
}
.about-img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-xl);
    display: block;
}
.about-img-primary  { height: 300px; }
.about-img-secondary { height: 200px; box-shadow: var(--shadow-lg); }

.about-photo-label {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: .75rem 1.1rem;
    box-shadow: 0 6px 16px rgba(5,50,60,.08);
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.about-photo-label strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    color: var(--deep);
}
.about-photo-label span {
    font-size: .76rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.about-float-stat {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.35rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 130px;
}
.about-float-stat strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.about-float-stat span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
}
.about-float-1 { bottom: -1.5rem; left: -1.5rem; }
.about-float-2 { top: -1.5rem; right: -1.5rem; }

.about-content .section-tag { display: inline-block; margin-bottom: 1rem; }
.about-content h2  { color: var(--deep); margin-bottom: 1rem; }
.about-lead { font-size: 1.06rem; color: var(--text); font-weight: 500; margin-bottom: 1rem; }
.about-content > p { margin-bottom: 1.75rem; }

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 2rem;
}
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .875rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.5;
}
.highlight-item svg { width: 17px; height: 17px; color: var(--sage); flex-shrink: 0; margin-top: 2px; }

/* ============================================
   Team
   ============================================ */
.team-group-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--border);
    padding-bottom: .65rem;
    margin-bottom: 2rem;
}
.team-group-label + .team-grid { margin-bottom: 3.5rem; }

.team-grid { display: grid; gap: 1.5rem; }
.team-grid-doctors { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.team-grid-staff   { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.team-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .28s ease, transform .28s ease;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.team-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
    flex-shrink: 0;
}
.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .45s ease;
}
.team-card:hover .team-photo { transform: scale(1.05); }

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,40,50,.72) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.1rem;
    opacity: 0;
    transition: opacity .28s ease;
}
.team-card:hover .team-overlay { opacity: 1; }
.team-overlay-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary-light);
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    letter-spacing: .05em;
}

.team-info { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.team-info h3 { color: var(--deep); font-size: 1.1rem; }
.team-title {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--primary-mid);
    margin-bottom: .5rem;
}

.team-bio {
    font-size: .875rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all .3s ease;
}
.team-bio.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary-mid);
    margin-top: .5rem;
    transition: var(--ease);
    padding: .25rem 0;
}
.bio-toggle:hover { color: var(--primary); }
.bio-toggle svg { transition: transform .25s ease; }
.bio-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ============================================
   Process
   ============================================ */
.process-steps {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
}
.process-step {
    flex: 1;
    max-width: 290px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    transition: background .28s ease;
}
.process-step:hover {
    background: rgba(255,255,255,.10);
}
.step-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-light);
    opacity: .45;
    line-height: 1;
    margin-bottom: .75rem;
}
.step-icon {
    color: var(--primary-light);
    margin-bottom: 1rem;
}
.process-step h3 { color: var(--white); margin-bottom: .65rem; }
.process-connector {
    flex-shrink: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, rgba(72,194,197,.25), rgba(72,194,197,.6), rgba(72,194,197,.25));
    margin: 0 .5rem;
    position: relative;
}
.process-connector::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid rgba(72,194,197,.6);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* ============================================
   Locations
   ============================================ */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 820px;
    margin: 0 auto;
}
.location-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    position: relative;
    transition: box-shadow .28s ease, transform .28s ease;
}
.location-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.location-card-featured { border-color: var(--primary); box-shadow: var(--shadow); }

.location-badge {
    position: absolute;
    top: -12px;
    left: 1.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: .7rem;
    font-weight: 700;
    padding: .24rem .8rem;
    border-radius: 100px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.location-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.4rem;
}
.location-header h3 { color: var(--deep); font-size: 1.5rem; }
.location-pin {
    width: 44px;
    height: 44px;
    background: rgba(10,138,158,.1);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.location-pin svg { width: 18px; height: 18px; color: var(--primary-mid); }

.location-details { display: flex; flex-direction: column; gap: .85rem; }
.location-details p  { font-size: .875rem; line-height: 1.6; }
.location-phone { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.location-phone:hover { color: var(--primary-mid); }

/* ============================================
   Contact
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 4rem;
    align-items: start;
}
.contact-info .section-tag { display: inline-block; margin-bottom: 1rem; }
.contact-info h2  { color: var(--deep); margin-bottom: 1rem; }
.contact-info > p { margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(10,138,158,.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--primary-mid); }
.contact-item > div { display: flex; flex-direction: column; gap: .2rem; }
.contact-item strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.contact-item a    { color: var(--deep); font-weight: 600; font-size: .98rem; }
.contact-item a:hover { color: var(--primary-mid); }
.contact-item span { color: var(--text-muted); font-size: .88rem; }

.contact-call-card {
    background: linear-gradient(135deg, var(--deep) 0%, #0d3d52 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}
.contact-call-icon {
    width: 68px;
    height: 68px;
    background: rgba(255,255,255,.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: .25rem;
}
.contact-call-card h3 { color: var(--white); font-size: 1.6rem; }
.contact-call-card p  { color: rgba(255,255,255,.72); line-height: 1.7; max-width: 380px; }
.contact-call-btn { width: 100%; justify-content: center; }
.contact-call-note {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-top: .25rem;
}

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--text); }
.req { color: var(--warm); }

.form-group input,
.form-group select,
.form-group textarea {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease;
    outline: none;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-mid);
    box-shadow: 0 0 0 3px rgba(10,138,158,.12);
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234d6b65' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-group textarea { resize: vertical; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: .85rem; text-align: center; }

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #0a6d80 100%);
    padding: 4.5rem 0;
}
.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.cta-content h2 { color: var(--white); }
.cta-content p  { color: rgba(255,255,255,.78); font-size: 1.02rem; margin-top: .4rem; }
.cta-actions    { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   Footer
   ============================================ */
/* ── Reviews Section ── */
.reviews-hero-stars {
    display: flex;
    justify-content: center;
    gap: .25rem;
    margin-bottom: .75rem;
}
.reviews-hero-stars svg {
    width: 24px;
    height: 24px;
    fill: #f5a623;
}
.reviews-filter {
    display: flex;
    justify-content: center;
    gap: .6rem;
    padding: .5rem 0 2rem;
}
.filter-btn {
    padding: .55rem 1.5rem;
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    transition: background .2s, color .2s, border-color .2s, transform .15s cubic-bezier(.4,0,.2,1);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.review-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(5,50,60,.07), 0 8px 24px rgba(5,50,60,.06);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1);
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 4px 16px rgba(5,50,60,.10), 0 16px 40px rgba(5,50,60,.10); }
.review-card.hidden { display: none; }
.card-header { display: flex; align-items: center; gap: .85rem; }
.card-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-mid), var(--deep));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem; font-weight: 800; color: var(--white); flex-shrink: 0;
}
.card-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem; font-weight: 700; color: var(--text); }
.card-stars { display: flex; gap: .18rem; }
.card-stars svg { width: 15px; height: 15px; fill: #f5a623; }
.card-text { font-size: .925rem; color: var(--text); line-height: 1.72; flex: 1; }
.card-translation { font-size: .82rem; color: var(--text-muted); line-height: 1.65; border-top: 1px solid var(--border); padding-top: .85rem; font-style: italic; }
.card-lang-badge { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 100px; align-self: flex-start; }
.card-lang-badge.en { background: rgba(26,138,170,.1); color: var(--primary); }
.card-lang-badge.es { background: rgba(82,183,136,.12); color: var(--sage); }

@media (max-width: 960px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── Footer ── */
.footer {
    background: var(--deep);
    color: rgba(255,255,255,.65);
    padding: 4.5rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo     { margin-bottom: .9rem; }
.footer-brand p  { font-size: .875rem; line-height: 1.7; margin-bottom: 1.25rem; max-width: 280px; }
.footer-contact  { display: flex; flex-direction: column; gap: .4rem; }
.footer-contact a { font-size: .875rem; color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--primary-light); }

.footer-col h4 {
    color: var(--white);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .95rem;
}
.footer-col-h4-gap { margin-top: 1.5rem; }
.footer-col ul  { display: flex; flex-direction: column; gap: .48rem; }
.footer-col ul a { font-size: .875rem; color: rgba(255,255,255,.55); }
.footer-col ul a:hover { color: var(--primary-light); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 0; }
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: .78rem; }

/* ============================================
   Locations Banner
   ============================================ */
.locations-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-bottom: 2.5rem;
}
.locations-serving-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--primary);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .55rem 1.4rem;
    border-radius: 100px;
}
/* legacy — kept so old references don't break if cached */
.locations-banner-overlay span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.01em;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .service-feature { grid-template-columns: 1fr; min-height: auto; }
    .service-feature-img { aspect-ratio: 16/7; }
    .service-feature-content { padding: 2.25rem 2rem; }
}

@media (max-width: 960px) {
    .hero-content  { grid-template-columns: 1fr; }
    .hero-image    { display: none; }
    .about-layout  { grid-template-columns: 1fr; gap: 4rem; }
    .about-image-wrap { order: -1; }
    .about-img-primary { height: 260px; }
    .about-img-secondary { height: 160px; }
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }

    .process-steps  { flex-direction: column; align-items: center; }
    .process-connector { width: 2px; height: 40px; margin: .25rem 0; background: linear-gradient(180deg, rgba(72,194,197,.25), rgba(72,194,197,.6), rgba(72,194,197,.25)); }
    .process-connector::after { right: auto; top: auto; bottom: -5px; left: 50%; transform: translateX(-50%); border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid rgba(72,194,197,.6); border-bottom: none; }
    .process-step   { max-width: 440px; width: 100%; }

    .footer-grid    { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand   { grid-column: 1 / -1; }
    .cta-content    { flex-direction: column; text-align: center; }
}

@media (max-width: 680px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1.5px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: .2rem;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform .3s ease, opacity .3s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { transform: translateY(0); opacity: 1; }
    .nav-links li a { padding: .75rem 1rem; display: block; border-radius: 8px; }
    .nav-cta { text-align: center !important; margin: .5rem 0 0 !important; }
    .nav-toggle { display: flex; }

    .hero-stats { flex-wrap: wrap; gap: .85rem; }
    .stat-divider { display: none; }
    .stat { padding: 0; }

    .about-highlights { grid-template-columns: 1fr; }
    .about-float-1, .about-float-2 { position: static; box-shadow: var(--shadow); margin-top: .75rem; }
    .about-image-wrap { overflow: hidden; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .section { padding: 4rem 0; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .trust-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    .contact-form-wrap { padding: 1.5rem; }
    .service-feature-content { padding: 1.75rem; }
    .service-feature-content h3 { font-size: 1.35rem; }
}


/* ─────────────────────────────────────────────────────────
   Mobile Overflow Fixes
   Desktop layout is never touched — all rules are either
   wrapped in max-width media queries or are overflow-safe
   global additions.
───────────────────────────────────────────────────────── */

/* Fix 1: Prevent any overflowing child from expanding the
   horizontal scroll area (the locations 2-col overflow was
   cascading to make every width:100% element 23px too wide) */
html, body { overflow-x: hidden; }

/* Fix 2: Reviews filter — wrap buttons on narrow screens */
.reviews-filter { flex-wrap: wrap; }

/* Fix 3: Locations grid — collapse to 1-col below 768px.
   The 2-col repeat(2,1fr) had no breakpoint; at 375px the
   second card's min-content was 230px, starting at x=305,
   overflowing 161px off the right edge. */
@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .location-card { padding: 2rem 1.5rem; }
}

/* Fix 4: Prevent grids with minmax(320px) from creating
   columns wider than the viewport on very narrow screens */
@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    }
    .team-grid-doctors {
        grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    }
    .team-grid-staff {
        grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    }
}

/* Fix 5: Contact layout grid children overflow.
   CSS grid tracks default to min-width:auto, which means
   "Takoma Park: 301-445-7900" (a single unbreakable inline-flex
   string) forces the column to ~374px min-content, overflowing
   the 375px viewport. min-width:0 on grid children lets tracks
   shrink below their content min-size. */
@media (max-width: 960px) {
    .contact-layout > * { min-width: 0; }
}
@media (max-width: 640px) {
    .contact-call-card { padding: 2rem 1.5rem; }
    .contact-call-btn  { font-size: .85rem; padding: .75rem 1.2rem; }
}

/* Fix 6: Tighten container horizontal padding on very small
   screens to recover ~8px of usable width per side */
@media (max-width: 400px) {
    .container { padding: 0 1rem; }
    .location-card { padding: 1.75rem 1.25rem; }
}
