/* ============================================================
   Nurses On Hand Homecare — Main Stylesheet
   ------------------------------------------------------------
   0.  Font Awesome CDN + Icon Aliases
   1.  CSS Variables + Reset
   2.  Grid System (Bootstrap Replacement)
   3.  Typography Utilities
   4.  Buttons
   5.  Top Header Bar
   6.  Header / Navigation
   7.  Banner Sections
   8.  Homepage Content Sections
   9.  About Us Page
   10. Forms (Contact + Openings)
   11. FAQ Accordion
   12. Resources Page
   13. Footer
   14. AOS Entrance Animations
   ============================================================ */


/* ============================================================
   0. Font Awesome CDN + Icon Aliases
   ============================================================ */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Map legacy icon-* class names → Font Awesome 6 glyphs.
   The HTML does not need to change — icons render via ::before. */
.icon-phone::before,
.icon-facebook::before,
.icon-linkedin::before,
.icon-twitter::before,
.icon-google-plus::before,
.icon-fax::before,
.icon-envelope::before {
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  line-height: 1;
}

.icon-phone::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f095";
}
.icon-facebook::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  content: "\f39e";
}
.icon-linkedin::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  content: "\f0e1";
}
.icon-twitter::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  content: "\f099";
}
.icon-google-plus::before {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  content: "\f0d5";
}
.icon-fax::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f1ac";
}
.icon-envelope::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0e0";
}


/* ============================================================
   1. CSS Variables + Reset
   ============================================================ */
:root {
  --primary:       #37496a;
  --primary-dark:  #263450;
  --accent:        #f58534;
  --accent-dark:   #d96c1f;
  --white:         #ffffff;
  --light-grey:    #f5f6f8;
  --mid-grey:      #dde0e6;
  --text-dark:     #2c2c2c;
  --text-mid:      #555555;
  --text-light:    #888888;
  --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.07);
  --shadow-md:     0 6px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.16);
  --radius:        8px;
  --radius-lg:     14px;
  --transition:    0.3s ease;
  --container:     1200px;
  --header-h:      82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}


/* ============================================================
   2. Grid System (Bootstrap Replacement)
   ============================================================ */
.full-width {
  width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Row: 4-column grid by default (replicates col-md-3 behaviour) */
.row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* col-sm-6 / col-md-3 carry no individual sizing — the row grid handles it */
.col-sm-6,
.col-md-3 {
  min-width: 0; /* prevent grid blowout */
}

/* Tablet: 2 columns */
@media (max-width: 991px) {
  .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 575px) {
  .row {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 16px;
  }
}

/* Sections that place .col-* directly inside .container (no .row wrapper) */
.hcs-agency .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 991px) {
  .hcs-agency .container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575px) {
  .hcs-agency .container {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   3. Typography Utilities
   ============================================================ */
.title1 {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.title2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.title2 span {
  color: var(--accent);
}

.pad-tb-85 {
  padding: 85px 0;
}

@media (max-width: 767px) {
  .pad-tb-85 {
    padding: 50px 0;
  }
}


/* ============================================================
   4. Buttons
   ============================================================ */
.orange-btn,
a.orange-btn,
button.orange-btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.orange-btn:hover,
a.orange-btn:hover,
button.orange-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 133, 52, 0.38);
}

/* .btn is used on dark-background CTAs — starts white, inverts on hover */
.btn,
a.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:hover,
a.btn:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
}

/* Override for .btn used inside .resources-page hero (needs accent color) */
.resources-page .hero .btn {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.resources-page .hero .btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}


/* Hero CTA Button — banner call-to-action */
.hero-cta-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 34px;
  border-radius: 50px;
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  border: 3px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 30px rgba(245, 133, 52, 0.55), 0 2px 8px rgba(0,0,0,0.12);
  animation: hero-cta-pulse 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  z-index: 2;
}

.hero-cta-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 44px rgba(245, 133, 52, 0.75), 0 4px 16px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, var(--accent-dark) 0%, #b85a10 100%);
  color: var(--white);
  animation: none;
}

@keyframes hero-cta-pulse {
  0%,  100% { box-shadow: 0 6px 30px rgba(245, 133, 52, 0.55), 0 2px 8px rgba(0,0,0,0.12); }
  50%        { box-shadow: 0 6px 48px rgba(245, 133, 52, 0.9), 0 0 0 10px rgba(245, 133, 52, 0.14); }
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-cta-group .hero-cta-btn {
  margin-top: 0;
}

.hero-cta-btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 6px 30px rgba(255,255,255,0.2), 0 2px 8px rgba(0,0,0,0.12);
  animation: none;
}

.hero-cta-btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  box-shadow: 0 14px 44px rgba(255,255,255,0.35), 0 4px 16px rgba(0,0,0,0.15);
}

/* ============================================================
   5. Top Header Bar
   ============================================================ */
.top-header {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 9px 0;
  font-size: 0.85rem;
}

.top-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-header .need-help {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.top-header .need-help .icon-phone {
  color: var(--accent);
  font-size: 0.95rem;
}

.top-header .need-help span {
  color: rgba(255, 255, 255, 0.7);
}

.top-header .need-help a {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-header .need-help a:hover {
  text-decoration: underline;
}

.top-header .social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-header .social-icons a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.top-header .social-icons a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .top-header .need-help span {
    display: none;
  }
}


/* ============================================================
   6. Header / Navigation
   ============================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), background var(--transition);
}

#header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-container {
  flex-shrink: 0;
}

.logo-container img {
  height: 56px;
  width: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.logo-link:hover .logo-text {
  color: var(--accent);
}

.contact-info-card {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-info-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.contact-info-card i {
  color: var(--accent);
  margin-right: 6px;
}

.contact-info-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* ---------- Navigation links ---------- */
.nav-container ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-container ul li a {
  display: block;
  padding: 8px 15px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 6px;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

/* Sliding underline indicator */
.nav-container ul li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-container ul li a:hover {
  color: var(--accent);
}

.nav-container ul li a:hover::after,
.nav-container ul li.active a::after {
  transform: scaleX(1);
}

.nav-container ul li.active a {
  color: var(--accent);
}

/* ---------- Mobile Hamburger ---------- */
#mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 6px;
  transition: background var(--transition);
  flex-shrink: 0;
}

#mobile-menu-btn:hover {
  background: var(--light-grey);
}

/* Three-bar icon using span + ::before + ::after */
#mobile-menu-btn span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: background 0.3s ease;
}

#mobile-menu-btn span::before,
#mobile-menu-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

#mobile-menu-btn span::before { top: -7px; }
#mobile-menu-btn span::after  { top:  7px; }

/* Open (X) state */
#mobile-menu-btn.open span {
  background: transparent;
}
#mobile-menu-btn.open span::before {
  top: 0;
  transform: rotate(45deg);
}
#mobile-menu-btn.open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Mobile Nav Drawer ---------- */
@media (max-width: 767px) {
  #mobile-menu-btn {
    display: flex;
  }

  .nav-container {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 999;
    padding: 8px 0 16px;
    border-top: 2px solid var(--light-grey);
  }

  .nav-container.open {
    display: block;
    animation: navSlideDown 0.22s ease forwards;
  }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-container ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .nav-container ul li a {
    padding: 13px 24px;
    border-radius: 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--light-grey);
  }

  .nav-container ul li:last-child a {
    border-bottom: none;
  }

  .nav-container ul li a::after {
    display: none;
  }

  .nav-container ul li.active a,
  .nav-container ul li a:hover {
    background: var(--light-grey);
    color: var(--accent);
  }
}


/* ============================================================
   7. Banner Sections
   ============================================================ */

/* ---------- Homepage hero banner ---------- */
.banner-container {
  position: relative;
  overflow: hidden;
  max-height: 580px;
  background: var(--light-grey);
}

.banner-container img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
  animation: bannerZoom 14s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes bannerZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* ---------- Inner page banner ---------- */
.inner-banner-container {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.inner-banner-container .about-us {
  padding: 90px 0 80px;
  text-align: center;
}

.inner-banner-container h1,
.inner-banner-container h2,
.inner-banner-container h3 {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.inner-banner-container h1::after,
.inner-banner-container h2::after,
.inner-banner-container h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .banner-container {
    max-height: none;
    min-height: 420px;
  }
  .banner-container img {
    max-height: 420px;
    height: 420px !important;
    width: 100% !important;
    object-fit: cover;
  }
  .banner-container > div[style*="position:absolute"] {
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .banner-container h1 {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    margin-bottom: 10px !important;
  }
  .banner-container p {
    font-size: clamp(0.85rem, 3.5vw, 1rem) !important;
    line-height: 1.4;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
  }
  .hero-cta-group .hero-cta-btn {
    padding: 10px 24px;
    font-size: 0.78rem;
    width: auto;
    max-width: 260px;
  }
  .inner-banner-container .about-us {
    padding: 55px 0 50px;
  }
}

@media (max-width: 420px) {
  .banner-container,
  .banner-container img {
    min-height: 460px;
    height: 460px !important;
    max-height: 460px;
  }
}


/* ============================================================
   8. Homepage Content Sections
   ============================================================ */

/* ---- HCS Agency (4 image tiles) ---- */
.hcs-agency {
  text-align: center;
  background: var(--white);
  padding: 80px 0;
}

.hcs-agency > h1 {
  margin-bottom: 14px;
}

.hcs-agency > p {
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

.hcs-agency .container > div {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hcs-agency .container > div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hcs-agency .container > div img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.hcs-agency .container > div:hover img {
  transform: scale(1.05);
}

.hcs-agency .container > div span {
  display: block;
  padding: 13px 12px 14px;
  background: var(--white);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* ---- Our Mission ---- */
.our-mission {
  display: flex;
  align-items: stretch;
  min-height: 420px;
  overflow: hidden;
}

.our-mission-pic {
  flex: 0 0 44%;
  background: var(--mid-grey) center / cover no-repeat;
  min-height: 360px;
  position: relative;
}

/* Decorative vertical bar on right edge of image */
.our-mission-pic::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 10%;
  height: 80%;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.our-mission .right-content {
  flex: 1;
  padding: 64px 56px;
  background: var(--light-grey);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.our-mission .right-content .title2 {
  margin-bottom: 20px;
}

.our-mission .right-content p {
  color: var(--text-mid);
  line-height: 1.85;
  font-size: 0.98rem;
}

@media (max-width: 767px) {
  .our-mission {
    flex-direction: column;
  }
  .our-mission-pic {
    flex: none;
    height: 260px;
    min-height: 0;
  }
  .our-mission-pic::after {
    display: none;
  }
  .our-mission .right-content {
    padding: 36px 20px;
  }
}

/* ---- Services We Offer / All Services ---- */
.services-offer {
  text-align: center;
  background: var(--light-grey);
}

.all-services {
  padding: 80px 0;
  background: var(--light-grey);
}

.all-services > h1 {
  text-align: center;
  margin-bottom: 20px;
  padding: 0 24px;
}

.services-offer > p,
.all-services > p {
  color: var(--text-mid);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 1rem;
  padding: 0 16px;
}

.services-offer .orange-btn {
  margin-top: 48px;
}

/* Service card */
.service-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
  z-index: 1;
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-box:hover::before {
  transform: scaleX(1);
}

.service-box img {
  width: 100%;
  height: 195px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-box > div {
  padding: 20px 22px 24px;
  flex: 1;
}

.service-box p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.service-box span {
  display: block;
  font-weight: 800;
  color: var(--primary);
  font-size: 0.88rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Here For You Always ---- */
.for-you-always {
  background: var(--primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal overlay */
.for-you-always::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(38, 52, 80, 0.88) 0%, rgba(55, 73, 106, 0.75) 100%);
  pointer-events: none;
}

.for-you-always .content {
  position: relative;
  max-width: 600px;
  margin-left: 8%;
  z-index: 1;
}

.for-you-always .title2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.for-you-always .title2 span {
  color: var(--accent);
}

.for-you-always > .content > p {
  color: rgba(255, 255, 255, 0.82);
  margin: 18px 0 28px;
  font-size: 0.97rem;
  line-height: 1.8;
}

.for-you-always ul {
  margin: 0 0 28px;
}

.for-you-always ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.for-you-always ul li:last-child {
  border-bottom: none;
}

.for-you-always ul li img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Fallback for missing icon SVG — show a styled bullet */
.for-you-always ul li img::after {
  content: '✦';
  color: var(--accent);
}

.for-you-always ul li span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.93rem;
}

.for-you-always h4 {
  color: var(--accent);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  margin-top: 8px;
}

@media (max-width: 767px) {
  .for-you-always {
    padding: 60px 0;
  }
  .for-you-always .content {
    margin-left: 0;
    padding: 0 20px;
    max-width: 100%;
  }
}

/* ---- Newsletter ---- */
.news-letter {
  display: flex;
  align-items: center;
  background: var(--primary-dark);
  overflow: hidden;
  min-height: 290px;
}

.news-letter > img {
  flex: 0 0 40%;
  height: 290px;
  object-fit: cover;
  opacity: 0.85;
}

.news-letter .subscription-form {
  flex: 1;
  padding: 44px 52px;
}

.news-letter .title2 {
  color: var(--white);
  margin-bottom: 6px;
}

.news-letter .title2 span {
  color: var(--accent);
}

.news-letter input[type="email"] {
  display: block;
  width: 100%;
  max-width: 360px;
  padding: 12px 16px;
  margin: 20px 0 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}

.news-letter input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.news-letter input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 767px) {
  .news-letter {
    flex-direction: column;
  }
  .news-letter > img {
    flex: none;
    width: 100%;
    height: 220px;
  }
  .news-letter .subscription-form {
    padding: 32px 20px;
  }
}

/* ---- Call to Action ---- */
.call-to-action {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 90px 0;
  text-align: center;
}

.call-to-action .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.call-to-action .title2 {
  color: var(--white);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  line-height: 1.5;
  max-width: 700px;
}

.call-to-action .title2 span {
  color: var(--accent);
}

.call-to-action .btn {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  padding: 15px 42px;
  font-size: 0.95rem;
}

.call-to-action .btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
}

@media (max-width: 575px) {
  .call-to-action {
    padding: 60px 0;
  }
}

/* ---- Grey Background Utility ---- */
.grey-bg {
  background: var(--light-grey);
  padding: 70px 0;
}


/* ============================================================
   9. About Us Page
   ============================================================ */
.about-para {
  display: block;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.9;
  padding: 55px 0;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.pic-content {
  display: flex;
  align-items: center;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.pic-left {
  flex: 0 0 44%;
}

.pic-left .block-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.content-right {
  flex: 1;
}

.content-right h3 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  color: var(--primary);
  margin-bottom: 22px;
  font-weight: 700;
  position: relative;
  padding-bottom: 16px;
}

.content-right h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.content-right p {
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .pic-content {
    flex-direction: column;
    gap: 28px;
    padding: 0 16px;
  }
  .pic-left {
    flex: none;
    width: 100%;
  }
}


/* ============================================================
   10. Forms (Contact + Openings)
   ============================================================ */
.contact-form-container,
.job-opening-form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 65px 20px 85px;
}

.contact-form-container .title1,
.job-opening-form-container .title1 {
  text-align: left;
  margin-bottom: 36px;
}

.form-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* The .form grid — 2 cols, .full-item spans both */
.form {
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form > div {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
}

.form .full-item {
  grid-column: 1 / -1;
}

.red {
  color: #d42020;
  margin-left: 2px;
}

.form input,
.form textarea,
.form select {
  margin-top: 7px;
  padding: 11px 14px;
  border: 1.5px solid var(--mid-grey);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: auto;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 133, 52, 0.14);
}

.form textarea {
  resize: vertical;
  min-height: 110px;
}

/* Validation states */
.form input.invalid,
.form select.invalid {
  border-color: #d42020;
  box-shadow: 0 0 0 3px rgba(212, 32, 32, 0.1);
}

.error-message {
  font-size: 0.78rem;
  color: #d42020;
  margin-top: 4px;
  font-weight: 500;
  display: none;
}

.error-message.show {
  display: block;
}

/* Loader overlay */
.loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(2px);
}

.loader.active {
  display: flex;
}

.loader img {
  width: 54px;
  height: 54px;
}

/* Success panel */
.success-container {
  display: none;
  padding: 70px 40px;
}

.success-container.show {
  display: block;
}

.flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.success-text {
  font-size: 1.05rem;
  color: var(--primary);
  line-height: 1.8;
  font-weight: 500;
}

/* SVG checkmark draw animation */
.icon--order-success circle {
  animation: svgCircle 1s ease forwards;
}

.icon--order-success .st0 {
  animation: svgCheck 0.6s 0.8s ease forwards;
}

@keyframes svgCircle {
  to { stroke-dashoffset: 480px; }
}

@keyframes svgCheck {
  to { stroke-dashoffset: 100px; }
}

@media (max-width: 600px) {
  .form {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .form .full-item {
    grid-column: 1;
  }
}


/* ============================================================
   11. FAQ Accordion
   ============================================================ */
.faqs-container {
  padding: 85px 0;
  background: var(--white);
}

.faqs-container .title1 {
  margin-bottom: 44px;
}

.accordion {
  border: 1px solid var(--mid-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion .link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  border-bottom: 1px solid var(--mid-grey);
  transition: background var(--transition), color var(--transition);
  background: var(--white);
  text-decoration: none;
  user-select: none;
}

.accordion .link:last-of-type {
  border-bottom: none;
}

.accordion .link::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  line-height: 1;
}

.accordion .link.open::after {
  transform: rotate(45deg);
}

.accordion .link:hover,
.accordion .link.open {
  background: var(--light-grey);
  color: var(--accent);
}

.accordion .content {
  display: none;
  padding: 20px 24px 26px;
  background: #fafbfc;
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--mid-grey);
}

.accordion .content ul {
  margin: 12px 0 4px 20px;
  list-style: disc;
}

.accordion .content ul li {
  padding: 4px 0;
  color: var(--text-mid);
}


/* ============================================================
   12. Resources Page
   ============================================================ */
.resources-page {
  color: var(--text-dark);
}

.resources-page > div > .container {
  padding-top: 50px;
  padding-bottom: 70px;
}

/* Section spacing */
.resources-page > div > .container > div {
  margin-bottom: 52px;
}

/* Hero block */
.resources-page .hero {
  text-align: center;
  padding: 52px 32px 44px;
  background: linear-gradient(135deg, var(--light-grey) 0%, #edf0f5 100%);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
}

.resources-page .hero h1 {
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.resources-page .hero h2 {
  color: var(--accent);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 14px;
}

.resources-page .hero p {
  color: var(--text-mid);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* Section headings */
.resources-page > div > .container > div > h2 {
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

/* Cards */
.card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--mid-grey);
}

.card strong,
.card b {
  display: block;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Icon square */
.icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 10px;
  background: rgba(245, 133, 52, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.card:hover .icon {
  background: rgba(245, 133, 52, 0.18);
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

/* Lists inside resources page */
.resources-page ul {
  margin: 6px 0 0 20px;
  list-style: disc;
}

.resources-page ul li {
  padding: 5px 0;
  color: var(--text-mid);
  font-size: 0.93rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   13. Footer
   ============================================================ */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 64px;
}

footer .container {
  padding-bottom: 44px;
}

footer .row {
  gap: 36px;
}

/* White logo */
footer .white-logo {
  height: 52px;
  width: auto;
  margin-bottom: 18px;
  opacity: 0.92;
}

/* Tagline */
footer .col-sm-6:first-child > p,
footer .col-md-3:first-child > p {
  font-size: 0.855rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 16px;
}

/* Footer social icons */
footer .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

footer .social-icons a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

footer .social-icons a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* Footer section headings */
footer .title2 {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

footer .title2 span {
  color: var(--accent);
}

/* Quick links */
footer ul li {
  padding: 4px 0;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.865rem;
  display: inline-block;
  transition: color var(--transition), padding-left var(--transition);
}

footer ul li a:hover,
footer ul li a.active {
  color: var(--accent);
  padding-left: 5px;
}

/* Contact info */
footer .address {
  font-size: 0.865rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
}

footer .tel {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

footer .address a {
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--transition);
}

footer .address a:hover {
  color: var(--accent);
}

/* Map iframe */
footer iframe {
  width: 100%;
  height: 185px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(25%) brightness(0.85);
  display: block;
}

/* Copyright bar */
.copyright {
  background: rgba(0, 0, 0, 0.25);
  padding: 16px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 24px;
}

@media (max-width: 991px) {
  footer .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  footer .row {
    grid-template-columns: 1fr;
  }
  footer {
    padding-top: 44px;
  }
}


/* ============================================================
   14. AOS Entrance Animations (IntersectionObserver-driven)
   ============================================================ */

/* Base transition applied to all [data-aos] elements */
[data-aos] {
  transition-property: opacity, transform;
  transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0s;
}

/* Pre-animation (hidden) states */
[data-aos="fade-up"]    { opacity: 0; transform: translateY(32px); }
[data-aos="fade-down"]  { opacity: 0; transform: translateY(-32px); }
[data-aos="fade-left"]  { opacity: 0; transform: translateX(32px); }
[data-aos="fade-right"] { opacity: 0; transform: translateX(-32px); }

[data-aos="zoom-in"]    { opacity: 0; transform: scale(0.87); }
[data-aos="zoom-in-up"] { opacity: 0; transform: scale(0.87) translateY(28px); }

[data-aos="flip-up"]    { opacity: 0; transform: perspective(700px) rotateX(-22deg); }
[data-aos="flip-right"] { opacity: 0; transform: perspective(700px) rotateY(-22deg); }
[data-aos="flip-left"]  { opacity: 0; transform: perspective(700px) rotateY(22deg); }

/* Animated state — added by JS IntersectionObserver */
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* Respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   Form Background Section (Openings + Contact Us)
   ============================================================ */
.form-bg-section {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.form-bg-section::before {
  content: '';
  position: absolute;
  inset: -30px;
  background-image: url('../image_home_care/img_1.webp');
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: 0;
}

.form-bg-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 65, 0.55);
  z-index: 1;
}

.form-bg-section > * {
  position: relative;
  z-index: 2;
}

/* Ensure inner container has vertical padding on contact page */
.form-bg-section > .container {
  padding-top: 70px;
  padding-bottom: 70px;
}

/* Title text becomes white on dark blurred bg */
.form-bg-section .title1,
.form-bg-section .contact-form-container .title1,
.form-bg-section .job-opening-form-container .title1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Form card: solid white, strong shadow */
.form-bg-section .form-container {
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
}

/* Make labels clearly readable */
.form-bg-section .form > div {
  color: #2c2c2c;
  font-weight: 700;
}

/* Clearly visible input borders */
.form-bg-section .form input,
.form-bg-section .form textarea,
.form-bg-section .form select {
  border: 2px solid #aab0bc;
  background: #f9fafc;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.form-bg-section .form input:focus,
.form-bg-section .form textarea:focus,
.form-bg-section .form select:focus {
  border-color: #f58534;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 133, 52, 0.2);
}

/* Submit button — full vivid orange */
.form-bg-section .orange-btn,
.form-bg-section button.orange-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  letter-spacing: 0.1em;
  background: #f58534;
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(245, 133, 52, 0.45);
  transition: background 0.3s ease, transform 0.2s ease;
}

.form-bg-section .orange-btn:hover,
.form-bg-section button.orange-btn:hover {
  background: #d96c1f;
  transform: translateY(-2px);
}

/* ============================================================
   Form Privacy Disclaimer (Contact / Openings / Apply Patient)
   ============================================================ */
.form-disclaimer {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 14px 16px;
  background: var(--light-grey);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.55;
}
.form-disclaimer strong {
  color: var(--primary);
  font-weight: 700;
}
