/* ==========================================================================
   Docpreneur - Pharma Business Suite
   Main Frontend Stylesheet
   Brand Colors: Navy (#1a2e5a), Teal (#0d9488), Aqua (#06b6d4), Green (#16a34a)
   ========================================================================== */

:root {
  --primary-navy: #1a2e5a;
  --primary-dark: #0f1d38;
  --primary-light: #25407a;
  --secondary-teal: #0d9488;
  --secondary-hover: #0f766e;
  --accent-aqua: #06b6d4;
  --accent-green: #16a34a;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-shadow: 0 10px 25px -5px rgba(26, 46, 90, 0.08), 0 8px 10px -6px rgba(26, 46, 90, 0.04);
  --card-hover-shadow: 0 20px 30px -10px rgba(13, 148, 136, 0.18), 0 10px 15px -5px rgba(26, 46, 90, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography Helpers */
.text-navy { color: var(--primary-navy) !important; }
.text-teal { color: var(--secondary-teal) !important; }
.text-aqua { color: var(--accent-aqua) !important; }
.bg-navy { background-color: var(--primary-navy) !important; }
.bg-navy-dark { background-color: var(--primary-dark) !important; }
.bg-teal { background-color: var(--secondary-teal) !important; }
.bg-light-soft { background-color: #f8fafc !important; }
.bg-teal-soft { background-color: rgba(13, 148, 136, 0.08) !important; }

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #0d3d8a 100%);
}
.gradient-teal {
  background: linear-gradient(135deg, var(--secondary-teal) 0%, var(--accent-aqua) 100%);
}
.gradient-hero-overlay {
  background: linear-gradient(90deg, rgba(26, 46, 90, 0.92) 0%, rgba(26, 46, 90, 0.75) 60%, rgba(26, 46, 90, 0.4) 100%);
}
.gradient-text-teal {
  background: linear-gradient(135deg, var(--secondary-teal) 0%, var(--accent-aqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modern Buttons */
.btn-doc-primary {
  background-color: var(--primary-navy);
  color: #ffffff;
  border: 1px solid var(--primary-navy);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-doc-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 46, 90, 0.25);
}

.btn-doc-teal {
  background-color: var(--secondary-teal);
  color: #ffffff;
  border: 1px solid var(--secondary-teal);
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-doc-teal:hover {
  background-color: var(--secondary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.btn-doc-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  padding: 11px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.btn-doc-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Top Navbar */
.doc-navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1040;
}
.doc-navbar .navbar-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.doc-navbar .nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #4b5563;
  padding: 8px 16px !important;
  transition: var(--transition);
  position: relative;
}
.doc-navbar .nav-link:hover,
.doc-navbar .nav-link.active {
  color: var(--secondary-teal) !important;
}
.doc-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 16px;
  right: 16px;
  height: 3px;
  background-color: var(--secondary-teal);
  border-radius: 2px;
}

/* Hero Carousel */
.hero-slider-section {
  position: relative;
  height: 85vh;
  min-height: 560px;
  max-height: 800px;
  background-color: var(--primary-dark);
}
.hero-slider-section .carousel-item {
  height: 85vh;
  min-height: 560px;
  max-height: 800px;
}
.hero-slider-section .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(26, 46, 90, 0.95) 0%, rgba(26, 46, 90, 0.75) 55%, rgba(26, 46, 90, 0.3) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(13, 148, 136, 0.25);
  border: 1px solid rgba(13, 148, 136, 0.5);
  color: #5eead4;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

/* Feature Cards & Infographics */
.infographic-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #edf2f7;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}
.infographic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: var(--transition);
}
.infographic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(13, 148, 136, 0.3);
}
.infographic-card:hover::before {
  background: linear-gradient(90deg, var(--secondary-teal), var(--accent-aqua));
}
.infographic-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(13, 148, 136, 0.1);
  color: var(--secondary-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}
.infographic-card:hover .infographic-icon {
  background: var(--secondary-teal);
  color: #ffffff;
  transform: scale(1.08);
}

/* Step Cards */
.step-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  height: 100%;
}
.step-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
}
.step-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.2);
  border: 2px solid rgba(13, 148, 136, 0.5);
  color: #5eead4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 22px;
  transition: var(--transition);
}
.step-card:hover .step-icon-wrap {
  background: var(--secondary-teal);
  color: #ffffff;
  border-color: var(--secondary-teal);
}

/* Feature Check Pills */
.feature-pill {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.feature-pill:hover {
  border-color: var(--secondary-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.1);
}
.feature-pill i {
  color: var(--secondary-teal);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* FAQ Accordion */
.doc-faq .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 14px !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.doc-faq .accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-navy);
  padding: 20px 24px;
  background-color: #ffffff;
  border-radius: 14px !important;
}
.doc-faq .accordion-button:not(.collapsed) {
  color: var(--secondary-teal);
  background-color: #f8fafc;
  box-shadow: none;
}
.doc-faq .accordion-button:focus {
  box-shadow: none;
}
.doc-faq .accordion-body {
  padding: 20px 24px;
  color: var(--text-muted);
  background-color: #f8fafc;
  line-height: 1.7;
}

/* Page Hero Banner */
.page-banner {
  position: relative;
  height: 280px;
  background-color: var(--primary-navy);
  overflow: hidden;
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.page-banner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* Products Table */
.products-sidebar {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 100px;
}
.products-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #4b5563;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 6px;
}
.products-sidebar-link:hover {
  background-color: #f1f5f9;
  color: var(--primary-navy);
}
.products-sidebar-link.active {
  background-color: rgba(13, 148, 136, 0.12);
  color: var(--secondary-teal);
}

.doc-table-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.doc-table {
  width: 100%;
  margin-bottom: 0;
}
.doc-table thead th {
  background-color: #f8fafc;
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 18px 24px;
  border-bottom: 2px solid var(--border-color);
}
.doc-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid #f1f5f9;
}
.doc-table tbody tr:hover {
  background-color: rgba(13, 148, 136, 0.04);
}
.doc-table tbody td {
  padding: 16px 24px;
  vertical-align: middle;
  font-size: 0.95rem;
}

/* Blog Cards */
.blog-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(13, 148, 136, 0.3);
}
.blog-card-img-wrap {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.06);
}
.blog-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(26, 46, 90, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Floating Actions */
.btn-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: var(--transition);
  text-decoration: none;
}
.btn-whatsapp-float:hover {
  color: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

.btn-scroll-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(26, 46, 90, 0.3);
  z-index: 1040;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
}
.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.btn-scroll-top:hover {
  background: var(--secondary-teal);
  transform: translateY(-3px);
}

/* Footer */
.doc-footer {
  background-color: var(--primary-navy);
  color: #cbd5e1;
  padding-top: 80px;
  padding-bottom: 30px;
}
.doc-footer h5 {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}
.doc-footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--secondary-teal);
  border-radius: 2px;
}
.doc-footer ul {
  padding-left: 0;
  list-style: none;
}
.doc-footer ul li {
  margin-bottom: 12px;
}
.doc-footer ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}
.doc-footer ul li a:hover {
  color: #5eead4;
  padding-left: 4px;
}
.doc-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  transition: var(--transition);
  text-decoration: none;
}
.doc-social-btn:hover {
  background: var(--secondary-teal);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero-slider-section,
  .hero-slider-section .carousel-item {
    height: 70vh;
    min-height: 500px;
  }
  .doc-navbar .nav-link.active::after {
    display: none;
  }
}
