/* facilitators.css */
:root {
  --primary: #00599d;
  --primary-container: #0072c6;
  --primary-solid: #0072c6;
  --on-primary: #ffffff;
  --surface: #ffffff;
  --on-surface: #1a1c1c;
  --on-surface-variant: #414752;
  --secondary: #466081;
  --tertiary: #8c4300;
  --tertiary-fixed: #ffdbc7;
  --outline: #717783;
  --outline-variant: #c0c7d3;
  --surface-container-low: #f3f3f3;
  --surface-container-lowest: #ffffff;
  --surface-container-highest: #e2e2e2;
  --secondary-container: #bcd6fd;
  --on-secondary-container: #435d7e;
}

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Manrope', 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Sub-Navbar */
.sub-navbar {
  position: sticky;
  top: 64px; /* Assuming main navbar is 64px */
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  z-index: 40;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sub-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  overflow-x: auto;
}

.sub-nav-links {
  display: flex;
  gap: 1.5rem;
}

.sub-nav-links a {
  text-decoration: none;
  color: var(--on-surface-variant);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.sub-nav-links a:hover {
  color: var(--primary);
}

.sub-nav-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-sub {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-sub-primary {
  background: linear-gradient(to right, var(--primary), var(--primary-container));
  color: #fff !important;
}

.btn-sub-primary:hover {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-sub-outline {
  border: 1px solid var(--outline-variant);
  color: var(--primary);
}

.btn-sub-outline:hover {
  background: var(--surface-container-low);
}

.btn-sub-text {
  color: var(--on-surface-variant);
}

.btn-sub-text:hover {
  color: var(--primary);
}

/* Typography & Utilities */
.fac-main {
  padding-top: 4rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.grid-2-col {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2-col.reverse > :first-child {
    order: 2;
  }
  .grid-2-col.reverse > :last-child {
    order: 1;
  }
}

.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.badge-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.heading-1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .heading-1 {
    font-size: 3.5rem;
  }
}

.heading-2 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .heading-2 {
    font-size: 3rem;
  }
}

.text-primary { color: var(--primary); }
.text-tertiary { color: var(--tertiary); }
.text-white { color: #fff; }
.text-light-dim { color: rgba(211, 228, 255, 0.8); }

.body-large {
  font-size: 1.125rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.body-xl {
  font-size: 1.25rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.op-90 { opacity: 0.9; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-20 { margin-bottom: 5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.text-center { text-align: center; }
.m-0 { margin: 0; }

.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 0.5rem; }

.text-special {
  font-size: 0.875rem;
  font-weight: 900;
  color: #ffdbc7;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Sections */
.section-gray { background-color: var(--surface-container-low); }
.section-white { background-color: var(--surface); }
.section-primary { background-color: var(--primary); }

.fac-hero {
  padding-bottom: 2rem;
}

/* Common Layouts */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background-color: var(--surface-container-lowest);
  border: 1px solid rgba(192, 199, 211, 0.1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.image-wrapper {
  position: relative;
}

.glow-bg {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to top right, rgba(0,89,157,0.1), rgba(140,67,0,0.1));
  border-radius: 2rem;
  filter: blur(24px);
  z-index: 0;
}

.main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(192, 199, 211, 0.2);
  z-index: 1;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.box-card {
  background-color: var(--surface-container-lowest);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(192, 199, 211, 0.1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.box-card h4 {
  font-weight: 700;
  font-size: 0.875rem;
}

.custom-grid-wrapper {
  background-color: rgba(226, 226, 226, 0.3);
  padding: 1rem;
  border-radius: 1.5rem;
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-card {
  height: 12rem;
  border-radius: 1rem;
  background-color: var(--surface-container-lowest);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid-card p { font-weight: 700; }
.offset-up { transform: translateY(2rem); }
.icon-xl { font-size: 2.5rem; }

/* Icon Text List */
.icon-text-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.icon-text-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(0, 89, 157, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle span { color: var(--primary); font-size: 1.25rem; }

.icon-text-item h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.icon-text-item p {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
}

.icon-box-large {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: var(--surface-container-highest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s;
}

.hover-effect:hover .icon-box-large {
  background-color: var(--primary);
}
.hover-effect:hover .icon-box-large span {
  color: #fff;
}

.box-shadow-large {
  background-color: var(--surface-container-lowest);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(192, 199, 211, 0.1);
}

@media (min-width: 1024px) {
  .box-shadow-large { padding: 5rem; }
}

.image-wrapper-rounded {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.image-wrapper-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-box h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

.feature-box p {
  font-size: 0.75rem;
  color: rgba(211, 228, 255, 0.6);
}

.glass-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.glass-wrapper img {
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.dashboard-mockup {
  background-color: var(--surface-container-highest);
  border-radius: 2.5rem;
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.mockup-inner {
  background-color: var(--surface);
  border-radius: 2rem;
  border: 1px solid rgba(192, 199, 211, 0.3);
  padding: 1.5rem;
}

.mockup-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mockup-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface-variant);
}

.bars-flex {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 10rem;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.bar-f {
  flex: 1;
  background-color: rgba(0, 89, 157, 0.2);
  border-radius: 0.5rem 0.5rem 0 0;
}

.h-40 { height: 40%; }
.h-75 { height: 75%; background-color: rgba(0, 89, 157, 0.6); }
.h-55 { height: 55%; background-color: rgba(0, 89, 157, 0.4); }
.h-90 { height: 90%; background-color: rgba(0, 89, 157, 0.8); }
.h-45 { height: 45%; background-color: rgba(0, 89, 157, 0.3); }

.ai-box {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  padding: 1rem;
  border-radius: 0.75rem;
}

/* CTA Section */
.cta-banner {
  background-color: var(--primary-container);
  padding: 4rem;
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--on-primary-container);
  overflow: hidden;
  position: relative;
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
}

.btn-primary-large {
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 12px 32px rgba(26, 28, 28, 0.06);
}

.btn-primary-large:active {
  transform: scale(0.95);
}

.btn-light {
  background-color: var(--surface-container-lowest);
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--surface);
}

.btn-outline-large {
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-large:active {
  transform: scale(0.95);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--on-primary-container);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==============================================
   RESPONSIVE — mobile-first fixes
   ============================================== */

@media (max-width: 767px) {
  .container {
    padding: 2.5rem 1.25rem;
  }

  .fac-main { padding-top: 2rem; }

  /* Headings */
  .heading-1 { font-size: 2rem; }
  .heading-2 { font-size: 1.75rem; }
  .body-xl   { font-size: 1rem; }

  /* Grid gap */
  .grid-2-col { gap: 2rem; }

  /* Main image — cap height so it doesn't dominate */
  .main-image {
    aspect-ratio: 4 / 3;
    max-width: 100%;
  }

  .image-wrapper {
    max-width: 100%;
    overflow: hidden;
  }

  /* Image wrapper rounded */
  .image-wrapper-rounded {
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }

  /* Glass wrapper image */
  .glass-wrapper {
    padding: 1rem;
  }

  /* Custom grid → 1 col on small screens */
  .custom-grid,
  .custom-grid-wrapper .custom-grid {
    grid-template-columns: 1fr;
  }

  .grid-card { height: 9rem; }

  /* Remove offset transforms on mobile to prevent overflow */
  .offset-up  { transform: none; }

  /* box-cards grid */
  .grid-2 { grid-template-columns: 1fr; }

  /* Dashboard mockup */
  .dashboard-mockup {
    border-radius: 1.5rem;
    padding: 0.75rem;
  }

  .mockup-inner { padding: 1rem; }

  .bars-flex { height: 7rem; }

  /* Feature boxes inside section-primary */
  .feature-box { padding: 0.75rem; }

  /* box-shadow-large */
  .box-shadow-large {
    border-radius: 1.25rem;
    padding: 1.5rem;
  }

  /* CTA banner */
  .cta-banner {
    padding: 2.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary-large,
  .btn-outline-large {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    text-align: center;
  }
}

@media (max-width: 479px) {
  .grid-2 { grid-template-columns: 1fr; }
  .heading-1 { font-size: 1.75rem; }
  .heading-2 { font-size: 1.5rem; }

  /* Hero badge & text */
  .fac-hero .container {
    padding-top: 1.5rem;
  }
}
