/* =========================================
   1. COLOR VARIABLES
   ========================================= */
:root {
  --dark-teal: #264653;
  --vibrant-teal: #2a9d8f;
  --gold: #e9c46a;
  --sandy-orange: #f4a261;
  --burnt-orange: #e76f51;
  --white: #ffffff;
  --heading-font: 'Montserrat', serif;
}

/* =========================================
   2. FLOATING NAVBAR
   ========================================= */
.custom-floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1400px;
  background-color: var(--white);
  border-radius: 50px;
  padding: 0.8rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.text-dark-teal { color: var(--dark-teal) !important; }

.custom-nav-link {
  color: var(--dark-teal) !important;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.custom-nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--sandy-orange);
  transition: width 0.3s ease;
}

.custom-nav-link:hover { color: var(--vibrant-teal) !important; }
.custom-nav-link:hover::after { width: 100%; }

.btn-nav-cta {
  background-color: var(--dark-teal);
  color: var(--white);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-nav-cta:hover {
  background-color: var(--sandy-orange);
  color: var(--white);
}

/* =========================================
   3. FULL SCREEN HERO SECTION
   ========================================= */
.full-hero-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex; 
  align-items: center;
  justify-content: center;
}

/* --- BACKGROUND VIDEO --- */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* --- THE SMART OVERLAY --- */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* A sleek dark-teal gradient: 40% opacity at the top, 80% at the bottom */
  background: linear-gradient(to bottom, rgba(38, 70, 83, 0.4), rgba(38, 70, 83, 0.8));
  z-index: -1;
}

/* --- CENTERED CONTENT BOX --- */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 5%;
  margin-top: 60px; /* Pushes content down slightly so it clears the floating pill nav */
}

.content-wrapper { 
  max-width: 900px; /* Wider max-width for centered text */
  margin: 0 auto;
}

.hero-title {
  font-family: var(--heading-font); /* Keeping that Montserrat! */
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -1px;
}

.text-accent {
  color: var(--sandy-orange);
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  max-width: 750px; /* Constrains paragraph width for perfect readability */
}

/* Buttons remain unchanged from your master CSS! */

.btn-primary-action {
  font-family: 'Inter', sans-serif;
  background-color: var(--vibrant-teal);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 157, 143, 0.4);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-primary-action:hover {
  background-color: var(--gold);
  color: var(--dark-teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(233, 196, 106, 0.5);
}

.btn-outline-action {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--sandy-orange);
  padding: 0.9rem 2.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-outline-action:hover {
  background-color: var(--sandy-orange);
  color: var(--dark-teal);
  transform: translateY(-3px);
}

/* =========================================
   4. SERVICES HORIZONTAL SCROLL
   ========================================= */
.services-pin-wrapper {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #f8f9fa;
  position: relative;
  display: flex;
  align-items: center;
}

.services-scroll-track {
  display: flex;
  width: max-content;
  padding: 0 5vw;
  gap: 2rem;
}

.service-card {
  width: 350px;
  height: 450px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden; 
  transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-10px); }

/* Unified Intro Card */
.intro-card {
  justify-content: center;
  position: relative;
  border: none;
  background: linear-gradient(rgba(38, 70, 83, 0.65), rgba(38, 70, 83, 0.65)), url('Chicago Sunset.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2.5rem; /* Restored padding just for this text-only card */
}

.card-image-wrapper {
  width: 100%;
  height: 180px;
  background-color: var(--dark-teal);
}

.card-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.learn-more-link {
  font-weight: 600;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  margin-top: auto;
  transition: color 0.3s ease;
}

.learn-more-link:hover { color: var(--burnt-orange); }

/* Helper Text Classes */
.text-gold { color: var(--gold); }
.text-vibrant-teal { color: var(--vibrant-teal); }
.text-sandy-orange { color: var(--sandy-orange); }

/* =========================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* LAPTOP SQUEEZE FIX (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .custom-floating-nav {
    padding: 0.6rem 1rem;
    width: 98%;
  }
  .navbar-brand img { width: 160px !important; }
  .custom-nav-link {
    font-size: 0.85rem;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
  }
  .btn-nav-cta {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    margin-left: 0.5rem !important;
  }
}

/* MOBILE FIXES (Under 991px) */
@media (max-width: 991px) {
  /* Nav Polish */
  .custom-floating-nav { border-radius: 20px; }
  .navbar-collapse {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 0.5rem;
  }
  .custom-nav-link {
    padding: 0.6rem 0;
    display: inline-block;
  }
  
  /* Hero White-Space Fix */
  .hero-content {
    width: 100%;
    background-color: transparent; /* Removes the solid teal block */
    padding-top: 100px; /* Gives the text breathing room below the mobile hamburger menu */
  }
}

/* =========================================
   7. WHY CHOOSE US SECTION
   ========================================= */
.why-choose-us {
  background-color: #f8f9fa; /* Soft off-white */
  padding: 8rem 0; /* Huge padding to give it high-end breathing room */
  position: relative;
  z-index: 5;
}

.section-title {
  font-family: var(--heading-font);
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--dark-teal);
  letter-spacing: -0.5px;
}

/* Image & Badge Wrapper */
.why-visual-wrapper {
  border-radius: 20px;
}

.why-img {
  border-radius: 20px;
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 5px solid var(--vibrant-teal);
}

.stat-number {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  line-height: 1;
}

.experience-badge span {
  font-size: 2.5rem;
  line-height: 1;
  margin-top: -10px;
}

/* Feature Icons */
.feature-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Light Background Utility Classes for Icons */
.bg-vibrant-teal-light { background-color: rgba(42, 157, 143, 0.15); }
.bg-sandy-orange-light { background-color: rgba(244, 162, 97, 0.15); }
.bg-gold-light { background-color: rgba(233, 196, 106, 0.2); }
.bg-dark-teal-light { background-color: rgba(38, 70, 83, 0.1); }

/* Mobile Adjustment for the Badge */
@media (max-width: 991px) {
  .why-img { height: 400px; }
  .experience-badge {
    right: 20px;
    bottom: -20px;
  }
}

/* =========================================
   8. NON-DISCRIMINATION STATEMENT
   ========================================= */
.non-discrimination-section {
  position: relative;
  z-index: 5;
}

.statement-card {
  background-color: var(--dark-teal);
  border-radius: 20px;
  padding: 3rem;
}

.statement-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

/* Vertical border on desktop, bottom margin on mobile */
.statement-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .statement-header {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: 2rem;
  }
  .statement-body {
    padding-left: 2rem;
  }
}

/* =========================================
   6. CUSTOM FOOTER
   ========================================= */
.custom-footer {
  background-color: var(--dark-teal);
  color: var(--white);
  padding: 5rem 0 2rem;
  font-family: 'Inter', sans-serif;
  position: relative;
  z-index: 10; /* Ensures it sits above any scroll animations */
}

.footer-heading {
  font-family: var(--heading-font);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-list {
  line-height: 2;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--sandy-orange);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--vibrant-teal);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(42, 157, 143, 0.4);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-legal {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-legal .footer-link {
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal .footer-link:hover {
  color: var(--white);
}

/* =========================================
   9. INTERNAL PAGE HERO
   ========================================= */
.internal-hero {
  background-color: var(--dark-teal);
  /* Top padding ensures the floating navbar doesn't cover the text */
  padding: 180px 0 100px; 
  min-height: 40vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.internal-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Angled gradient blending vibrant teal into dark teal */
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.15) 0%, rgba(38, 70, 83, 1) 100%);
  z-index: 1;
}

.internal-hero-title {
  font-family: var(--heading-font);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Helps text pop off the background */
}

/* =========================================
   10. SERVICES PAGE UTILITIES
   ========================================= */
.custom-checklist li {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #495057;
}

.service-hover-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-hover-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

/* =========================================
   11. SKILLED NURSING IMAGE GRID
   ========================================= */
.skilled-img-card {
  aspect-ratio: 1 / 1; /* Keeps the cards perfectly square at all screen sizes */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skilled-img-card img {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
}

.skilled-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark teal gradient fading to transparent at the top */
  background: linear-gradient(to top, rgba(38, 70, 83, 0.95) 0%, rgba(38, 70, 83, 0) 60%);
  z-index: 1;
}

.skilled-img-overlay h5 {
  font-family: var(--heading-font);
  letter-spacing: 0.5px;
}

/* Optional: Slight zoom on the image when hovering over the card */
.skilled-img-card:hover img {
  transform: scale(1.05);
}

.skilled-img-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* =========================================
   12. CARD OUTLINE BUTTONS
   ========================================= */
.btn-outline-sandy {
  color: var(--sandy-orange);
  border: 2px solid var(--sandy-orange);
  background-color: transparent;
  padding: 0.6rem 1.5rem;
  border-radius: 50px; /* Gives it that premium pill shape */
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-sandy:hover {
  background-color: var(--sandy-orange);
  color: var(--white);
  transform: translateY(-2px); /* Slight lift on hover */
}

/* =========================================
   13. CUSTOM ACCORDION 
   ========================================= */
.custom-accordion .accordion-item {
  border: none;
  border-radius: 20px !important;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
  background-color: var(--white);
}

.custom-accordion .accordion-button {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-teal);
  padding: 1.5rem;
  background-color: transparent;
  box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background-color: rgba(42, 157, 143, 0.05); /* Very subtle vibrant-teal tint when open */
  color: var(--dark-teal);
}

.custom-accordion .accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: #6c757d;
  line-height: 1.7;
}

/* =========================================
   14. THERAPY RESOURCES UI
   ========================================= */

/* Playlist Navigation Tabs */
.custom-resource-tabs .nav-link {
  color: var(--dark-teal);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  margin-right: 5px;
  margin-bottom: 5px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.custom-resource-tabs .nav-link.active {
  background-color: var(--dark-teal);
  color: var(--white);
}

/* Scrollable Playlist Area */
.custom-playlist-scroll {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

/* Scrollbar Styling for Webkit */
.custom-playlist-scroll::-webkit-scrollbar { width: 6px; }
.custom-playlist-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.custom-playlist-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.custom-playlist-scroll::-webkit-scrollbar-thumb:hover { background: var(--sibrant-teal); }

/* Video Thumbnail Links */
.video-thumbnail {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-bottom: 8px;
}

.video-thumbnail img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-thumbnail .title {
  color: #495057;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.video-thumbnail:hover { background-color: rgba(42, 157, 143, 0.08); }
.video-thumbnail.active { background-color: rgba(42, 157, 143, 0.15); border-left: 4px solid var(--vibrant-teal); }
.video-thumbnail.active .title { color: var(--dark-teal); }

/* PDF Cards */
.pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: var(--white);
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #eee;
}

.pdf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
  border-color: var(--vibrant-teal);
}

/* =========================================
   16. CONTACT PAGE UI
   ========================================= */
.contact-icon-wrapper {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-download-link {
  display: flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 12px 15px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.resource-download-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--sandy-orange);
  transform: translateX(5px);
}