/* ============================================================
   DR. UMAIR SHAFQAT — Main Stylesheet
   drumairshafqat.com
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #1a7c4f;
  --green-dark:  #145f3c;
  --green-light: #e8f5ee;
  --green-mid:   #2da06a;
  --teal:        #0e9e8a;
  --teal-light:  #e6f7f5;
  --text:        #1a2e22;
  --text2:       #3d5a47;
  --text3:       #6b8a77;
  --border:      #d0e8da;
  --bg:          #f5faf7;
  --white:       #ffffff;
  --red:         #d32f2f;
  --shadow:      0 2px 12px rgba(26,124,79,0.10);
  --shadow-md:   0 4px 24px rgba(26,124,79,0.14);
  --radius:      10px;
  --radius-sm:   6px;
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-ur:     'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Nafees Web Naskh', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
}

body.ur {
  font-family: var(--font-ur);
  direction: rtl;
  text-align: right;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TOPBAR ───────────────────────────────────────────────── */
.topbar {
  background: var(--green);
  padding: 7px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left span { display: flex; align-items: center; gap: 5px; }
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-switch a {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  transition: all .2s;
}
.lang-switch a.active,
.lang-switch a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.lang-switch .sep { color: rgba(255,255,255,0.3); }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 46px; height: 46px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700;
  flex-shrink: 0;
}
.logo-name { font-size: 18px; font-weight: 700; color: var(--green); line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--text3); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13px;
  color: var(--text2);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); background: var(--green-light); }
.nav-appt {
  background: var(--green);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-appt:hover { background: var(--green-dark) !important; color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 12px 20px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 11px 12px;
  color: var(--text2);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--green); }
.mobile-nav .m-appt {
  display: block;
  margin-top: 12px;
  background: var(--green);
  color: #fff !important;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #f0faf5 0%, #e8f5ee 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-name {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 6px;
}
.hero-title {
  font-size: 16px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 4px;
}
.hero-hospital {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 20px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.hero-tag {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 25px;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 25px;
  transition: all .2s;
}
.btn-wa:hover { background: #1fb855; transform: translateY(-1px); }

.hero-photo-wrap { flex-shrink: 0; }
.hero-photo-box {
  position: relative;
  width: 240px;
}
.hero-photo-box img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}
.hero-photo-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
  border: 2px solid var(--white);
}
.hero-mini-stats {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.mini-stat {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
}
.mini-stat .n { font-size: 20px; font-weight: 700; color: var(--green); }
.mini-stat .l { font-size: 10px; color: var(--text3); margin-top: 2px; }

/* ── STATS BAR ────────────────────────────────────────────── */
.stats-bar { background: var(--green); }
.stats-bar .container {
  display: flex;
}
.stat-item {
  flex: 1;
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-n { font-size: 22px; font-weight: 700; color: #fff; }
.stat-l { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 2px; }

/* ── SECTION BASE ─────────────────────────────────────────── */
.section { padding: 56px 0; }
.section.alt { background: var(--bg); }
.section.white { background: var(--white); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.section-sub { font-size: 14px; color: var(--text3); max-width: 520px; margin: 0 auto; }

/* ── SERVICES ─────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  border-top: 3px solid var(--green);
  transition: all .25s;
}
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-icon {
  width: 44px; height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.svc-desc { font-size: 12px; color: var(--text3); line-height: 1.6; }

/* ── CONDITIONS ───────────────────────────────────────────── */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cond-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.cond-item:hover { border-color: var(--green); color: var(--green); background: var(--green-light); }
.cond-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; flex-shrink: 0; }

/* ── ABOUT ────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.qual-list { margin-bottom: 24px; }
.qual-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.qual-item:last-child { border-bottom: none; }
.qual-yr {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
}
.qual-text { font-size: 13px; color: var(--text2); line-height: 1.5; }
.qual-text strong { color: var(--text); display: block; font-size: 13px; margin-bottom: 2px; }

/* ── PUBLICATIONS ─────────────────────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  transition: all .2s;
}
.pub-card:hover { box-shadow: var(--shadow); }
.pub-journal {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.pub-title { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 5px; line-height: 1.5; }
.pub-authors { font-size: 12px; color: var(--text3); }
.pub-doi { font-size: 11px; color: var(--teal); margin-top: 5px; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 5px; }
.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font);
  transition: border-color .2s;
  outline: none;
}
.form-control:focus { border-color: var(--green); background: var(--white); }
textarea.form-control { height: 100px; resize: vertical; }
.form-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font);
}
.form-submit:hover { background: var(--green-dark); }
.form-msg { padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 12px; font-size: 13px; display: none; }
.form-msg.success { background: #e8f5ee; color: var(--green); border: 1px solid var(--border); display: block; }
.form-msg.error { background: #fdecea; color: var(--red); border: 1px solid #f5c6c6; display: block; }

.clinic-cards { display: flex; flex-direction: column; gap: 14px; }
.clinic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
}
.clinic-card.default { border-color: var(--green); border-left: 4px solid var(--green); }
.clinic-default-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--green); color: #fff;
  font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ur .clinic-default-badge { right: auto; left: 12px; }
.clinic-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; padding-right: 70px; }
.clinic-row { display: flex; gap: 8px; margin-bottom: 7px; align-items: flex-start; }
.ur .clinic-row { flex-direction: row-reverse; }
.c-ico { color: var(--green); font-size: 14px; margin-top: 1px; flex-shrink: 0; }
.c-txt { font-size: 12px; color: var(--text2); line-height: 1.5; }
.map-box { background: var(--bg); border-radius: var(--radius-sm); height: 140px; overflow: hidden; margin-top: 10px; }
.map-box iframe { width: 100%; height: 100%; border: none; }

/* WA Banner */
.wa-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #e8faf0;
  border: 1px solid #b8e8cc;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-top: 16px;
}
.wa-icon { font-size: 28px; flex-shrink: 0; }
.wa-title { font-size: 13px; font-weight: 700; color: #155724; }
.wa-sub { font-size: 11px; color: #2d7a4a; }
.wa-btn {
  margin-left: auto;
  background: #25D366;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 20px;
  white-space: nowrap;
}
.ur .wa-btn { margin-left: 0; margin-right: auto; }

/* ── FLOATING WA ──────────────────────────────────────────── */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: transform .2s;
  font-size: 26px;
}
.float-wa:hover { transform: scale(1.1); }
.ur .float-wa { right: auto; left: 28px; }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--text);
  padding: 40px 0 0;
  color: rgba(255,255,255,0.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-name { color: #fff; font-size: 20px; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-desc { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.8; margin-top: 10px; }
.footer-heading { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); padding: 4px 0; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; align-items: flex-start; }
.footer-contact-item span:first-child { flex-shrink: 0; }
.footer-bottom {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-pmdc {
  background: rgba(255,255,255,0.08);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ── PAGE BANNER ──────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 40px 0;
  color: #fff;
}
.page-banner h1 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.page-banner p { font-size: 13px; color: rgba(255,255,255,0.8); }
.breadcrumb { display: flex; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 8px; align-items: center; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,0.4); }

/* ── ALERT / NOTICE ───────────────────────────────────────── */
.notice {
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--green-dark);
  margin-bottom: 20px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .conditions-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .topbar-left { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero .container { flex-direction: column-reverse; gap: 24px; text-align: center; }
  .hero-photo-box { width: 180px; margin: 0 auto; }
  .hero-photo-box img { width: 160px; height: 200px; }
  .hero-name { font-size: 26px; }
  .hero-tags { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-mini-stats { justify-content: center; }
  .mini-stat { max-width: 90px; }

  .stats-bar .container { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .section { padding: 36px 0; }
  .section-title { font-size: 22px; }
  .float-wa { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 22px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-name { font-size: 22px; }
  .btn-primary, .btn-wa { padding: 10px 18px; font-size: 12px; }
  .stats-bar .container { flex-direction: column; }
  .stat-item { min-width: 100%; }
}

/* ── URDU RTL OVERRIDES ───────────────────────────────────── */
body.ur .nav-links { flex-direction: row-reverse; }
body.ur .hero .container { flex-direction: row-reverse; }
body.ur .hero-btns { flex-direction: row-reverse; }
body.ur .topbar .container { flex-direction: row-reverse; }
body.ur .footer-grid { direction: rtl; }
body.ur .footer-bottom { flex-direction: row-reverse; }
body.ur .qual-item { flex-direction: row-reverse; }
body.ur .pub-card { border-left: none; border-right: 4px solid var(--teal); }
body.ur .clinic-card.default { border-left: 1px solid var(--border); border-right: 4px solid var(--green); }
body.ur .breadcrumb { flex-direction: row-reverse; }

@media (max-width: 768px) {
  body.ur .hero .container { flex-direction: column-reverse; }
  body.ur .nav-links { flex-direction: column; }
}
