/* Lambert Medical Practice - Custom Styles
   Built on Bootstrap 5.3 */

/* ============================================
   1. CSS Variables (Design System)
   ============================================ */
:root {
  /* Primary Colors */
  --lmp-navy: #1B3A5C;
  --lmp-blue: #2C6FAC;
  --lmp-teal: #00A896;
  
  /* Neutrals */
  --lmp-white: #FFFFFF;
  --lmp-light-grey: #F7F9FC;
  --lmp-text-dark: #1A1A2E;
  --lmp-text-muted: #6C757D;
  
  /* CTA Colors */
  --lmp-cta: #2C6FAC;
  --lmp-cta-hover: #1B3A5C;
  
  /* Shadows */
  --lmp-shadow-sm: 0 2px 4px rgba(27, 58, 92, 0.08);
  --lmp-shadow-md: 0 4px 12px rgba(27, 58, 92, 0.12);
  --lmp-shadow-lg: 0 8px 24px rgba(27, 58, 92, 0.16);
  
  /* Border Radius */
  --lmp-radius-sm: 4px;
  --lmp-radius-md: 8px;
  --lmp-radius-lg: 12px;
  --lmp-radius-xl: 16px;
}

/* ============================================
   2. Typography
   ============================================ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--lmp-text-dark);
  background-color: var(--lmp-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  color: var(--lmp-navy);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
}

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

.text-muted {
  color: var(--lmp-text-muted) !important;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
}

/* ============================================
   3. Navigation
   ============================================ */
.navbar {
  background-color: var(--lmp-white);
  box-shadow: var(--lmp-shadow-sm);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--lmp-shadow-md);
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--lmp-navy) !important;
}

.navbar-brand img {
  height: 45px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--lmp-text-dark);
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--lmp-blue);
}

.navbar-nav .nav-link.active {
  color: var(--lmp-blue);
}

.dropdown-menu {
  border: none;
  box-shadow: var(--lmp-shadow-md);
  border-radius: var(--lmp-radius-md);
  padding: 0.5rem 0;
}

.dropdown-item {
  font-size: 0.9375rem;
  padding: 0.5rem 1.25rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--lmp-light-grey);
  color: var(--lmp-blue);
}

/* ============================================
   4. Buttons
   ============================================ */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--lmp-radius-md);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--lmp-cta);
  border-color: var(--lmp-cta);
  color: var(--lmp-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--lmp-cta-hover);
  border-color: var(--lmp-cta-hover);
  color: var(--lmp-white);
  transform: translateY(-1px);
  box-shadow: var(--lmp-shadow-md);
}

.btn-outline-primary {
  color: var(--lmp-cta);
  border-color: var(--lmp-cta);
  background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--lmp-cta);
  border-color: var(--lmp-cta);
  color: var(--lmp-white);
}

.btn-secondary {
  background-color: var(--lmp-teal);
  border-color: var(--lmp-teal);
  color: var(--lmp-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #008f7f;
  border-color: #008f7f;
  color: var(--lmp-white);
}

.btn-light {
  background-color: var(--lmp-white);
  border-color: var(--lmp-white);
  color: var(--lmp-navy);
}

.btn-light:hover {
  background-color: var(--lmp-light-grey);
  border-color: var(--lmp-light-grey);
  color: var(--lmp-navy);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Nav CTA Button */
.btn-nav-cta {
  background-color: var(--lmp-cta);
  color: var(--lmp-white) !important;
  border-radius: var(--lmp-radius-md);
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn-nav-cta:hover {
  background-color: var(--lmp-cta-hover);
  color: var(--lmp-white) !important;
}

/* ============================================
   5. Hero Section
   ============================================ */
.hero-section {
  background: linear-gradient(135deg, var(--lmp-navy) 0%, var(--lmp-blue) 100%);
  color: var(--lmp-white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-pattern.svg') center/cover;
  opacity: 0.05;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: var(--lmp-white);
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 6rem 0 5rem;
  }
  
  .hero-section h1 {
    font-size: 3rem;
  }
  
  .hero-section .lead {
    font-size: 1.25rem;
  }
}

@media (min-width: 992px) {
  .hero-section {
    padding: 7rem 0 6rem;
  }
  
  .hero-section h1 {
    font-size: 3.25rem;
  }
}

/* Hero with Image */
.hero-section.hero-with-image {
  background: var(--lmp-navy);
}

.hero-section.hero-with-image .hero-image {
  border-radius: var(--lmp-radius-lg);
  box-shadow: var(--lmp-shadow-lg);
}

/* ============================================
   6. Trust Bar
   ============================================ */
.trust-bar {
  background-color: var(--lmp-white);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(27, 58, 92, 0.1);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.trust-item i {
  font-size: 2rem;
  color: var(--lmp-teal);
  margin-bottom: 0.75rem;
}

.trust-item img {
  height: 50px;
  width: auto;
  margin-bottom: 0.75rem;
}

.trust-item h6 {
  font-size: 0.9375rem;
  color: var(--lmp-navy);
  margin-bottom: 0.25rem;
}

.trust-item p {
  font-size: 0.8125rem;
  color: var(--lmp-text-muted);
  margin-bottom: 0;
}

.award-badge {
  height: 60px;
  width: auto;
}

/* ============================================
   7. Section Styling
   ============================================ */
section {
  padding: 4rem 0;
}

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

.section-light {
  background-color: var(--lmp-light-grey);
}

.section-navy {
  background-color: var(--lmp-navy);
  color: var(--lmp-white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--lmp-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--lmp-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.section-header .badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 168, 150, 0.1);
  color: var(--lmp-teal);
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ============================================
   8. Cards
   ============================================ */
.card {
  border: none;
  border-radius: var(--lmp-radius-lg);
  box-shadow: var(--lmp-shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  box-shadow: var(--lmp-shadow-md);
  transform: translateY(-4px);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lmp-navy);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--lmp-text-muted);
  font-size: 0.9375rem;
}

/* Service Card */
.service-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.service-card .icon-wrapper {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 168, 150, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.service-card .icon-wrapper i {
  font-size: 1.75rem;
  color: var(--lmp-teal);
}

.service-card .price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--lmp-blue);
  margin-top: 0.75rem;
}

/* Doctor Card */
.doctor-card {
  overflow: hidden;
}

.doctor-card .doctor-image {
  height: 280px;
  overflow: hidden;
}

.doctor-card .doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
  transform: scale(1.05);
}

.doctor-card .card-body {
  padding: 1.5rem;
}

.doctor-card .doctor-title {
  font-size: 0.875rem;
  color: var(--lmp-teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Pricing Card */
.pricing-card {
  border: 2px solid var(--lmp-light-grey);
}

.pricing-card.featured {
  border-color: var(--lmp-blue);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--lmp-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card .price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--lmp-navy);
}

.pricing-card .price-tag span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--lmp-text-muted);
}

/* ============================================
   9. Tables
   ============================================ */
.table-pricing {
  background-color: var(--lmp-white);
  border-radius: var(--lmp-radius-lg);
  overflow: hidden;
  box-shadow: var(--lmp-shadow-sm);
}

.table-pricing thead {
  background-color: var(--lmp-navy);
  color: var(--lmp-white);
}

.table-pricing thead th {
  font-weight: 600;
  padding: 1rem 1.25rem;
  border: none;
}

.table-pricing tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--lmp-light-grey);
  vertical-align: middle;
}

.table-pricing tbody tr:hover {
  background-color: var(--lmp-light-grey);
}

.table-pricing .price {
  font-weight: 600;
  color: var(--lmp-blue);
}

/* ============================================
   10. FAQ Section
   ============================================ */
.faq-section .accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: var(--lmp-radius-md) !important;
  overflow: hidden;
  box-shadow: var(--lmp-shadow-sm);
}

.faq-section .accordion-button {
  font-weight: 600;
  color: var(--lmp-navy);
  padding: 1.25rem;
  background-color: var(--lmp-white);
}

.faq-section .accordion-button:not(.collapsed) {
  background-color: var(--lmp-light-grey);
  color: var(--lmp-blue);
  box-shadow: none;
}

.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-section .accordion-button::after {
  background-size: 1rem;
}

.faq-section .accordion-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--lmp-text-muted);
  line-height: 1.8;
}

/* ============================================
   11. Footer
   ============================================ */
.footer {
  background-color: var(--lmp-navy);
  color: var(--lmp-white);
  padding: 4rem 0 0;
}

.footer h5 {
  color: var(--lmp-white);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

.footer a:hover {
  color: var(--lmp-white);
  text-decoration: none;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-hours {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.footer-contact i {
  width: 20px;
  color: var(--lmp-teal);
  margin-right: 0.75rem;
}

.footer-badges {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-badges img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-map iframe {
  border-radius: var(--lmp-radius-md);
  width: 100%;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
  color: var(--lmp-white);
}

/* ============================================
   12. Blog Cards
   ============================================ */
.blog-card .blog-image {
  height: 200px;
  overflow: hidden;
  border-radius: var(--lmp-radius-lg) var(--lmp-radius-lg) 0 0;
}

.blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-card .blog-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lmp-teal);
  margin-bottom: 0.5rem;
}

.blog-card .blog-title {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.blog-card .blog-excerpt {
  font-size: 0.9375rem;
  color: var(--lmp-text-muted);
}

.blog-card .blog-link {
  color: var(--lmp-blue);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-card .blog-link:hover {
  color: var(--lmp-navy);
}

/* ============================================
   13. Diagnostic Hub Section
   ============================================ */
.diagnostic-hub {
  background: linear-gradient(135deg, var(--lmp-light-grey) 0%, var(--lmp-white) 100%);
}

.diagnostic-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.diagnostic-feature .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: rgba(0, 168, 150, 0.1);
  border-radius: var(--lmp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagnostic-feature .icon i {
  font-size: 1.25rem;
  color: var(--lmp-teal);
}

.diagnostic-feature h5 {
  margin-bottom: 0.25rem;
}

.diagnostic-feature p {
  margin-bottom: 0;
  color: var(--lmp-text-muted);
  font-size: 0.9375rem;
}

/* ============================================
   14. Reviews Section
   ============================================ */
.reviews-section {
  background-color: var(--lmp-light-grey);
}

.reviews-wrapper {
  max-width: 100%;
  overflow: hidden;
}

/* ============================================
   15. CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--lmp-blue) 0%, var(--lmp-navy) 100%);
  color: var(--lmp-white);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--lmp-white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ============================================
   16. Breadcrumb
   ============================================ */
.breadcrumb-wrapper {
  background-color: var(--lmp-light-grey);
  padding: 1rem 0;
}

.breadcrumb {
  margin-bottom: 0;
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: var(--lmp-blue);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--lmp-navy);
}

.breadcrumb-item.active {
  color: var(--lmp-text-muted);
}

/* ============================================
   17. Content Styling
   ============================================ */

/* Sidebar fix: prevent col-lg-4 stretching to match main content height.
   align-self: flex-start makes the sidebar column only as tall as its content.
   position: sticky keeps the sidebar visible as user scrolls through long content. */
.content-section .row,
.content-section .row.align-items-start {
  align-items: flex-start !important;
}

.content-section .col-lg-4 {
  align-self: flex-start !important;
  position: sticky;
  top: 80px; /* clears the sticky navbar */
}

@media (max-width: 991.98px) {
  .content-section .col-lg-4 {
    position: static !important;
  }
}

.content-section h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-section ul,
.content-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  color: var(--lmp-text-dark);
}

.content-section .highlight-box {
  background-color: var(--lmp-light-grey);
  border-left: 4px solid var(--lmp-teal);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--lmp-radius-md) var(--lmp-radius-md) 0;
}

.content-section .highlight-box h4 {
  color: var(--lmp-navy);
  margin-bottom: 0.75rem;
}

/* Checklist styling */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: '\F26E';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: var(--lmp-teal);
  font-size: 1rem;
}

/* ============================================
   18. Symptom Tags
   ============================================ */
.symptom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.symptom-tag {
  background-color: rgba(0, 168, 150, 0.1);
  color: var(--lmp-teal);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================
   19. Contact Page
   ============================================ */
.contact-card {
  background-color: var(--lmp-white);
  border-radius: var(--lmp-radius-lg);
  padding: 2rem;
  box-shadow: var(--lmp-shadow-sm);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: rgba(44, 111, 172, 0.1);
  border-radius: var(--lmp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .icon i {
  font-size: 1.25rem;
  color: var(--lmp-blue);
}

.contact-item h6 {
  margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
  margin-bottom: 0;
  color: var(--lmp-text-muted);
}

.contact-item a:hover {
  color: var(--lmp-blue);
}

/* ============================================
   20. Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ============================================
   21. Utilities
   ============================================ */
.bg-light-grey {
  background-color: var(--lmp-light-grey);
}

.text-navy {
  color: var(--lmp-navy);
}

.text-blue {
  color: var(--lmp-blue);
}

.text-teal {
  color: var(--lmp-teal);
}

.border-teal {
  border-color: var(--lmp-teal) !important;
}

/* Spacing helpers */
.section-spacing {
  padding: 4rem 0;
}

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

/* Image placeholders */
.img-placeholder {
  background-color: var(--lmp-light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lmp-text-muted);
}

/* ============================================
   22. Responsive Adjustments
   ============================================ */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  .btn-nav-cta {
    margin-top: 1rem;
    display: inline-block;
  }
}

@media (max-width: 767.98px) {
  .trust-bar .row {
    gap: 0;
  }
  
  .trust-item {
    padding: 0.75rem;
  }
  
  .footer .col-lg-3 {
    margin-bottom: 2rem;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .hero-section .lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   23. Print Styles
   ============================================ */
@media print {
  .navbar,
  .footer,
  .cta-section,
  .elfsight-app-lazy {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: var(--lmp-text-dark) !important;
    padding: 2rem 0 !important;
  }
  
  .hero-section h1,
  .hero-section .lead {
    color: var(--lmp-text-dark) !important;
  }
}
