/* ===================================================
   Ascend House - Reimagined Stylesheet
   Design Strategy: Vibrant, Hopeful, Nature-Driven, Premium
   Inspired by: Ascend House logo — amber-orange + forest green
   =================================================== */

:root {
  /* —— Brand Greens (from logo: #106A4E → #2D8932 → #61A420) —— */
  --primary-deep:  #0E5C3D; /* Deep forest — anchors brand */
  --primary-warm:  #2D8932; /* Core green — buttons, links */
  --primary-light: #61A420; /* Vibrant lime — hover, gradients */

  /* —— Brand Ambers (from logo: #FB9810 → #F46B06) —— */
  --accent:        #FB9810; /* Bright amber — primary accent */
  --accent-deep:   #F46B06; /* Deep orange — gradient partner */
  --accent-light:  #EFD8A2; /* Warm cream — soft amber tint */

  /* —— Neutrals —— */
  --secondary-dark:  #1E3A2F; /* Deep green-black — dark sections */
  --secondary-light: #3D6B5A; /* Mid forest — card accents */
  --bg-light:   #FBFBFB;
  --bg-subtle:  #F2F7F2; /* Soft green-tinted alternate sections */
  --bg-dark:    #0E2A1E; /* Very deep forest — footer */
  --text-dark:  #1A2E1E; /* Deep forest-black body copy */
  --text-light: #F9FAFB;
  --text-muted: #7C8C9C;
  --border-color: #D8E8D8; /* Soft green border */

  /* —— 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.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-lg:  0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.12);
  --shadow-amber: 0 8px 24px rgba(251, 152, 16, 0.38);
  --shadow-green: 0 8px 24px rgba(45, 137, 50, 0.30);
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --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;
  overflow-x: hidden !important;
}

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(--accent); /* amber — vibrant, warm, eye-catching */
  margin-bottom: 0.75rem;
  display: block;
}
/* On the dark testimonials section, eyebrow uses amber for visibility */
.testimonials-section .eyebrow {
  color: var(--accent);
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep), var(--primary-warm));
  border-radius: 2px;
}
.text-center .section-title::after,
.text-center.section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section {
  padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-subtle) !important; /* Subtle green-tinted off-white for section 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(135deg, var(--primary-warm) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 137, 50, 0.45);
  color: white;
}
/* Secondary CTA (e.g. Call): outline style, clearly secondary to Get Help Now */
.btn-secondary {
  background-color: #fff;
  color: var(--primary-warm);
  border: 2px solid var(--primary-warm);
}
.btn-secondary:hover {
  background-color: rgba(45, 137, 50, 0.08);
  color: var(--primary-deep);
  border-color: var(--primary-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
/* Amber accent button — use for high-visibility secondary CTAs */
.btn-accent {
  background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font-weight: 700;
  box-shadow: var(--shadow-amber);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(251, 152, 16, 0.5);
  color: white;
}
.btn-telehealth {
  background-image: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-warm) 100%);
  color: white;
}
.btn-telehealth:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-green);
  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);
}


/* --- TOP BAR --- */
.top-bar {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  padding: 7px 0;
  font-size: 0.8125rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.top-bar-item {
  color: white;
}
.top-bar-icon {
  color: white;
  opacity: 0.85;
}
.top-bar-link {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}
.top-bar-link:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* --- NAVIGATION --- */
.navbar {
  padding: 1rem 0;
  background: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 2px solid transparent;
}
.navbar.scrolled {
  background-color: rgba(251, 251, 251, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(14, 92, 61, 0.1);
  border-bottom-color: var(--accent);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dark) !important;
  position: relative;
  padding-bottom: 4px;
}
.navbar-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary-warm) 60%, transparent 100%);
  border-radius: 2px;
}
.navbar-logo {
  height: 56px;
  width: auto;
  transition: var(--transition);
}
.navbar-logo:hover {
  transform: scale(1.05);
}
.footer-logo {
  height: 70px;
  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: linear-gradient(90deg, var(--primary-warm), var(--accent));
  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;
}

/* Only show the *direct* dropdown menu on hover (not nested sub-menus) */
.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(--primary-warm);
  background-color: rgba(45, 137, 50, 0.08);
}

.navbar .dropdown-item:focus {
  color: var(--primary-warm);
  background-color: rgba(45, 137, 50, 0.08);
}

.navbar .dropdown-item.active,
.navbar .dropdown-item.active:hover {
  color: white;
  background: linear-gradient(135deg, var(--primary-warm) 0%, var(--primary-light) 100%);
  font-weight: 600;
}

/* 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);
}

/* Softer indicator when a child page is active */
.navbar .dropdown .nav-link.has-active-child {
  color: var(--accent-deep);
  font-weight: 700;
}
.navbar .dropdown .nav-link.has-active-child i {
  color: var(--accent-deep);
}

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

.navbar .dropdown:hover .nav-link i {
  transform: rotate(180deg);
}

/* Nested dropdown submenu (Services > ASAM tiers) */
.navbar .dropdown-submenu {
  position: relative;
}

.navbar .dropdown-submenu .dropdown-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .dropdown-submenu .submenu-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.navbar .dropdown-submenu:hover .submenu-arrow {
  transform: translateX(3px);
}

.navbar .dropdown-submenu .dropdown-submenu-menu {
  position: absolute;
  left: 100%;
  top: 0;
  margin-top: 0;
  margin-left: 2px;
  display: none;
  min-width: 220px;
}

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

/* Mobile: submenu stacks below, toggled by click */
@media (max-width: 991.98px) {
  .navbar .dropdown-submenu .dropdown-submenu-menu {
    position: static;
    left: auto;
    margin-left: 0;
    margin-top: 0;
    padding-left: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: calc(var(--radius-md) - 2px);
    display: none;
  }

  .navbar .dropdown-submenu .dropdown-submenu-menu.show {
    display: block;
  }

  .navbar .dropdown-submenu .submenu-arrow {
    transform: rotate(0deg);
    transition: transform 0.2s ease;
  }

  .navbar .dropdown-submenu.open .submenu-arrow {
    transform: rotate(90deg);
  }
}

.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 120px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-light);
  background-image:
    radial-gradient(ellipse 80% 60% at 15% 40%, rgba(251, 152, 16, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(45, 137, 50, 0.10) 0%, transparent 55%);
}
.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 700px;
  height: 700px;
  background-color: rgba(251, 152, 16, 0.18);
  top: -200px;
  left: -250px;
}
.hero-glow-2 {
  width: 550px;
  height: 550px;
  background-color: rgba(97, 164, 32, 0.14);
  bottom: -150px;
  right: -150px;
}
.hero-image-wrapper {
    position: relative;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}
.hero-image-main {
    border-radius: var(--radius-md);
}
.hero-image-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-amber);
    min-width: 300px;
}
.hero-image-card h6 {
    color: white;
    font-weight: 700;
}
.hero-image-card small {
    color: rgba(255, 255, 255, 0.75);
}

.icon-box {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: white;
    box-shadow: var(--shadow-amber);
}
.icon-box-sm {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-right: 1rem;
    display: grid;
    place-items: center;
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--shadow-amber);
}


/* --- 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;
    border: 4px solid var(--accent); /* amber frame on the primary image */
}
.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(--accent); /* amber checkmarks — warm, energetic */
    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);
  border-top: 3px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep), var(--primary-warm));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: transparent;
}
.service-card .icon-box {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font-size: 2rem;
  box-shadow: var(--shadow-amber);
}
.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(135deg, var(--primary-deep) 0%, var(--primary-warm) 60%, var(--primary-light) 100%);
    color: white;
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-green);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 320px;
    height: 320px;
    background: rgba(251, 152, 16, 0.12);
    border-radius: 50%;
    pointer-events: none;
}
.cta-banner h3 {
    font-weight: 700;
    color: white;
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
}
/* CTA banner: primary = amber (Get Help / Schedule); secondary = outline so it reads as second option */
.cta-banner .btn-primary {
    background-image: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: white;
    box-shadow: var(--shadow-amber);
}
.cta-banner .btn-secondary {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.cta-banner .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    border-color: white;
}


/* --- WHY US / FEATURE CARD --- */
.feature-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-warm);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover {
    border-left-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: white;
}
.feature-card .feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    color: var(--accent);
    filter: drop-shadow(0 4px 8px rgba(251, 152, 16, 0.3));
}
.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(--accent); /* amber checks — bold, warm-affirming */
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    background: linear-gradient(150deg, var(--primary-deep) 0%, var(--primary-warm) 60%, #1A5C28 100%);
    color: white;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(251, 152, 16, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.75rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.testimonial-card .avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(251, 152, 16, 0.25);
}
.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(--accent);
    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);
    border-bottom: 3px solid var(--accent);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.trust-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-deep));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.trust-card:hover::before {
    opacity: 1;
}
.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.trust-card .trust-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(251, 152, 16, 0.3));
}
.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;
    background-color: rgba(45, 137, 50, 0.04) !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='%232D8932'%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: linear-gradient(160deg, var(--bg-dark) 0%, #0B3D22 100%);
    color: white;
    padding: 70px 0 30px;
    font-size: 0.95rem;
    border-top: 4px solid var(--accent);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 360px;
    height: 360px;
    background: rgba(251, 152, 16, 0.05);
    border-radius: 50%;
    pointer-events: none;
}
.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(--accent); /* amber on footer hover — matches top bar */
}
.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(--accent);
    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);
}

/* Booking Modal Specific Styles */
.booking-modal-content {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.booking-modal-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.booking-modal-header .modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0;
    color: white;
}

.booking-modal-header .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

.booking-modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.booking-modal-header .btn-close:hover {
    opacity: 1;
}

.booking-modal-body {
    background-color: #f8f9fa;
    padding: 0 !important;
}

.booking-iframe {
    width: 100%;
    height: 650px;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .booking-iframe {
        height: 550px;
    }
    
    .booking-modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .booking-modal-header .modal-title {
        font-size: 1.25rem;
    }
}

.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(251, 152, 16, 0.18);
    border-color: var(--accent);
}

/* --- INFECTION PROCEDURES PAGE SPECIFIC STYLES --- */
.purpose-card {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-warm)) !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(--accent-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;
    }
}

/* Ensure no elements exceed the viewport width */
* {
  box-sizing: border-box;
}

/* Prevent elements from exceeding the viewport width */
img, iframe, table {
  max-width: 100%;
}

/* Additional safeguard for horizontal scrolling */
html, body {
  overflow-x: hidden;
}

/* GHL Form Styles */
.ghl-form-iframe {
    height: 925px;
}

@media (max-width: 768px) {
    .ghl-form-iframe {
        height: 650px;
    }
}

/* ========================================
   INNER PAGE CONTENT ENHANCEMENTS
   ======================================== */

/* Privacy / Content page typography */
.privacy-content h2 {
  color: var(--primary-deep);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.6rem;
}
.privacy-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 2px;
}
.privacy-content h2.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}
.privacy-content h3 {
  color: var(--secondary-light);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
}
.privacy-content h4 {
  color: var(--primary-warm);
  font-weight: 600;
}
.privacy-content p.lead {
  color: var(--text-dark);
  font-weight: 500;
}
.privacy-content ul li,
.privacy-content ol li {
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}
.privacy-content table thead th {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-warm));
  color: var(--text-light);
  border-color: var(--primary-warm);
}
.privacy-content .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(14, 92, 61, 0.04);
}
.privacy-content .table-bordered td,
.privacy-content .table-bordered th {
  border-color: var(--border-color);
}

/* Mid-page inner CTA box */
.inner-cta {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, #e4f0e4 100%);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: 16px;
  padding: 2.75rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(14, 92, 61, 0.10);
}
.inner-cta h3 {
  color: var(--primary-deep);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.inner-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Compliance Officer profile card */
.compliance-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}
.compliance-card a {
  color: var(--primary-warm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.compliance-card a:hover {
  color: var(--accent);
}

/* Housing Referral directory list (legacy) */
.directory-list li {
  margin-bottom: 0.5rem;
  padding-left: 0;
}
.directory-list a {
  color: var(--primary-warm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.directory-list a:hover {
  color: var(--accent);
}

/* Housing Referral directory table — one column, site theme */
.directory-table-wrapper {
  overflow-x: auto;
}
.directory-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text-dark);
}
.directory-table thead th {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-warm) 100%);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border: none;
  font-size: 1rem;
}
.directory-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}
.directory-table tbody tr:last-child {
  border-bottom: none;
}
.directory-table tbody tr:nth-of-type(even) {
  background-color: var(--bg-subtle);
}
.directory-table tbody tr:hover {
  background-color: rgba(45, 137, 50, 0.06);
}
.directory-table tbody td {
  padding: 0.65rem 1.25rem;
  vertical-align: middle;
}
.directory-table tbody a {
  color: var(--primary-warm);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.directory-table tbody a:hover {
  color: var(--accent);
}
/* Section header within table (e.g. Action Health Services) — same as main table header */
.directory-table .directory-section-header th {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-warm) 100%);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.875rem 1.25rem;
  text-align: left;
  border: none;
  border-top: 2px solid var(--border-color);
  font-size: 1rem;
}

/* Brand-styled alerts */
.alert-crisis {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
  border: 1px solid #f0c040;
  border-left: 4px solid var(--accent-deep);
  border-radius: 10px;
  color: #7a4d00;
  padding: 1.25rem 1.5rem;
}
.alert-info-brand {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, #dceede 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-warm);
  border-radius: 10px;
  color: var(--primary-deep);
  padding: 1.25rem 1.5rem;
}
.alert-danger {
  border-left: 4px solid #dc3545;
  border-radius: 10px;
}
.alert-warning {
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

/* Quote highlight block */
.quote-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  color: #fff;
}
.quote-highlight p {
  margin-bottom: 0;
  color: #fff;
}

/* Telehealth page "Ready to Begin" CTA */
.telehealth-cta {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-warm) 100%);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-green);
  color: var(--text-light);
}
.telehealth-cta h2 {
  color: var(--text-light);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  margin-bottom: 2rem;
}
/* Suppress content-page underline inside dark CTA boxes */
.telehealth-cta h2::after {
  display: none;
}
.telehealth-cta p {
  color: rgba(255, 255, 255, 0.85);
}