/**
 * Ravi Healthcare / Aastha Healthcare Products
 * Modern Clinical Design System & Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0f3d6b;
  --primary-dark: #0b2545;
  --primary-deep: #07192f;
  --primary-light: #e0f2fe;
  --primary-tint: #f0f7fc;
  
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-teal: #0d9488;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #e11d48;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --bg-body: #ffffff;
  --bg-alt: #f8fafc;
  --bg-soft-blue: #f0f7fc;
  --bg-dark: #0b2545;
  --bg-card: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #0284c7;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);
  --shadow-card-hover: 0 15px 30px -5px rgba(15, 61, 107, 0.12);

  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h4 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue-hover);
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.5);
  outline-offset: 2px;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.font-heading { font-family: var(--font-heading); }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

.text-primary-dark { color: var(--primary-dark) !important; }
.text-accent-blue { color: var(--accent-blue) !important; }
.text-accent-teal { color: var(--accent-teal) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

.bg-soft-blue { background-color: var(--bg-soft-blue) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-alt-custom { background-color: var(--bg-alt) !important; }

.section-padding {
  padding: 5rem 0;
}
@media (max-width: 768px) {
  .section-padding { padding: 3.5rem 0; }
}

.section-header {
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  background: var(--primary-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}
.section-tag i {
  font-size: 0.75rem;
}

.section-title {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
}
.section-desc.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn-med {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-med-primary {
  background-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.btn-med-primary:hover {
  background-color: var(--accent-blue-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-med-dark {
  background-color: var(--primary-dark);
  color: #ffffff;
}
.btn-med-dark:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11, 37, 69, 0.3);
}

.btn-med-outline {
  background-color: transparent;
  color: var(--primary-dark);
  border-color: var(--border-color);
}
.btn-med-outline:hover {
  background-color: var(--bg-soft-blue);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-med-outline-white {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-med-outline-white:hover {
  background-color: #ffffff;
  color: var(--primary-dark);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-med-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-med-whatsapp:hover {
  background-color: #1eb954;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-med-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-med-lg {
  padding: 0.95rem 2.2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* Top Information Bar */
.top-info-bar {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-info-bar a {
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.top-info-bar a:hover {
  color: #38bdf8;
}
.top-info-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 0.85rem;
  vertical-align: middle;
}

/* Main Fixed & Sticky Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(11, 37, 69, 0.05);
  transition: all var(--transition-normal);
}
.main-header.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
  background-color: #ffffff;
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}
.navbar-brand-custom img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-link-custom {
  font-family: var(--font-sans);
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--primary-dark) !important;
  padding: 1.15rem 0.65rem !important;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast);
}
.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--accent-blue) !important;
}
.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.65rem;
  right: 0.65rem;
  height: 3px;
  background-color: var(--accent-blue);
  border-radius: 3px 3px 0 0;
}

/* Mega Menu Dropdown */
.nav-item-dropdown {
  position: static;
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border-top: 2px solid var(--accent-blue);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  padding: 2rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-smooth);
  z-index: 1010;
}
.nav-item-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-category-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  height: 100%;
  border: 1px solid transparent;
}
.mega-menu-category-card:hover {
  background-color: var(--bg-soft-blue);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}
.mega-menu-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.mega-menu-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}
.mega-menu-cat-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mega-menu-footer {
  background: var(--bg-alt);
  padding: 1rem 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Mobile Offcanvas Drawer */
.offcanvas-custom {
  max-width: 340px;
  border-right: none;
}
.offcanvas-custom .offcanvas-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}
.offcanvas-custom .nav-link-mobile {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm);
}
.offcanvas-custom .nav-link-mobile:hover,
.offcanvas-custom .nav-link-mobile.active {
  background-color: var(--bg-soft-blue);
  color: var(--accent-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0b2545 0%, #0f3d6b 55%, #0284c7 100%);
  color: #ffffff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.15), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.12), transparent 40%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}
.hero-title {
  color: #ffffff;
  font-size: clamp(2.25rem, 4.5vw, 3.65rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.35rem;
}
.hero-title span {
  color: #38bdf8;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-certifications-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-cert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.hero-cert-item i {
  color: #38bdf8;
  font-size: 1rem;
}

.hero-visual-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  transition: transform var(--transition-smooth);
}
.hero-visual-wrapper:hover {
  transform: translateY(-4px);
}

/* Stats Counter Ribbon */
.stats-ribbon {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem 2rem;
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border-color);
}
.stat-box {
  text-align: center;
  padding: 0.5rem 1rem;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.15rem;
}
.stat-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Product Cards & Grid
   ========================================================================== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-smooth);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(2, 132, 199, 0.3);
}

.product-image-box {
  position: relative;
  background: var(--bg-alt);
  padding: 1.75rem 1.5rem;
  text-align: center;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
}
.product-image-box img {
  max-height: 190px;
  width: auto;
  transition: transform var(--transition-smooth);
}
.product-card:hover .product-image-box img {
  transform: scale(1.06);
}

.product-tag-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.object-fit-cover {
  object-fit: cover !important;
}
.transition-zoom {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-thumb-img {
  transform: scale(1.06);
}
.hover-primary {
  transition: color var(--transition-fast);
}
.hover-primary:hover {
  color: var(--accent-blue) !important;
}

.product-category-chip {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  display: block;
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.product-title a {
  color: inherit;
}
.product-title a:hover {
  color: var(--accent-blue);
}

.product-desc-short {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}
.product-specs-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-specs-list li i {
  color: var(--accent-teal);
  font-size: 0.75rem;
}

.product-card-footer {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}
.product-card-footer .btn-med {
  flex: 1;
}

/* Category Filter Tabs (products.php) */
.category-filter-nav {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.category-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}
.category-filter-btn .badge {
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}
.category-filter-btn:not(.active) .badge {
  background: var(--border-color);
  color: var(--text-muted);
}

/* Search Box on Products Page */
.product-search-input-wrap {
  position: relative;
}
.product-search-input-wrap i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.95rem;
}
.product-search-input {
  padding-left: 2.75rem;
  padding-right: 2.5rem;
  height: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}
.product-search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}
.product-search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: none;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.product-detail-hero {
  background: var(--bg-alt);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}
.product-gallery-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.product-gallery-box img {
  max-height: 420px;
  width: auto;
}

.spec-table-custom {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.spec-table-custom tr {
  border-bottom: 1px solid var(--border-color);
}
.spec-table-custom tr:last-child {
  border-bottom: none;
}
.spec-table-custom th {
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--bg-soft-blue);
  width: 35%;
  font-size: 0.875rem;
}
.spec-table-custom td {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-main);
}
.feature-check-list li i {
  position: absolute;
  left: 0;
  top: 0.25rem;
  color: var(--accent-teal);
  font-size: 1rem;
}

/* ==========================================================================
   Trust & Certifications Grid
   ========================================================================== */
.cert-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: all var(--transition-smooth);
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}
.cert-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
}
.cert-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.feature-box-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  height: 100%;
  transition: all var(--transition-smooth);
}
.feature-box-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.3);
}
.feature-box-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Testimonials Carousel / Cards
   ========================================================================== */
.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial-quote-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}
.testimonial-rating {
  color: var(--accent-amber);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--bg-soft-blue);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ==========================================================================
   Forms & Validation
   ========================================================================== */
.form-group-custom {
  margin-bottom: 1.35rem;
}
.form-label-custom {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
  display: block;
}
.form-label-custom .required-star {
  color: var(--accent-rose);
}
.form-control-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.form-control-custom:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  outline: none;
}
.form-control-custom.is-invalid {
  border-color: var(--accent-rose);
  background-image: none;
}
.invalid-feedback-custom {
  display: none;
  font-size: 0.8125rem;
  color: var(--accent-rose);
  margin-top: 0.35rem;
  font-weight: 500;
}
.form-control-custom.is-invalid ~ .invalid-feedback-custom {
  display: block;
}

/* ==========================================================================
   Inquiry Modal
   ========================================================================== */
.modal-custom .modal-content {
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.modal-custom .modal-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  border-bottom: none;
}
.modal-custom .modal-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}
.modal-custom .modal-body {
  padding: 2rem;
}

/* ==========================================================================
   Floating Action Buttons & Mobile Sticky Bottom Bar
   ========================================================================== */
/* Desktop Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-normal);
  text-decoration: none;
}
.floating-whatsapp-btn:hover {
  background-color: #1eb954;
  color: #ffffff;
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}
.floating-whatsapp-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid #25d366;
  animation: pulseRipple 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulseRipple {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Floating Back to Top Button */
.floating-back-to-top {
  position: fixed;
  bottom: 100px;
  right: 34px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--primary-dark);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}
.floating-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.floating-back-to-top:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

/* Mobile Sticky Bottom CTA Bar (< 768px) */
.mobile-sticky-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
  padding: 0.5rem 0.75rem;
}
@media (max-width: 767.98px) {
  .mobile-sticky-bottom-bar {
    display: block;
  }
  body {
    padding-bottom: 64px; /* prevent content overlap */
  }
  .floating-whatsapp-btn {
    bottom: 80px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
  .floating-back-to-top {
    bottom: 145px;
    right: 22px;
  }
}

.mobile-bottom-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0.5rem;
}
.mobile-bottom-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}
.mobile-bottom-btn.btn-call {
  background: var(--bg-soft-blue);
  color: var(--primary-dark);
}
.mobile-bottom-btn.btn-wa {
  background: #25d366;
  color: #ffffff;
}
.mobile-bottom-btn.btn-quote {
  background: var(--accent-blue);
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background-color: var(--primary-deep);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  padding-top: 4.5rem;
  border-top: 3px solid var(--accent-blue);
}
.footer-heading {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-blue);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}
.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.footer-contact-item i {
  color: var(--accent-blue);
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

.footer-bottom-strip {
  background-color: #040e1b;
  padding: 1.25rem 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* ==========================================================================
   Toast Notification Styling
   ========================================================================== */
.toast-container-custom {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1090;
}
.toast-custom {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Enhancements (100% Responsive)
   ========================================================================== */

/* Tablet & Smaller (< 992px) */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 3.5rem 0 4rem;
    text-align: left;
  }
  .hero-title {
    font-size: clamp(1.85rem, 5vw, 2.6rem);
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .stats-ribbon {
    margin-top: 2rem;
    padding: 1.75rem 1.25rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.875rem;
  }
  .product-gallery-box {
    position: static;
    margin-bottom: 2rem;
    padding: 1.5rem;
  }
  .product-gallery-box img {
    max-height: 320px;
  }
  .sticky-top {
    position: static !important;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 767.98px) {
  html {
    font-size: 15px;
  }
  
  .navbar-brand-custom img {
    height: 38px;
    width: auto;
    max-width: 190px;
  }

  .hero-section {
    padding: 2.75rem 0 3.25rem;
  }
  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  .hero-certifications-strip {
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
  }
  .hero-cert-item {
    font-size: 0.75rem;
  }

  .section-padding {
    padding: 3rem 0;
  }
  .section-header {
    margin-bottom: 2.25rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .section-desc {
    font-size: 0.95rem;
  }

  .stats-ribbon {
    margin-top: 1.5rem;
    padding: 1.25rem 0.75rem;
    border-radius: var(--radius-md);
  }
  .stat-box {
    padding: 0.5rem;
  }
  .stat-number {
    font-size: 1.75rem;
  }
  .stat-label {
    font-size: 0.8125rem;
  }
  .stat-sub {
    font-size: 0.75rem;
  }

  .product-image-box {
    min-height: 200px;
    height: 210px !important;
    padding: 1rem;
  }
  .product-content {
    padding: 1.15rem;
  }
  .product-title {
    font-size: 1.05rem;
  }

  .category-filter-nav {
    gap: 0.4rem;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }
  .category-filter-btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
  }

  .btn-med-lg {
    padding: 0.75rem 1.4rem;
    font-size: 0.9375rem;
    width: 100%;
  }
  
  .spec-table-custom th {
    width: 42%;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
  }
  .spec-table-custom td {
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
  }

  .modal-custom .modal-header {
    padding: 1.25rem 1.25rem;
  }
  .modal-custom .modal-body {
    padding: 1.25rem;
  }

  .main-footer {
    padding-top: 3rem;
  }
  .footer-bottom-strip {
    margin-top: 2.25rem;
    padding: 1rem 0;
  }
  
  .toast-custom {
    min-width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }
}

/* Small Smartphone Screen (< 480px) */
@media (max-width: 479.98px) {
  .navbar-brand-custom img {
    height: 34px;
    max-width: 165px;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .btn-med {
    font-size: 0.875rem;
    padding: 0.65rem 1.1rem;
  }

  .product-card-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .feature-box-card {
    padding: 1.5rem 1.25rem;
  }
  .feature-box-icon {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .spec-table-custom th,
  .spec-table-custom td {
    display: block;
    width: 100%;
  }
  .spec-table-custom th {
    background-color: var(--bg-soft-blue);
    border-bottom: none;
    padding-bottom: 0.25rem;
  }
  .spec-table-custom td {
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
  }

  .mobile-bottom-actions-grid {
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 0.35rem;
  }
  .mobile-bottom-btn {
    font-size: 0.75rem;
    padding: 0.55rem 0.25rem;
  }
}

/* Extra Touch Targets & Prevent Layout Jitter */
button, a, input, select, textarea {
  touch-action: manipulation;
}

