/* ============================================
   APEX CARE — Main Stylesheet
   ============================================ */

/* 1. CSS RESET & ROOT VARIABLES
------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary:        #1B5E8A;
  --primary-dark:   #0D3A5C;
  --primary-light:  #EBF5FF;
  --secondary:      #D4791A;
  --secondary-light:#FEF3E2;
  --green:          #3DAA73;
  --green-light:    #E8F7F0;
  --dark:           #1A2D3E;
  --medium:         #4A6280;
  --gray:           #718096;
  --light-gray:     #F5F7FA;
  --border:         #E2E8F0;
  --white:          #FFFFFF;
  --warm-white:     #FAFAF8;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:      0 10px 40px rgba(0,0,0,.14);
  --radius:         10px;
  --radius-lg:      18px;
  --transition:     0.3s ease;
  --font-body:      'Inter', sans-serif;
  --font-heading:   'Playfair Display', serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* 2. TYPOGRAPHY
------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { color: var(--medium); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-white  { color: #fff !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--medium);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

/* 3. LAYOUT UTILITIES
------------------------------------------------ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm { max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-dark {
  background: var(--dark);
}

.section-light {
  background: var(--light-gray);
}

.section-primary {
  background: var(--primary);
}

.section-warm {
  background: var(--secondary-light);
}

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* 4. BUTTONS
------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,94,138,.35);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: #b8650f;
  border-color: #b8650f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,121,26,.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover {
  background: #2d8a5d;
  border-color: #2d8a5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61,170,115,.35);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 5. NAVIGATION
------------------------------------------------ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow);
  padding: 0.65rem 0;
}

#navbar.scrolled .nav-logo-text .logo-care,
#navbar.scrolled .nav-logo-text .logo-apex {
  color: var(--dark);
}

#navbar.scrolled .nav-link { color: var(--dark); }
#navbar.scrolled .nav-link:hover { color: var(--primary); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-apex {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.logo-care {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: color var(--transition);
  border-radius: 6px;
}

.nav-link:hover { color: #fff; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-dropdown a .drop-icon {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.nav-cta { margin-left: 0.75rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

#navbar.scrolled .hamburger span { background: var(--dark); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

/* 6. HERO (HOME PAGE — VIDEO)
------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bg-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      #0D3A5C 0%,
      #1B5E8A 40%,
      #2D7FB5 70%,
      #1B5E8A 100%);
  animation: heroBgShift 8s ease-in-out infinite alternate;
}

@keyframes heroBgShift {
  from { filter: hue-rotate(0deg) brightness(1); }
  to   { filter: hue-rotate(10deg) brightness(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,30,50,.78) 0%,
    rgba(10,30,50,.55) 50%,
    rgba(10,30,50,.35) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero h1 em {
  font-style: normal;
  color: #f0c070;
}

.hero .lead {
  color: rgba(255,255,255,.85);
  max-width: 580px;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: center;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,.85);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,.6);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

.scroll-arrow svg {
  width: 12px;
  height: 12px;
  fill: rgba(255,255,255,.7);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* 7. PAGE HERO (INNER PAGES)
------------------------------------------------ */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2D7FB5 100%);
  padding: 8rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 { color: #fff; margin-bottom: 1rem; }

.page-hero p {
  color: rgba(255,255,255,.82);
  font-size: 1.1rem;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
}

.breadcrumb a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* 8. SECTION HEADERS
------------------------------------------------ */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header.centered { text-align: center; }

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

.section-header p {
  font-size: 1.05rem;
  max-width: 580px;
}

.section-header.centered p {
  margin: 0 auto;
}

.divider {
  width: 50px;
  height: 3px;
  border-radius: 3px;
  background: var(--secondary);
  margin: 1rem 0 1.25rem;
}

.section-header.centered .divider { margin: 1rem auto 1.25rem; }

/* 9. STATS BAR
------------------------------------------------ */
.stats-bar {
  background: var(--primary-dark);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-item {
  padding: 1.25rem;
  border-right: 1px solid rgba(255,255,255,.12);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-number span {
  color: var(--secondary);
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 10. SERVICE CARDS
------------------------------------------------ */
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card-img {
  height: 210px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-body {
  padding: 1.75rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.service-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.service-card-body p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.service-card-body .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
}

/* Feature list inside service card */
.feature-list {
  list-style: none;
  margin: 1rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--medium);
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 11. ABOUT / STORY SECTION
------------------------------------------------ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--secondary);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-badge .badge-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.about-badge .badge-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: .9;
}

/* 12. VALUE PILLS / TRUST MARKS
------------------------------------------------ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.value-icon.blue   { background: var(--primary-light); }
.value-icon.gold   { background: var(--secondary-light); }
.value-icon.green  { background: var(--green-light); }

.value-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.value-card p  { font-size: 0.88rem; }

/* 13. TEAM CARDS
------------------------------------------------ */
.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}

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

.team-card-img {
  height: 240px;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.team-card-body h4 { margin-bottom: 0.25rem; }

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.team-card-body p { font-size: 0.88rem; }

/* 14. TESTIMONIALS
------------------------------------------------ */
.testimonials-wrap {
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  min-width: calc(33.333% - 1rem);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--medium);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.testimonial-location {
  font-size: 0.8rem;
  color: var(--gray);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--medium);
}

.slider-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* 15. CTA BANNER
------------------------------------------------ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 340px; height: 340px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-banner p  { color: rgba(255,255,255,.8); }

/* 16. FAQ ACCORDION
------------------------------------------------ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all var(--transition);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--medium);
  font-size: 0.95rem;
  line-height: 1.75;
}

.faq-item.active .faq-answer { max-height: 500px; }

/* 17. CONTACT / FORM
------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1rem; }

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

.contact-block-icon {
  width: 46px;
  height: 46px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-block-text strong {
  display: block;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.2rem;
}

.contact-block-text p { font-size: 0.9rem; margin: 0; }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,94,138,.12);
}

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

/* 18. CAREERS
------------------------------------------------ */
.job-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition);
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.job-type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.job-card h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.job-card p  { font-size: 0.88rem; margin: 0; }

.job-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.job-meta span {
  font-size: 0.82rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* 19. PROCESS STEPS
------------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-light), var(--primary-light));
  z-index: 0;
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 8px var(--primary-light);
}

.step-item h4 { margin-bottom: 0.5rem; }
.step-item p  { font-size: 0.88rem; }

/* 20. IMAGE GALLERY ROW
------------------------------------------------ */
.gallery-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  height: 380px;
}

.gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* 21. ALERT / INFO BANNER
------------------------------------------------ */
.info-banner {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-banner p { margin: 0; font-size: 0.92rem; color: var(--primary-dark); }

/* 22. PRICING / PLAN CARDS
------------------------------------------------ */
.plan-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
}

/* 23. FOOTER
------------------------------------------------ */
footer {
  background: #0D1E2E;
  color: rgba(255,255,255,.8);
}

.footer-main {
  padding: 4rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-brand .logo-apex { color: #fff; font-size: 1.6rem; }
.footer-brand .logo-care { color: rgba(255,255,255,.55); }

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  margin: 1rem 0 1.5rem;
  line-height: 1.75;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 0.85rem;
  transition: all var(--transition);
  cursor: pointer;
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
}

.footer-contact-item strong { color: rgba(255,255,255,.85); display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,.8); }

/* 24. FLOATING ELEMENTS
------------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 900;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: all var(--transition);
  font-size: 1.4rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37,211,102,.4);
}

/* 25. SCROLL ANIMATIONS
------------------------------------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible { opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 26. COOKIE BANNER
------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: rgba(255,255,255,.85);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  flex-wrap: wrap;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner p { font-size: 0.88rem; margin: 0; }
.cookie-banner a { color: var(--secondary); }

.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* 27. PAGE-SPECIFIC — PRIVACY POLICY
------------------------------------------------ */
.policy-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.policy-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
  color: var(--primary);
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content p, .policy-content li {
  font-size: 0.95rem;
  color: var(--medium);
}

.policy-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-content ul li { margin-bottom: 0.4rem; }

/* 28. MOBILE MENU OVERLAY
------------------------------------------------ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(10,25,40,.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  padding: 0.5rem 1rem;
  transition: color var(--transition);
}

.mobile-nav a:hover { color: #fff; }

.mobile-nav .btn {
  margin-top: 1rem;
  font-size: 1rem;
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* 29. UTILITY CLASSES
------------------------------------------------ */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.py-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }

.w-full { width: 100%; }

.highlight { background: var(--secondary); color: #fff; padding: 0 0.35em; border-radius: 4px; }

/* 30. RESPONSIVE
------------------------------------------------ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat-item:last-child, .stat-item:nth-child(2) { border-bottom: none; }
}

@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; }
  .about-image-wrap img { height: 350px; }
  .about-badge { bottom: -1rem; right: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-inner .btn-group { justify-content: center; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-row { grid-template-columns: 1fr; height: auto; }
  .gallery-row img { height: 200px; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .testimonial-card { min-width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .job-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; align-items: flex-start; }
  .btn-group { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2rem; }
}
