/* ====================================
   PAVIZHAN CHILD & GENERAL CLINIC
   style.css — Full Redesign v3
   ==================================== */

/* ===== COLOR TOKENS =====
   Primary:  Deep Teal  #0A5C5C
   Accent:   Soft White/Ice on dark sections
   Neutral:  Slate navy #112233 for dark areas
   Light bg: #F2F9F9 (teal-tinted white)
   All "floating badges" use white bg on dark sections
   ============================= */
:root {
  --teal-dark:   #0A5C5C;
  --teal:        #0D7373;
  --teal-mid:    #0F8080;
  --teal-light:  #12A0A0;
  --teal-pale:   #E3F4F4;
  --teal-xpale:  #F2FAFA;

  --navy:        #0D1F2D;
  --navy-mid:    #152B3A;
  --navy-light:  #1E3A4A;

  --white:       #FFFFFF;
  --off-white:   #F8FEFE;
  --ink:         #0D1F2D;
  --body-text:   #2A3F4A;
  --muted:       #5C7A88;
  --border:      #CBE8E8;

  --green:       #1A9966;
  --red:         #B03020;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(10,92,92,0.10);
  --shadow-md:  0 4px 20px rgba(10,92,92,0.14);
  --shadow-lg:  0 12px 48px rgba(10,30,50,0.20);

  /* Gradients */
  --grad-dark:  linear-gradient(145deg, #0D1F2D 0%, #0A5C5C 55%, #0D7373 100%);
  --grad-teal:  linear-gradient(135deg, #0A5C5C 0%, #0D7373 100%);
  --grad-light: linear-gradient(135deg, #E3F4F4 0%, #F2FAFA 100%);

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body); color: var(--body-text);
  background: var(--white); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: var(--r-full); margin-bottom: 14px;
  background: var(--teal-pale); color: var(--teal-dark);
}
.section-tag i { font-size: 0.72rem; }

/* On dark sections, tag is inverted */
.on-dark .section-tag { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.2); }
.on-dark .section-title { color: var(--white); }
.on-dark .section-title span { color: #A8E6E6; }
.on-dark .section-subtitle { color: rgba(255,255,255,0.7); }

.section-title {
  font-family: var(--font-head); font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600; color: var(--ink); line-height: 1.22; margin-bottom: 12px;
}
.section-title span { color: var(--teal); }
.section-subtitle { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-sm); font-weight: 700;
  font-size: 0.92rem; cursor: pointer; border: 2px solid transparent;
  white-space: nowrap; transition: all 0.2s ease;
}
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.83rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary { background: var(--grad-teal); color: var(--white); box-shadow: 0 4px 16px rgba(10,92,92,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,92,92,0.4); }

.btn-white { background: var(--white); color: var(--teal-dark); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-ghost { background: transparent; color: var(--teal); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-pale); transform: translateY(-2px); }

.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1EBE5A; transform: translateY(-2px); }

/* ===== EMERGENCY BANNER ===== */
.emergency-banner {
  background: var(--red); color: var(--white);
  padding: 10px 50px 10px 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.86rem; font-weight: 600; position: relative; z-index: 1000;
}
.emergency-banner a { color: #FFD5CF; font-weight: 800; text-decoration: underline; }
.emergency-banner a:hover { color: var(--white); }
.banner-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.75); padding: 5px 8px; border-radius: 4px;
  font-size: 0.95rem; transition: background 0.15s;
}
.banner-close:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(10,30,50,0.10); }

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; padding: 0 20px; gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-img-wrap {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--teal-pale);
  box-shadow: 0 2px 8px rgba(10,92,92,0.2);
}
.logo-img { width: 100%; height: 100%; object-fit: cover; }
.logo-icon-fallback {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal); align-items: center; justify-content: center;
}
.logo-icon-fallback i { color: var(--white); font-size: 1.2rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.12rem; }
.logo-sub { font-size: 0.62rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* Show small icons next to nav text on desktop */
.nav-link i { display: inline-block; color: var(--teal); font-size: 0.78rem; margin-right: 3px; }

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
  padding: 8px 12px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.88rem; color: var(--body-text);
  transition: color 0.18s; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 2px; left: 12px; right: 12px;
  height: 2px; background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-link:hover { color: var(--teal); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--teal); }

.nav-cta { font-size: 0.86rem; padding: 9px 18px; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  border-radius: var(--r-sm); background: var(--teal-pale);
  transition: background 0.2s;
}
.hamburger:hover { background: var(--teal-soft, #c8e8e8); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--teal-dark); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero { background: var(--grad-dark); padding: 72px 0 100px; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 70px;
  background: var(--white); clip-path: ellipse(60% 100% at 50% 100%);
}
/* Subtle radial glow top-right */
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,115,115,0.25) 0%, transparent 70%);
  top: -150px; right: -100px; pointer-events: none;
}

.hero-container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.88);
  padding: 6px 16px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18); margin-bottom: 18px;
}
.hero-eyebrow i { color: rgba(255,255,255,0.7); }

.hero-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600; line-height: 1.15; color: var(--white); margin-bottom: 18px;
}
/* Highlight uses a bright icy teal that MATCHES the background gradient */
.hero-title .highlight { color: #A8E6E6; }

.hero-tagline { font-size: 1.05rem; color: rgba(255,255,255,0.78); margin-bottom: 12px; line-height: 1.6; }
.hero-tagline strong { color: var(--white); }
.hero-desc { font-size: 0.97rem; color: rgba(255,255,255,0.68); margin-bottom: 32px; max-width: 460px; }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700; color: rgba(255,255,255,0.82); }
.trust-item i { color: #A8E6E6; font-size: 0.95rem; }

/* Hero logo circle */
.hero-image { display: flex; align-items: center; justify-content: center; }
.hero-img-wrapper { position: relative; display: inline-block; }

.hero-logo-card {
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--white);
  border: 6px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 10px rgba(255,255,255,0.12), 0 24px 64px rgba(0,0,0,0.30);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.hero-logo-img { width: 88%; height: 88%; object-fit: contain; border-radius: 50%; }

/* Float badges — white background so they never clash with the dark hero */
.hero-float-badge {
  position: absolute; bottom: -14px; left: -24px;
  background: var(--white); border-radius: var(--r-md);
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border);
}
.badge-icon {
  width: 40px; height: 40px; background: var(--teal-pale);
  border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.badge-icon i { color: var(--teal); font-size: 1.1rem; }
.badge-text strong { display: block; font-size: 0.88rem; font-weight: 800; color: var(--ink); }
.badge-text span { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.hero-float-badge2 {
  position: absolute; top: -14px; right: -24px;
  background: var(--white); border-radius: var(--r-md);
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border);
}
.hero-float-badge2 .badge-icon { background: #E8F5F0; }
.hero-float-badge2 .badge-icon i { color: var(--green); }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 24px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 14px 16px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; color: var(--teal); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }

/* ===== ABOUT ===== */
.about-section { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.about-image-wrap { position: relative; display: flex; justify-content: center; }
.about-img-frame {
  width: 100%; max-width: 340px; aspect-ratio: 1/1;
  border-radius: var(--r-xl); overflow: hidden;
  border: 3px solid var(--teal-pale); box-shadow: var(--shadow-lg);
}
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -16px; right: 4px;
  background: var(--grad-teal); color: var(--white);
  padding: 12px 16px; border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg);
}
.about-badge i { font-size: 1.3rem; }
.about-badge span { font-size: 0.8rem; font-weight: 800; line-height: 1.4; }

.about-lead { font-family: var(--font-head); font-size: 1.22rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; line-height: 1.45; }
.about-body { color: var(--body-text); margin-bottom: 26px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 28px; }
.about-feature {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--border);
  font-size: 0.87rem; font-weight: 700; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.about-feature:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.about-feature i { color: var(--teal); flex-shrink: 0; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== DOCTOR ===== */
.doctor-section { background: var(--white); }
.doctor-card-wrap { display: flex; justify-content: center; }
.doctor-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 44px;
  background: var(--white); border-radius: var(--r-xl);
  padding: 40px; border: 1px solid var(--border);
  max-width: 940px; width: 100%; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.doctor-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-teal);
}
.doctor-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.doctor-avatar {
  width: 170px; height: 170px; border-radius: 50%; overflow: hidden;
  border: 4px solid var(--teal-pale);
  box-shadow: 0 8px 28px rgba(10,92,92,0.2);
}
.doctor-avatar-logo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-avatar-fallback { display: none; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--teal-pale); }
.doctor-avatar-fallback i { font-size: 4.5rem; color: var(--teal); }
.doctor-badge-status {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px;
  background: var(--teal-pale); color: var(--teal-dark);
  border-radius: var(--r-full); font-size: 0.8rem; font-weight: 800;
}
.doctor-badge-status i { font-size: 0.45rem; color: #22C55E; }
.doctor-name { font-family: var(--font-head); font-size: 1.8rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.doctor-quals { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.qual-badge { color: var(--teal-dark); background: var(--teal-pale); padding: 4px 12px; border-radius: var(--r-full); font-size: 0.77rem; font-weight: 800; border: 1px solid rgba(10,92,92,0.2); }
.doctor-reg {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  margin-bottom: 18px;
}
.doctor-reg i { color: var(--teal); }
.doctor-reg strong { color: var(--teal-dark); }
.doctor-bio { color: var(--body-text); margin-bottom: 24px; line-height: 1.8; }
.doctor-specs h4, .doctor-langs h4 { font-size: 0.74rem; font-weight: 800; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.doctor-specs h4 i, .doctor-langs h4 i { color: var(--teal); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 22px; }
.spec-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--off-white); font-size: 0.86rem; font-weight: 600; color: var(--body-text); border: 1px solid var(--border); }
.spec-item i { color: var(--teal); font-size: 0.85rem; flex-shrink: 0; }
.doctor-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lang-tag { color: var(--body-text); padding: 4px 12px; font-size: 0.8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); border-radius: var(--r-full); background: var(--off-white); }

/* ===== SERVICES ===== */
.services-section { background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  background: var(--white); padding: 28px 24px;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  transition: all 0.24s ease; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-teal); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-pale); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; background: var(--teal-pale); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: background 0.24s; }
.service-icon i { font-size: 1.3rem; color: var(--teal); transition: color 0.24s; }
.service-card:hover .service-icon { background: var(--teal); }
.service-card:hover .service-icon i { color: var(--white); }
.service-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.service-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.7; }

/* ===== WHY CHOOSE US ===== */
.why-section { background: var(--grad-dark); position: relative; overflow: hidden; }
/* Subtle diagonal lines on dark bg */
.why-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px
  );
}
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 1; }
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg); padding: 26px 20px;
  transition: all 0.24s ease;
}
.why-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(168,230,230,0.35);
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.22);
}
.why-card:focus { outline: 2px solid rgba(168,230,230,0.5); outline-offset: 2px; }
/* Icon uses white bg — crystal clear on the dark gradient */
.why-icon {
  width: 50px; height: 50px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.why-icon i { font-size: 1.3rem; color: #A8E6E6; }
.why-card h3 { font-family: var(--font-head); font-size: 0.97rem; font-weight: 600; color: #FFFFFF; margin-bottom: 8px; line-height: 1.3; }
.why-card p { font-size: 0.84rem; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ===== GALLERY ===== */
.gallery-section { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-card { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); transition: all 0.24s ease; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-pale); }
.gallery-img-wrap { position: relative; overflow: hidden; height: 200px; cursor: pointer; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.06); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(10,30,50,0.52); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.24s; }
.gallery-overlay i { font-size: 1.7rem; color: var(--white); }
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-caption { padding: 13px 15px; font-size: 0.85rem; font-weight: 700; color: var(--body-text); background: var(--white); display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); }
.gallery-caption i { color: var(--teal); }

/* ===== CONTACT ===== */
.contact-section { background: var(--grad-dark); position: relative; overflow: hidden; }
.contact-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 40px,
    rgba(255,255,255,0.015) 40px, rgba(255,255,255,0.015) 41px
  );
}
.contact-section .section-header { position: relative; z-index: 1; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px;
  position: relative; z-index: 1;
}
.contact-info-panel { display: flex; flex-direction: column; gap: 12px; }

/* Clinic header card */
.contact-clinic-header {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(168,230,230,0.18);
  border-radius: var(--r-xl); padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
}
.contact-logo-circle {
  width: 66px; height: 66px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid rgba(168,230,230,0.4);
  box-shadow: 0 0 0 4px rgba(168,230,230,0.08);
}
.contact-logo-circle img { width: 100%; height: 100%; object-fit: cover; }
.contact-logo-circle-fallback { display: none; width: 66px; height: 66px; border-radius: 50%; background: var(--teal); align-items: center; justify-content: center; flex-shrink: 0; }
.contact-logo-circle-fallback i { font-size: 1.8rem; color: var(--white); }
.contact-clinic-name h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--white); line-height: 1.25; margin-bottom: 4px; }
.contact-clinic-name span { font-size: 0.74rem; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* Contact info rows */
.contact-rows { display: flex; flex-direction: column; gap: 9px; }
.contact-row {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.2s;
}
.contact-row:hover { background: rgba(168,230,230,0.10); border-color: rgba(168,230,230,0.28); transform: translateX(4px); }
.contact-row-icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: rgba(168,230,230,0.14); border: 1px solid rgba(168,230,230,0.22);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row-icon i { font-size: 1rem; color: #A8E6E6; }
.contact-row-text { flex: 1; min-width: 0; }
.contact-row-label { font-size: 0.68rem; font-weight: 800; color: rgba(255,255,255,0.42); text-transform: uppercase; letter-spacing: 0.1em; display: block; margin-bottom: 2px; }
.contact-row-value { font-size: 0.91rem; font-weight: 600; color: var(--white); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row a.contact-row-value { color: var(--white); transition: color 0.18s; }
.contact-row a.contact-row-value:hover { color: #A8E6E6; }
.emergency-tag { display: inline-flex; align-items: center; gap: 5px; color: #FF8A80; font-size: 0.78rem; font-weight: 800; margin-top: 3px; }

.contact-cta-row { display: flex; gap: 12px; padding-top: 4px; }
.contact-cta-row .btn { flex: 1; justify-content: center; }

/* Map */
.contact-map-panel { display: flex; align-items: stretch; }

.map-card {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(168,230,230,0.18);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
}

.map-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(168,230,230,0.15);
}
.map-header-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0;
  background: rgba(168,230,230,0.14);
  display: flex; align-items: center; justify-content: center;
}
.map-header-icon i { color: #A8E6E6; font-size: 1rem; }
.map-header strong { display: block; font-size: 0.95rem; font-weight: 800; color: var(--white); }
.map-header span { font-size: 0.78rem; color: rgba(255,255,255,0.5); font-weight: 600; }

.map-embed-wrap {
  flex: 1; position: relative;
  overflow: hidden;
}
.map-embed-wrap iframe { width: 100%; height: 220px; display: block; border: 0; }

.map-directions-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 20px;
  background: rgba(168,230,230,0.10);
  border-top: 1px solid rgba(168,230,230,0.15);
  color: #A8E6E6; font-size: 0.88rem; font-weight: 800;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.map-directions-btn:hover { background: rgba(168,230,230,0.18); color: var(--white); }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: #7A9BAA; }
.footer-top { padding: 60px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; }

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.14); flex-shrink: 0; }
.footer-logo-icon-fallback { display: none; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); align-items: center; justify-content: center; flex-shrink: 0; }
.footer-logo-icon-fallback i { font-size: 1.3rem; color: var(--white); }
.footer-logo-main { display: block; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--white); }
.footer-logo-sub { display: block; font-size: 0.62rem; color: #567A8A; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.footer-tagline { font-size: 0.87rem; color: #567A8A; margin-bottom: 18px; font-style: italic; line-height: 1.65; }
.footer-socials { display: flex; gap: 8px; }
.social-btn { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; border: 1px solid rgba(255,255,255,0.10); color: #7A9BAA; transition: all 0.2s; }
.social-btn:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }

.footer-links-col h4, .footer-contact-col h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-links-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links-col a { font-size: 0.86rem; color: #567A8A; transition: color 0.18s; display: flex; align-items: center; gap: 6px; }
.footer-links-col a::before { content: '›'; color: var(--teal-light); font-size: 1rem; }
.footer-links-col a:hover { color: var(--white); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 13px; font-size: 0.86rem; color: #567A8A; }
.footer-contact-item i { color: var(--teal-light); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.footer-contact-item a { color: #567A8A; transition: color 0.18s; }
.footer-contact-item a:hover { color: var(--white); }
.footer-contact-item.emergency i, .footer-contact-item.emergency span { color: #E07B6A; }

.footer-bottom { 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; flex-wrap: wrap; gap: 8px; font-size: 0.79rem; color: #3D5A68; }

/* ===== FLOATING BUTTONS ===== */
.floating-buttons { position: fixed; bottom: 24px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 800; }
.float-btn { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; box-shadow: var(--shadow-lg); position: relative; transition: transform 0.2s; }
.float-btn:hover { transform: scale(1.1); }
.float-tooltip { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--white); padding: 5px 12px; border-radius: var(--r-sm); font-size: 0.75rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.float-btn:hover .float-tooltip { opacity: 1; }
.whatsapp-float { background: #25D366; color: var(--white); }
.call-float { background: var(--teal); color: var(--white); }
.location-float { background: #E53935; color: var(--white); }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 24px; left: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--teal); box-shadow: var(--shadow-md); z-index: 800; border: 2px solid var(--teal-pale); display: flex; align-items: center; justify-content: center; font-size: 1rem; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

/* ===== LIGHTBOX ===== */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(10,20,30,0.93); z-index: 9995; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.22s; }
.lightbox-overlay.active { opacity: 1; visibility: visible; }
#lightboxImg { max-width: 90vw; max-height: 85vh; border-radius: var(--r-sm); object-fit: contain; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.12); color: var(--white); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ===== AOS ===== */
[data-aos] { opacity: 0; transition: opacity 0.5s ease, transform 0.5s ease; transform: translateY(18px); }
[data-aos="fade-left"] { transform: translateX(18px); }
[data-aos="fade-right"] { transform: translateX(-18px); }
[data-aos="zoom-in"] { transform: scale(0.94); }
[data-aos].aos-animate { opacity: 1; transform: none; }

/* ===== ACCESSIBILITY ===== */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   RESPONSIVE — TABLET  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 0.85rem; }
}

/* ============================================================
   RESPONSIVE — SMALL TABLET / LARGE PHONE  ≤ 900px
   ============================================================ */
@media (max-width: 900px) {
  .section { padding: 60px 0; }

  /* Navbar — hide links & CTA, show hamburger */
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Dropdown panel — slides down under the navbar */
  .nav-links {
    position: fixed;
    top: 66px;
    right: 0;
    left: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 950;
    box-shadow: 0 8px 32px rgba(10,30,50,0.18);
    border-top: 2px solid var(--teal-pale);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.32s ease, visibility 0.32s ease;
    padding: 0;
  }
  .nav-links.open {
    max-height: 600px;
    visibility: visible;
    padding: 8px 0 12px;
  }

  .nav-links li { width: 100%; }

  /* Show icons in mobile menu */
  .nav-link i { display: inline-block; }

  .nav-link {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 14px 24px;
    font-size: 1rem; font-weight: 700; color: var(--ink);
    border-bottom: 1px solid var(--teal-pale);
    transition: background 0.15s, color 0.15s;
  }
  .nav-link i { color: var(--teal); font-size: 1rem; width: 18px; text-align: center; }
  .nav-link:hover, .nav-link.active { background: var(--teal-pale); color: var(--teal-dark); }
  .nav-link::after { display: none; }

  /* Hamburger animation */
  .hamburger span { background: var(--teal-dark); }
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero */
  .hero { padding: 56px 0 88px; }
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content { order: 1; }
  .hero-image { order: 2; }
  .hero-buttons, .hero-trust { justify-content: center; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-logo-card { width: 240px; height: 240px; }
  .hero-float-badge { left: -10px; bottom: -10px; padding: 10px 12px; }
  .hero-float-badge2 { right: -10px; top: -10px; padding: 10px 12px; }
  .badge-text strong { font-size: 0.82rem; }
  .badge-text span { font-size: 0.68rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-frame { max-width: 280px; margin: 0 auto; }
  .about-badge { right: 20px; }
  .about-features { grid-template-columns: 1fr 1fr; }

  /* Doctor */
  .doctor-card { grid-template-columns: 1fr; text-align: center; padding: 28px; gap: 24px; }
  .doctor-avatar-wrap { align-items: center; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .doctor-quals, .doctor-langs { justify-content: center; }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why */
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .map-embed-wrap iframe { height: 200px; }
  .contact-row-value { white-space: normal; }
}

/* ============================================================
   RESPONSIVE — PHONE  ≤ 600px
   ============================================================ */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }

  /* Banner */
  .emergency-banner { font-size: 0.78rem; flex-wrap: wrap; text-align: center; padding: 10px 48px 10px 12px; gap: 6px; }

  /* Hero */
  .hero { padding: 44px 0 76px; }
  .hero-title { font-size: 1.85rem; }
  .hero-logo-card { width: 200px; height: 200px; border-width: 4px; }
  .hero-float-badge, .hero-float-badge2 { display: none; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-trust { flex-direction: column; align-items: center; gap: 8px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.6rem; }

  /* About */
  .about-img-frame { max-width: 240px; }
  .about-features { grid-template-columns: 1fr; }
  .about-actions { flex-direction: column; }
  .about-actions .btn { justify-content: center; }

  /* Doctor */
  .spec-grid { grid-template-columns: 1fr; }
  .doctor-card { padding: 20px 16px; }
  .doctor-name { font-size: 1.5rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-clinic-header { flex-direction: column; text-align: center; gap: 12px; }
  .contact-cta-row { flex-direction: column; }
  .contact-cta-row .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* Section headings */
  .section-title { font-size: 1.55rem; }
}

/* ============================================================
   RESPONSIVE — TINY PHONE  ≤ 380px
   ============================================================ */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .hero-title { font-size: 1.65rem; }
  .hero-logo-card { width: 180px; height: 180px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 12px 8px; }
  .nav-container { padding: 0 12px; }
}
