/* =========================================================
   BABU CLINIC — STYLESHEET
   Table of Contents:
   1. Root Variables
   2. Reset / Base
   3. Typography Helpers
   4. Buttons
   5. Top Info Bar
   6. Navbar
   7. Hero Section
   8. Quick Info Strip
   9. About Section
   10. Stats Section
   11. Services Section
   12. Why Choose Us
   13. Doctors Section
   14. Appointment Section
   15. Testimonials + Review
   16. Gallery Section
   17. Patient Journey
   18. FAQ Section
   19. Contact Section
   20. Footer
   21. Floating Buttons
   22. Scroll Reveal / Misc Animations
   23. Media Queries (component-scoped, see above; global tweaks below)
========================================================= */

/* ---------------------------------------------------------
   1. ROOT VARIABLES
--------------------------------------------------------- */
:root {
  --primary: #d44e22;
  --primary-dark: #b83d18;
  --primary-light: #fff1ec;
  --primary-rgb: 212, 78, 34;

  --secondary: #1f2937;
  --secondary-rgb: 31, 41, 55;

  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9aa1ac;

  --white: #ffffff;
  --light-bg: #fffaf7;
  --surface: #ffffff;
  --border-color: #eeeeee;

  --success: #198754;
  --warning: #f2b134;

  --shadow-sm: 0 2px 10px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 12px 30px rgba(31, 41, 55, 0.1);
  --shadow-lg: 0 24px 60px rgba(31, 41, 55, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

/* ---------------------------------------------------------
   2. RESET / BASE
--------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

section {
  scroll-margin-top: 90px;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   3. TYPOGRAPHY HELPERS
--------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--secondary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 3.2vw + 1rem, 3.4rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
}
h3 {
  font-size: 1.2rem;
}

p {
  color: var(--text-muted);
}

.text-accent {
  color: var(--primary);
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffd7c4;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 3rem;
}
.section-heading p {
  margin-bottom: 0;
}

section > .container {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

/* ---------------------------------------------------------
   4. BUTTONS
--------------------------------------------------------- */
.btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-primary-brand {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.28);
}
.btn-primary-brand:hover,
.btn-primary-brand:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(var(--primary-rgb), 0.35);
}

.btn-outline-brand {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  border: 2px solid #25d366;
  color: var(--white);
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.02rem;
}
.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------
   5. TOP INFO BAR
--------------------------------------------------------- */
.topbar {
  background: var(--secondary);
  color: #cfd3d9;
  font-size: 0.82rem;
  padding: 0.5rem 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cfd3d9;
  transition: var(--transition);
}
.topbar-item i {
  color: var(--primary);
}
a.topbar-item:hover {
  color: var(--white);
}

.topbar-right {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}
.topbar-social {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cfd3d9;
  transition: var(--transition);
  font-size: 0.8rem;
}
.topbar-social:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------------------------------------------------------
   6. NAVBAR
--------------------------------------------------------- */
.main-navbar {
  background: rgba(255, 255, 255, 0.97);
  padding: 1.1rem 0;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.main-navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-color);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--secondary);
}
.brand-text em {
  color: var(--primary);
  font-style: normal;
}

.brand-heartbeat {
  width: 70px;
  height: 26px;
  margin-left: 0.3rem;
  overflow: visible;
  flex-shrink: 0;
}
.heartbeat-line-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.heartbeat-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 60 400;
  stroke-dashoffset: 0;
  animation: heartbeat-travel 2.6s linear infinite;
}
@keyframes heartbeat-travel {
  0% {
    stroke-dashoffset: 460;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.navbar-toggler {
  border: none;
  font-size: 1.6rem;
  color: var(--secondary);
  background: transparent;
}
.navbar-toggler:focus {
  box-shadow: none;
}

.main-nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.main-nav-links .nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-dark);
  padding: 0.5rem 0.9rem;
  transition: var(--transition);
}
.main-nav-links .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.main-nav-links .nav-link:hover,
.main-nav-links .nav-link.active {
  color: var(--primary);
}
.main-nav-links .nav-link:hover::after,
.main-nav-links .nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 1rem;
  white-space: nowrap;
}

.offcanvas-nav-links .nav-link {
  display: block;
  padding: 0.8rem 0;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}
.offcanvas-nav-links .nav-link.active,
.offcanvas-nav-links .nav-link:hover {
  color: var(--primary);
}

/* ---------------------------------------------------------
   7. HERO SECTION
--------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, var(--light-bg) 0%, #ffffff 100%);
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero-decor {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--primary-rgb), 0.14) 0%,
    rgba(var(--primary-rgb), 0) 70%
  );
  pointer-events: none;
}
.hero-section .container {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-text-col h1 {
  margin-bottom: 1.1rem;
}
.hero-desc {
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 1.8rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-row {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.trust-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.trust-chip i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.trust-chip strong {
  display: block;
  font-size: 1rem;
  color: var(--secondary);
}
.trust-chip span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 6/7;
}
.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  padding: 0.6rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
}
.hero-badge i {
  color: var(--primary);
}

/* ---------------------------------------------------------
   8. QUICK INFO STRIP
--------------------------------------------------------- */
.quick-info-strip {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}
.quick-info-strip .container {
  padding-top: 0;
  padding-bottom: 0;
}

.quick-info-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.6rem 1.2rem;
  text-align: center;
  height: 100%;
  width: 100%;
  border: none;
  border-top: 3px solid transparent;
  font-family: inherit;
  transition: var(--transition);
}
a.quick-info-card,
button.quick-info-card {
  cursor: pointer;
}
.quick-info-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--primary);
}
.quick-info-card i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
  display: inline-block;
}
.quick-info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.quick-info-card p {
  font-size: 0.82rem;
  margin: 0;
  color: var(--text-muted);
}
.quick-info-emergency {
  background: var(--secondary);
}
.quick-info-emergency i,
.quick-info-emergency h3 {
  color: var(--white);
}
.quick-info-emergency p {
  color: #b8bdc6;
}

/* ---------------------------------------------------------
   9. ABOUT SECTION
--------------------------------------------------------- */
.about-section {
  background: var(--white);
}

.about-image-frame {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}
.about-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 5/5;
  object-fit: cover;
}
.about-experience-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  text-align: center;
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.35);
  line-height: 1.2;
}
.about-experience-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.about-experience-badge span {
  font-size: 0.75rem;
  font-weight: 600;
}

.about-content-col h2 {
  margin-bottom: 1rem;
}
.about-content-col p {
  margin-bottom: 1rem;
}

.about-checklist {
  margin: 1.4rem 0 1.8rem;
}
.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.about-checklist i {
  color: var(--primary);
  margin-top: 0.2rem;
}

/* ---------------------------------------------------------
   10. STATS SECTION
--------------------------------------------------------- */
.stats-section {
  background: var(--secondary);
  background-image: radial-gradient(
    circle at 20% 20%,
    rgba(var(--primary-rgb), 0.15),
    transparent 45%
  );
}
.stat-card i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: inline-block;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.4vw + 1rem, 2.8rem);
  font-weight: 700;
  color: var(--white);
}
.stat-card p {
  color: #b8bdc6;
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   11. SERVICES SECTION
--------------------------------------------------------- */
.services-section {
  background: var(--light-bg);
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-top-color: var(--primary);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.service-card h3 {
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.service-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.service-link i {
  transition: transform 0.3s ease;
}
.service-link:hover i {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   12. WHY CHOOSE US
--------------------------------------------------------- */
.why-us-section {
  background: var(--white);
}
.why-us-section h2 {
  margin-bottom: 1rem;
}
.why-us-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.why-card {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  height: 100%;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.why-card:hover {
  background: var(--primary-light);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateY(-4px);
}
.why-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
  display: inline-block;
}
.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.why-card p {
  font-size: 0.88rem;
  margin: 0;
}

/* ---------------------------------------------------------
   13. DOCTORS SECTION
--------------------------------------------------------- */
.doctors-section {
  background: var(--light-bg);
}

.doctor-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition);
}
.doctor-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.doctor-photo {
  aspect-ratio: 4/4;
  overflow: hidden;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.doctor-card:hover .doctor-photo img {
  transform: scale(1.06);
}
.doctor-info {
  padding: 1.4rem;
}
.doctor-info h3 {
  margin-bottom: 0.2rem;
}
.doctor-spec {
  display: inline-block;
  color: var(--primary);
  background: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 0.8rem;
}
.doctor-meta {
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.doctor-meta i {
  color: var(--primary);
}

/* ---------------------------------------------------------
   14. APPOINTMENT SECTION
--------------------------------------------------------- */
.appointment-section {
  background: var(--secondary);
  background-image: radial-gradient(
    circle at 85% 15%,
    rgba(var(--primary-rgb), 0.18),
    transparent 45%
  );
}
.appointment-info-col h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.appointment-info-col p {
  color: #b8bdc6;
  margin-bottom: 2rem;
}

.appointment-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.appointment-contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.appointment-contact-item i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.appointment-contact-item strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
}
.appointment-contact-item span {
  color: #b8bdc6;
  font-size: 0.85rem;
}

.appointment-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}
.appointment-form .form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--secondary);
}
.appointment-form .form-control,
.appointment-form .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  padding: 0.65rem 0.9rem;
}
.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}
.form-success-message {
  display: none;
  margin-top: 1rem;
  background: #eafaf1;
  color: var(--success);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.form-success-message.show {
  display: block;
}

/* ---------------------------------------------------------
   15. TESTIMONIALS + REVIEW
--------------------------------------------------------- */
.testimonials-section {
  background: var(--white);
}

.testimonial-viewport {
  overflow: hidden;
  /* height: 560px; */
  max-height: 70vh;
  position: relative;
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    180deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.testimonial-track {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  width: 100%;
  height: max-content;
  animation: marquee-vertical 28s linear infinite;
}
.testimonial-viewport:hover .testimonial-track,
.testimonial-track.paused {
  animation-play-state: paused;
}
.testimonial-track.touch-scroll {
  animation: none;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.testimonial-track.touch-scroll::-webkit-scrollbar {
  display: none;
}

@keyframes marquee-vertical {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.testimonial-card {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  position: relative;
}
.quote-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 1.6rem;
  color: rgba(var(--primary-rgb), 0.18);
}
.stars {
  color: var(--warning);
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 0.92rem;
  margin-bottom: 1.4rem;
  min-height: 95px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
  color: var(--secondary);
}
.testimonial-author span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.review-form-card {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.review-form-card h3 {
  margin-bottom: 0.3rem;
}
.review-form-subtitle {
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.review-form-card .form-control {
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  padding: 0.65rem 0.9rem;
}
.review-form-card .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

.star-rating {
  display: flex;
  gap: 0.4rem;
}
.star-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #d9dce1;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.1rem;
}
.star-btn:hover,
.star-btn:focus {
  transform: scale(1.15);
}
.star-btn.active {
  color: var(--warning);
}

/* ---------------------------------------------------------
   16. GALLERY SECTION
--------------------------------------------------------- */
.gallery-section {
  background: var(--light-bg);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 41, 55, 0) 40%,
    rgba(31, 41, 55, 0.75) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1rem;
  color: var(--white);
  opacity: 0;
  transition: var(--transition);
}
.gallery-overlay i {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.gallery-overlay span {
  font-weight: 700;
  font-size: 0.9rem;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-modal-content {
  background: var(--secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
}
.gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}
.gallery-modal-caption {
  color: var(--white);
  text-align: center;
  padding: 1rem;
  margin: 0;
  font-weight: 600;
}

/* Emergency Contact Modal */
.emergency-modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0.5rem 0.5rem 0;
}
.emergency-modal-tab {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 130px;
  background: var(--primary-dark);
  color: var(--white);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
}
.emergency-modal-close {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--light-bg);
  border: none;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.emergency-modal-close:hover {
  background: var(--border-color);
}
.emergency-modal-body {
  padding: 3rem 2.2rem 2.2rem;
  text-align: center;
}
.emergency-pulse-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  animation: emergency-pulse 1.6s ease-in-out infinite;
}
@keyframes emergency-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(var(--primary-rgb), 0);
  }
}
.emergency-modal-body h3 {
  margin-bottom: 0.6rem;
}
.emergency-modal-body p {
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}
.emergency-call-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--light-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  padding: 0.6rem 1.4rem 0.6rem 0.6rem;
  transition: var(--transition);
}
.emergency-call-pill:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.emergency-call-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.emergency-call-number {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

@media (prefers-reduced-motion: reduce) {
  .emergency-pulse-icon {
    animation: none;
  }
}

/* ---------------------------------------------------------
   17. PATIENT JOURNEY
--------------------------------------------------------- */
.journey-section {
  background: var(--secondary);
  position: relative;
}
.journey-row {
  position: relative;
}
.journey-step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.journey-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
}
.journey-step i {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
  display: inline-block;
}
.journey-step h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.journey-step p {
  color: #b8bdc6;
  font-size: 0.85rem;
  margin: 0;
}

/* ---------------------------------------------------------
   18. FAQ SECTION
--------------------------------------------------------- */
.faq-section {
  background: var(--white);
}
.faq-accordion {
  max-width: 850px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  margin-bottom: 1rem;
}
.accordion-button {
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--secondary);
  background: var(--light-bg);
  padding: 1.1rem 1.4rem;
}
.accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--primary-light);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}
.accordion-button::after {
  filter: hue-rotate(320deg) saturate(3);
}
.accordion-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 1.2rem 1.4rem;
}

/* ---------------------------------------------------------
   19. CONTACT SECTION
--------------------------------------------------------- */
.contact-section {
  background: var(--light-bg);
}

.contact-details-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.contact-detail-link {
  transition: var(--transition);
  border-radius: 10px;
  padding: 0.3rem;
  margin-left: -0.3rem;
  margin-right: -0.3rem;
}
.contact-detail-link:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}
.contact-detail-link:hover strong {
  color: var(--primary);
}
.contact-detail-item i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-detail-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--secondary);
}
.contact-detail-item span {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.contact-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 380px;
}

/* ---------------------------------------------------------
   20. FOOTER
--------------------------------------------------------- */
.site-footer {
  background: var(--secondary);
  color: #b8bdc6;
  padding: 4.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-brand .brand-text {
  color: var(--white);
}
.site-footer p {
  color: #9099a5;
}
.footer-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--primary);
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.site-footer ul li {
  margin-bottom: 0.7rem;
}
.site-footer ul li a {
  color: #b8bdc6;
  transition: var(--transition);
}
.site-footer ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.footer-contact-list i {
  color: var(--primary);
  margin-top: 0.2rem;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0 1.5rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
}
.footer-legal {
  display: flex;
  gap: 1.2rem;
}
.footer-legal a {
  font-size: 0.82rem;
  color: #9099a5;
}
.footer-legal a:hover {
  color: var(--primary);
}

/* ---------------------------------------------------------
   21. FLOATING BUTTONS
--------------------------------------------------------- */
.fab {
  position: fixed;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: var(--transition);
  border: none;
}
.fab-whatsapp {
  left: 1.5rem;
  bottom: 1.5rem;
  background: #25d366;
}
.fab-call {
  left: 1.5rem;
  bottom: 5.5rem;
  background: var(--primary);
}
.fab-top {
  right: 1.5rem;
  bottom: 1.5rem;
  background: var(--secondary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}
.fab-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fab:hover {
  transform: scale(1.08);
}
.fab-top.show:hover {
  transform: translateY(0) scale(1.08);
}

/* ---------------------------------------------------------
   22. SCROLL REVEAL / MISC ANIMATIONS
--------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .testimonial-track {
    animation: none !important;
  }
  .heartbeat-line {
    animation: none !important;
    stroke-dashoffset: 0;
  }
}

/* ---------------------------------------------------------
   23. GLOBAL RESPONSIVE TWEAKS
--------------------------------------------------------- */
@media (max-width: 991.98px) {
  section > .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .quick-info-strip {
    margin-top: 1.5rem;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .about-experience-badge {
    right: 0.5rem;
    bottom: -1rem;
    padding: 0.8rem 1rem;
  }
  .journey-row::before {
    display: none;
  }
  .map-frame {
    min-height: 300px;
  }
  .testimonial-viewport {
    height: 460px;
  }
}

@media (max-width: 767.98px) {
  .topbar-item span {
    font-size: 0.78rem;
  }
  .hero-trust-row {
    gap: 1rem;
  }
  .trust-chip i {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .fab {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .fab-whatsapp,
  .fab-call {
    left: 1rem;
  }
  .fab-call {
    bottom: 4.7rem;
  }
  .fab-top {
    right: 1rem;
  }
}

@media (max-width: 399.98px) {
  .brand-text {
    font-size: 1.15rem;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.5rem 0.8rem;
  }
}
