/*
Theme Name: KDM Care
Theme URI: https://example.com/kdm-care
Author: KDM Hospital
Description: A responsive, data-driven hospital and healthcare WordPress theme.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kdm-care
*/

:root {
  --navy: #102a43;
  --navy-2: #183b56;
  --teal: #16a085;
  --teal-dark: #0f7f6c;
  --mint: #e9f8f4;
  --sky: #eaf5fb;
  --orange: #ff8a5b;
  --ink: #243b53;
  --muted: #6b7c8f;
  --line: #dce7ed;
  --white: #fff;
  --surface: #f7fbfc;
  --shadow: 0 18px 45px rgba(16, 42, 67, .10);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 16px/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px; clip: auto; color: var(--navy); background: #fff; border-radius: 8px; }

.topbar { background: var(--navy); color: #d9e8f0; font-size: 13px; }
.topbar__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__items, .topbar__social { display: flex; align-items: center; gap: 22px; }
.topbar svg { width: 15px; height: 15px; color: #60d1bd; vertical-align: -3px; margin-right: 6px; }
.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(16,42,67,.08); backdrop-filter: blur(12px); }
.header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark { display: grid; place-items: center; width: 45px; height: 45px; color: #fff; background: var(--teal); border-radius: 13px; box-shadow: 0 8px 18px rgba(22,160,133,.25); }
.brand__mark svg { width: 27px; height: 27px; }
.brand__name { color: var(--navy); font-size: 19px; font-weight: 800; line-height: 1.05; letter-spacing: -.3px; }
.brand__tagline { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1.7px; text-transform: uppercase; }
.custom-logo { max-height: 52px; width: auto; }
.header__nav { margin-left: auto; }
.header__nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.header__nav a { position: relative; color: #395269; font-size: 14px; font-weight: 650; }
.header__nav a:hover, .header__nav .current-menu-item > a { color: var(--teal-dark); }
.header__nav .current-menu-item > a::after { content: ""; position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: var(--teal); border-radius: 4px; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.phone-action { display: flex; align-items: center; gap: 10px; margin-right: 6px; }
.phone-action__icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--teal); background: var(--mint); border-radius: 50%; }
.phone-action__icon svg { width: 17px; height: 17px; }
.phone-action small { display: block; color: var(--muted); font-size: 10px; line-height: 1.2; text-transform: uppercase; letter-spacing: .7px; }
.phone-action strong { color: var(--navy); font-size: 13px; }
.menu-toggle { display: none; width: 43px; height: 43px; padding: 10px; border: 0; color: var(--navy); background: var(--surface); border-radius: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: .25s; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 750; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #fff; background: var(--teal); box-shadow: 0 9px 22px rgba(22,160,133,.22); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--light { color: var(--navy); background: #fff; box-shadow: var(--shadow); }
.btn--outline { color: var(--navy); border-color: var(--line); background: #fff; }
.btn svg { width: 17px; height: 17px; }

.hero { position: relative; overflow: hidden; min-height: 690px; background: linear-gradient(108deg, #e8f6f7 0%, #f5fbfb 54%, #dbeef0 100%); }
.hero::before { content: ""; position: absolute; width: 580px; height: 580px; right: -110px; top: -160px; border: 1px solid rgba(22,160,133,.11); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.18), 0 0 0 140px rgba(255,255,255,.12); }
.hero__inner { min-height: 690px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 56px; }
.hero__content { position: relative; z-index: 2; padding: 70px 0 122px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--teal); }
.hero h1 { max-width: 680px; margin: 18px 0 20px; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-size: clamp(45px, 5vw, 70px); line-height: 1.08; letter-spacing: -2.1px; }
.hero h1 em { color: var(--teal); font-weight: inherit; }
.hero__lead { max-width: 570px; margin: 0 0 30px; color: #536b7d; font-size: 17px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; align-items: center; gap: 13px; margin-top: 31px; color: #536b7d; font-size: 12px; }
.avatar-stack { display: flex; padding-left: 8px; }
.avatar-stack span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; color: #fff; border: 2px solid #fff; background: var(--navy); border-radius: 50%; font-size: 10px; font-weight: 800; }
.avatar-stack span:nth-child(2) { background: var(--orange); }
.avatar-stack span:nth-child(3) { background: var(--teal); }
.hero__visual { position: relative; align-self: end; height: 640px; }
.hero__doctor { position: absolute; z-index: 1; right: 0; bottom: 0; width: 94%; height: 92%; object-fit: cover; object-position: center top; border-radius: 260px 260px 20px 20px; filter: saturate(.88); }
.hero__visual-fallback { position: absolute; right: 0; bottom: 0; width: 90%; height: 88%; overflow: hidden; background: linear-gradient(155deg, #c8e5e2, #79b9ad); border-radius: 260px 260px 20px 20px; }
.hero__visual-fallback svg { position: absolute; width: 72%; height: 72%; right: 14%; bottom: 0; color: rgba(255,255,255,.92); }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 13px 16px; background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.8); border-radius: 12px; box-shadow: var(--shadow); }
.floating-card--rating { top: 165px; left: -25px; }
.floating-card--support { right: -12px; bottom: 105px; }
.floating-card__icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--teal); background: var(--mint); border-radius: 9px; }
.floating-card__icon svg { width: 20px; height: 20px; }
.floating-card strong { display: block; color: var(--navy); font-size: 13px; line-height: 1.2; }
.floating-card small { color: var(--muted); font-size: 10px; }
.stars { color: #ffab4a; letter-spacing: 1px; font-size: 11px; }

.quick-panel { position: relative; z-index: 5; margin-top: -64px; }
.quick-panel__grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.quick-item { display: flex; align-items: center; gap: 15px; min-height: 128px; padding: 26px; border-right: 1px solid var(--line); transition: background .2s; }
.quick-item:last-child { border-right: 0; color: #fff; background: var(--teal); }
.quick-item:hover { background: var(--surface); }
.quick-item:last-child:hover { background: var(--teal-dark); }
.quick-item__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; color: var(--teal); background: var(--mint); border-radius: 12px; }
.quick-item:last-child .quick-item__icon { color: #fff; background: rgba(255,255,255,.17); }
.quick-item__icon svg { width: 23px; height: 23px; }
.quick-item strong { display: block; color: var(--navy); font-size: 14px; line-height: 1.3; }
.quick-item:last-child strong { color: #fff; }
.quick-item small { color: var(--muted); font-size: 11px; }
.quick-item:last-child small { color: rgba(255,255,255,.75); }

.section { padding: 96px 0; }
.section--soft { background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-head--center { display: block; max-width: 710px; margin: 0 auto 44px; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 25px; height: 2px; background: var(--teal); }
.section-title { margin: 10px 0 0; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-size: clamp(34px, 4vw, 48px); line-height: 1.15; letter-spacing: -1.2px; }
.section-copy { max-width: 540px; margin: 14px 0 0; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-dark); font-size: 13px; font-weight: 750; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { position: relative; min-height: 255px; padding: 28px 25px; overflow: hidden; border: 1px solid #e1eaee; background: #fff; border-radius: 14px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.service-card__number { position: absolute; top: 19px; right: 22px; color: #dbe7eb; font-family: Georgia, serif; font-size: 30px; }
.service-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; color: var(--teal); background: var(--mint); border-radius: 13px; }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { margin: 0 0 9px; color: var(--navy); font-size: 17px; }
.service-card p { margin: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.about-grid { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 80px; }
.about-visual { position: relative; min-height: 535px; }
.about-visual__main { width: 88%; height: 480px; object-fit: cover; border-radius: 18px 80px 18px 18px; }
.about-visual__fallback { display: grid; place-items: center; width: 88%; height: 480px; color: #fff; background: linear-gradient(145deg, #b9ded8, #4e9f91); border-radius: 18px 80px 18px 18px; }
.about-visual__fallback svg { width: 50%; height: 50%; opacity: .85; }
.experience-badge { position: absolute; right: 0; bottom: 10px; display: grid; place-items: center; width: 145px; height: 145px; color: #fff; text-align: center; background: var(--teal); border: 9px solid #fff; border-radius: 50%; box-shadow: var(--shadow); }
.experience-badge strong { display: block; font-family: Georgia, serif; font-size: 38px; line-height: 1; }
.experience-badge span { display: block; max-width: 85px; font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .8px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 27px 0 34px; }
.feature { display: flex; gap: 11px; }
.feature__check { display: grid; place-items: center; flex: none; width: 24px; height: 24px; color: #fff; background: var(--teal); border-radius: 50%; }
.feature__check svg { width: 13px; height: 13px; }
.feature strong { display: block; color: var(--navy); font-size: 14px; }
.feature small { color: var(--muted); font-size: 11px; }
.signature { display: flex; align-items: center; gap: 14px; }
.signature__line { width: 45px; height: 1px; background: var(--line); }
.signature strong { display: block; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-style: italic; }
.signature small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }

.stats { color: #fff; background: var(--navy); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 39px 22px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 37px; line-height: 1.1; }
.stat span { color: #abc0cf; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doctor-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .25s, box-shadow .25s; }
.doctor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.doctor-card__image { position: relative; height: 300px; overflow: hidden; background: linear-gradient(145deg, #d6ebe8, #8fc4ba); }
.doctor-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s; }
.doctor-card:hover img { transform: scale(1.035); }
.doctor-card__placeholder { display: grid; place-items: end center; height: 100%; color: rgba(255,255,255,.9); }
.doctor-card__placeholder svg { width: 78%; height: 78%; }
.doctor-card__social { position: absolute; right: 13px; bottom: 13px; display: flex; gap: 5px; opacity: 0; transform: translateY(8px); transition: .25s; }
.doctor-card:hover .doctor-card__social { opacity: 1; transform: none; }
.doctor-card__social span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--teal); background: #fff; border-radius: 7px; font-size: 11px; font-weight: 800; }
.doctor-card__body { padding: 18px 20px 20px; }
.doctor-card__body h3 { margin: 0 0 2px; color: var(--navy); font-size: 16px; }
.doctor-card__specialty { color: var(--teal-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .75px; }
.doctor-card__meta { display: flex; justify-content: space-between; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

.testimonial-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.testimonial-visual { position: relative; min-height: 415px; }
.testimonial-visual__shape { position: absolute; inset: 0 25px 0 0; overflow: hidden; background: linear-gradient(145deg, #cae7e2, #69aa9e); border-radius: 140px 20px 140px 20px; }
.testimonial-visual__shape img { width: 100%; height: 100%; object-fit: cover; }
.quote-card { padding: 36px 38px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.quote-mark { color: var(--teal); font-family: Georgia, serif; font-size: 75px; line-height: .6; }
.quote-card blockquote { margin: 23px 0; color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-size: 20px; line-height: 1.65; font-style: italic; }
.quote-author { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-author strong { display: block; color: var(--navy); font-size: 14px; }
.quote-author small { color: var(--muted); font-size: 11px; }
.quote-dots { display: flex; gap: 6px; }
.quote-dots span { width: 7px; height: 7px; background: #ccdbdf; border-radius: 50%; }
.quote-dots span:first-child { width: 20px; background: var(--teal); border-radius: 5px; }

.cta { position: relative; overflow: hidden; padding: 72px 0; color: #fff; background: var(--teal); }
.cta::before, .cta::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.cta::before { width: 380px; height: 380px; right: -90px; top: -180px; }
.cta::after { width: 250px; height: 250px; left: -80px; bottom: -170px; }
.cta__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.cta h2 { max-width: 700px; margin: 0 0 8px; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 4vw, 44px); line-height: 1.17; }
.cta p { margin: 0; color: rgba(255,255,255,.78); }

.site-footer { color: #b9cbd7; background: #0d2436; }
.footer-main { display: grid; grid-template-columns: 1.45fr .7fr .85fr 1.1fr; gap: 60px; padding: 72px 0 55px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tagline { color: #8da5b5; }
.footer-about { max-width: 320px; margin: 20px 0; font-size: 13px; }
.social-links { display: flex; gap: 8px; }
.social-links a { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: rgba(255,255,255,.07); border-radius: 7px; font-size: 12px; }
.social-links a:hover { background: var(--teal); }
.footer-title { margin: 6px 0 21px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a { font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: grid; gap: 14px; font-size: 13px; }
.footer-contact div { display: flex; gap: 10px; }
.footer-contact svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: #59cbb6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; }

.page-hero { padding: 75px 0; text-align: center; background: linear-gradient(115deg, var(--sky), var(--mint)); }
.page-hero h1 { margin: 0; color: var(--navy); font: 700 clamp(38px, 5vw, 56px)/1.2 "Playfair Display", Georgia, serif; }
.breadcrumbs { margin-top: 9px; color: var(--muted); font-size: 13px; }
.content-area { padding: 80px 0; }
.content-area__inner { max-width: 850px; margin: auto; }
.entry-content h2, .entry-content h3 { color: var(--navy); font-family: "Playfair Display", Georgia, serif; }
.entry-content a { color: var(--teal-dark); text-decoration: underline; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card__body { padding: 23px; }
.post-card h2 { margin: 0 0 9px; color: var(--navy); font: 700 22px/1.25 "Playfair Display", Georgia, serif; }
.post-card p { color: var(--muted); font-size: 13px; }
.pagination { margin-top: 40px; text-align: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; }
.pagination .current { color: #fff; border-color: var(--teal); background: var(--teal); }

.contact-section { padding: 86px 0; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: stretch; }
.contact-card { padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card h2 { margin: 10px 0 12px; color: var(--navy); font: 700 34px/1.2 "Playfair Display", Georgia, serif; }
.contact-card__intro { margin: 0 0 30px; color: var(--muted); }
.contact-detail { display: flex; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-detail__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: var(--teal); background: var(--mint); border-radius: 11px; }
.contact-detail__icon svg { width: 21px; height: 21px; }
.contact-detail strong { display: block; margin-bottom: 2px; color: var(--navy); font-size: 14px; }
.contact-detail span, .contact-detail a { color: var(--muted); font-size: 13px; }
.google-rating { display: flex; align-items: center; gap: 9px; margin-top: 25px; padding: 16px 18px; color: var(--navy); background: #fff9ed; border: 1px solid #f5dfb1; border-radius: 11px; }
.google-rating strong { font-size: 22px; }
.google-rating__stars { color: #f6a800; letter-spacing: 1px; }
.google-rating small { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.map-card { min-height: 590px; overflow: hidden; background: #dce9e7; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 590px; border: 0; }
.contact-notice { margin-top: 26px; padding: 22px 25px; color: #fff; background: var(--navy); border-radius: 13px; }
.contact-notice strong { display: block; font-size: 16px; }
.contact-notice span { color: #b9cbd7; font-size: 12px; }
.contact-notice a { color: #fff; font-weight: 700; }
.form-panel { display: grid; grid-template-columns: .7fr 1.3fr; gap: 65px; margin-top: 30px; padding: 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-panel h2, .booking-info h2 { margin: 10px 0 12px; color: var(--navy); font: 700 36px/1.2 "Playfair Display", Georgia, serif; }
.form-panel__intro p, .booking-info > p { color: var(--muted); }
.hospital-form { display: grid; gap: 17px; }
.hospital-form label { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.hospital-form input, .hospital-form select, .hospital-form textarea { width: 100%; padding: 12px 14px; color: var(--ink); border: 1px solid #ccdce3; outline: 0; background: #fbfdfd; border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.hospital-form input, .hospital-form select { min-height: 48px; }
.hospital-form textarea { resize: vertical; }
.hospital-form input:focus, .hospital-form select:focus, .hospital-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,160,133,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hospital-form .btn { justify-self: start; }
.form-alert { margin-bottom: 18px; padding: 13px 16px; border-radius: 8px; font-size: 13px; font-weight: 650; }
.form-alert--success { color: #0b6958; background: var(--mint); border: 1px solid #afe0d5; }
.form-alert--error { color: #9a3b32; background: #fff0ed; border: 1px solid #f1c5bf; }
.form-privacy { margin: -7px 0 0; color: var(--muted); font-size: 10px; }
.booking-section { padding: 86px 0; background: linear-gradient(120deg, var(--surface), var(--sky)); }
.booking-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: start; }
.booking-info { padding: 28px 0; }
.booking-step { display: flex; align-items: center; gap: 15px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.booking-step > strong { display: grid; place-items: center; flex: none; width: 42px; height: 42px; color: var(--teal); background: var(--mint); border-radius: 50%; font-size: 12px; }
.booking-step b, .booking-step small { display: block; }
.booking-step b { color: var(--navy); font-size: 14px; }
.booking-step small { color: var(--muted); font-size: 11px; }
.appointment-card { padding: 38px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.departments-grid { grid-template-columns: repeat(4, 1fr); }
.department-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 35px; padding: 35px 40px; color: #fff; background: var(--navy); border-radius: var(--radius); }
.department-cta h2 { margin: 0 0 5px; color: #fff; font: 700 26px/1.25 "Playfair Display", Georgia, serif; }
.department-cta p { margin: 0; color: #aec1ce; font-size: 13px; }
.department-hero { padding: 100px 0; color: #fff; background: linear-gradient(115deg, var(--navy), #1e5661); background-position: center; background-size: cover; }
.department-hero__inner { max-width: 760px; margin-left: max(20px, calc((100% - var(--container)) / 2)); }
.department-hero .eyebrow { color: #74dac7; }
.department-hero h1 { margin: 14px 0 15px; color: #fff; font: 700 clamp(42px, 6vw, 66px)/1.1 "Playfair Display", Georgia, serif; }
.department-hero p { max-width: 650px; margin: 0 0 27px; color: #c8d9e1; font-size: 17px; }
.department-detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 55px; align-items: start; }
.department-content .entry-content { margin-top: 25px; color: var(--muted); }
.department-content .entry-content li { margin: 8px 0; }
.department-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.department-benefits > div { padding: 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.department-benefits svg { width: 27px; height: 27px; margin: 0 auto 8px; color: var(--teal); }
.department-benefits strong, .department-benefits span { display: block; }
.department-benefits strong { color: var(--navy); font-size: 13px; }
.department-benefits span { color: var(--muted); font-size: 10px; }
.department-booking { position: sticky; top: 105px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.department-booking h2 { margin: 0 0 5px; color: var(--navy); font: 700 28px/1.2 "Playfair Display", Georgia, serif; }
.department-booking > p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }

@media (max-width: 1050px) {
  .header__nav ul { gap: 18px; }
  .phone-action { display: none; }
  .services-grid, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 45px; }
  .footer-main { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-main > div:last-child { grid-column: span 3; }
}

@media (max-width: 800px) {
  .topbar__social { display: none; }
  .header__inner { min-height: 70px; }
  .menu-toggle { display: block; }
  .header__actions .btn { display: none; }
  .header__nav { position: fixed; inset: 70px 0 auto; display: none; max-height: calc(100vh - 70px); overflow: auto; padding: 25px 20px 35px; background: #fff; box-shadow: var(--shadow); }
  .nav-open .header__nav { display: block; }
  .header__nav ul { display: block; }
  .header__nav li { border-bottom: 1px solid var(--line); }
  .header__nav a { display: block; padding: 15px 2px; font-size: 16px; }
  .hero { min-height: auto; }
  .hero__inner { min-height: auto; grid-template-columns: 1fr; }
  .hero__content { padding: 65px 0 30px; text-align: center; }
  .hero__content .eyebrow { justify-content: center; }
  .hero h1 { margin-inline: auto; }
  .hero__lead { margin-inline: auto; }
  .hero__buttons, .hero__trust { justify-content: center; }
  .hero__visual { width: min(100%, 520px); height: 480px; margin: auto; }
  .quick-panel { margin-top: 0; padding: 28px 0; background: var(--surface); }
  .quick-panel__grid { grid-template-columns: 1fr 1fr; }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item { border-bottom: 1px solid var(--line); }
  .quick-item:nth-child(n+3) { border-bottom: 0; }
  .about-grid, .testimonial-wrap { grid-template-columns: 1fr; }
  .about-visual { max-width: 600px; width: 100%; margin: auto; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .cta__inner { display: block; text-align: center; }
  .cta .btn { margin-top: 25px; }
  .post-list { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-card, .map-card iframe { min-height: 430px; }
  .form-panel, .booking-grid { grid-template-columns: 1fr; }
  .form-panel { gap: 30px; }
  .departments-grid { grid-template-columns: repeat(2, 1fr); }
  .department-detail-grid { grid-template-columns: 1fr; }
  .department-booking { position: static; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .topbar__inner { justify-content: center; }
  .topbar__items span:last-child { display: none; }
  .brand__tagline { display: none; }
  .hero h1 { font-size: 42px; letter-spacing: -1.3px; }
  .hero__buttons .btn { width: 100%; }
  .hero__visual { height: 385px; }
  .floating-card--rating { left: 0; top: 80px; }
  .floating-card--support { right: 0; bottom: 35px; }
  .quick-panel__grid, .services-grid, .doctors-grid, .post-list { grid-template-columns: 1fr; }
  .quick-item { min-height: 100px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .quick-item:last-child { border-bottom: 0 !important; }
  .section { padding: 68px 0; }
  .section-head { display: block; }
  .section-head .text-link { margin-top: 18px; }
  .about-visual { min-height: 405px; }
  .about-visual__main, .about-visual__fallback { height: 380px; width: 92%; }
  .experience-badge { width: 118px; height: 118px; }
  .experience-badge strong { font-size: 30px; }
  .feature-list { grid-template-columns: 1fr; }
  .doctor-card__image { height: 340px; }
  .testimonial-visual { min-height: 315px; }
  .quote-card { padding: 28px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 35px; }
  .footer-main > div:last-child { grid-column: auto; }
  .footer-bottom { display: block; text-align: center; }
  .contact-card { padding: 27px 22px; }
  .contact-actions .btn { width: 100%; }
  .form-panel, .appointment-card { padding: 27px 22px; }
  .form-row, .departments-grid { grid-template-columns: 1fr; }
  .hospital-form .btn { width: 100%; }
  .department-cta { display: block; padding: 28px 24px; text-align: center; }
  .department-cta .btn { margin-top: 20px; }
  .department-benefits { grid-template-columns: 1fr; }
  .department-hero { padding: 72px 0; }
}
