/* ========================================================
   TANVI PHARMACY & PHARMA CLINIC - CORE STYLESHEET
   Brand Colors: Medical Red (#b91c1c), Health Green (#15803d), Deep Slate (#0f172a)
   Mobile First, Fluid Typography, Zero Horizontal Overflow, Smooth Touch Scrolling
   ======================================================== */

:root {
  --primary: #b91c1c;
  --primary-hover: #991b1b;
  --primary-light: #fef2f2;
  --secondary: #15803d;
  --secondary-hover: #166534;
  --secondary-light: #f0fdf4;
  --accent-blue: #0284c7;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --light-bg: #f8fafc;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-divine: 'Rozha One', serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 10px 25px -5px rgba(185, 28, 28, 0.08), 0 8px 10px -6px rgba(185, 28, 28, 0.04);
  --transition-fast: all 0.25s ease-in-out;
}

/* Base Resets & Complete Scroll Overflow Protection */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* Ensure Anchor Scrolling Lands Perfectly Below Sticky Navbar */
#home, #about, #rooms, #why-us, #location, #contact {
  scroll-margin-top: 85px;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
}

section, header, nav, footer, main, .container, .container-fluid {
  max-width: 100%;
  overflow-x: clip;
}

/* ========================================================
   TOPBAR
   ======================================================== */
.topbar-wrapper {
  background-color: var(--dark);
  width: 100%;
}

.topbar-divine-strip {
  background: linear-gradient(90deg, #991b1b 0%, #0f172a 50%, #14532d 100%);
  font-size: 0.82rem;
}

.topbar-spiritual .spiritual-tag {
  font-family: var(--font-divine);
  font-size: 0.92rem;
  letter-spacing: 0.5px;
}

.topbar-compliance {
  font-size: 0.78rem;
}

.topbar-contact-strip {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.topbar-emergency-pill {
  background: var(--primary-light);
  border: 1px solid #fecaca;
  padding: 3px 10px;
  border-radius: 50px;
}

.pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.topbar-contact-item {
  transition: var(--transition-fast);
}

.topbar-contact-item:hover {
  color: var(--primary) !important;
}

/* ========================================================
   NAVBAR (BIGGER PROMINENT LOGO)
   ======================================================== */
.site-navbar {
  background-color: #ffffff;
  transition: var(--transition-fast);
  padding: 0.6rem 0;
  width: 100%;
}

/* Bigger, more prominent logo container */
.brand-logo-container {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fee2e2;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  padding: 3px;
  transition: transform 0.25s ease;
}

.brand-logo-container:hover {
  transform: scale(1.05);
}

.navbar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text-wrap {
  line-height: 1.15;
}

.brand-title-en {
  font-size: 1.32rem;
  letter-spacing: -0.3px;
}

.brand-subtitle-en {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.brand-doctor-tag {
  font-size: 0.8rem;
}

@media (max-width: 767.98px) {
  .navbar-brand {
    max-width: calc(100% - 56px);
  }
  .brand-logo-container {
    width: 68px;
    height: 68px;
    min-width: 68px;
    padding: 2px;
  }
  .brand-title-en {
    font-size: 1.1rem;
  }
  .brand-subtitle-en {
    font-size: 0.82rem;
  }
  .brand-doctor-tag {
    font-size: 0.72rem;
  }
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.btn-header-cta {
  background-color: var(--primary);
  border: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.btn-header-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* ========================================================
   HERO CAROUSEL SECTION (TOUCH SCROLL PERMITTED, CENTERED TEXT)
   ======================================================== */
.hero-section {
  position: relative;
  background-color: #0f172a;
  width: 100%;
  overflow: hidden;
}

/* Allow native touch scrolling vertically across carousel */
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  touch-action: pan-y pinch-zoom;
}

.hero-carousel .carousel-item {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 992px) {
  .hero-carousel .carousel-item {
    min-height: 600px;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item {
    min-height: 480px;
  }
  /* Hide side arrows on mobile touch to prevent intercepting finger scrolls */
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.88) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 15px;
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: clamp(0.75rem, 2.8vw, 0.88rem);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-title {
  font-size: clamp(1.6rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-desc {
  font-size: clamp(0.92rem, 3.2vw, 1.15rem);
  color: #e2e8f0;
  max-width: 700px;
  margin: 0 auto 24px auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

.btn-hero-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 50px;
  border: none;
  font-size: 0.98rem;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.6);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.98rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: #ffffff;
  color: var(--dark);
  transform: translateY(-2px);
}

/* ========================================================
   PAGE HEADER BANNER (FOR INNER PAGES: ABOUT, SERVICES, CONTACT)
   ======================================================== */
.page-header-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
}

.page-header-banner .hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Quick Features Strip below Hero */
.hero-features-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
  margin-top: -24px;
}

.feature-pill-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition-fast);
}

.feature-pill-card:hover {
  transform: translateY(-4px);
  border-color: #fca5a5;
}

.feature-pill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ========================================================
   SECTION TITLES
   ======================================================== */
.section-header {
  margin-bottom: 36px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2.3rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: clamp(0.88rem, 3vw, 1.05rem);
}

/* ========================================================
   ABOUT SECTION (NO OVERFLOW POSITIONING)
   ======================================================== */
.about-section {
  background-color: #ffffff;
  overflow: hidden;
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.about-image-main {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

/* Kept safely inside the container bounds */
.about-floating-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #fee2e2;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 575.98px) {
  .about-floating-badge {
    position: static;
    margin-top: 15px;
    border-radius: 12px;
  }
}

.stat-counter-card {
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 15px;
  text-align: center;
  transition: var(--transition-fast);
}

.stat-counter-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.counter-number {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

/* ========================================================
   ROOM & CLINIC SECTION (Grid with Price & WhatsApp Booking)
   ======================================================== */
.rooms-section {
  background: #f8fafc;
}

.room-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: #fca5a5;
}

.room-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.room-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-image-wrap img {
  transform: scale(1.06);
}

.room-badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

.room-price-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--secondary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.4);
}

.room-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.room-features-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px 0;
  flex-grow: 1;
}

.room-features-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-room-book {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-room-book:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
}

/* ========================================================
   WHY CHOOSE US SECTION
   ======================================================== */
.why-us-section {
  background: #ffffff;
}

.why-card {
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
  height: 100%;
}

.why-card:hover {
  border-color: #fca5a5;
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.why-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ========================================================
   GOOGLE MAP & LOCATION SECTION
   ======================================================== */
.location-section {
  background: var(--light-bg);
}

.map-card-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.map-container {
  height: 380px;
  width: 100%;
}

@media (max-width: 767.98px) {
  .map-container {
    height: 280px;
  }
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info-card {
  padding: 24px;
}

/* ========================================================
   CONTACT US SECTION
   ======================================================== */
.contact-section {
  background: #ffffff;
}

.contact-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 26px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.contact-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ========================================================
   FOOTER (BIGGER WHITE BG LOGO EMBLEM)
   ======================================================== */
.site-footer {
  background-color: var(--dark);
  color: #ffffff;
}

/* Bigger white background footer logo */
.footer-logo-wrap {
  width: 86px;
  height: 86px;
  min-width: 86px;
  border-radius: 50%;
  background-color: #ffffff !important;
  padding: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-title {
  font-size: 1.1rem;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 8px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-bottom-bar {
  background-color: #090d16;
}

/* ========================================================
   FLOATING ACTION BUTTONS
   ======================================================== */
.floating-action-buttons {
  position: fixed;
  bottom: 20px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1050;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .floating-action-buttons {
    bottom: 16px;
    left: 12px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
}

.floating-call {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.floating-whatsapp {
  background: #25d366;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  color: #ffffff;
}

/* Floating Back to Top Button */
.floating-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 16px;
  width: 46px;
  height: 46px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
  z-index: 1050;
  cursor: pointer;
  transition: var(--transition-fast);
}

@media (max-width: 575.98px) {
  .floating-back-to-top {
    bottom: 16px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

.floating-back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-4px);
}

.floating-back-to-top.show {
  display: flex;
}

/* ========================================================
   AOS SCROLL OVERFLOW FIX (DESKTOP + MOBILE)
   Completely prevents side translate from triggering horizontal scrollbar
   ======================================================== */
[data-aos] {
  transition-property: opacity, transform !important;
}
[data-aos="fade-left"],
[data-aos="fade-right"] {
  transform: translate3d(0, 25px, 0) !important;
}
[data-aos].aos-animate {
  transform: translate3d(0, 0, 0) !important;
}

/* Utilities */
.x-small {
  font-size: 0.76rem;
}

.bg-danger-subtle {
  background-color: #fee2e2 !important;
}

.text-danger {
  color: var(--primary) !important;
}

.btn-danger {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-danger:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* ========================================================
   GALLERY & ENERGY DRINK STYLES
   ======================================================== */
.gallery-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12) !important;
}

.gallery-card img {
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.energy-drink-section {
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  border-top: 1px solid #fed7aa;
  border-bottom: 1px solid #fed7aa;
}

