﻿:root {
  --primary: #0A4D8C;
  --secondary: #2FB4A6;
  --background: #F7FAFC;
  --text: #333333;
  --muted: #667085;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(10, 77, 140, 0.12);
  --shadow-hover: 0 16px 34px rgba(10, 77, 140, 0.18);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef6ff 0%, var(--background) 35%, #f8fbff 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(92%, var(--container)); margin-inline: auto; }
.section { padding: 72px 0; }
.section-title {
  margin: 0 0 12px;
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}
.section-subtitle { margin: 0 0 28px; color: var(--muted); max-width: 760px; }

.topbar {
  background: var(--primary);
  color: #eaf4ff;
  font-size: 0.92rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(247, 250, 252, 0.96);
  border-bottom: 1px solid rgba(10, 77, 140, 0.12);
}
.navbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.brand-logo {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--white);
  padding: 3px;
  box-shadow: 0 6px 14px rgba(10, 77, 140, 0.12);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 14px;
}
.nav-menu a { font-weight: 500; color: #1f2937; transition: color 0.2s ease; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(10, 77, 140, 0.2);
  border-radius: 10px;
  background: var(--white);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  margin: 4px auto;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  background: rgba(10, 77, 140, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.84rem;
  padding: 6px 12px;
}

.hero { padding: 82px 0 54px; }
.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}
.hero h1 {
  margin: 10px 0 12px;
  font-family: 'Poppins', sans-serif;
  color: #072f56;
  line-height: 1.16;
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.hero p { margin: 0 0 22px; color: #4b5563; }
.hero-media {
  min-height: 380px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.stat {
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 10px 14px;
  box-shadow: 0 8px 18px rgba(10, 77, 140, 0.11);
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid rgba(10, 77, 140, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3, .card h4 {
  margin: 0 0 10px;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: var(--white) !important;
  background: linear-gradient(120deg, var(--primary), #1a69b4);
  box-shadow: var(--shadow);
}
.btn-secondary { color: #0a6f66; background: rgba(47, 180, 166, 0.18); }
.btn-outline {
  color: var(--primary);
  border: 1px solid rgba(10, 77, 140, 0.25);
  background: transparent;
}

.emergency-banner,
.cta {
  border-radius: 20px;
  color: var(--white);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow);
  background: linear-gradient(110deg, #0a3e70, var(--primary) 55%, var(--secondary));
}

.form-card { background: #eef6ff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: block; margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 11px 12px;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }

.feature-image,
.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 12px;
}
.doctor-photo.portrait { aspect-ratio: 3 / 4; }
.doctor-card { overflow: hidden; }
.doctor-card .doctor-photo { transition: transform 0.35s ease; }
.doctor-card:hover .doctor-photo { transform: scale(1.05); }

.department-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 1.35rem;
  color: #0c6f66;
  background: rgba(47, 180, 166, 0.16);
  transition: transform 0.25s ease, background 0.25s ease;
}
.department-card:hover .icon-wrap {
  transform: rotate(-8deg) scale(1.06);
  background: rgba(47, 180, 166, 0.3);
}

.quote-card { border-left: 4px solid rgba(47, 180, 166, 0.8); font-style: italic; }
.map-wrap iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 14px;
}

.contact-link {
  color: #d7e7f7;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-contact-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer { margin-top: 56px; background: #072e53; color: #d7e7f7; }
.footer-grid {
  padding: 54px 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-title {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  color: var(--white);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 0 20px;
  text-align: center;
  font-size: 0.9rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .brand-logo {
    height: 70px;
  }

  .hero-wrap,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(330px, 92vw);
    padding: 16px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.25s ease;
  }
  .nav-menu.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .footer-grid,
  .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .topbar .container { justify-content: center; text-align: center; }
  .cta,
  .emergency-banner { padding: 18px; }
}

.floating-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  font-size: 22px;
}

.float-call {
  background: #0A4D8C;
}

.float-wa {
  background: #25D366;
}

.float-wa img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .floating-contact {
    right: 12px;
    bottom: 12px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}
