/* ==========================================================================
   Novantix Pharmaceutical Pvt. Ltd. - Master Stylesheet
   ========================================================================== */

:root {
  --primary-color: #0b74de;
  --primary-dark: #085bb0;
  --primary-light: #e8f3fe;
  --secondary-color: #0c2340;
  --secondary-light: #163660;
  --accent-color: #00b4d8;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 20px 40px rgba(11,116,222,0.12);
  --transition-fast: all 0.25s ease-in-out;
  --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global Reset & Typography */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.65;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Utility Classes */
.bg-light-blue {
  background-color: var(--bg-light);
}

.bg-navy {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  display: inline-block;
  margin-bottom: 0.5rem;
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 20px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
}

.btn-theme-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-theme-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11,116,222,0.3);
}

.btn-theme-outline {
  background-color: transparent;
  color: var(--primary-color);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-theme-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.topbar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  padding: 8px 0;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar-info li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.topbar-info li a {
  color: var(--text-dark);
}

.topbar-info li a:hover {
  color: var(--primary-color);
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar-social a {
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.topbar-social a:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Main Navbar */
.site-header {
  background: #ffffff;
  transition: var(--transition-normal);
  z-index: 1000;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.site-header.sticky {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar-brand img {
  height: 58px;
  width: auto;
}

.navbar-nav .nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  padding: 24px 14px !important;
  position: relative;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: var(--primary-color);
}

.navbar-nav .dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 10px 0;
  margin-top: 0;
}

.navbar-nav .dropdown-item {
  font-weight: 500;
  padding: 8px 20px;
  color: var(--text-dark);
}

.navbar-nav .dropdown-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Header Emergency/Call Button */
.header-contact-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid var(--border-color);
  padding-left: 20px;
}

.header-contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.header-contact-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.header-contact-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--secondary-color);
}

/* ==========================================================================
   Page Hero Banner (for Inner Pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #0c2340 0%, #1a3c68 100%);
  padding: 70px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/uploads/2024/01/service-bg-pattern.png') repeat center center;
  opacity: 0.12;
}

.page-hero-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  position: relative;
}

.page-breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  position: relative;
}

.page-breadcrumb li a {
  color: #cbd5e1;
}

.page-breadcrumb li a:hover {
  color: #ffffff;
}

.page-breadcrumb li.active {
  color: var(--accent-color);
}

.page-breadcrumb li + li::before {
  content: '/';
  padding-right: 10px;
  color: #64748b;
}

/* ==========================================================================
   Home Hero Slider
   ========================================================================== */
.home-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

@media (max-width: 992px) {
  .home-slider {
    height: 480px;
  }
}

@media (max-width: 576px) {
  .home-slider {
    height: 380px;
  }
}

.home-slide-item {
  width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 35, 64, 0.45);
}

.slide-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 700px;
}

.slide-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.slide-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .slide-title {
    font-size: 2rem;
  }
}

.slide-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Feature 3 Cards floating over Hero */
.hero-features-overlap {
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.feature-box-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 25px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--primary-color);
}

.feature-box-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.feature-box-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.feature-box-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-box-text {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 0;
}

/* ==========================================================================
   About Us Section
   ========================================================================== */
.about-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.about-img-wrapper {
  position: relative;
}

.about-img-wrapper img {
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--secondary-color);
  color: #ffffff;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-left: 4px solid var(--accent-color);
}

.about-experience-badge strong {
  font-size: 2rem;
  font-family: var(--font-heading);
  display: block;
  line-height: 1;
  color: var(--accent-color);
}

.about-experience-badge span {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Product Cards & Grid
   ========================================================================== */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(11,116,222,0.3);
}

.product-card-img {
  position: relative;
  background: #f8fafc;
  padding: 25px;
  text-align: center;
  overflow: hidden;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img img {
  max-height: 190px;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition-normal);
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-choose-item {
  display: flex;
  gap: 20px;
  margin-bottom: 2rem;
}

.why-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  opacity: 0.9;
  min-width: 40px;
}

.why-title {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.why-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin: 0;
}

/* ==========================================================================
   Inquiry / Consultation Form
   ========================================================================== */
.inquiry-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.inquiry-card .form-control,
.inquiry-card .form-select {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  font-size: 0.95rem;
}

.inquiry-card .form-control:focus,
.inquiry-card .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(11,116,222,0.12);
}

/* ==========================================================================
   Blog Cards & Single Blog
   ========================================================================== */
.blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.blog-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-meta i {
  color: var(--primary-color);
}

.blog-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* ==========================================================================
   Gallery Styling
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 260px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 35, 64, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-fast);
  color: #ffffff;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay h5 {
  color: #ffffff;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.gallery-overlay span {
  font-size: 0.85rem;
  color: var(--accent-color);
}

/* Video Card */
.video-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.video-card video {
  width: 100%;
  max-height: 380px;
  background: #000;
  display: block;
}

.video-card-body {
  padding: 20px 24px;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.accordion-custom .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 8px !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary-color);
  background: #ffffff;
  padding: 18px 24px;
  font-size: 1.05rem;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--primary-light);
  box-shadow: none;
}

.accordion-custom .accordion-body {
  padding: 20px 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Call To Action Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 45px 50px;
  position: relative;
  overflow: hidden;
}

.cta-banner h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 70px 0 0;
  font-size: 0.95rem;
}

.footer-widget-title {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links li a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-hours-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  color: #cbd5e1;
}

.footer-contact-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 50px;
  padding: 25px 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Mobile Navigation Offcanvas / Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  box-shadow: 4px 0 25px rgba(0,0,0,0.15);
  z-index: 1050;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}

.mobile-drawer.open {
  left: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  display: none;
}

.drawer-backdrop.active {
  display: block;
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-color);
  color: #ffffff;
  transform: translateY(-3px);
}
