/* Sentinel &mdash; cream #faf8f3 + navy #0f172a (light mode only) */
:root {
  --color-cream: #faf8f3;
  --color-navy: #0f172a;
  --color-navy-hover: #1e293b;
  --color-cream-muted: #f0ebe3;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-color: var(--color-cream);
  color: var(--color-navy);
}

.bg-cream { background-color: var(--color-cream); }
.bg-navy { background-color: var(--color-navy); }
.text-navy { color: var(--color-navy); }
.text-cream { color: var(--color-cream); }

.gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-mesh {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(15, 23, 42, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(51, 65, 85, 0.2), transparent);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

#page-loader {
  transition: opacity 0.4s ease, visibility 0.4s ease;
  background-color: var(--color-navy) !important;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header { position: relative; }

.services-mega-menu {
  position: relative;
  z-index: 60;
  max-height: 75vh;
  overflow-y: auto;
}

.services-mega-menu.is-open { display: block !important; }
.services-mega-menu.hidden:not(.is-open) { display: none !important; }

.mega-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.5rem 0.625rem;
  margin: 0 -0.625rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-navy);
  transition: background-color 0.15s ease;
}

.mega-item:hover {
  background-color: var(--color-cream-muted);
}

.mega-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  color: var(--color-navy);
}

.mega-icon svg,
.home-services-mega .mega-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  flex-shrink: 0;
}

.home-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  flex-shrink: 0;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

#services-menu-btn[aria-expanded="true"] {
  color: var(--color-navy);
  background-color: var(--color-cream-muted);
}

/* Home page */
.home-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .home-section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

.home-section-sm {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.home-heading {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-eyebrow-dark {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.home-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.0625rem;
  color: var(--color-navy);
  font-weight: 500;
}

.home-check-item::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.55rem;
  border-radius: 9999px;
  background-color: var(--color-navy);
  flex-shrink: 0;
}

.home-card {
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: var(--color-cream);
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 40px -16px rgba(15, 23, 42, 0.15);
}

.home-card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
}

.home-service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-service-card:hover {
  border-color: var(--color-navy);
  box-shadow: 0 16px 48px -20px rgba(15, 23, 42, 0.2);
  transform: translateY(-2px);
}

.home-service-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: var(--color-cream-muted);
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.home-process-step {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: var(--color-cream);
}

.home-process-num {
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
}

.home-industry-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  color: var(--color-navy);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-industry-pill:hover {
  border-color: var(--color-navy);
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.15);
}

.home-testimonial {
  padding: 2rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  height: 100%;
}

.home-compliance-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: var(--color-cream);
}

.home-hero-card img {
  display: block;
}

.home-services-mega {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: var(--color-cream);
}

.section-image { object-fit: cover; width: 100%; }

.img-card { overflow: hidden; border-radius: 1rem; }
.img-card img { transition: transform 0.5s ease; }
.img-card:hover img { transform: scale(1.03); }

.prose-block p { margin-bottom: 1rem; line-height: 1.75; }

#sticky-cta.visible { transform: translateY(0); }

/* FAQ accordion */
.home-faq-section {
  background: white;
}

.faq-item {
  background: var(--color-cream);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.open {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  background: white;
}

.faq-question {
  gap: 1rem;
  color: var(--color-navy);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.5rem;
  transition: max-height 0.4s ease, opacity 0.25s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 16rem;
  opacity: 1;
  padding: 0 1.5rem 1.25rem;
}

.faq-item:not(.open) .faq-answer {
  visibility: hidden;
}

.faq-item.open .faq-answer {
  visibility: visible;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--color-navy);
}

.recovery-tracker-step.active .step-dot {
  background: var(--color-navy);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.25);
}

.recovery-tracker-step.completed .step-dot { background: #64748b; }

#site-nav.nav-scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.emergency-pulse { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-fade-up { opacity: 1; transform: none; transition: none; }
}
