/* =========================================================
   Mehak Nursing Home & Diagnostics — Custom Stylesheet
   Palette drawn from the clinic's own blush-pink interior,
   warm wood desk tones and teal signage stripe.
========================================================= */

:root{
  --rose-deep:   #9C3B5E;   /* primary - headings, buttons */
  --rose-deep-d: #7C2E4B;   /* hover state */
  --rose-soft:   #FBE9EE;   /* light section background */
  --blush:       #FFF7F5;   /* base page background */
  --teal:        #1E7A72;   /* secondary accent, from signage */
  --teal-d:      #145A54;
  --ink:         #2C2230;   /* body text */
  --ink-soft:    #6B5C63;   /* muted text */
  --gold:        #B7893F;   /* certificate / credential accent */
  --line:        #EBD7DD;
  --radius:      6px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Work Sans", "Segoe UI", Arial, sans-serif;
}

*{box-sizing:border-box;}

body{
  font-family: var(--sans);
  color: var(--ink);
  background: var(--blush);
  line-height: 1.65;
  overflow-x: hidden;
}

h1,h2,h3,h4,.font-serif{
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.2rem, 4vw, 3.4rem); line-height:1.08; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); line-height:1.15; }
h3{ font-size: 1.35rem; }

a{ color: var(--rose-deep); text-decoration:none; }
a:hover{ color: var(--rose-deep-d); }

.container-narrow{ max-width: 760px; }

/* ---------- Buttons ---------- */
.btn-brand{
  background: var(--rose-deep);
  color:#fff;
  border: 1px solid var(--rose-deep);
  padding: .75rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-brand:hover{ background: var(--rose-deep-d); color:#fff; border-color:var(--rose-deep-d); }

.btn-outline-brand{
  background: transparent;
  color: var(--rose-deep);
  border: 1px solid var(--rose-deep);
  padding: .75rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-outline-brand:hover{ background: var(--rose-deep); color:#fff; }

.btn-teal{
  background: var(--teal);
  color:#fff;
  border:1px solid var(--teal);
  padding:.75rem 1.7rem;
  border-radius: var(--radius);
  font-weight:600;
}
.btn-teal:hover{ background:var(--teal-d); color:#fff; }

/* ---------- Topbar ---------- */
.topbar{
  background: var(--ink);
  color: #f2e9ec;
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar a{ color:#f2e9ec; }
.topbar a:hover{ color: #fff; }
.topbar .divider{ opacity:.35; margin: 0 .6rem; }
.topbar .emergency-pill{
  background: var(--rose-deep);
  color:#fff;
  padding: .15rem .7rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: .78rem;
}

/* ---------- Navbar ---------- */
.navbar-brand-wrap{ display:flex; align-items:center; gap:.7rem; }
.navbar-brand-wrap img{ height: 48px; width:auto; }
.brand-text-name{ font-family: var(--serif); font-weight:700; font-size:1.15rem; color:var(--ink); line-height:1.1; }
.brand-text-tag{ font-size:.7rem; color: var(--ink-soft); letter-spacing:.02em; }

.site-navbar{
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: .6rem 0;
}
.site-navbar .nav-link{
  color: var(--ink);
  font-weight: 500;
  margin: 0 .35rem;
  position: relative;
}
.site-navbar .nav-link.active,
.site-navbar .nav-link:hover{ color: var(--rose-deep); }
.site-navbar .nav-link.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-4px;
  height:2px; background: var(--rose-deep);
}

/* ---------- Hero / Banner slider ---------- */
.hero-slider{ position: relative; }
.hero-slide{
  min-height: 78vh;
  display:flex;
  align-items:center;
  background-size: cover;
  background-position:center;
  position: relative;
}
.hero-slide::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(100deg, rgba(44,34,48,.78) 0%, rgba(44,34,48,.45) 45%, rgba(44,34,48,.15) 75%);
}
.hero-slide .hero-content{
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 620px;
}
.hero-slide .hero-content .eyebrow{
  color: #F4C9D4;
  font-weight:600;
  margin-bottom: .6rem;
}
.hero-slide .hero-content p{
  color: #EFE3E7;
  font-size: 1.1rem;
  margin: 1rem 0 1.8rem;
}
.carousel-indicators [data-bs-target]{
  background-color:#fff;
  width:9px; height:9px; border-radius:50%; opacity:.6;
}
.carousel-indicators .active{ opacity:1; }
.hero-arrow{
  width:48px; height:48px; border-radius:50%;
  background: rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.5);
  display:flex; align-items:center; justify-content:center;
}

/* ---------- Section spacing ---------- */
.section{ padding: 5rem 0; }
.section-soft{ background: var(--rose-soft); }
.section-ink{ background: var(--ink); color:#EFE3E7; }
.section-ink h2{ color:#fff; }

.eyebrow-label{
  color: var(--teal);
  font-weight:600;
  font-size:.85rem;
  margin-bottom:.5rem;
  display:block;
}

/* ---------- Stats strip ---------- */
.stat-item{ border-left: 2px solid var(--rose-deep); padding-left: 1rem; }
.stat-number{ font-family: var(--serif); font-size:2.4rem; color: var(--rose-deep); font-weight:700; line-height:1; }
.stat-label{ color: var(--ink-soft); font-size:.9rem; }

/* ---------- Services ---------- */
.service-tile{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  height: 100%;
  background:#fff;
  transition: border-color .2s ease, transform .2s ease;
}
.service-tile:hover{ border-color: var(--rose-deep); transform: translateY(-3px); }
.service-tile .icon-wrap{
  width:52px; height:52px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-deep);
  display:flex; align-items:center; justify-content:center;
  font-size:1.4rem;
  margin-bottom:1rem;
}
.service-tile h3{ font-size:1.15rem; margin-bottom:.5rem;}
.service-tile p{ color: var(--ink-soft); font-size:.94rem; margin-bottom:1rem;}
.service-tile .service-link{ font-weight:600; font-size:.9rem; }

/* ---------- Doctor card ---------- */
.doctor-photo-frame{
  border: 8px solid #fff;
  box-shadow: 0 20px 40px rgba(44,34,48,.15);
  border-radius: var(--radius);
}
.credential-badge{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  background:#fff;
  display:flex; gap:.7rem; align-items:flex-start;
}
.credential-badge i{ color: var(--gold); font-size:1.2rem; margin-top:.15rem; }

/* ---------- Gallery ---------- */
.gallery-filter .btn{
  border-radius: 20px;
  border:1px solid var(--line);
  color: var(--ink);
  padding: .4rem 1.1rem;
  font-size:.88rem;
  margin: .2rem;
}
.gallery-filter .btn.active,
.gallery-filter .btn:hover{ background: var(--rose-deep); border-color:var(--rose-deep); color:#fff; }
.gallery-item{
  overflow:hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery-item img{
  width:100%; height:260px; object-fit:cover;
  transition: transform .5s ease;
}
.gallery-item:hover img{ transform: scale(1.07); }

/* ---------- Blog ---------- */
.blog-card{ background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; height:100%; }
.blog-card img{ width:100%; height:200px; object-fit:cover; }
.blog-card .blog-body{ padding: 1.4rem; }
.blog-card .blog-meta{ font-size:.8rem; color: var(--ink-soft); margin-bottom:.5rem; }
.blog-card h3{ font-size:1.1rem; margin-bottom:.6rem; }
.blog-card p{ color: var(--ink-soft); font-size:.92rem; }

/* ---------- Testimonial / ambiance ---------- */
.ambiance-frame{ border-radius: var(--radius); overflow:hidden; }
.ambiance-frame img{ width:100%; height:100%; object-fit:cover; }

/* ---------- Contact ---------- */
.contact-info-item{ display:flex; gap:1rem; padding: 1.1rem 0; border-bottom:1px solid var(--line); }
.contact-info-item i{ color: var(--rose-deep); font-size:1.3rem; }
.form-control{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .9rem;
}
.form-control:focus{ border-color: var(--rose-deep); box-shadow: 0 0 0 .2rem rgba(156,59,94,.12); }
.map-frame{ border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: #cbb9c0; padding-top: 4rem; }
.site-footer h5{ color:#fff; font-family: var(--serif); margin-bottom:1.1rem; }
.site-footer a{ color:#cbb9c0; }
.site-footer a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); margin-top:2.5rem; padding:1.2rem 0; font-size:.85rem; }
.social-icons a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid rgba(255,255,255,.25);
  display:inline-flex; align-items:center; justify-content:center;
  margin-right:.5rem;
}
.social-icons a:hover{ background: var(--rose-deep); border-color:var(--rose-deep); }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float{
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.7rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  z-index: 999;
  animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow:0 0 0 14px rgba(37,211,102,0); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Page header (inner pages) ---------- */
.page-header{
  background: var(--rose-soft);
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}
.page-header .breadcrumb-nav{ color: var(--ink-soft); font-size:.9rem; }

/* ---------- Scroll reveal ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity:1; transform: translateY(0); }

/* ---------- Back to top ---------- */
.back-to-top{
  position: fixed; bottom: 24px; left: 24px;
  width:44px; height:44px; border-radius:50%;
  background: var(--rose-deep); color:#fff;
  display:none; align-items:center; justify-content:center;
  z-index: 998; border:none;
}
.back-to-top.show{ display:flex; }

@media (max-width: 767px){
  .hero-slide{ min-height: 92vh; }
  .section{ padding: 3.2rem 0; }
}
