﻿* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--color-text);
  background: radial-gradient(circle at 15% 10%, #ffffff 0%, var(--color-bg) 48%, #eaf2ff 100%);
  line-height: 1.6;
}
body.about-page,
body.home-page {
  background:
    linear-gradient(rgba(244, 248, 255, 0.9), rgba(244, 248, 255, 0.9)),
    url("assets/logo_text.jpg") center 120px / min(720px, 82vw) auto no-repeat fixed,
    radial-gradient(circle at 15% 10%, #ffffff 0%, var(--color-bg) 48%, #eaf2ff 100%);
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}
.topbar {
  background: var(--color-primary-dark);
  color: var(--color-surface);
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.topbar a {
  text-decoration: underline;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}
[data-shared-header] {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  transition: box-shadow 0.32s ease, border-bottom-color 0.32s ease;
}
[data-shared-header].is-scrolled .header {
  box-shadow: 0 6px 28px rgba(17, 58, 125, 0.13);
  border-bottom-color: #b8cfee;
}
.header-announcement {
  width: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, var(--color-primary-dark), #1a4f9f);
  color: var(--color-surface);
  white-space: nowrap;
}
.header-announcement-track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  padding: 8px 0;
  animation: headerMarquee 18s linear infinite;
  flex: 1;
  overflow: hidden;
}
/* ── Header social icons ── */
.header-social {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  flex-shrink: 0;
}
.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.25s, transform 0.25s;
}
.header-social-link:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.12);
}
.header-social-link svg {
  width: 15px;
  height: 15px;
}
.announcement-icon {
  font-size: 1rem;
  padding-left: 100vw;
}
.announcement-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary-dark);
}
.brand-logo {
  display: block;
  height: 54px;
  width: auto;
  object-fit: contain;
}
.brand-text {
  font-size: clamp(1.3rem, 2.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.brand-medstar {
  color: #d13e30;
}
.brand-hospitals {
  color: #60ab9e;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.nav-links a:not(.btn) {
  position: relative;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--color-text-muted);
  transition: color 0.22s ease, background 0.22s ease;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), #38bdf8);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-links a:not(.btn):hover {
  color: var(--color-primary-dark);
  background: rgba(31, 95, 191, 0.07);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.is-active:not(.btn)::after {
  transform: scaleX(1);
}
.nav-links a.is-active:not(.btn) {
  color: var(--color-primary-dark);
}
.nav-cta {
  margin-left: 10px;
  font-size: 0.88rem;
  padding: 9px 18px;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.nav-hamburger:hover {
  border-color: var(--color-primary);
  background: rgba(31, 95, 191, 0.07);
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primary-dark);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.22s ease,
              width 0.22s ease;
}
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 860px) {
  .nav-hamburger {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 18px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 18px 36px rgba(17, 58, 125, 0.15);
    z-index: 999;
  }
  .nav-links.is-open {
    display: flex;
    animation: mobileNavDrop 0.26s cubic-bezier(0.25, 1, 0.5, 1) both;
  }
  .nav-links a:not(.btn) {
    padding: 11px 14px;
    font-size: 0.97rem;
    border-radius: 10px;
  }
  .nav-links a:not(.btn)::after {
    display: none;
  }
  .nav-links a.is-active:not(.btn) {
    background: rgba(31, 95, 191, 0.09);
    color: var(--color-primary-dark);
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    align-self: flex-start;
  }
  @keyframes mobileNavDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #2a74df);
  color: var(--color-surface);
  box-shadow: 0 10px 22px rgba(31, 95, 191, 0.32);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9, 25, 52, 0.8) 0%, rgba(8, 35, 76, 0.58) 45%, rgba(10, 44, 90, 0.62) 100%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, rgba(56, 189, 248, 0) 70%);
  filter: blur(4px);
  z-index: -1;
  animation: heroGlow 6s ease-in-out infinite alternate;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
  animation: fadeUp 0.9s ease both;
}
.hero-kicker {
  margin: 0 0 8px;
  color: #f2f2f2;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.18;
  color: #ffffff;
}
.hero p {
  color: #e5e5e5;
  margin: 14px 0 24px;
}
.hero .mini-card p {
  color: var(--color-text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .hero-actions .btn,
.hero .hero-actions .btn-primary,
.hero .hero-actions .btn-outline {
  background: #ffffff;
  color: #111111;
  border: 1px solid #111111;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.hero .hero-actions .btn:hover,
.hero .hero-actions .btn-primary:hover,
.hero .hero-actions .btn-outline:hover {
  background: #f3f3f3;
  color: #111111;
  transform: translateY(-2px);
}
.hero-cards {
  display: grid;
  gap: 12px;
}
.mini-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 12px;
  padding: 15px 16px;
  box-shadow: 0 14px 28px rgba(15, 37, 74, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 37, 74, 0.26);
}
.mini-card h4 {
  margin: 0 0 4px;
  color: var(--color-primary-dark);
}
.mini-card-accent {
  border-left-color: var(--color-accent);
}
.quick-actions {
  padding: 22px 0 22px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}
.quick-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 16px;
  box-shadow: 0 10px 24px rgba(16, 47, 96, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.quick-card:hover {
  transform: translateY(-4px);
  border-color: #b9d3f7;
  box-shadow: 0 18px 36px rgba(16, 47, 96, 0.17);
}
.quick-card h4 {
  margin: 0 0 4px;
  color: var(--color-primary-dark);
}
.quick-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.section {
  padding: 52px 0;
}
.section-title {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: var(--color-primary-dark);
}
.section-subtitle {
  margin: 0 0 26px;
  color: var(--color-text-muted);
}
.specialty-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.tab {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-surface);
}
.grid {
  display: grid;
  gap: 16px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 45, 98, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#specialties .card {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
#specialties .card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -4px;
  width: 6px;
  height: calc(100% - 24px);
  border-radius: 999px;
  z-index: -1;
  opacity: 0.95;
  background: linear-gradient(180deg, #ff0f7b 0%, #f89b29 100%);
  box-shadow: 0 10px 18px rgba(248, 155, 41, 0.35);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
#specialties .card:hover::after {
  transform: translateX(2px);
  opacity: 1;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 45, 98, 0.16);
}
.card h3,
.card h4 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}
.google-reviews {
  padding-top: 24px;
}
.reviews-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.review-cta-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 45, 98, 0.1);
}
.review-cta-card h4 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}
.review-cta-card p {
  margin: 0;
  color: var(--color-text-muted);
}
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.hospital-directions {
  padding-top: 20px;
}
.directions-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(16, 47, 96, 0.12);
}
.directions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.branch-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(16, 47, 96, 0.12);
}
.branch-card h4 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}
.branch-card p {
  margin: 0 0 12px;
  color: var(--color-text-muted);
}
.directions-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}
.directions-card h4 {
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}
.directions-card p {
  margin: 0 0 12px;
  color: var(--color-text-muted);
}
.map-wrapper {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 47, 96, 0.12);
  min-height: 360px;
}
.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.featured-doctor-home img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  object-position: center;
  background: #edf3fb;
  border-radius: 10px;
  margin-bottom: 12px;
}
.doctors-cta {
  margin: 6px 0 20px;
}
.featured-doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.featured-doctor-home {
  display: block;
  text-decoration: none;
  padding: 14px;
}
.featured-doctor-home h4 {
  margin-bottom: 10px;
}
.featured-doctor-home .doctor-brief {
  margin-bottom: 8px;
  line-height: 1.5;
}
.featured-doctor-home .doctor-role-highlight {
  font-weight: 800;
  color: var(--color-danger);
  margin-top: 6px;
  margin-bottom: 10px;
}
.featured-doctor-home .doctor-open-link {
  display: inline-block;
  font-weight: 700;
  color: var(--color-primary);
}
.featured-doctor-home:hover .doctor-open-link {
  text-decoration: underline;
}
#doctors {
  background: linear-gradient(140deg, #0c2550 0%, #163d84 55%, #0d2f6c 100%);
}
#doctors .section-title {
  color: #ffffff;
}
#doctors .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 34px;
}
.doctors-carousel-wrap {
  position: relative;
  padding: 0 36px;
}
.doctors-carousel-viewport {
  overflow: hidden;
  border-radius: 4px;
}
.doctors-carousel-track {
  display: flex;
  gap: 22px;
  transition: transform 0.52s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.dc-card {
  flex: 0 0 calc((100% - 44px) / 3);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}
.dc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34);
}
.dc-photo-wrap {
  position: relative;
  height: 210px;
  background: #d4e4f7;
  overflow: hidden;
  flex-shrink: 0;
}
.dc-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.42s ease;
}
.dc-card:hover .dc-photo {
  transform: scale(1.02);
}
.dc-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.65));
  pointer-events: none;
  z-index: 1;
}
.dc-photo-fallback {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-accent));
}
.dc-photo-fallback::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  z-index: 0;
}
.dc-photo-fallback::after {
  display: none;
}
.dc-dept-badge {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: auto;
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 24px);
  z-index: 2;
  background: rgba(10, 34, 82, 0.84);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 12px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  backdrop-filter: blur(6px);
}
.dc-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dc-name {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.3;
}
.dc-role {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dc-meta {
  margin: 0 0 8px;
  font-size: 0.79rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.dc-desc {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--color-text);
  line-height: 1.55;
  flex: 1;
}
.dc-link {
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.dc-link:hover {
  color: var(--color-primary-dark);
  gap: 8px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: background 0.22s ease, color 0.22s ease,
              transform 0.22s ease, box-shadow 0.22s ease;
}
.carousel-arrow:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 28px rgba(31, 95, 191, 0.44);
}
.carousel-arrow:disabled {
  opacity: 0.28;
  pointer-events: none;
}
.carousel-arrow-prev { left: 0; }
.carousel-arrow-next { right: 0; }
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
}
.carousel-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}
#doctors .doctors-cta {
  justify-content: center;
  margin-top: 30px;
}
#doctors .doctors-cta .btn-primary {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.54);
  color: #ffffff;
  backdrop-filter: blur(4px);
  box-shadow: none;
}
#doctors .doctors-cta .btn-primary:hover {
  background: #ffffff;
  color: var(--color-primary-dark);
  border-color: #ffffff;
  transform: translateY(-2px);
}
@media (max-width: 920px) {
  .doctors-carousel-wrap {
    padding: 0 30px;
  }
  .dc-card {
    flex: 0 0 calc((100% - 22px) / 2);
  }
}
@media (max-width: 600px) {
  .doctors-carousel-wrap {
    padding: 0 22px;
  }
  .dc-card {
    flex: 0 0 100%;
  }
  .carousel-arrow {
    width: 38px;
    height: 38px;
  }
}
.stats {
  background: linear-gradient(90deg, #123b7f, #2f7ce9);
  color: var(--color-surface);
}
.stats .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  text-align: center;
}
.stat h3 {
  margin: 0 0 2px;
  font-size: 2rem;
}
.cta {
  background: linear-gradient(130deg, #f7f7f7 30%, #ebebeb 100%);
}
.footer {
  background: linear-gradient(175deg, #0e2d60 0%, #091e43 100%);
  color: rgba(255, 255, 255, 0.82);
  position: relative;
}
.footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-highlight) 50%, var(--color-accent) 100%);
}
.footer-main {
  padding: 56px 0 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-brand-text {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #d1d5db;
  white-space: nowrap;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 22px;
  max-width: 300px;
}
.footer-emergency {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--color-accent);
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 280px;
}
.footer-emergency-svg {
  flex-shrink: 0;
  color: var(--color-accent);
}
.footer-emergency-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 3px;
}
.footer-emergency-number {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-emergency-number:hover {
  color: var(--color-highlight);
}
/* ── Footer social icons ── */
.footer-social {
  margin-top: 22px;
}
.footer-social-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 12px;
}
.footer-social-links {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
}
.footer-social-link:hover {
  transform: scale(1.15);
  border-color: transparent;
}
.footer-social-yt:hover  { background: #ff0000; color: #fff; }
.footer-social-ig:hover  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.footer-social-fb:hover  { background: #1877f2; color: #fff; }
.footer-social-th:hover  { background: #000; color: #fff; }
/* ── Footer bottom social ── */
.footer-bottom-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-bottom-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.25s, transform 0.25s;
}
.footer-bottom-social a:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
}
.footer-bottom-social svg {
  width: 16px;
  height: 16px;
}
.footer-col-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0px;
  transition: color 0.2s, gap 0.2s;
}
.footer-links a::before {
  content: '›';
  font-size: 1.1rem;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.2s, width 0.2s;
}
.footer-links a:hover {
  color: #fff;
  gap: 6px;
}
.footer-links a:hover::before {
  opacity: 1;
  width: 12px;
}
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-item a:hover {
  color: #fff;
}
.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.85);
}
.footer-credits strong {
  color: rgba(255, 255, 255, 0.65);
}
@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-tagline {
    max-width: 100%;
  }
  .footer-emergency {
    max-width: 100%;
  }
}
@media (max-width: 680px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-main {
    padding: 40px 0 32px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .footer-legal {
    justify-content: center;
  }
  .footer-bottom-social {
    justify-content: center;
  }
}
@media (max-width: 920px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .hero h1 {
    font-size: clamp(1.65rem, 6vw, 2.35rem);
  }
  .topbar .container {
    flex-direction: column;
    text-align: center;
  }
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
  .grid-3,
  .stats .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .directions-grid {
    grid-template-columns: 1fr;
  }
  .branches-grid {
    grid-template-columns: 1fr;
  }
  .reviews-panel {
    grid-template-columns: 1fr;
  }
  .featured-doctors-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .nav {
    justify-content: space-between;
  }
  .brand-logo {
    height: 46px;
  }
  .brand-text {
    font-size: 1.1rem;
  }
  .header-social {
    display: none;
  }
  .footer-brand-text {
    font-size: 1.35rem;
  }
  .hero {
    padding: 40px 0 30px;
  }
  .hero-actions {
    gap: 10px;
  }
  .btn {
    padding: 9px 14px;
    font-size: 0.9rem;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .stats .grid {
    grid-template-columns: 1fr;
  }
}
.mobile-bottom-nav {
  display: none;
}
.hospitals-popup-overlay {
  display: none;
}
.hospitals-popup-overlay.is-open {
  display: flex;
}
@media (max-width: 860px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(18, 37, 73, 0.06) 0%, rgba(18, 37, 73, 0.25) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bottom-nav-item {
    min-height: 62px;
    border: 1px solid #d8e2f2;
    border-radius: 14px;
    background: #ffffff;
    color: #203448;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    font-weight: 700;
    font-size: 0.69rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px rgba(11, 31, 61, 0.16);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }
  .mobile-bottom-nav-icon {
    width: 26px;
    height: 26px;
    color: #477ea6;
    display: inline-flex;
  }
  .mobile-bottom-nav-icon svg {
    width: 100%;
    height: 100%;
  }
  .mobile-bottom-nav-item.is-active {
    border-color: #8fb0cf;
    color: #0e2f52;
    transform: translateY(-2px);
  }
  .mobile-bottom-nav-item.is-active .mobile-bottom-nav-icon {
    color: var(--color-primary);
  }
  .hospitals-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(7, 23, 47, 0.58);
    align-items: flex-end;
    justify-content: center;
    padding: 14px;
    padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }
  .hospitals-popup {
    width: min(100%, 560px);
    max-height: min(72vh, 620px);
    background: #ffffff;
    border: 1px solid #d8e2f2;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(8, 27, 53, 0.34);
    padding: 16px;
    overflow: auto;
  }
  .hospitals-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .hospitals-popup-title {
    margin: 0;
    color: var(--color-primary-dark);
    font-size: 1.04rem;
  }
  .hospitals-popup-close {
    border: 1px solid #d8e2f2;
    background: #ffffff;
    color: #1f3d5b;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hospitals-popup-note {
    margin: 0 0 12px;
    color: var(--color-text-muted);
    font-size: 0.86rem;
  }
  .hospitals-popup-grid {
    display: grid;
    gap: 10px;
  }
  .hospitals-branch-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #d8e2f2;
    border-radius: 14px;
    padding: 12px;
    background: #f8fbff;
    box-shadow: 0 8px 18px rgba(16, 47, 96, 0.1);
  }
  .hospitals-branch-link h4 {
    margin: 0 0 6px;
    font-size: 0.96rem;
    color: var(--color-primary-dark);
  }
  .hospitals-branch-link p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .hospitals-branch-link:active {
    transform: translateY(1px);
  }
  .whatsapp-widget {
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 1250;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
  }
  .whatsapp-icon {
    width: 30px;
    height: 30px;
  }
}
.whatsapp-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.whatsapp-float {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  animation: whatsappPulse 2.2s ease-in-out infinite;
}
.whatsapp-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.whatsapp-pop {
  background: var(--color-primary-dark);
  color: var(--color-surface);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.18s ease;
}
.whatsapp-widget:hover .whatsapp-pop,
.whatsapp-widget.is-open .whatsapp-pop {
  opacity: 1;
  transform: translateY(0);
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes heroGlow {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-24px, 16px) scale(1.08);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes whatsappPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes headerMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .header-announcement-track {
    animation: none;
    padding-left: 16px;
  }
  .announcement-icon {
    padding-left: 0;
  }
}
