/* ============================================================
   City Hospital — styles
   ============================================================ */
:root {
  --teal-900: #0b3d40;
  --teal-700: #0f6d72;
  --teal-600: #128a90;
  --teal-500: #16a6ad;
  --teal-050: #e6f6f7;
  --accent: #f0a500;
  --ink: #16324f;
  --slate: #5b6b7b;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-soft: #f5f9fa;
  --bg-dark: #0b3d40;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 61, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 61, 64, 0.16);
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --head: "Poppins", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--teal-600); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 600; color: var(--teal-600); margin: 0 0 .5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .85rem 1.5rem; border-radius: 50px;
  font-weight: 600; font-family: var(--head); font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--accent); color: #3a2a00; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(240,165,0,.35); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff; border-radius: 12px; font-size: 1.3rem; font-weight: 700;
  box-shadow: 0 6px 14px rgba(18,138,144,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--head); font-size: 1.18rem; color: var(--ink); }
.brand-text small { color: var(--slate); font-size: .72rem; }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.main-nav a:not(.nav-cta):hover { color: var(--teal-600); }
.nav-cta { background: var(--teal-600); color: #fff !important; padding: .6rem 1.1rem; border-radius: 50px; }
.nav-cta:hover { background: var(--teal-700); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-600));
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(240,165,0,.18), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(22,166,173,.35), transparent 50%);
}
.hero-inner { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 22px clamp(3rem, 6vw, 5rem); max-width: var(--maxw); margin: 0 auto; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero-sub { font-size: 1.12rem; max-width: 55ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 2.6rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 620px; }
.stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm); padding: 1rem; text-align: center;
}
.stat-num { display: block; font-family: var(--head); font-size: 1.7rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.85); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-lead { color: var(--slate); font-size: 1.05rem; }

/* ---------- Cards grid (services) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal-050); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem;
  background: var(--teal-050); border-radius: 14px; margin-bottom: 1rem;
}
.card h3 { font-size: 1.12rem; }
.card p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Doctors ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.doctor-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.4rem; text-align: center; box-shadow: var(--shadow); transition: .25s ease;
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-avatar {
  width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.5rem;
  color: #fff; background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  box-shadow: 0 8px 18px rgba(18,138,144,.35);
}
.doctor-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.doctor-desig { color: var(--teal-700); font-weight: 600; font-size: .92rem; margin: 0 0 .3rem; }
.doctor-qual { color: var(--slate); font-size: .85rem; margin: 0 0 1rem; }
.doctor-meta { display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.tag { background: var(--teal-050); color: var(--teal-700); padding: .3rem .8rem; border-radius: 50px; font-size: .8rem; font-weight: 600; }
.exp { color: var(--slate); font-size: .82rem; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.filter-btn {
  background: #fff; border: 1px solid var(--line); color: var(--slate);
  padding: .5rem 1.1rem; border-radius: 50px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: .2s;
}
.filter-btn:hover { border-color: var(--teal-500); color: var(--teal-700); }
.filter-btn.active { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  position: relative; margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3; box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .8rem;
  color: #fff; font-size: .85rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(11,61,64,.85));
  transform: translateY(6px); opacity: 0; transition: .25s;
}
.gallery-item:hover figcaption { transform: translateY(0); opacity: 1; }

/* ---------- Administration ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 900px; margin: 0 auto; }
.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: center; box-shadow: var(--shadow); transition: .25s ease;
}
.admin-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.admin-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--teal-050); }
.admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.admin-card h3 { font-size: 1.12rem; margin: 1rem 0 .2rem; }
.admin-card p { color: var(--teal-700); font-weight: 600; margin: 0 0 1.2rem; }

/* ---------- Compliance ---------- */
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.compliance-card {
  display: flex; gap: 1rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow); transition: .25s;
}
.compliance-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.compliance-thumb { width: 72px; height: 72px; flex: none; border-radius: var(--radius-sm); overflow: hidden; }
.compliance-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compliance-thumb--icon { display: grid; place-items: center; font-size: 1.8rem; background: var(--teal-050); }
.compliance-body h3 { font-size: 1rem; margin-bottom: .4rem; }
.badge { display: inline-block; background: #e7f7ec; color: #1c7a41; padding: .25rem .7rem; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.compliance-link { display: block; margin-top: .5rem; font-size: .82rem; font-weight: 600; color: var(--teal-700); }
.compliance-link::after { content: " ↗"; }
.compliance-link:hover { text-decoration: underline; }

/* ---------- Page banner (sub-pages) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-600));
  color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.page-banner .eyebrow { color: var(--accent); }
.page-banner h1 { color: #fff; margin: 0 0 .4rem; }
.page-banner-sub { color: rgba(255,255,255,.9); font-size: 1.05rem; max-width: 55ch; margin: 0; }
.main-nav a.active { color: var(--teal-600); font-weight: 600; }

/* ---------- Updates & News ---------- */
.updates-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.updates-list { display: grid; gap: 1.4rem; max-width: 900px; margin: 0 auto; }
.updates-empty { text-align: center; color: var(--slate); }
.update-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow); transition: .25s ease;
  overflow: hidden; max-width: 100%;
}
.update-card:hover { box-shadow: var(--shadow-lg); }
.update-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.update-cat {
  background: var(--teal-050); color: var(--teal-700); padding: .25rem .8rem;
  border-radius: 50px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.update-date { color: var(--slate); font-size: .85rem; }
.update-card h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.update-desc { color: var(--slate); margin: 0 0 1rem; }

.update-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.update-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 420px; }
.update-table th, .update-table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.update-table thead th { background: var(--teal-600); color: #fff; font-family: var(--head); font-weight: 600; position: sticky; top: 0; }
.update-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.update-table tbody tr:hover { background: var(--teal-050); }

/* ---------- Contact ---------- */
.section-dark { background: linear-gradient(135deg, var(--teal-900), var(--teal-700)); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,.85); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.92); }
.contact-list a { color: #fff; }
.contact-list span { font-size: 1.2rem; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: .95rem; color: var(--ink);
  background: #fff; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-050);
}
.form-note { margin: .8rem 0 0; font-size: .88rem; min-height: 1em; }
.form-note.error { color: #c0392b; }
.form-note.success { color: #1c7a41; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.85); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem; padding: 3rem 22px 2rem; }
.brand-footer .brand-text strong { color: #fff; }
.footer-tag { max-width: 32ch; color: rgba(255,255,255,.7); margin: 1rem 0 0; font-size: .92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.footer-links a { color: rgba(255,255,255,.8); font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; }
.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(255,255,255,.65); text-align: center; }
.footer-bottom a { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(6,30,32,.92); padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox-figure img { max-width: 90vw; max-height: 78vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-figure figcaption { color: #fff; margin-top: .8rem; font-size: .95rem; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: 0;
  color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.14); border: 0; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; transition: .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-grid, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: .5rem 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a { padding: .9rem 22px; border-bottom: 1px solid var(--bg-soft); }
  .nav-cta { margin: .5rem 22px; text-align: center; border-radius: 50px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cards-grid, .doctors-grid, .gallery, .compliance-grid, .admin-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}
