/*
Theme Name: Mubarak Clinic
Theme URI: https://example.com/mubarak-clinic
Author: Mubarak Clinic & Maternity Home
Description: Professional, mobile-responsive WordPress theme for Mubarak Clinic & Maternity Home, Pakpattan. One-page front page with services, maternity care journey, facilities gallery, team, FAQ, WhatsApp appointment form and Google Map.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mubarak-clinic
Tags: one-column, custom-menu, custom-logo, featured-images, health, medical
*/

:root {
  --teal-900: #0b3b37;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50:  #f0fdfa;
  --rose-700: #be185d;
  --rose-500: #ec4899;
  --rose-100: #fce7f3;
  --rose-50:  #fdf2f8;
  --ink: #0f1f1d;
  --ink-2: #3b4d4a;
  --ink-3: #6b7d7a;
  --line: #e3ecea;
  --bg: #ffffff;
  --bg-soft: #f7faf9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(11, 59, 55, .22);
  --shadow-lg: 0 30px 60px -20px rgba(11, 59, 55, .35);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--rose-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.urdu { font-family: var(--font-urdu); direction: rtl; line-height: 2.1; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--rose-500); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit; line-height: 1.2; white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: 0 10px 22px -10px rgba(15,118,110,.8); }
.btn-primary:hover { background: var(--teal-800); color: #fff; }
.btn-rose { background: var(--rose-700); color: #fff; box-shadow: 0 10px 22px -10px rgba(190,24,93,.8); }
.btn-rose:hover { background: #9d174d; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 10px 22px -10px rgba(37,211,102,.9); }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.btn-ghost { background: #fff; color: var(--teal-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-800); }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--teal-900); color: #cfe9e5; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-items span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; color: var(--teal-500); }
.topbar .emergency { color: #fecdd3; font-weight: 700; }
.topbar .emergency .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 0 0 rgba(251,113,133,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(251,113,133,0); } 100% { box-shadow: 0 0 0 0 rgba(251,113,133,0); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 48px; height: 48px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--teal-900); }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-700); font-weight: 700; }
.custom-logo { max-height: 56px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; white-space: nowrap; padding: .55em .9em; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--teal-50); color: var(--teal-800); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: .7em 1.2em; font-size: .92rem; }
.nav-toggle { display: none; background: var(--teal-50); border: 0; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; color: var(--teal-800); align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 90px; background:
  radial-gradient(900px 500px at 100% 0%, var(--rose-50), transparent 60%),
  radial-gradient(800px 600px at 0% 100%, var(--teal-50), transparent 60%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 6px 14px 6px 8px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--teal-800); box-shadow: var(--shadow); }
.eyebrow .dot { background: var(--teal-100); color: var(--teal-800); border-radius: 999px; padding: 2px 9px; font-size: .74rem; }
.hero-urdu { font-size: 1.6rem; color: var(--rose-700); margin: 18px 0 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); margin: 6px 0 18px; }
.hero h1 em { font-style: italic; color: var(--teal-700); }
.hero-lead { font-size: 1.12rem; max-width: 560px; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 24px; border-top: 1px dashed var(--line); }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.hero-trust svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--teal-50); color: var(--teal-700); flex: none; }
.hero-media { position: relative; }
.hero-media .frame { border-radius: 200px 200px 28px 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 9/10; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.float-card strong { display: block; color: var(--ink); font-size: 1rem; }
.float-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 22px; height: 22px; }
.float-card.one { left: -34px; bottom: 60px; animation: bob 5s ease-in-out infinite; }
.float-card.one .ic { background: var(--rose-100); color: var(--rose-700); }
.float-card.two { right: -20px; top: 70px; animation: bob 6s ease-in-out infinite reverse; }
.float-card.two .ic { background: var(--teal-100); color: var(--teal-700); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-700); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--ink-3); font-size: 1.05rem; }

/* Highlights strip */
.highlights { margin-top: -50px; position: relative; z-index: 2; }
.highlights .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.highlights .item { padding: 26px 24px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line); }
.highlights .item:last-child { border-right: 0; }
.highlights .item svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--rose-50); color: var(--rose-700); flex: none; }
.highlights h3 { font-size: 1rem; margin: 0 0 2px; }
.highlights p { margin: 0; font-size: .87rem; color: var(--ink-3); }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.about-badge { position: absolute; right: -18px; top: 32px; background: var(--rose-700); color: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-lg); max-width: 220px; }
.about-badge strong { display: block; font-size: 1.15rem; font-family: var(--font-head); }
.about-badge span { font-size: .85rem; opacity: .9; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.checklist { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: .95rem; }
.checklist svg { width: 22px; height: 22px; color: var(--teal-700); flex: none; margin-top: 1px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.service::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--teal-500), var(--rose-500)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: var(--teal-50); color: var(--teal-700); }
.service:nth-child(even) .ic { background: var(--rose-50); color: var(--rose-700); }
.service .ic svg { width: 28px; height: 28px; }
.service h3 { margin-bottom: 6px; }
.service p { font-size: .92rem; color: var(--ink-3); margin: 0; }
.service .ur { display: block; font-family: var(--font-urdu); direction: rtl; color: var(--rose-700); font-size: .95rem; margin-top: 12px; line-height: 2; }

/* Journey */
.journey { background: linear-gradient(160deg, var(--teal-900), var(--teal-800)); color: #cfe9e5; position: relative; overflow: hidden; }
.journey::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(236,72,153,.25), transparent 70%); right: -200px; top: -200px; }
.journey .section-head h2, .journey h3 { color: #fff; }
.journey .section-head p { color: #a7d3cd; }
.journey .kicker { color: #f9a8d4; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.4); display: block; margin-bottom: 8px; }
.step p { margin: 0; font-size: .92rem; }
.step .tag { display: inline-block; margin-top: 14px; font-size: .75rem; font-weight: 700; background: rgba(244,114,182,.18); color: #fbcfe8; padding: 4px 10px; border-radius: 999px; }

/* Stats & why */
.why .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-list { display: grid; gap: 18px; margin-top: 26px; }
.why-item { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.why-item svg { width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--teal-700); color: #fff; flex: none; }
.why-item:nth-child(2) svg { background: var(--rose-700); }
.why-item h3 { margin: 0 0 2px; font-size: 1.02rem; }
.why-item p { margin: 0; font-size: .9rem; color: var(--ink-3); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { border-radius: var(--radius); padding: 32px 26px; background: #fff; border: 1px solid var(--line); }
.stat:nth-child(1) { background: var(--teal-700); border-color: var(--teal-700); }
.stat:nth-child(4) { background: var(--rose-700); border-color: var(--rose-700); }
.stat:nth-child(1) *, .stat:nth-child(4) * { color: #fff !important; }
.stat .num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 600; color: var(--teal-900); line-height: 1; }
.stat .lbl { display: block; margin-top: 8px; font-weight: 600; color: var(--ink-3); font-size: .92rem; }
.demo-note { font-size: .78rem; color: var(--ink-3); margin-top: 12px; text-align: center; font-style: italic; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4), .gallery figure:nth-child(n+5) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }
.lightbox { position: fixed; inset: 0; background: rgba(5,20,18,.9); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; font-size: 24px; cursor: pointer; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.member:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.member img { aspect-ratio: 6/7; object-fit: cover; width: 100%; }
.member .body { padding: 20px 22px 24px; }
.member .role { color: var(--rose-700); font-weight: 700; font-size: .85rem; }
.member p { font-size: .9rem; color: var(--ink-3); margin: 8px 0 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: relative; }
.quote .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 10px; }
.quote p { color: var(--ink); font-size: .98rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--teal-700), var(--teal-500)); }
.quote:nth-child(2) .av { background: linear-gradient(135deg, var(--rose-700), var(--rose-500)); }
.quote .who strong { display: block; color: var(--ink); font-size: .95rem; }
.quote .who span { font-size: .82rem; color: var(--ink-3); }
.quote .who .av { color: #fff; font-size: 1rem; }
.quote .badge-demo { position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 800; letter-spacing: .1em; background: var(--bg-soft); color: var(--ink-3); padding: 3px 8px; border-radius: 6px; }

/* Doctor */
.doctor-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 340px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.doctor-photo { background: linear-gradient(150deg, var(--teal-900), var(--teal-700) 60%, var(--teal-500)); display: grid; place-items: center; min-height: 380px; position: relative; overflow: hidden; }
.doctor-photo::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,114,182,.35), transparent 70%); right: -120px; bottom: -120px; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.monogram { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-size: 3.6rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.35); box-shadow: 0 0 0 14px rgba(255,255,255,.06); position: relative; z-index: 1; }
.doctor-body { padding: 40px 42px; }
.doctor-body .role { color: var(--rose-700); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.doctor-body h3 { font-family: var(--font-head); font-size: 2.1rem; font-weight: 600; margin: 8px 0 0; }
.doctor-ur { color: var(--teal-700); font-size: 1.2rem; margin: 0 0 6px; text-align: left; }
.doctor-body .checklist { margin: 18px 0 26px; }

/* Reviews */
.rating-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; text-align: center; box-shadow: var(--shadow); }
.rating-score { display: inline-flex; align-items: center; gap: 18px; margin-bottom: 18px; text-align: left; }
.g-logo { width: 64px; height: 64px; border-radius: 18px; background: var(--bg-soft); display: grid; place-items: center; flex: none; }
.g-logo svg { width: 38px; height: 38px; }
.rating-score .big { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--ink); margin-right: 8px; }
.rating-score .stars { color: #f59e0b; font-size: 1.4rem; letter-spacing: 2px; }
.rating-score .stars .half { background: linear-gradient(90deg, #f59e0b 20%, #e5e7eb 20%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-score .count { display: block; font-size: .88rem; color: var(--ink-3); font-weight: 600; margin-top: 4px; }
.rating-card > p { color: var(--ink-3); max-width: 520px; margin: 0 auto 24px; }
.rating-card .hero-actions { justify-content: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--teal-700); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--ink-3); }

/* Contact */
.contact .contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: stretch; }
.contact-card { background: linear-gradient(160deg, var(--teal-900), var(--teal-700)); color: #d5efeb; border-radius: var(--radius); padding: 38px 34px; position: relative; overflow: hidden; }
.contact-card h2 { color: #fff; font-size: 2rem; }
.contact-card .urdu { color: #fbcfe8; font-size: 1.25rem; margin-bottom: 10px; }
.contact-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; flex: none; }
.contact-list small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.contact-list a, .contact-list strong { color: #fff; font-weight: 700; font-size: 1.05rem; }
.contact-card .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.form-card { background: #fff; border-radius: var(--radius); padding: 36px 32px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.4rem; font-family: var(--font-head); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--ink-3); margin: 12px 0 0; text-align: center; }
.map { margin-top: 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); line-height: 0; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 420px; border: 0; }

/* CTA band */
.cta-band { background: linear-gradient(110deg, var(--rose-700), #db2777 55%, var(--rose-500)); color: #fff; border-radius: 28px; padding: 46px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn-ghost { border-color: #fff; }

/* Footer */
.site-footer { background: #072a27; color: #9cc5bf; padding: 70px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #cfe9e5; }
.site-footer a:hover { color: #f9a8d4; }
.site-footer .brand-name { color: #fff; }
.footer-bottom { margin-top: 50px; border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }

/* Floating buttons */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.fab a { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 26px -8px rgba(0,0,0,.4); transition: transform .2s; }
.fab a:hover { transform: scale(1.08); color: #fff; }
.fab svg { width: 28px; height: 28px; }
.fab .wa { background: #25d366; }
.fab .call { background: var(--teal-700); }
.mobile-bar { display: none; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .pulse { animation: none !important; }
}

/* Generic pages (blog/page.php) */
.page-hero { background: var(--teal-50); padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.entry { max-width: 780px; margin: 0 auto; padding: 60px 20px; }
.entry img { border-radius: var(--radius-sm); }
.post-list { display: grid; gap: 24px; }
.post-list article { border-bottom: 1px solid var(--line); padding-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header-cta .btn-whatsapp { display: none; }
  .main-nav a { padding: .5em .7em; font-size: .92rem; }
}
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav a { padding: .5em .55em; font-size: .88rem; }
}
@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .site-header { z-index: 80; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav { visibility: hidden; }
  .main-nav.open { visibility: visible; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 0 0 0 auto; top: 0; width: min(320px, 86vw); background: #fff; padding: 90px 24px 24px; transform: translateX(100%); transition: transform .3s ease, visibility .3s; box-shadow: -20px 0 60px -20px rgba(0,0,0,.35); z-index: 70; overflow-y: auto; }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { font-size: 1.05rem; padding: .85em 1em; border-radius: 12px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(5,20,18,.45); z-index: 65; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  .nav-toggle { position: relative; z-index: 75; }
  .hero .wrap, .about .wrap, .why .wrap, .contact .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 40px 0 90px; }
  .hero-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .highlights .grid { grid-template-columns: 1fr 1fr; }
  .highlights .item:nth-child(2) { border-right: 0; }
  .highlights .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .team-grid, .quotes { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doctor-card { grid-template-columns: 1fr; }
  .doctor-photo { min-height: 260px; }
  .about-media { max-width: 520px; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
  .site-header .wrap { min-height: 66px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.08rem; }
  .brand-sub { font-size: .62rem; }
  .header-cta .btn-primary { display: none; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 38px; }
  .hero-urdu { font-size: 1.3rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .float-card.one { left: 0; }
  .float-card.two { right: 0; }
  .float-card { padding: 10px 14px; font-size: .8rem; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .service { padding: 22px 18px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 12px; }
  .gallery figure:nth-child(n+5) { grid-column: span 1; }
  .checklist { grid-template-columns: 1fr; }
  .about-badge { right: 12px; }
  .cta-band { padding: 34px 26px; }
  .contact-card, .form-card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .doctor-body, .rating-card { padding: 28px 22px; }
  .doctor-body h3 { font-size: 1.7rem; }
  .rating-card .hero-actions .btn { flex: 1 1 100%; }
  .map iframe { height: 340px; }
  .fab { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; font-size: .75rem; font-weight: 700; color: var(--ink-2); }
  .mobile-bar svg { width: 22px; height: 22px; }
  .mobile-bar .mb-call { color: var(--teal-700); }
  .mobile-bar .mb-wa { color: #16a34a; }
  .mobile-bar .mb-map { color: var(--rose-700); }
  .site-footer { padding-bottom: 70px; }
}
@media (max-width: 520px) {
  .services-grid, .steps, .team-grid, .quotes, .footer-grid, .stats { grid-template-columns: 1fr; }
  .highlights .grid { grid-template-columns: 1fr; }
  .highlights .item { border-right: 0; border-bottom: 1px solid var(--line); }
  .highlights .item:last-child { border-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; }
  .stat .num { font-size: 2.1rem; }
  .hero-trust { gap: 14px; }
}
