/* ===================================================
   Lighthouse BHC - Reimagined Stylesheet
   Design Strategy: Warm, Hopeful, Modern, Premium
   =================================================== */

:root {
  /* Color Palette: A New Dawn */
  --primary-warm: #FF5F6D; /* A vibrant yet warm coral */
  --primary-light: #FFC371; /* A hopeful, sunny gold */
  --secondary-dark: #022c43; /* Deep, trustworthy midnight blue */
  --secondary-light: #05506b; /* Calmer teal */
  --bg-light: #fdfcfb; /* A very soft, warm off-white */
  --bg-dark: #111827; /* Footer dark background */
  --text-dark: #1f2937; /* For body copy */
  --text-light: #f9fafb; /* For dark backgrounds */
  --text-muted: #6b7280; /* Muted text */
  --border-color: #e5e7eb;

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Lora', serif;

  /* Effects */
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-md: 0.75rem; /* 12px */
  --radius-lg: 1rem; /* 16px */
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- BASE & TYPOGRAPHY --- */
body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .navbar-brand span, .eyebrow, .btn {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.display-4 {
    font-weight: 700;
    line-height: 1.15;
}

.lead {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-warm);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.section {
  padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa !important; /* A slightly different light for contrast */
}

/* --- ANIMATIONS --- */
.anim-fade-in {
    animation: fadeIn 1s ease forwards;
}
.anim-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.anim-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

body.loaded .anim-reveal {
  opacity: 1;
  transform: translateY(0);
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- COMPONENTS --- */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 0;
}
.btn-lg {
    padding: 1rem 2rem;
}
.btn-primary {
  background-image: linear-gradient(45deg, var(--primary-warm) 0%, var(--primary-light) 100%);
  color: white;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.btn-telehealth {
  background-image: linear-gradient(45deg, #05506b 0%, #3a7a8a 100%);
  color: white;
}
.btn-telehealth:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: white;
}

.skip-link:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 1050;
  background: white; padding: 0.5rem 1rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}


/* --- NAVIGATION --- */
.navbar {
  padding: 1rem 0;
  background: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark) !important;
}
.navbar-logo {
  height: 48px;
  width: auto;
  transition: var(--transition);
}
.navbar-logo:hover {
  transform: scale(1.05);
}
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem !important;
}
.navbar-brand span {
    font-size: 1.25rem;
    font-weight: 700;
}
.navbar .nav-link {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: relative;
}
.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-warm);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* Dropdown Styling */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 0;
  padding: 0.5rem;
  min-width: 200px;
  top: 100%;
  left: 0;
  position: absolute;
}

/* Create an invisible bridge to prevent dropdown from disappearing */
.navbar .dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  z-index: 1000;
}

.navbar .dropdown-item {
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius-md) - 2px);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  display: block;
}

.navbar .dropdown-item:hover {
  color: var(--text-dark);
  background-color: rgba(255, 95, 109, 0.1);
}

.navbar .dropdown-item:focus {
  color: var(--text-dark);
  background-color: rgba(255, 95, 109, 0.1);
}

/* Remove the default underline for dropdown toggle */
.navbar .dropdown .nav-link::after {
  display: none;
}

/* Add hover effect for the dropdown toggle */
.navbar .dropdown:hover .nav-link {
  color: var(--primary-warm);
}

.navbar .dropdown .nav-link i {
  transition: transform 0.3s ease;
  font-size: 0.75rem;
}

.navbar .dropdown:hover .nav-link i {
  transform: rotate(180deg);
}
.navbar-toggler {
    border: none;
    font-size: 1.75rem;
    color: var(--text-dark);
}
.navbar-toggler:focus {
    box-shadow: none;
}


/* --- HERO SECTION --- */
.hero-section {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-light);
}
.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 500px;
  height: 500px;
  background-color: rgba(255, 95, 109, 0.15); /* primary-warm */
  top: -100px;
  left: -150px;
}
.hero-glow-2 {
  width: 400px;
  height: 400px;
  background-color: rgba(255, 195, 113, 0.2); /* primary-light */
  bottom: -100px;
  right: -100px;
}
.hero-image-wrapper {
    position: relative;
    padding: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.hero-image-main {
    border-radius: var(--radius-md);
}
.hero-image-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-image: linear-gradient(45deg, var(--secondary-light), var(--secondary-dark));
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 300px;
}
.icon-box-sm {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-right: 1rem;
    display: grid;
    place-items: center;
    background-image: linear-gradient(45deg, var(--primary-warm), var(--primary-light));
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}


/* --- ABOUT SECTION --- */
.image-stack {
    position: relative;
    min-height: 450px;
}
.image-stack img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: absolute;
    object-fit: cover;
}
.image-stack-top {
    width: 80%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}
.image-stack-bottom {
    width: 70%;
    height: 70%;
    bottom: 0;
    right: 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}
.feature-list i {
    color: var(--primary-warm);
    font-size: 1.25rem;
    margin-right: 0.75rem;
}


/* --- SERVICE CARD --- */
.service-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card .icon-box {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-image: linear-gradient(45deg, var(--primary-warm), var(--primary-light));
  color: white;
  font-size: 2rem;
  box-shadow: var(--shadow-md);
}
.service-card h5 {
    font-weight: 700;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- CTA SECTION --- */
.cta-banner {
    background-image: linear-gradient(45deg, var(--secondary-dark), var(--secondary-light));
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.cta-banner h3 {
    font-weight: 700;
}


/* --- WHY US / FEATURE CARD --- */
.feature-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}
.feature-card .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-warm);
}
.feature-card h5 {
    font-weight: 700;
}
.feature-card p {
    color: var(--text-muted);
}


/* --- WHO WE SERVE --- */
.check-list {
    list-style: none;
    padding-left: 0;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}
.check-list i {
    color: var(--primary-warm);
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    background-color: var(--secondary-dark);
    color: white;
    padding: 80px 0;
}
.testimonial-card {
    background-color: var(--secondary-light);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.testimonial-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-warm);
}
.testimonial-card blockquote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.testimonial-card cite {
    font-family: var(--font-heading);
    font-style: normal;
    color: var(--primary-light);
    font-weight: 600;
}
.carousel-control-icon {
    font-size: 2.5rem;
    opacity: 0.7;
    transition: var(--transition);
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}
.carousel-control-icon:hover {
    opacity: 1;
}

/* --- TRUST/ACCREDITATION --- */
.trust-card {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}
.trust-card .trust-icon {
    font-size: 3rem;
    color: var(--primary-warm);
    margin-bottom: 1rem;
}
.trust-card h6 {
    font-weight: 700;
}
.trust-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* --- FAQ / ACCORDION --- */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    margin-bottom: 1rem;
    background-color: white;
}
.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    background-color: white !important;
    color: var(--text-dark) !important;
    box-shadow: none !important;
    border-radius: var(--radius-md) !important;
}
.accordion-button:not(.collapsed) {
    color: var(--primary-warm) !important;
}
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF5F6D'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-body {
    font-family: var(--font-body);
    color: var(--text-muted);
}


/* --- FOOTER --- */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
    font-size: 0.95rem;
}
.footer h5, .footer h6 {
    color: white;
    font-weight: 600;
}
.footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0;
}
.footer-nav a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}
.footer-nav a:hover, .footer-link:hover {
    color: var(--primary-light);
}
.footer-link {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.social-links a {
    color: white;
    font-size: 1.25rem;
    margin-left: 1.5rem;
    transition: var(--transition);
}
.social-links a:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* --- MODALS --- */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
}
.modal-footer {
    border-top: 1px solid var(--border-color);
}
.form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 95, 109, 0.2);
    border-color: var(--primary-warm);
}

/* --- INFECTION PROCEDURES PAGE SPECIFIC STYLES --- */
.purpose-card {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-light)) !important;
    color: white !important;
    border: none !important;
}

.purpose-icon {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.purpose-feature {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 0.75rem;
    transition: var(--transition);
    height: 100%;
    min-height: 80px;
}

.purpose-feature:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.purpose-feature i {
    color: var(--primary-light);
    font-size: 1.25rem;
    margin-right: 1rem;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.purpose-feature > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 48px;
}

.purpose-feature strong {
    color: white;
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.purpose-feature small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
    flex: 1;
}

.purpose-feature-full {
    margin-bottom: 0;
    min-height: 70px;
}

/* Ensure equal height for all purpose feature containers */
.purpose-card .row > [class*="col-"] {
    display: flex;
    align-items: stretch;
}

.purpose-card .row > [class*="col-"] .purpose-feature {
    width: 100%;
}

@media (max-width: 576px) {
    .purpose-feature {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .purpose-feature i {
        margin-right: 0;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }
}