:root {
    --primary: #0b78b6;
    --primary-dark: #075985;
    --primary-soft: #e8f4fb;
    --accent: #13a884;
    --ink: #183244;
    --muted: #607383;
    --soft: #eef8fb;
    --line: #d9e8ef;
    --shadow: 0 18px 45px rgba(24, 50, 68, .11);
}
* { box-sizing: border-box; letter-spacing: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; text-rendering: optimizeLegibility; }
img, svg, video, canvas, iframe { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
.site-header { box-shadow: 0 10px 28px rgba(24, 50, 68, .06); }
.header-container { max-width: 1680px; padding-left: clamp(16px, 4vw, 56px); padding-right: clamp(16px, 4vw, 56px); }
.topbar { background: var(--soft); color: var(--primary-dark); }
.topbar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbar { min-height: 74px; }
.navbar-brand { min-width: 0; max-width: min(430px, 44vw); flex-shrink: 1; margin-right: 1rem; }
.navbar-brand img { width: auto; max-width: 54px; object-fit: contain; }
.navbar-brand .brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.08; color: var(--ink); }
.navbar-brand strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(1.05rem, 1.55vw, 1.45rem); font-weight: 850; }
.navbar-brand small { color: var(--muted); font-size: .76rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; display: inline-grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-size: 1.6rem; font-weight: 800; }
.navbar-nav { align-items: center; }
.nav-link { color: var(--ink); font-weight: 750; white-space: nowrap; }
.navbar-expand-xxl .navbar-nav .nav-link { padding-left: .58rem; padding-right: .58rem; font-size: .96rem; }
.nav-link:hover, .nav-link:focus { color: var(--primary); }
.navbar-actions { flex-shrink: 0; align-items: center; }
.navbar-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; white-space: nowrap; }
.btn { border-radius: 999px; font-weight: 750; padding-inline: 1.05rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--accent); border-color: var(--accent); }
.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-title { max-width: 720px; margin-bottom: 32px; }
.section-title .eyebrow { color: var(--accent); text-transform: uppercase; font-size: .78rem; font-weight: 800; }
.section-title h2 { font-weight: 800; color: var(--ink); }
.hero-slide { min-height: 620px; background: linear-gradient(110deg, rgba(5, 40, 63, .82), rgba(11, 120, 182, .4)), var(--hero-image); background-size: cover; background-position: center; display: flex; align-items: center; color: #fff; }
.hero-copy { max-width: 720px; padding: 84px 0; }
.hero-copy h1 { font-size: clamp(2.35rem, 6vw, 5.4rem); line-height: .98; font-weight: 850; }
.hero-copy p { font-size: 1.15rem; max-width: 630px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.quick-card, .doctor-card, .dept-card, .service-card, .package-card, .post-card, .review-card, .job-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; overflow-wrap: anywhere; }
.quick-card:hover, .doctor-card:hover, .dept-card:hover, .service-card:hover, .package-card:hover, .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8e1ec; }
.icon-box { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 8px; background: var(--soft); color: var(--primary); font-size: 1.7rem; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); }
.doctor-photo { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; background: var(--soft); }
.stat-band { background: var(--primary-dark); color: #fff; }
.stat-number { font-size: 2.4rem; font-weight: 850; }
.feature-list { display: grid; gap: 14px; }
.feature-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.feature-list i { color: var(--accent); font-size: 1.1rem; margin-top: 2px; }
.footer a { color: rgba(255,255,255,.72); display: block; margin: 8px 0; }
.footer a:hover { color: #fff; }
.floating-call, .floating-whatsapp, .back-to-top { position: fixed; z-index: 1000; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.floating-call { left: 18px; bottom: 24px; background: #dc3545; }
.floating-whatsapp { right: 18px; bottom: 84px; background: #20b15a; }
.back-to-top { right: 18px; bottom: 24px; background: var(--primary); opacity: 0; pointer-events: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.page-hero { padding: 82px 0; background: linear-gradient(110deg, rgba(7,89,133,.92), rgba(19,168,132,.72)), url('/assets/images/placeholder.svg'); background-size: cover; background-position: center; color: #fff; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 850; }
.form-label { font-weight: 700; color: var(--ink); }
.form-control, .form-select { border-radius: 8px; padding: .78rem .9rem; border-color: var(--line); box-shadow: none; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(11, 120, 182, .12); }
.map-frame { width: 100%; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.map-frame iframe { display: block; width: 100% !important; min-height: 420px; border: 0; border-radius: 8px; }
.map-frame-large { box-shadow: var(--shadow); }
.gallery-item img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 8px; }
.legal-content { max-width: 900px; }
.contact-panel, .contact-form-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 16px 40px rgba(24, 50, 68, .08); }
.contact-panel { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; }
.contact-card { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-card:first-child { padding-top: 0; }
.contact-card:last-of-type { border-bottom: 0; }
.contact-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 1.35rem; }
.contact-card h2 { font-size: 1.02rem; font-weight: 850; margin-bottom: .35rem; }
.contact-card p { color: var(--muted); margin-bottom: 0; }
.contact-form-card { padding: clamp(22px, 3vw, 34px); }
@media (max-width: 1599px) and (min-width: 1400px) {
    .navbar-brand { max-width: 330px; }
    .header-tagline { display: none; }
    .navbar-expand-xxl .navbar-nav .nav-link { padding-left: .42rem; padding-right: .42rem; font-size: .91rem; }
    .navbar-actions .btn { padding-inline: .82rem; }
}
@media (max-width: 1399px) {
    .hero-slide { min-height: 540px; }
    .section { padding: 52px 0; }
    .navbar { min-height: 68px; }
    .navbar-brand { max-width: calc(100vw - 118px); }
    .navbar-collapse { padding: 1rem 0; border-top: 1px solid var(--line); margin-top: .75rem; max-height: calc(100vh - 92px); overflow-y: auto; }
    .navbar-nav { align-items: stretch; gap: 2px; }
    .navbar-expand-xxl .navbar-nav .nav-link { padding: .72rem .25rem; font-size: 1rem; }
    .navbar-actions { flex-direction: column; align-items: stretch; margin-left: 0 !important; padding-top: .75rem; }
    .navbar-actions .btn { width: 100%; min-height: 44px; }
}
@media (max-width: 575px) {
    .header-container { padding-left: 14px; padding-right: 14px; }
    .navbar-brand strong { font-size: 1rem; }
    .navbar-brand small { font-size: .7rem; }
    .brand-mark { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; }
    .hero-copy { padding: 64px 0; }
    .hero-actions .btn { width: 100%; }
    .floating-call, .floating-whatsapp, .back-to-top { width: 44px; height: 44px; }
}
