:root {
  --navy: #002070;
  --navy-2: #00165a;
  --lime: #03fc17;
  --lime-dark: #238a08;
  --teal: var(--lime-dark);
  --blue: var(--navy);
  --red: #c92f3f;
  --soft: #f5f9f3;
  --ink: #213244;
  --muted: #66778a;
  --line: #dfe9dc;
  --shadow: 0 18px 45px rgba(0, 32, 112, 0.12);
}

body {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--teal); }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 9999; }
.skip-link:focus { left: 10px; background: #fff; padding: .75rem 1rem; border-radius: .5rem; }

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: .9rem;
  padding: .55rem 0;
}
.topbar a { color: #fff; }

.main-nav {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 28px rgba(0, 32, 112, .08);
  backdrop-filter: blur(12px);
}
.navbar-brand img { object-fit: contain; }
.navbar-brand span { color: var(--navy); line-height: 1.05; display: grid; }
.navbar-brand small { font-size: .78rem; color: var(--teal); font-weight: 700; letter-spacing: 0; }
.nav-link { color: var(--navy); font-weight: 700; font-size: .95rem; }
.nav-link.active, .nav-link:hover { color: var(--teal); }

.btn {
  border-radius: 999px;
  font-weight: 800;
  padding: .78rem 1.15rem;
}
.btn-primary { background: var(--navy); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-outline-primary { border-color: var(--navy); color: var(--navy); }
.btn-outline-primary:hover { background: var(--navy); border-color: var(--navy); }
.btn-emergency, .btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-emergency:hover, .btn-danger:hover { background: #a72432; border-color: #a72432; color: #fff; }
.btn-teal { background: var(--lime-dark); border-color: var(--lime-dark); color: #fff; }
.btn-teal:hover { background: #1b6f05; border-color: #1b6f05; color: #fff; }

.hero {
  background:
    linear-gradient(90deg, rgba(0,32,112,.94) 0%, rgba(0,32,112,.8) 48%, rgba(0,32,112,.3) 100%),
    url("../img/hero/hospital-exterior.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 720px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-inner { max-width: 760px; padding: 5rem 0 7rem; }
.hero h1, .page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 5.3rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}
.hero h1 { color: #fff; }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.9); max-width: 680px; }
.hero-panel {
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-top: -4rem;
  position: relative;
  z-index: 2;
}
.trust-item { display: flex; align-items: center; gap: .65rem; font-weight: 800; color: var(--navy); }
.trust-item i { color: var(--teal); font-size: 1.35rem; }

section { padding: 5.5rem 0; }
.section-soft { background: var(--soft); }
.section-title { max-width: 760px; margin-bottom: 2.25rem; }
.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .08em;
  margin-bottom: .55rem;
}
h1, h2, h3, h4 { color: var(--navy); font-weight: 900; letter-spacing: 0; }
h2 { font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1.1; }
.lead { color: var(--muted); }

.page-hero {
  background:
    linear-gradient(90deg, rgba(0,32,112,.94), rgba(0,32,112,.74)),
    url("../img/hero/doctor.jpg") center/cover no-repeat;
  color: #fff;
  padding: 5rem 0;
}
.page-hero h1, .page-hero .lead { color: #fff; }
.page-hero .lead { max-width: 800px; opacity: .92; }

.card-soft {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 32, 112, .08);
  background: #fff;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(3,252,23,.14);
  color: var(--lime-dark);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.service-card a.stretched-link { color: inherit; }
.service-card h3 { font-size: 1.2rem; }

.image-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.image-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .65rem; margin-bottom: .85rem; }
.check-list i { color: var(--teal); flex: 0 0 auto; }

.contact-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 3.25rem 0;
}
.contact-band h2, .contact-band p { color: #fff; }

.map-placeholder iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.text-info { color: var(--lime-dark) !important; }

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.provider-logo {
  min-height: 7.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .65rem;
  padding: 1rem .75rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.provider-logo:hover {
  color: var(--navy);
  border-color: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 32, 112, .1);
}
.provider-logo img {
  width: 92px;
  height: 46px;
  object-fit: contain;
}

.form-control, .form-select {
  border-radius: 8px;
  padding: .85rem 1rem;
  border-color: #cfdce6;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 .2rem rgba(3,252,23,.18);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.site-footer {
  background: #061a30;
  color: rgba(255,255,255,.78);
  padding: 4.5rem 0 2rem;
}
.footer-logo { width: 92px; height: auto; background: #fff; border-radius: 8px; padding: .4rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.social-links { display: flex; gap: .65rem; }
.social-links a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.1);
}
.contact-list li { display: flex; gap: .6rem; align-items: start; }
.contact-list i { color: var(--teal); margin-top: .25rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 3rem;
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .92rem;
}

.floating-whatsapp, .back-to-top {
  position: fixed;
  right: 1.1rem;
  z-index: 999;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.floating-whatsapp { bottom: 5.2rem; background: #25d366; color: #fff; font-size: 1.45rem; }
.back-to-top {
  bottom: 1.35rem;
  border: 0;
  background: var(--navy);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.mobile-call {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: .75rem;
  z-index: 1000;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  text-align: center;
  padding: .85rem 1rem;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 991.98px) {
  .hero { min-height: auto; background-position: center; }
  .hero-inner { padding: 4rem 0 6rem; }
  .hero-panel { margin-top: -3rem; }
  .navbar-nav { padding: 1rem 0; gap: .25rem; }
  section { padding: 4rem 0; }
}

@media (max-width: 575.98px) {
  body { padding-bottom: 4.75rem; }
  .topbar { font-size: .82rem; }
  .hero h1, .page-hero h1 { font-size: 2.45rem; }
  .hero p { font-size: 1.02rem; }
  .hero .btn { width: 100%; }
  .mobile-call { display: block; }
  .floating-whatsapp { bottom: 5rem; }
  .back-to-top { display: none; }
}
