/* ── SHARED.CSS — Hameeda Tajamal Trust Hospital ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:       #0f2137;
  --teal:       #0e7c7b;
  --teal-light: #12a09f;
  --gold:       #c9a84c;
  --red:        #dc2626;
  --gray:       #6b7280;
  --light:      #f8f9fb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'DM Sans', sans-serif; color: var(--navy); background: #fff; }

/* prevent any element/image from forcing horizontal overflow on mobile */
img { max-width: 100%; }

/* ── TOP INFO BAR ── */
.top-info-bar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 40px;
  font-size: 12px;
  gap: 12px;
}
.tib-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tib-left a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.tib-left a:hover { color: #fff; }
.tib-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tib-link { color: rgba(255,255,255,.75); text-decoration: none; font-size: 12px; transition: color .2s; cursor:pointer; }
.tib-link:hover { color: #fff; }
.tib-sep { color: rgba(255,255,255,.2); }
.tib-complaint { color: #fca5a5; font-size: 12px; text-decoration: none; transition: color .2s; }
.tib-complaint:hover { color: #fff; }

/* ── MAIN NAV ──
   (the nav contents + responsive hamburger are injected by shared.js;
    these base rules style the <nav> shell only) */
nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 36px 40px;
  font-size: 13px;
}
footer img { height: 48px; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; }
.f-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.f-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; transition: color .2s; }
.f-links a:hover { color: #fff; }
.f-contact { text-align: right; font-size: 13px; line-height: 1.8; }

@media (max-width: 900px) {
  nav { padding: 0 16px; height: 64px; }
}

@media (max-width: 768px) {
  .top-info-bar {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 11px;
    text-align: center;
  }
  .tib-left, .tib-right { justify-content: center; gap: 10px; }
  footer { padding: 24px 16px; flex-direction: column; align-items: flex-start; }
  .f-contact { text-align: left; }
}

@media (max-width: 440px) {
  /* on very small phones, drop the "|" separators in the top bar so it stays clean */
  .top-info-bar .tib-sep { display: none; }
}