/* ============================================================
   IBN SINA HOSPITAL — DEPARTMENT PAGES STYLESHEET
   File: css/department.css
   Self-contained. Does NOT depend on style.css or
   department-common.css. Used by all /department-pages/*.html
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --forest: #2d4a2b;
  --forest-deep: #1e331d;
  --sage: #7d8471;
  --sage-text: #5c6350;
  --olive: #a4ac86;
  --olive-light: #c9d1ab;
  --ivory: #faf9f6;
  --ivory-2: #f4f6f0;
  --emergency: #954c2a;
  --emergency-dark: #7a3f23;
  --white: #ffffff;
  --black: #1a1a1a;
  --ink: #26331f;
  --muted: #66755f;
  --line: #e6ebe3;
  --success: #22a06b;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 60px rgba(45,74,43,0.14);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --font-heading: 'Poppins', Georgia, serif;
  --font-body: 'Nunito', -apple-system, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--black);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 320px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: .25s var(--ease); }
a:hover, a:focus-visible { color: var(--sage); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; overflow-wrap: break-word; }
ul { list-style: none; }

/* ---------- UTILITIES ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 4rem 0; }
.text-center { text-align: center; }
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--forest); color: var(--ivory);
  padding: 8px 16px; z-index: 10000; transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--ivory); }

/* ---------- READING PROGRESS ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--forest), var(--olive) 50%, var(--emergency));
  z-index: 9999; pointer-events: none;
  box-shadow: 0 0 12px rgba(164,172,134,.5);
  transition: width .08s linear;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px;
  border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(145deg, var(--forest), var(--forest-deep));
  color: var(--ivory); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center; z-index: 9998;
  box-shadow: 0 8px 24px rgba(45,74,43,.35);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.85);
  transition: all .4s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); box-shadow: 0 14px 32px rgba(45,74,43,.45); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.6rem; border-radius: 2rem; font-weight: 700;
  font-size: .98rem; border: 2px solid transparent; cursor: pointer;
  transition: all .3s var(--ease); text-align: center;
  font-family: var(--font-body); text-decoration: none;
  line-height: 1.3; max-width: 100%; position: relative;
}
.btn-primary {
  background: var(--forest); color: var(--ivory); border-color: var(--forest);
  box-shadow: 0 6px 18px rgba(45,74,43,.22);
}
.btn-primary:hover {
  background: var(--forest-deep); border-color: var(--forest-deep);
  transform: translateY(-2px); box-shadow: 0 12px 26px rgba(45,74,43,.32);
  color: var(--ivory);
}
.btn-outline {
  background: transparent; color: var(--forest);
  border: 2px solid var(--forest); border-radius: 2rem;
}
.btn-outline:hover { background: var(--forest); color: var(--ivory); transform: translateY(-2px); }
.btn-emergency {
  background: var(--emergency); color: var(--ivory);
  border-color: var(--emergency);
}
.btn-emergency:hover { background: var(--emergency-dark); border-color: var(--emergency-dark); transform: translateY(-2px); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--forest), #28411f);
  color: var(--ivory); padding: .85rem 0;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
  backdrop-filter: saturate(160%) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap; gap: .5rem;
}
.logo { display: flex; align-items: center; gap: .55rem; color: var(--ivory); flex-shrink: 0; }
.logo-img { height: 40px; width: auto; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.logo-text { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.logo-text strong { color: var(--olive-light); }

.main-nav .nav-list { display: flex; gap: 1.15rem; }
.nav-link {
  color: var(--ivory); opacity: .9; font-weight: 500;
  padding: .5rem 0; border-bottom: 2px solid transparent;
  position: relative; font-size: .95rem;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--olive-light); transition: width .3s var(--ease);
}
.nav-link:hover, .nav-link.active { opacity: 1; color: var(--ivory); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.emergency-badge {
  display: flex; align-items: center; gap: .35rem;
  background: linear-gradient(145deg, #a35528, var(--emergency));
  color: var(--ivory); padding: .45rem 1rem; border-radius: 2rem;
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(149,76,42,.35);
  animation: emergencyPulse 2.4s ease-in-out infinite;
}
@keyframes emergencyPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(149,76,42,.35), 0 0 0 0 rgba(149,76,42,.5); }
  50% { box-shadow: 0 4px 14px rgba(149,76,42,.35), 0 0 0 10px rgba(149,76,42,0); }
}
.emergency-badge:hover { background: var(--emergency); color: var(--ivory); transform: translateY(-1px); }
.emergency-badge svg { width: 17px; height: 17px; }

.hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger-line { width: 24px; height: 2px; background: var(--ivory); transition: .3s; border-radius: 2px; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- HERO ---------- */
.hero-gynaecology,
.hero-cardiology,
.hero-orthopaedics,
.hero-nephrology,
.hero-gastroenterology,
.hero-general-surgery,
.hero-general-medicine,
.hero-urology,
.hero-ent,
.hero-ophthalmology,
.hero-dermatology,
.hero-physiotherapy,
.hero-dentistry,
.hero-pulmonology,
.hero-rheumatology,
.hero-plastic-surgery,
.hero-pediatric-surgery,
.hero-radiology,
.hero-neonatal-intensive-care-unit {
  color: #fff;
  text-align: center;
}
.hero-gynaecology h1,
.hero-cardiology h1,
.hero-orthopaedics h1,
.hero-nephrology h1,
.hero-gastroenterology h1,
.hero-general-surgery h1,
.hero-general-medicine h1,
.hero-urology h1,
.hero-ent h1,
.hero-ophthalmology h1,
.hero-dermatology h1,
.hero-physiotherapy h1,
.hero-dentistry h1,
.hero-pulmonology h1,
.hero-rheumatology h1,
.hero-plastic-surgery h1,
.hero-pediatric-surgery h1,
.hero-radiology h1,
.hero-neonatal-intensive-care-unit h1 {
  margin-bottom: 1rem;
  color: #fff;
}
.hero-gynaecology .subtitle,
.hero-cardiology .subtitle,
.hero-orthopaedics .subtitle,
.hero-nephrology .subtitle,
.hero-gastroenterology .subtitle,
.hero-general-surgery .subtitle,
.hero-general-medicine .subtitle,
.hero-urology .subtitle,
.hero-ent .subtitle,
.hero-ophthalmology .subtitle,
.hero-dermatology .subtitle,
.hero-physiotherapy .subtitle,
.hero-dentistry .subtitle,
.hero-pulmonology .subtitle,
.hero-rheumatology .subtitle,
.hero-plastic-surgery .subtitle,
.hero-pediatric-surgery .subtitle,
.hero-radiology .subtitle,
.hero-neonatal-intensive-care-unit .subtitle {
  font-size: 1.15rem;
  opacity: .92;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTAs */
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-bottom: 2rem;
}
.hero-ctas .btn { padding: .75rem 1.6rem; font-size: .95rem; }
.hero-ctas .btn-outline {
  color: #fff; border-color: #fff;
}
.hero-ctas .btn-outline:hover {
  background: #fff; color: var(--forest);
}

/* Trust badges */
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem;
  justify-content: center; font-size: .9rem; font-weight: 500;
  max-width: 900px; margin: 0 auto;
}
.trust-badges span {
  display: inline-flex; align-items: center; gap: .4rem;
  opacity: .95;
}
.trust-badges span i { color: var(--olive-light); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb-premium {
  font-size: .85rem; color: var(--sage-text); font-weight: 500;
  padding: 1.5rem 0 .5rem;
}
.breadcrumb-premium a { color: var(--forest); }
.breadcrumb-premium a:hover { text-decoration: underline; }
.breadcrumb-premium span { margin: 0 6px; color: #b3bdaa; }

/* ---------- QUICK FACTS BLOCK ---------- */
.quick-facts {
  background: linear-gradient(145deg, #f5f8f2, #eaf1e6);
  border: 1px solid #dfe9d9;
  border-left: 4px solid var(--forest);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 2rem;
}
.quick-facts .fact {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .93rem; color: var(--ink);
}
.quick-facts .fact .fact-icon {
  font-size: 1.1rem; color: var(--forest); flex-shrink: 0;
  line-height: 1.3;
}
.quick-facts .fact strong {
  display: block; color: var(--forest); font-weight: 700;
  font-size: .78rem; text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .15rem;
}

/* ---------- ABOUT INTRO ---------- */
.about-department-intro {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}
.about-department-intro p:last-child { margin-bottom: 0; }
.about-department-intro strong { color: var(--forest); }

/* ---------- SECTION HEADINGS ---------- */
.section-padding h2 {
  color: var(--forest);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: .6rem;
  text-align: center;
}
.section-padding h2::after {
  content: ''; position: absolute;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--forest), var(--olive));
}

/* ---------- WHAT WE TREAT ---------- */
.treat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.treat-item {
  background: #fff;
  border: 1px solid #e2e8df;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-weight: 500;
  color: var(--ink);
  font-size: .95rem;
  display: flex;
  align-items: center;
  transition: all .25s var(--ease);
}
.treat-item::before {
  content: '\2713';
  color: var(--success);
  font-weight: 700;
  margin-right: .6rem;
  flex-shrink: 0;
}
.treat-item:hover {
  transform: translateY(-3px);
  border-color: var(--forest);
  box-shadow: var(--shadow-md);
}
.treat-note {
  text-align: center;
  font-style: italic;
  color: var(--sage-text);
  margin-top: 1.5rem;
  font-size: .95rem;
}

/* ---------- DOCTORS (department cards) ---------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.4rem;
  text-align: center;
  transition: all .35s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--forest);
}
.doctor-card img {
  width: 120px; height: 120px;
  object-fit: cover; object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--olive-light);
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(45,74,43,.12);
}
.doctor-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--forest);
  margin-bottom: .2rem;
}
.doctor-card .doctor-specialty {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--sage);
  margin-bottom: .4rem;
}
.doctor-card .doctor-qual {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .6rem;
  font-weight: 600;
}
.doctor-card .doctor-about {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--sage-text);
  margin-bottom: 1rem;
  flex: 1;
}
.doctor-card .btn-view-profile {
  padding: .55rem 1.3rem;
  font-size: .85rem;
  border-radius: 30px;
  margin-top: auto;
}

/* ---------- TREATMENT PROCESS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.process-step {
  background: #fff;
  padding: 1.8rem 1.4rem;
  border-radius: var(--radius);
  text-align: center;
  border-left: 4px solid var(--forest);
  transition: all .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--forest);
  color: #fff;
  width: 40px; height: 40px;
  line-height: 1;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.process-step h4 {
  color: var(--forest);
  margin-bottom: .5rem;
  font-size: 1.05rem;
}
.process-step p {
  color: var(--sage-text);
  font-size: .9rem;
  line-height: 1.6;
  margin: 0;
}
.process-note {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 500;
  color: var(--forest);
  background: #e9f4f1;
  padding: .85rem 1.5rem;
  border-radius: 40px;
  font-size: .92rem;
}

/* ---------- FACILITIES ---------- */
.facilities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding: 0;
}
.facilities-list li {
  font-size: 1rem;
  padding: .9rem 0;
  border-bottom: 1px dashed #e2e8e6;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.facilities-list li i {
  color: var(--forest);
  font-size: 1.15rem;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

/* ---------- WHY US ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.why-card {
  background: #fff;
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid #e9eeec;
  transition: all .3s var(--ease);
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--forest);
}
.why-card .icon {
  font-size: 2.2rem;
  color: var(--forest);
  margin-bottom: .8rem;
}
.why-card h4 {
  color: var(--forest);
  margin-bottom: .5rem;
  font-size: 1.05rem;
}
.why-card p {
  color: var(--sage-text);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 2rem auto 0;
}
.faq-item {
  background: #fff;
  border: 1px solid #e2e8e6;
  border-radius: 12px;
  margin-bottom: .75rem;
  padding: 0 1.3rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item:hover { border-color: var(--olive); box-shadow: var(--shadow-sm); }
.faq-item[open] { border-color: var(--forest); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 1.1rem 0;
  font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--forest);
  line-height: 1;
  margin-left: 12px;
  flex-shrink: 0;
  font-weight: 300;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-item .faq-answer {
  padding: 0 0 1.3rem;
  color: var(--sage-text);
  line-height: 1.75;
  font-size: .95rem;
}

/* ---------- APPOINTMENT FORM ---------- */
.appointment-form-section form {
  max-width: 620px;
  margin: 2rem auto 0;
  background: #f9fbfa;
  padding: 2rem 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.appointment-form-section .form-group { margin-bottom: 1.1rem; }
.appointment-form-section .form-group label {
  display: block;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: .35rem;
  font-size: .9rem;
}
.appointment-form-section .form-group input,
.appointment-form-section .form-group select,
.appointment-form-section .form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid #d0dcd7;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  transition: border .2s var(--ease), box-shadow .2s var(--ease);
  outline: none;
}
.appointment-form-section .form-group input:focus,
.appointment-form-section .form-group select:focus,
.appointment-form-section .form-group textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45,74,43,.12);
}
.appointment-form-section .form-group textarea { resize: vertical; min-height: 80px; }
.appointment-form-section button[type="submit"] {
  width: 100%;
  margin-top: .5rem;
  padding: 1rem;
  font-size: 1.05rem;
}

/* ---------- FLOATING WHATSAPP ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.floating-whatsapp:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(37,211,102,.5); }
.floating-whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--forest), #233a1c);
  color: var(--ivory);
  position: relative;
  padding-top: 3rem;
  margin-top: 3rem;
}
.footer-wave { position: absolute; top: -2px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.footer-wave svg { width: 100%; height: 50px; display: block; }
.footer-wave path { fill: var(--ivory); }
.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: .8rem;
  color: var(--ivory);
}
.footer-col h3 strong { color: var(--olive-light); }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: .8rem;
  color: var(--olive-light);
}
.footer-col p {
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  margin-bottom: .5rem;
  line-height: 1.6;
}
.footer-col a {
  color: var(--ivory);
  opacity: .92;
  text-decoration: none;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; color: var(--ivory); }
.footer-col i {
  color: var(--olive-light);
  margin-right: .4rem;
  font-size: .9rem;
  width: 16px;
  text-align: center;
}
.footer-links { padding: 0; }
.footer-links li { margin-bottom: .35rem; font-size: .9rem; }
.social-icons { display: flex; gap: .7rem; margin-top: .8rem; }
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: var(--ivory);
  transition: all .3s var(--ease);
  text-decoration: none;
}
.social-icons a:hover {
  background: var(--olive-light);
  color: var(--forest);
  transform: translateY(-3px) rotate(-4deg);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding: 1.4rem 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
}
.footer-bottom a { color: var(--olive-light); }

/* ---------- SCROLL REVEAL ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .doctors-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  /* Mobile safety */
  html, body { max-width: 100%; overflow-x: hidden; }
  img, svg, video, iframe { max-width: 100%; }
  input, select, textarea, button { max-width: 100%; box-sizing: border-box; }
  button, .btn, .hamburger { min-height: 44px; }
  .container { width: 100%; max-width: 100%; padding: 0 1rem; }

  /* Section spacing */
  .section-padding { padding: 2.5rem 0; }

  /* Header stack */
  .site-header { padding: .6rem 0; }
  .header-inner { gap: .3rem; }
  .logo-text { font-size: 1.05rem; }
  .logo-img { height: 34px; }
  .header-actions { gap: .3rem; }

  /* Emergency badge becomes round icon */
  .emergency-badge {
    padding: .4rem;
    border-radius: 50%;
    font-size: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .emergency-badge svg { width: 20px; height: 20px; }
  .emergency-badge span { display: none; }

  /* Book button becomes round icon */
  .btn-book {
    font-size: 0 !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  .btn-book::before {
    content: "\1F4C5";
    font-size: 1.15rem;
    display: inline-block;
  }

  /* Hamburger visible */
  .hamburger {
    display: flex !important;
    padding: 6px !important;
    min-width: 40px;
    align-items: center;
    justify-content: center;
  }
  .hamburger-line { width: 22px; }

  /* Mobile nav overlay */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav .nav-list {
    flex-direction: column;
    padding: 1rem 2rem;
    gap: .4rem;
  }
  .main-nav .nav-link {
    display: block;
    padding: .85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  /* Hero */
  .hero-gynaecology h1,
  .hero-cardiology h1,
  .hero-orthopaedics h1,
  .hero-nephrology h1,
  .hero-gastroenterology h1,
  .hero-general-surgery h1,
  .hero-general-medicine h1,
  .hero-urology h1,
  .hero-ent h1,
  .hero-ophthalmology h1,
  .hero-dermatology h1,
  .hero-physiotherapy h1,
  .hero-dentistry h1,
  .hero-pulmonology h1,
  .hero-rheumatology h1,
  .hero-plastic-surgery h1,
  .hero-pediatric-surgery h1,
  .hero-radiology h1,
  .hero-neonatal-intensive-care-unit h1 { font-size: 1.85rem; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .trust-badges { gap: .8rem 1.2rem; font-size: .85rem; }

  /* Grids to single column */
  .treat-grid,
  .doctors-grid,
  .process-steps,
  .facilities-list,
  .why-grid { grid-template-columns: 1fr; }

  /* Doctor cards narrower image */
  .doctor-card img { width: 100px; height: 100px; }

  /* FAQ */
  .faq-item { padding: 0 1rem; }
  .faq-item summary { font-size: .94rem; padding: 1rem 0; }

  /* Form */
  .appointment-form-section form { padding: 1.5rem 1.2rem; }

  /* Footer stack */
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .footer-col i { margin-right: .35rem; }
  .social-icons { justify-content: center; }

  /* Floating WhatsApp */
  .floating-whatsapp { width: 52px; height: 52px; bottom: 20px; left: 20px; }
  .floating-whatsapp svg { width: 26px; height: 26px; }

  /* Back to top smaller */
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .container { padding: 0 .9rem; }
  .quick-facts { padding: 1.1rem 1.2rem; }
  .about-department-intro { padding: 1.2rem 1.2rem; }
  .section-padding h2::after { width: 45px; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .hamburger, .floating-whatsapp, .back-to-top,
  .reading-progress, .footer-wave, .appointment-form-section,
  .hero-ctas, .social-icons { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .site-footer { background: #fff; color: #000; border-top: 1px solid #ccc; padding-top: 1rem; }
  .footer-col a, .footer-col p, .footer-col i { color: #000 !important; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .emergency-badge { animation: none !important; }
}
