:root {
  --primary: #0ea5a4;
  --primary-dark: #0b7f7e;
  --accent: #3b82f6;
  --navy: #0b1f3a;
  --text: #334155;
  --muted: #64748b;
  --bg: #f6fafc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.15);
  --grad: linear-gradient(135deg, var(--primary), var(--accent));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 10px 0 14px; }
.tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(14, 165, 164, 0.1);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 10px 25px rgba(14, 165, 164, 0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(14, 165, 164, 0.45); }
.btn-outline { border-color: var(--primary); color: var(--primary-dark); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.btn-light { background: var(--white); color: var(--primary-dark); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Top bar */
.topbar { background: var(--navy); color: #cbd5e1; font-size: 0.85rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a:hover { color: var(--primary); }
.topbar span { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.logo-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--grad);
  display: grid; place-items: center;
  color: var(--white); font-size: 1.5rem; font-weight: 700;
  box-shadow: 0 8px 20px rgba(14, 165, 164, 0.35);
}
img.logo-icon { object-fit: cover; border-radius: 50%; background: none; box-shadow: 0 6px 16px rgba(11, 31, 58, 0.18); }
.logo small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-weight: 500; position: relative; padding: 6px 0; transition: color 0.3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--grad); transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav .btn { padding: 11px 22px; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; position: relative; }
.menu-toggle span { position: absolute; left: 0; width: 100%; height: 3px; border-radius: 3px; background: var(--navy); transition: 0.3s; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 10px; }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 10px; }

/* Hero */
.hero { position: relative; padding: 90px 0 120px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 18px 0 20px; }
.hero p { font-size: 1.08rem; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; z-index: -1;
  animation: float 12s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: #5eead4; top: -100px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: #93c5fd; bottom: -120px; left: -100px; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-circle {
  width: min(420px, 85vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-circle::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 2px dashed rgba(14, 165, 164, 0.4);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-circle img {
  width: calc(100% - 16px); height: calc(100% - 16px); border-radius: 50%;
  object-fit: cover; object-position: center 20%;
}
.hero-circle svg { width: 46%; color: var(--white); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.float-card {
  position: absolute; background: var(--white); border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem; animation: bob 4s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--navy); font-size: 1rem; }
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(14, 165, 164, 0.12); font-size: 1.2rem; }
.fc-1 { top: 8%; left: -4%; }
.fc-2 { bottom: 10%; right: -4%; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(14, 165, 164, 0.45), transparent 45%),
              radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.4), transparent 45%);
  animation: float 14s ease-in-out infinite;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.page-hero p { color: #cbd5e1; }
.page-hero p a { color: #5eead4; }

/* Stats */
.stats { margin-top: -60px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid #eef2f7; }
.stat:last-child { border-right: 0; }
.stat h3 { font-size: 2.4rem; }
.stat p { color: var(--muted); font-size: 0.92rem; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.9rem; background: rgba(14, 165, 164, 0.1); margin-bottom: 22px;
  transition: transform 0.4s, background 0.4s;
}
.card:hover .icon { transform: rotate(-8deg) scale(1.1); background: rgba(59, 130, 246, 0.14); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card ul { margin-top: 14px; list-style: none; }
.card li { padding-left: 24px; position: relative; font-size: 0.92rem; margin-bottom: 6px; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--primary-dark); }

/* About visual */
.about-visual { position: relative; }
.about-box {
  aspect-ratio: 4 / 4.2; border-radius: 30px; background: var(--grad);
  display: grid; place-items: center; color: var(--white); font-size: 6rem;
  box-shadow: var(--shadow-lg);
}
.about-img {
  width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 30px;
  box-shadow: var(--shadow-lg);
}
.exp-badge {
  position: absolute; right: -20px; bottom: 30px; background: var(--white);
  border-radius: 20px; padding: 22px 26px; box-shadow: var(--shadow-lg); text-align: center;
  animation: bob 4s ease-in-out infinite;
}
.exp-badge strong { font-size: 2.2rem; display: block; color: var(--primary-dark); line-height: 1; }
.check-list { list-style: none; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check-list li::before {
  content: "✓"; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: var(--grad); color: var(--white); display: grid; place-items: center; font-size: 0.8rem;
}

/* Values / steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; padding: 20px; }
.step .num {
  width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow); display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); position: relative;
}
.step .num::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--primary); opacity: 0.3;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* Team */
.team-card { text-align: center; }
.avatar {
  width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--grad); color: var(--white); display: grid; place-items: center;
  font-size: 2rem; font-weight: 700;
}
.team-card span { color: var(--primary-dark); font-weight: 500; font-size: 0.9rem; }
.doctors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 32px; justify-content: center; }
.doctor-photo {
  width: 170px; height: 170px; margin: 0 auto 20px; border-radius: 50%;
  object-fit: cover; object-position: center 15%;
  border: 6px solid var(--white); box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg);
  transition: transform 0.4s;
}
.team-card:hover .doctor-photo { transform: scale(1.05); }
.team-card .quals { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.team-card .badge {
  display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 50px;
  background: rgba(14, 165, 164, 0.1); font-size: 0.8rem;
}
.facility-card.tall img { aspect-ratio: 1 / 1; object-position: center top; }
.news-clip { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Facilities */
.facility-card { padding: 0 0 28px; }
.facility-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 22px; transition: transform 0.6s; }
.facility-card:hover img { transform: scale(1.05); }
.facility-card h3, .facility-card p { padding: 0 26px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-grid.large { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.gallery-item {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(11, 31, 58, 0.85));
  color: var(--white); font-weight: 600; transform: translateY(8px); opacity: 0.9;
  transition: transform 0.4s, opacity 0.4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover span { transform: none; opacity: 1; }
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(11, 31, 58, 0.92);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { text-align: center; color: var(--white); }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 14px; margin: 0 auto 12px; transform: scale(0.92); transition: transform 0.3s; }
.lightbox.open img { transform: none; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, 0.15); color: var(--white); border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}
.lightbox button:hover { background: var(--primary); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }

/* CTA */
.cta {
  background: var(--grad); border-radius: 28px; padding: 60px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); right: -80px; top: -120px;
  animation: float 10s ease-in-out infinite;
}
.cta h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta p { opacity: 0.9; }
.cta .btn { position: relative; z-index: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.info-item { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.info-item .icon {
  width: 56px; height: 56px; flex-shrink: 0; margin: 0; font-size: 1.4rem;
  display: grid; place-items: center; border-radius: 16px;
}
.info-item h4 { margin-bottom: 2px; }
.info-item a:hover { color: var(--primary-dark); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { font-size: 0.88rem; font-weight: 500; color: var(--navy); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #e2e8f0;
  font-family: inherit; font-size: 0.95rem; background: var(--bg); transition: border-color 0.3s, box-shadow 0.3s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.12); background: var(--white);
}
.form-note { font-size: 0.85rem; color: var(--muted); }
.map {
  margin-top: 60px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  height: 380px; background: #e2e8f0;
}
.map iframe { width: 100%; height: 100%; border: 0; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #e2e8f0; }

/* Footer */
.footer { background: var(--navy); color: #94a3b8; padding: 80px 0 0; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: var(--white); margin-bottom: 20px; }
.footer .logo { color: var(--white); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: #5eead4; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 60px; padding: 22px 0; text-align: center; font-size: 0.88rem; }

/* Floating WhatsApp / call */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 12px;
}
.fab a {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); box-shadow: var(--shadow-lg); transition: transform 0.3s;
}
.fab a:hover { transform: scale(1.1); }
.fab .wa { background: #25d366; animation: ring 2.5s infinite; }
.fab .call { background: var(--accent); }
.fab svg { width: 28px; height: 28px; }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.left { transform: translateX(-50px); }
.reveal.right { transform: translateX(50px); }
.reveal.zoom { transform: scale(0.9); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* Page load */
.hero-text > * { animation: fadeUp 0.9s ease both; }
.hero-text > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.45s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; padding-top: 60px; }
  .hero p { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps, .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #eef2f7; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .exp-badge { right: 10px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--white); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; text-align: center; border-top: 1px solid #f1f5f9; }
  .nav-links a { display: block; padding: 16px; }
  .nav-links a::after { display: none; }
  .nav > .btn { display: none; }
  .topbar .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .grid-3, .steps, .check-list, .form, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 28px; text-align: center; justify-content: center; }
  .float-card { display: none; }
  .gallery-grid, .gallery-grid.large, .doctors-grid { grid-template-columns: 1fr; }
  .stat h3 { font-size: 1.9rem; }
}
