/* ===================================================
   KALYANI MEDICALS — SHARED STYLESHEET
   Design: Medical Luxury / Deep Navy & Teal
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #0B1F3A;
  --navy-deep:   #061525;
  --navy-mid:    #112240;
  --teal:        #0D9488;
  --teal-light:  #14B8A6;
  --teal-glow:   rgba(13,148,136,.15);
  --emerald:     #059669;
  --emerald-lt:  #10B981;
  --white:       #FFFFFF;
  --off-white:   #F0F4F8;
  --gray-100:    #E8EDF3;
  --gray-200:    #CBD5E1;
  --gray-400:    #94A3B8;
  --gray-600:    #475569;
  --gray-800:    #1E293B;
  --gold:        #F59E0B;
  --gold-light:  #FCD34D;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.1);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.22);
  --shadow-teal: 0 8px 32px rgba(13,148,136,.35);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::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(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scroll reveal base ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* stagger children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: .12s; }
.stagger > *:nth-child(3) { transition-delay: .24s; }
.stagger > *:nth-child(4) { transition-delay: .36s; }
.stagger > *:nth-child(5) { transition-delay: .48s; }
.stagger > *:nth-child(6) { transition-delay: .60s; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--gray-600); line-height: 1.75; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-glow);
  border: 1px solid rgba(13,148,136,.25);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section-tag i { font-size: .8rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  padding: 13px 28px; border-radius: var(--radius-md);
  border: none; cursor: pointer;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.12); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(13,148,136,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   HEADER / NAVIGATION
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(11,31,58,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,.3);
  padding: 0 24px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  height: 76px; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: white;
  box-shadow: var(--shadow-teal);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
}
.logo-tagline { font-size: .68rem; font-weight: 500; color: var(--teal-light); letter-spacing: .05em; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.8);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--teal-light);
  transition: var(--transition); border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { left: 14px; right: 14px; }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.btn-call {
  background: linear-gradient(135deg, var(--teal), var(--emerald));
  color: white; border: none; border-radius: var(--radius-md);
  padding: 10px 20px; font-size: .85rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: var(--transition); box-shadow: var(--shadow-teal);
  font-family: var(--font-body);
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,148,136,.5); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 76px; left: 0; right: 0; z-index: 999;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px 28px;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block; padding: 13px 16px;
  color: rgba(255,255,255,.85); font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.mobile-menu a:hover { color: var(--teal-light); padding-left: 24px; }
.mobile-menu .btn-call { margin-top: 16px; width: 100%; justify-content: center; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-brand .logo-name { font-size: 1.3rem; }
.footer-desc {
  margin-top: 16px; font-size: .9rem;
  color: rgba(255,255,255,.55); line-height: 1.8;
}
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: var(--transition);
  font-size: .9rem;
}
.social-btn:hover { background: var(--teal); color: white; transform: translateY(-3px); }

.footer-col h4 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: .9rem; color: rgba(255,255,255,.65);
  transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.footer-col a:hover { color: var(--teal-light); padding-left: 4px; }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(13,148,136,.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-light); font-size: .85rem;
}
.footer-contact-item p { font-size: .85rem; color: rgba(255,255,255,.65); margin: 0; }
.footer-contact-item strong { font-size: .9rem; color: rgba(255,255,255,.9); display: block; }

.footer-map {
  margin-top: 20px; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}
.footer-map iframe { width: 100%; height: 160px; border: none; display: block; filter: invert(.85) hue-rotate(180deg); }

.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 48px auto 0;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); margin: 0; }
.footer-divider { margin-top: 0; border: none; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-wrap { padding-bottom: 20px; }

/* ================================================================
   WHATSAPP WIDGET
   ================================================================ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
}
.wa-btn {
  width: 58px; height: 58px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.6rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: var(--transition); cursor: pointer;
  animation: wa-pulse 2.5s ease infinite;
}
.wa-btn:hover { transform: scale(1.12); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50% { box-shadow: 0 6px 36px rgba(37,211,102,.75); }
}
.wa-tooltip {
  position: absolute; right: 70px; bottom: 12px;
  background: var(--white); color: var(--navy);
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  padding: 8px 14px; border-radius: 8px;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  transform: translateX(10px);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ================================================================
   PAGE HERO (used on inner pages)
   ================================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 60%, #0D3057 100%);
  padding: 140px 24px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230D9488' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.7); max-width: 560px; margin: 16px auto 0; }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 16px;
}
.breadcrumb a { color: var(--teal-light); transition: var(--transition); }
.breadcrumb a:hover { color: white; }
.breadcrumb i { font-size: .7rem; }

/* ================================================================
   SECTION UTILITY
   ================================================================ */
.section { padding: 90px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: var(--navy); }
.section-header p { max-width: 540px; margin: 12px auto 0; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p  { color: rgba(255,255,255,.65); }

/* ── Badge / chip ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; padding: 4px 10px;
  border-radius: 100px;
}
.badge-teal  { background: rgba(13,148,136,.12); color: var(--teal); }
.badge-green { background: rgba(5,150,105,.12); color: var(--emerald); }
.badge-gold  { background: rgba(245,158,11,.12); color: var(--gold); }
.badge-navy  { background: rgba(11,31,58,.08); color: var(--navy); }

/* ── Form base ── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--navy); margin-bottom: 7px;
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: .9rem; color: var(--navy);
  background: var(--white);
  transition: var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,.12);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }

/* ── Card base ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

/* ── Stars ── */
.stars { color: var(--gold); font-size: .85rem; letter-spacing: 2px; }

/* ── Divider ── */
.divider-teal {
  width: 56px; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--emerald));
  border-radius: 2px; margin: 16px 0;
}
.divider-teal.center { margin: 16px auto; }
