/* ==========================================================
   Riya Hospital – Homepage styles
   Bootstrap 5.3 base + custom theme & animations
   ========================================================== */

:root {
  --plum: #0E97A1;
  --plum-dark: #0A2E36;
  --rose: #18bcc7;
  --rose-soft: #E3F8F9;
  --teal: #0B7F88;
  --teal-soft: #E8F6F7;
  --cream: #F4FAFB;
  --ink: #10262B;
  --muted: #5E7177;
  --line: #E1ECEE;
  --radius: 20px;
  --shadow-sm: 0 4px 14px rgba(10, 46, 54, .06);
  --shadow: 0 18px 40px -16px rgba(10, 46, 54, .22);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--plum-dark); letter-spacing: -.01em; }
a { color: var(--plum); text-decoration: none; }
p { color: var(--muted); line-height: 1.7; }
.text-white-75 { color: rgba(255,255,255,.78) !important; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--cream);
  transition: opacity .6s var(--ease), visibility .6s;
}
body.loaded #preloader { opacity: 0; visibility: hidden; }
.loader-mark { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader-heart {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--plum); color: #fff; font-size: 1.7rem;
  animation: heartbeat 1.1s ease-in-out infinite;
}
.loader-text { font-family: var(--font-head); font-size: 1.15rem; color: var(--plum); letter-spacing: .04em; }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(24,188,199,.45); }
  30% { transform: scale(1.12); }
  60% { transform: scale(1); box-shadow: 0 0 0 22px rgba(24,188,199,0); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--rose), var(--plum));
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 1100;
}

/* ---------- Top bar ---------- */
.topbar { background: var(--plum-dark); color: rgba(255,255,255,.8); font-size: .82rem; padding: 8px 0; }
.topbar i { color: var(--rose); margin-right: 4px; }
.topbar-emergency { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; position: relative; }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #4ADE80; animation: ping 1.6s var(--ease) infinite;
}
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: 16px 0;
  transition: padding .35s var(--ease), box-shadow .35s var(--ease);
}
.navbar.scrolled { padding: 9px 0; box-shadow: 0 6px 24px rgba(10,46,54,.08); }
.brand-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  color: #fff; font-size: 1.2rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); color: var(--plum-dark); font-size: 1.2rem; }
.brand-text small { color: var(--muted); font-size: .7rem; letter-spacing: .03em; }
.nav-link { color: var(--ink); font-weight: 500; font-size: .93rem; position: relative; padding: 8px 14px !important; }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--rose); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active, .nav-link:hover { color: var(--plum); }

.navbar-toggler { border: 0; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { width: 24px; height: 2px; background: var(--plum); border-radius: 2px; }
.mobile-links li a {
  display: block; padding: 14px 0; font-family: var(--font-head);
  font-size: 1.4rem; color: var(--plum-dark); border-bottom: 1px solid var(--line);
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: 11px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn i { transition: transform .3s var(--ease); }
.btn:hover i.bi-arrow-right { transform: translateX(4px); }
.btn-brand {
  background: var(--plum); color: #fff; border: 0;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-brand::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(14,151,161,.6); }
.btn-brand:hover::before { opacity: 1; }
.btn-ghost { background: #fff; color: var(--plum); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--rose); color: var(--plum); transform: translateY(-2px); }
.btn-light-brand { background: #fff; color: var(--plum); }
.btn-light-brand:hover { background: var(--rose-soft); color: var(--plum); transform: translateY(-2px); }

/* ---------- Eyebrow & headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--plum); margin-bottom: 14px;
}
.eyebrow-light { color: #8FE3E9; }
.section { padding: 110px 0; position: relative; }
.section-soft { background: var(--cream); }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 600; line-height: 1.15; margin-bottom: 18px; }
.section-head { max-width: 640px; margin: 0 auto 48px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 120px;
  background: radial-gradient(1200px 600px at 85% 10%, var(--rose-soft), transparent 60%),
              radial-gradient(900px 500px at 0% 100%, var(--teal-soft), transparent 60%),
              var(--cream);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob-1 { width: 380px; height: 380px; background: #BDEFF2; top: -80px; right: 8%; animation: drift 14s ease-in-out infinite; }
.blob-2 { width: 300px; height: 300px; background: #CDEBF5; bottom: -60px; left: -60px; animation: drift 18s ease-in-out infinite reverse; }
.blob-3 { width: 200px; height: 200px; background: #D6F3F4; top: 40%; left: 45%; animation: drift 16s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.06); }
  66% { transform: translate(-20px, 20px) scale(.96); }
}
.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 600; line-height: 1.05; margin-bottom: 22px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title em { font-style: italic; color: var(--rose); }
.hero-lead { font-size: 1.12rem; max-width: 520px; margin-bottom: 32px; }

/* hero entrance */
.hero-anim { display: inline-block; opacity: 0; transform: translateY(28px); }
.hero-title .hero-anim { transform: translateY(105%); opacity: 1; }
body.loaded .hero-anim {
  animation: heroIn 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-lead.hero-anim, .hero .d-flex.hero-anim, .hero-trust.hero-anim, .hero-visual.hero-anim { display: block; }
.hero .d-flex.hero-anim, .hero-trust.hero-anim { display: flex; }
.hero-visual.hero-anim { transform: translateY(40px) scale(.97); }

.hero-trust { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--rose); }
.hero-trust strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--plum-dark); }
.hero-trust span { font-size: .82rem; color: var(--muted); }

.hero-visual { position: relative; padding: 20px 30px; }
.hero-photo {
  aspect-ratio: 4 / 4.4; border-radius: 200px 200px 28px 28px; overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #D4F4F6, #BFE8EE 55%, #E6F7F8);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: rgba(10,46,54,.55); font-size: .85rem; font-weight: 500;
}
.photo-placeholder i { font-size: 3rem; opacity: .7; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow);
  animation: floatY 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .9rem; color: var(--plum-dark); }
.float-card small { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.fc-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.bg-rose { background: var(--rose); } .bg-teal { background: var(--teal); }
.card-a { top: 14%; left: -8px; }
.card-b { top: 48%; right: -6px; animation-delay: -2s; }
.card-c { bottom: 6%; left: 6%; flex-direction: column; align-items: flex-start; gap: 6px; animation-delay: -4s; }
.avatars { display: flex; }
.avatars span {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: #fff; background: var(--plum);
}
.avatars span:first-child { margin-left: 0; background: var(--rose); }
.avatars span:nth-child(2) { background: var(--teal); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(14,151,161,.35); border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--plum); border-radius: 2px; animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--plum); color: #fff; overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; font-weight: 500; font-size: .95rem; }
.marquee-track i { color: #8FE3E9; margin-right: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-visual { position: relative; padding-bottom: 60px; padding-right: 40px; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img.main { aspect-ratio: 4 / 4.6; background: linear-gradient(160deg, #DDF4F6, #C8EBF0); }
.about-img.small {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1;
  border: 6px solid #fff; background: linear-gradient(160deg, #E2F6F7, #CDEFF2);
}
.about-img.small .photo-placeholder i { font-size: 2rem; }
.exp-badge {
  position: absolute; top: 24px; right: 10px;
  background: var(--rose); color: #fff; border-radius: 18px; padding: 16px 20px;
  box-shadow: var(--shadow); text-align: center;
  animation: floatY 7s ease-in-out infinite;
}
.exp-badge strong { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1; }
.exp-badge span { font-size: .75rem; opacity: .9; }
.motto {
  position: relative; padding: 22px 24px 22px 56px; margin: 26px 0;
  background: var(--rose-soft); border-radius: 16px;
  font-family: var(--font-head); font-size: 1.1rem; color: var(--plum-dark); line-height: 1.55;
}
.motto i { position: absolute; left: 18px; top: 14px; font-size: 1.8rem; color: var(--rose); }
.stat {
  padding: 18px; border-radius: 16px; border: 1px solid var(--line); text-align: center;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--rose); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--plum); }
.stat span { font-size: .8rem; color: var(--muted); }

/* ---------- Services ---------- */
.service-tabs { gap: 8px; margin-bottom: 40px; background: #fff; padding: 6px; border-radius: 999px; width: fit-content; margin-inline: auto; box-shadow: var(--shadow-sm); flex-wrap: wrap; }
.service-tabs .nav-link { border-radius: 999px; padding: 10px 22px !important; color: var(--muted); }
.service-tabs .nav-link::after { display: none; }
.service-tabs .nav-link.active { background: var(--plum); color: #fff; }
.tab-pane.fade { transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.tab-pane.fade.show { transform: none; }

.service-card {
  height: 100%; background: #fff; border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.service-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--plum));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.s-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--rose-soft); color: var(--plum); font-size: 1.45rem; margin-bottom: 18px;
  transition: background .4s, color .4s, transform .5s var(--ease);
}
.service-card:hover .s-icon { background: var(--plum); color: #fff; transform: rotate(-8deg) scale(1.06); }
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; font-weight: 600; }
.service-card p { font-size: .9rem; margin: 0; }

/* staggered tab cards */
.tab-pane.show .col-sm-6 { animation: cardIn .6s var(--ease) both; }
.tab-pane.show .col-sm-6:nth-child(2) { animation-delay: .05s; }
.tab-pane.show .col-sm-6:nth-child(3) { animation-delay: .1s; }
.tab-pane.show .col-sm-6:nth-child(4) { animation-delay: .15s; }
.tab-pane.show .col-sm-6:nth-child(5) { animation-delay: .2s; }
.tab-pane.show .col-sm-6:nth-child(6) { animation-delay: .25s; }
.tab-pane.show .col-sm-6:nth-child(7) { animation-delay: .3s; }
.tab-pane.show .col-sm-6:nth-child(8) { animation-delay: .35s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Why ---------- */
.why { background: linear-gradient(135deg, var(--plum-dark), var(--plum) 60%, #0F6B76); overflow: hidden; }
.why::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1); right: -160px; top: -160px;
  box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 130px rgba(255,255,255,.02);
}
.why-item {
  display: flex; gap: 16px; height: 100%;
  padding: 22px; border-radius: 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  transition: background .4s, transform .45s var(--ease);
}
.why-item:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }
.why-item > i {
  flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,179,193,.18); color: #8FE3E9; font-size: 1.3rem;
}
.why-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.why-item p { color: rgba(255,255,255,.7); font-size: .87rem; margin: 0; }

/* ---------- Doctor ---------- */
.doctor-card { background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.doctor-photo { position: relative; height: 100%; min-height: 420px; background: linear-gradient(170deg, #D4F4F6, #C2EAEF 60%, #E6F7F8); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-exp {
  position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px;
  background: #fff; padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow);
}
.doc-exp strong { font-family: var(--font-head); font-size: 2rem; color: var(--rose); line-height: 1; }
.doc-exp span { font-size: .78rem; color: var(--muted); line-height: 1.2; }
.doctor-body { padding: 48px; }
.doc-qual { font-weight: 600; color: var(--plum); margin-bottom: 4px; }
.doc-role { font-size: .95rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip-list span {
  padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: var(--teal-soft); color: #0B6E76;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.chip-list span:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }
.doc-quote { font-family: var(--font-head); font-style: italic; font-size: 1.08rem; color: var(--plum-dark); border-left: 3px solid var(--rose); padding-left: 18px; line-height: 1.6; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: .85rem; color: var(--muted); margin-top: 20px; }
.doc-meta i { color: var(--rose); margin-right: 4px; }

/* ---------- Rooms ---------- */
.room-card {
  height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s;
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.room-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: linear-gradient(150deg, #DDF4F6, #C8EBF0); }
.room-img .photo-placeholder { transition: transform .8s var(--ease); }
.room-card:hover .room-img .photo-placeholder { transform: scale(1.08); }
.room-card.featured { border-color: var(--rose); }
.room-card.featured .room-img { background: linear-gradient(150deg, #A9E8EC, #C8EBF0); }
.room-ribbon {
  position: absolute; top: 14px; right: 14px; background: var(--rose); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .05em;
}
.room-body { padding: 22px; }
.room-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.room-body h3 { font-size: 1.2rem; margin: 6px 0 12px; }
.room-body ul { list-style: none; padding: 0; margin: 0; }
.room-body li { font-size: .88rem; color: var(--muted); padding: 5px 0 5px 24px; position: relative; }
.room-body li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--rose); }

/* ---------- Team ---------- */
.team-card {
  text-align: center; padding: 30px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  height: 100%; transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.t-avatar {
  width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.8rem; color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--plum));
  transition: transform .5s var(--ease);
}
.team-card:hover .t-avatar { transform: scale(1.08) rotate(-4deg); }
.team-card h3 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card p { font-size: .82rem; margin-bottom: 10px; }
.t-role { font-size: .75rem; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 4px 12px; border-radius: 999px; }

/* ---------- Testimonials ---------- */
.testi-carousel { max-width: 820px; margin: 0 auto; }
.testi-card {
  background: #fff; border-radius: 28px; padding: 48px 52px; text-align: center;
  box-shadow: var(--shadow); margin: 10px;
}
.testi-card p { font-family: var(--font-head); font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--plum-dark); line-height: 1.6; margin: 18px 0 26px; }
.stars { color: #F5A524; letter-spacing: 3px; }
.testi-author { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.testi-author > span {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--rose-soft); color: var(--plum); font-weight: 700; font-family: var(--font-head); font-size: 1.2rem;
}
.testi-author strong { display: block; color: var(--plum-dark); }
.testi-author small { color: var(--muted); }
.carousel-item { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.testi-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--plum);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.testi-btn:hover { background: var(--plum); color: #fff; transform: scale(1.06); }
.testi-controls .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 999px; background: var(--plum); opacity: .25; border: 0; margin: 0 4px;
  transition: width .4s var(--ease), opacity .4s;
}
.testi-controls .carousel-indicators .active { width: 26px; opacity: 1; }

/* ---------- Expansion ---------- */
.expansion {
  padding: 48px; border-radius: 28px;
  background: linear-gradient(135deg, var(--teal-soft), #fff 70%);
  border: 1px solid #BDE9EC;
}
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dept-grid span {
  background: #fff; border-radius: 14px; padding: 14px 16px; font-weight: 500; font-size: .9rem;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.dept-grid span:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dept-grid i { color: var(--teal); font-size: 1.15rem; }

/* ---------- Contact ---------- */
.contact-list { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 24px; }
.c-item { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.c-item > i {
  flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--rose-soft); color: var(--plum);
}
.c-item strong { display: block; font-size: .92rem; color: var(--plum-dark); }
.c-item span { font-size: .88rem; color: var(--muted); }
.c-item.emergency > i { background: var(--rose); color: #fff; animation: heartbeat 2s ease-in-out infinite; }
.c-item a { font-weight: 600; }
.map-wrap { border-radius: var(--radius); overflow: hidden; height: 220px; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }

.appt-form { position: relative; background: #fff; border-radius: 28px; padding: 44px; box-shadow: var(--shadow); overflow: hidden; }
.appt-form h3 { font-size: 1.7rem; }
.form-control, .form-select { border-radius: 14px; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(24,188,199,.15); }
.form-success {
  position: absolute; inset: 0; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px;
  opacity: 0; visibility: hidden; transform: scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.form-success i { font-size: 3.6rem; color: var(--teal); }
.appt-form.sent .form-success { opacity: 1; visibility: visible; transform: none; }
.appt-form.sent .form-success i { animation: pop .6s var(--ease) both .15s; }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.15); } to { transform: scale(1); } }

/* ---------- Footer ---------- */
.footer { background: var(--plum-dark); color: rgba(255,255,255,.7); padding: 80px 0 28px; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text small, .footer p { color: rgba(255,255,255,.62); }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: rgba(255,255,255,.68); transition: color .3s, padding .3s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer-phone { font-family: var(--font-head); font-size: 1.6rem; color: #8FE3E9; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; font-size: .85rem;
}

/* ---------- Floating actions ---------- */
.fab {
  position: fixed; left: 20px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 1.3rem; z-index: 1000;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); transition: transform .3s var(--ease);
}
.fab:hover { color: #fff; transform: scale(1.08); }
.fab-call { bottom: 86px; background: var(--rose); animation: heartbeat 2.4s ease-in-out infinite; }
.fab-wa { bottom: 22px; background: #25D366; }
.back-top {
  position: fixed; right: 20px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--plum); color: #fff; z-index: 1000;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s, transform .4s var(--ease), visibility .4s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================
   Scroll reveal
   ========================================================== */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-left { transform: translateX(-46px); }
.reveal-right { transform: translateX(46px); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 80px 0; }
  .hero { padding: 50px 0 100px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .doctor-body { padding: 32px; }
  .doctor-photo { min-height: 340px; }
  .expansion, .appt-form { padding: 30px; }
}
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .hero-trust { flex-direction: row; }
  .hero-trust { gap: 18px; }
  .float-card { padding: 9px 12px; }
  .card-a { left: 0; } .card-b { right: 0; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-card { padding: 32px 22px; }
  .about-visual { padding-right: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; }
}

/* ==========================================================
   v2 — #18bcc7 theme, new sections, button motion
   ========================================================== */
:root { --primary: #18bcc7; --primary-dark: #0E97A1; --primary-deep: #0A2E36; }
.hero-title em { color: var(--primary); }
::selection { background: var(--primary); color: #fff; }

/* Navbar: 7 items */
@media (min-width: 1200px) {
  .navbar .nav-link { padding: 8px 11px !important; font-size: .9rem; }
  .navbar .nav-link::after { left: 11px; right: 11px; }
}
@media (max-width: 1399.98px) and (min-width: 1200px) {
  .brand-text small { display: none; }
  .nav-cta { padding: 10px 18px; font-size: .88rem; }
}
.topbar-emergency:hover { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; will-change: transform; }
.btn-brand { background: var(--primary); color: #fff; }
.btn-brand::before { background: linear-gradient(120deg, var(--primary-dark), var(--primary-deep)); }
/* shine sweep */
.btn-brand::after, .btn-light-brand::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn-brand:hover::after, .btn-light-brand:hover::after { animation: shine .85s var(--ease); }
@keyframes shine { to { left: 130%; } }
.btn-brand:hover { box-shadow: 0 14px 30px -10px rgba(24,188,199,.7); transform: translateY(-3px); }
.btn-brand:active, .btn-ghost:active, .btn-light-brand:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
/* ghost: fill slides in */
.btn-ghost { color: var(--primary-deep); border-color: var(--line); }
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--primary);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.btn-ghost:hover { color: #fff; border-color: var(--primary); }
.btn-ghost:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-ghost:hover i { animation: ring .6s ease-in-out; }
@keyframes ring { 0%,100% { transform: rotate(0); } 20%,60% { transform: rotate(-14deg); } 40%,80% { transform: rotate(14deg); } }
.btn-light-brand { color: var(--primary-deep); }
.btn-light-brand:hover { background: #fff; color: var(--primary-dark); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.btn:hover i.bi-arrow-right, .btn:hover i.bi-send { transform: translateX(5px); }
/* click ripple */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .65s ease-out forwards;
}
.btn-ghost .ripple { background: rgba(24,188,199,.3); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
/* magnetic buttons move via JS translate */
.magnetic { transition: translate .35s var(--ease), transform .3s var(--ease), box-shadow .3s; }

.testi-btn:hover, .back-top:hover { background: var(--primary); color: #fff; }
.back-top { background: var(--primary-deep); transition: opacity .4s, transform .4s var(--ease), visibility .4s, background .3s; }
.back-top:hover { transform: translateY(-4px); }
.fab-call { background: var(--primary); }
.fab:hover { transform: scale(1.1) rotate(-8deg); }
.loader-heart { background: var(--primary); }
.service-card:hover .s-icon { background: var(--primary); }
.service-tabs .nav-link { transition: background .35s var(--ease), color .35s; }
.service-tabs .nav-link:not(.active):hover { color: var(--primary-dark); background: var(--rose-soft); }
.service-tabs .nav-link.active { background: var(--primary); }
.why { background: linear-gradient(135deg, #082730, var(--primary-deep) 55%, #0E5A63); }
.why-item > i { background: rgba(24,188,199,.18); color: var(--primary); }
.room-ribbon, .exp-badge { background: var(--primary); }
.marquee { background: var(--primary-deep); }
.marquee-track i { color: var(--primary); }

/* ---------- About: vision / values ---------- */
.vm-card {
  height: 100%; background: #fff; border-radius: 18px; padding: 22px; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.vm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.vm-card i { font-size: 1.5rem; color: var(--primary); }
.vm-card h3 { font-size: 1.12rem; margin: 10px 0 6px; }
.vm-card p { font-size: .88rem; margin: 0; }
.values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.values span {
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  border: 1.5px solid var(--primary); color: var(--primary-dark); background: #fff;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.values span:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ---------- Infrastructure ---------- */
.infra-visual {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4.3;
  background: linear-gradient(150deg, #D4F4F6, #BFE8EE 55%, #E6F7F8); box-shadow: var(--shadow);
}
.infra-visual img { width: 100%; height: 100%; object-fit: cover; }
.infra-units {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.infra-units span {
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: 12px;
  padding: 10px; font-size: .82rem; font-weight: 600; color: var(--primary-deep);
  display: flex; align-items: center; gap: 6px; justify-content: center;
  transition: background .3s, color .3s, transform .35s var(--ease);
}
.infra-units span i { color: var(--primary); transition: color .3s; }
.infra-units span:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.infra-units span:hover i { color: #fff; }
.amenities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 56px 0 70px; }
.amenity {
  text-align: center; padding: 22px 12px; border-radius: 18px; background: var(--cream);
  transition: transform .45s var(--ease), background .4s, box-shadow .45s;
}
.amenity i {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: #fff; color: var(--primary); font-size: 1.3rem; margin-bottom: 10px;
  transition: transform .5s var(--ease);
}
.amenity span { display: block; font-size: .85rem; font-weight: 600; color: var(--primary-deep); }
.amenity:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-6px); }
.amenity:hover i { transform: rotateY(360deg); }

/* ---------- Gallery ---------- */
.g-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.g-filters button {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; font-size: .88rem;
  padding: 9px 20px; border-radius: 999px; transition: all .35s var(--ease);
}
.g-filters button:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }
.g-filters button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.g-item {
  position: relative; margin: 0; border-radius: 20px; overflow: hidden; cursor: zoom-in;
  background: linear-gradient(150deg, #DDF4F6, #C8EBF0);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.g-item:nth-child(3n) { background: linear-gradient(150deg, #E6F7F8, #BDEFF2); }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img, .g-item .photo-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to top, rgba(10,46,54,.85), transparent);
  color: #fff; font-weight: 600; font-size: .92rem;
  transform: translateY(100%); transition: transform .5s var(--ease);
}
.g-item figcaption i {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary);
  display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease) .1s;
}
.g-item:hover img, .g-item:hover .photo-placeholder, .g-item:focus-visible .photo-placeholder { transform: scale(1.08); }
.g-item:hover figcaption, .g-item:focus-visible figcaption { transform: none; }
.g-item:hover figcaption i, .g-item:focus-visible figcaption i { transform: none; }
.g-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.g-item.is-hidden { display: none; }
.g-item.is-entering { animation: gIn .5s var(--ease) both; }
@keyframes gIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.lightbox-content { background: transparent; border: 0; position: relative; }
.lightbox-content .btn-close { position: absolute; top: -40px; right: 0; opacity: .9; }
.lightbox-media { border-radius: 20px; overflow: hidden; background: linear-gradient(150deg, #DDF4F6, #BFE8EE); min-height: 60vh; display: grid; }
.lightbox-media img { width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.lightbox-media .photo-placeholder { min-height: 60vh; font-size: 1rem; }
.lightbox-caption { color: #fff; text-align: center; margin: 14px 0 0; font-weight: 600; }
.modal.fade .modal-dialog { transform: scale(.94); transition: transform .4s var(--ease); }
.modal.show .modal-dialog { transform: none; }
.modal-backdrop.show { opacity: .85; }

.reveal-zoom { transform: scale(.94); }

/* ---------- Responsive additions ---------- */
@media (max-width: 1199.98px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px) {
  .g-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 575.98px) {
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .g-grid { grid-auto-rows: 150px; gap: 10px; }
  .g-item.wide { grid-column: span 2; }
  .g-item figcaption { transform: none; padding: 30px 12px 10px; font-size: .8rem; }
  .g-item figcaption i { display: none; }
  .infra-units { grid-template-columns: repeat(2, 1fr); }
}
.stat strong span, .doc-exp strong span { font-size: inherit; color: inherit; }
.g-grid { grid-auto-flow: dense; }
@media (max-width: 575.98px) { .infra-visual { aspect-ratio: 4 / 5; } }
