:root {
    --brand: #0ea5b8;
    --brand-dark: #0a7d8c;
    --brand-soft: #e6f7f9;
    --accent: #f4a261;
    --accent-warm: #ffb37c;
    --purple: #7c3aed;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #f7fafc;
    --border: #e5e7eb;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 6px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink);
    letter-spacing: -.01em;
}
h1.display-4, h1.display-5, h2.display-6 { font-weight: 600; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

.text-accent { color: var(--brand-dark); }
.bg-soft { background: var(--bg-soft); }
.eyebrow { display:inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--brand-dark); font-weight:600; margin-bottom: .75rem; }
.section { padding: 4.5rem 0; }
.section-head { max-width: 720px; margin-bottom: 1rem; }
.section-head .eyebrow { margin-bottom: .5rem; }
@media (max-width: 767px) { .section { padding: 3rem 0; } }

/* Header */
.site-header .navbar { padding: .85rem 0; }
.brand-mark {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; display:inline-flex; align-items:center; justify-content:center;
    font-size: 1.05rem;
}
.navbar .nav-link { color: var(--ink); font-weight: 500; }
.navbar .nav-link:hover { color: var(--brand-dark); }

/* Buttons */
.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    border-radius: 999px;
    padding: .55rem 1.25rem;
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-border-color: var(--brand-dark);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    border-radius: 999px;
    padding: .55rem 1.25rem;
    font-weight: 600;
}
.btn-light, .btn-outline-light { border-radius: 999px; padding: .65rem 1.5rem; font-weight: 600; }
.btn-ghost {
    border-radius: 999px;
    padding: .55rem 1.25rem;
    font-weight: 600;
    background: rgba(14,165,184,.08);
    color: var(--brand-dark);
    border: 1px solid transparent;
}
.btn-ghost:hover { background: rgba(14,165,184,.16); color: var(--brand-dark); }

/* ========== HERO (modern) ========== */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, var(--brand-soft), #fff 75%);
}
.hero h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.hero-modern { position: relative; overflow: hidden; padding: 5.5rem 0 5.5rem; }
.hero-modern .hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}
.hero-modern .text-accent { color: var(--brand-dark); }
.hero-bg-blob {
    position: absolute;
    width: 540px; height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(14,165,184,.18), transparent 65%);
    top: -180px; right: -160px;
    z-index: 0;
    pointer-events: none;
}
.hero-bg-blob-2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle at 30% 30%, rgba(244,162,97,.16), transparent 65%);
    top: auto; bottom: -180px; left: -160px;
    right: auto;
}
.hero-modern .container { z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--brand-dark);
    font-size: .85rem;
    font-weight: 600;
    padding: .35rem .85rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.hero-badge .bi { color: var(--accent); }
.hero-trust { display:flex; align-items:center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.hero-avatars { display:flex; }
.hero-avatars .avatar-bubble { margin-left: -10px; border: 3px solid #fff; }
.hero-avatars .avatar-bubble:first-child { margin-left: 0; }
.hero-stars .bi { color: #f5b301; font-size: .95rem; }
.hero-stars strong { margin-left: .35rem; }

.avatar-bubble {
    width: 38px; height: 38px; border-radius: 50%;
    color: #fff; font-weight: 700; font-size: .8rem;
    display:inline-flex; align-items:center; justify-content:center;
    letter-spacing: .02em;
}

/* Hero stack (right side) */
.hero-stack {
    position: relative;
    min-height: 380px;
}
.hero-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}
.hero-card-floating {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    max-width: 360px;
    margin: 0 auto;
}
.hero-pill {
    display:inline-flex; align-items:center; gap:.35rem;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: .75rem; font-weight: 600;
    padding: .25rem .65rem; border-radius: 999px;
}
.hero-pill-success { background: #dcfce7; color: #15803d; }
.hero-mini-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: .75rem;
    z-index: 3;
}
.hero-mini-card-1 { top: 12px; left: -12px; }
.hero-mini-card-2 { bottom: 12px; right: -8px; }
.mini-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--brand-soft); color: var(--brand-dark);
    display:flex; align-items:center; justify-content:center; font-size: 1rem;
    flex-shrink: 0;
}
.mini-icon-accent { background: rgba(244,162,97,.18); color: #b76b2e; }
@media (max-width: 991px) {
    .hero-stack { min-height: 0; }
    .hero-mini-card-1, .hero-mini-card-2 { display: none; }
}

.hero-card-inner { text-align:center; }

.page-hero {
    padding: 4rem 0 1.5rem;
    background: linear-gradient(180deg, var(--brand-soft), #fff 80%);
}

/* Trust strip */
.trust-strip {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}
.trust-strip-label {
    text-align: center;
    font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--muted); font-weight: 600; margin-bottom: .75rem;
}
.trust-logos {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 2rem; row-gap: .5rem;
}
.trust-logos span {
    color: var(--ink);
    font-weight: 600;
    opacity: .55;
    font-size: .95rem;
    transition: opacity .2s;
}
.trust-logos span:hover { opacity: 1; }

/* Cards */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.service-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--brand-soft); color: var(--brand-dark);
    display:flex; align-items:center; justify-content:center;
    font-size: 1.4rem; margin-bottom: 1rem;
}
.link-arrow { font-weight: 600; }
.link-arrow .bi { transition: transform .15s ease; }
.link-arrow:hover .bi { transform: translateX(3px); }

.check-list { list-style: none; padding-left: 0; }
.check-list li { padding: .35rem 0; }
.check-list .bi { color: #2bb673; margin-right: .5rem; }

.stat-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; text-align: center;
}
.stat-num { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--brand-dark); font-weight: 600; line-height: 1; }
.stat-label { color: var(--muted); font-size: .9rem; margin-top: .35rem; }

/* Modern features grid */
.feature-tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-soft), #fff);
    color: var(--brand-dark);
    display:flex; align-items:center; justify-content:center;
    font-size: 1.25rem; margin-bottom: .85rem;
    border: 1px solid var(--border);
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: #f5b301; margin-bottom: .75rem; }
.testimonial-card p {
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.testimonial-author {
    display: flex; align-items: center; gap: .75rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* FAQ accordion */
.faq-accordion .accordion-item {
    background: #fff;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-accordion .accordion-button {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    padding: 1.1rem 1.25rem;
    box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--brand-soft);
    color: var(--brand-dark);
}
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-body { padding: 0 1.25rem 1.25rem; }

/* ========== Doctor cards ========== */
.doctor-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.doctor-card-link { color: inherit; display: block; }
.doctor-card-link:hover { color: inherit; }
.doctor-photo {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--brand-soft), #fff);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.doctor-photo img {
    width: 100%; height: 100%; object-fit: cover;
}
.doctor-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: 2.25rem;
    font-weight: 600;
    display:flex; align-items:center; justify-content:center;
    box-shadow: var(--shadow-md);
}
.doctor-body { padding: 1.25rem; }
.doctor-specialty {
    color: var(--brand-dark);
    font-weight: 600;
    font-size: .9rem;
}
.doctor-meta {
    display: flex; gap: 1rem; margin-top: .5rem;
}
.doctor-meta .bi { margin-right: .3rem; color: var(--brand-dark); }

/* Doctor profile (details) */
.doctor-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, var(--brand-soft), #fff 90%);
}
.back-link {
    display: inline-flex; align-items: center; gap: .35rem;
    color: var(--brand-dark); font-weight: 600; font-size: .9rem;
    margin-bottom: .5rem;
}
.doctor-photo-lg {
    width: 240px; height: 240px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-soft), #fff);
    border: 6px solid #fff;
    box-shadow: var(--shadow-lg);
    display:flex; align-items:center; justify-content:center;
}
.doctor-photo-lg img { width: 100%; height: 100%; object-fit: cover; }
.doctor-avatar-lg {
    width: 100%; height: 100%;
    display:flex; align-items:center; justify-content:center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-family: 'Fraunces', serif;
    font-size: 4rem; font-weight: 600;
}
.doctor-fact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: sticky; top: 90px;
}
.fact-list li {
    display: flex; gap: .85rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
}
.fact-list li:last-child { border-bottom: none; }
.fact-list .bi {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    display:flex; align-items:center; justify-content:center;
    flex-shrink: 0;
    font-size: .95rem;
}
.fact-list strong { display: block; font-size: .95rem; color: var(--ink); }
.fact-list span { color: var(--muted); font-size: .88rem; }

/* Posts */
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card-link { color: inherit; display:block; }
.post-thumb { aspect-ratio: 16 / 9; background: var(--bg-soft); display:flex; align-items:center; justify-content:center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-placeholder { font-size: 2rem; color: var(--brand); }
.post-body { font-size: 1.05rem; }
.post-body p { margin-bottom: 1rem; }
.post-body img { max-width: 100%; border-radius: 8px; }

/* Cards */
.card-soft {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(14,165,184,.15);
}

/* CTA */
.cta-band {
    background: linear-gradient(135deg, var(--brand-soft), #fff);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}
.cta-band-rich {
    background: linear-gradient(135deg, var(--brand-dark), #064e58);
    color: #fff;
    border-top: none;
}
.cta-band-rich .text-muted { color: rgba(255,255,255,.7) !important; }
.cta-band-rich .eyebrow { color: rgba(255,255,255,.7); }

/* Auth */
.auth-section { padding-top: 5rem; padding-bottom: 5rem; min-height: 70vh; }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; }
.site-footer h5.brand { color: #fff; font-family: 'Fraunces', serif; }
.site-footer h6 { color: #fff; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,.1); }
