/* ============================================================
   Family Bridge — teaser site styles
   Brand tokens first; no hard-coded hex below :root.
   ============================================================ */

:root {
  /* Colors */
  --indigo-900: #1A1145;
  --indigo-800: #2D1B69;
  --indigo-600: #5438A0;
  --indigo-400: #8A72D1;
  --teal-600:  #0D9488;
  --teal-500:  #14B8A6;
  --teal-700:  #0B786F;        /* accessible teal for small text on light (WCAG AA) */
  --lavender:  #C8BFED;
  --surface:   #F3F1FB;
  --white:     #FFFFFF;

  /* Derived / semantic */
  --bg: var(--white);
  --text: var(--indigo-900);
  --text-muted: var(--indigo-600);
  --link: var(--indigo-600);
  --hero-gradient: linear-gradient(135deg, var(--indigo-900), var(--indigo-800));
  --on-dark: #F4F1FF;          /* lavender-white body text on dark — AA on indigo */
  --on-dark-muted: var(--lavender);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.4rem, 5vw, 4rem);
  --fs-h2: clamp(1.8rem, 3.5vw, 2.6rem);
  --fs-h3: 1.3rem;
  --fs-body: 1.125rem;          /* 18px */
  --fs-lead: clamp(1.2rem, 1.8vw, 1.4rem);
  --fs-eyebrow: 0.8125rem;

  /* Shape & space */
  --radius-card: 20px;
  --radius-pill: 999px;
  --maxw: 1100px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-pad: clamp(5rem, 10vw, 8rem);

  --shadow-card: 0 1px 2px rgba(26, 17, 69, 0.04), 0 12px 32px rgba(26, 17, 69, 0.08);
  --shadow-btn: 0 6px 18px rgba(13, 148, 136, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

/* ------------------------- Accessibility ------------------------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--white);
  color: var(--indigo-900);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------- Layout ----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  overflow: clip;
}
.section--light   { background: var(--white); color: var(--text); }
.section--surface { background: var(--surface); color: var(--text); }
.section--dark    { background: var(--hero-gradient); color: var(--on-dark); }

.prose { max-width: 760px; }
.prose p { margin: 0 0 1.25rem; }
.prose--center { margin-inline: auto; text-align: center; }

/* ---------------------------- Eyebrow ---------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-700);
  margin: 0 0 1rem;
}
.eyebrow--ondark { color: var(--teal-500); }

.lead { font-size: var(--fs-lead); color: var(--text-muted); }

/* ----------------------------- Pills ----------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;          /* bold: at >=18.66px this meets WCAG AA large-text (3:1) for white-on-teal CTAs */
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease),
              box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}
.pill:hover { text-decoration: none; }

.pill--solid {
  background: var(--teal-600);
  color: var(--white);
}
.pill--solid:hover {
  background: var(--teal-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}
.pill--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(200, 191, 237, 0.45);
  padding-block: 0.55rem;
  padding-inline: 1.1rem;
  font-size: 0.95rem;
}
.pill--ghost:hover {
  background: rgba(200, 191, 237, 0.14);
  border-color: var(--lavender);
  transform: translateY(-1px);
}
/* 1.2rem (19.2px) + weight 600 qualifies as WCAG "large text" (3:1),
   so white-on-teal CTA labels meet AA. */
.pill--lg { padding: 1rem 1.9rem; font-size: 1.2rem; }
.pill--xl { padding: 1.15rem 2.4rem; font-size: clamp(1.05rem, 2.2vw, 1.3rem); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}
.text-link:hover { color: var(--white); text-decoration: none; }
.text-link span { transition: transform 0.15s var(--ease); }
.text-link:hover span { transform: translateX(3px); }

/* ------------------------------ Nav ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Indigo from the start — seamless over the indigo hero, and gives the
     light-on-dark "Get in touch" link a guaranteed dark backing (AA). */
  background: var(--indigo-900);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo { display: inline-flex; }
.nav__logo img { height: 34px; width: auto; }
.nav.is-scrolled {
  background: rgba(26, 17, 69, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(200, 191, 237, 0.12);
}

/* ------------------------------ Hero ----------------------------- */
.hero { padding-top: clamp(3rem, 8vw, 6rem); }
.hero__inner { max-width: 880px; }
.hero__arc, .contact__arc {
  position: absolute;
  inset: auto 0 0 0;
  top: 8%;
  width: min(120%, 1200px);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero__inner, .contact .container { position: relative; z-index: 1; }

.hero__title {
  font-size: var(--fs-h1);
  color: var(--white);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero__subhead {
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
  max-width: 56ch;
  margin: 0 0 2.25rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---------------------------- Problem ---------------------------- */
#problem h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; }
.pull-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  color: var(--indigo-600);
  margin: 2.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--teal-600);
  text-wrap: balance;
}

/* ---------------------------- Approach --------------------------- */
.approach__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.approach__head h2 { font-size: var(--fs-h2); margin: 0 0 1.25rem; }

.touchpoints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  counter-reset: tp;
}
.card {
  background: var(--white);
  border: 1px solid rgba(138, 114, 209, 0.18);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}
.touchpoint { counter-increment: tp; }
.touchpoint__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--teal-600);
  margin-bottom: 1.1rem;
}
.touchpoint__icon svg { width: 30px; height: auto; }
.touchpoint__title {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}
.touchpoint__title::before {
  content: counter(tp) " — ";
  color: var(--teal-700);
  font-variant-numeric: tabular-nums;
}
.touchpoint p { margin: 0; color: var(--text-muted); }

.approach__closing {
  text-align: center;
  font-size: var(--fs-lead);
  max-width: 46ch;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  color: var(--indigo-800);
}

/* ----------------------------- Pilot ----------------------------- */
/* White per the section rhythm; centered to mark the conversion moment
   and set it apart from the adjacent (also-light) team section. */
.pilot { text-align: center; }
.pilot h2 { font-size: var(--fs-h2); margin-bottom: 1.75rem; }
.pilot .badge { margin-block: 0.5rem; }
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--teal-700);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.28);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
}

/* ------------------------------ Team ----------------------------- */
.team__head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.team__head h2 { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.team__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;       /* centers the last row (5 members → 3 + 2) */
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.team-card { text-align: center; flex: 0 1 300px; }
.team-card__photo {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 1.1rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--lavender);
}
.team-card__name { font-size: var(--fs-h3); }
.team-card__role {
  color: var(--teal-700);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.25rem 0 0.85rem;
}
.team-card__bio { margin: 0; color: var(--text-muted); font-size: 1rem; }

/* ---------------------------- Contact ---------------------------- */
.contact { text-align: center; }
.contact h2 { font-size: var(--fs-h2); color: var(--white); margin-bottom: 1.25rem; }
.contact__body { color: var(--on-dark-muted); font-size: var(--fs-lead); margin-bottom: 2rem; }

/* ----------------------------- Footer ---------------------------- */
.footer { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer__inner { display: grid; gap: 0.4rem; }
.footer__logo { height: 30px; width: auto; margin-bottom: 0.75rem; }
.footer__tagline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}
.footer__meta, .footer__legal { margin: 0; color: var(--on-dark-muted); font-size: 0.95rem; }
.footer__meta strong { color: var(--lavender); font-weight: 600; }
.footer__legal { display: flex; gap: 1.25rem; align-items: center; margin-top: 0.4rem; }
.footer__link { color: var(--on-dark-muted); }
.footer__link:hover { color: var(--white); }

/* Links back to the company site (www.carefai.com) inherit the surrounding colour — FBI-493 */
.eyebrow a, .footer__meta a { color: inherit; }
.eyebrow a:hover, .footer__meta a:hover { color: var(--white); text-decoration: underline; }

/* ------------------------- Reveal on scroll ---------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger cards within a group slightly */
.touchpoints .reveal:nth-child(2) { transition-delay: 80ms; }
.touchpoints .reveal:nth-child(3) { transition-delay: 160ms; }
.team__grid .reveal:nth-child(2) { transition-delay: 80ms; }
.team__grid .reveal:nth-child(3) { transition-delay: 160ms; }
.team__grid .reveal:nth-child(4) { transition-delay: 240ms; }
.team__grid .reveal:nth-child(5) { transition-delay: 320ms; }
.team__grid .reveal:nth-child(6) { transition-delay: 400ms; }

/* --------------------------- Responsive -------------------------- */
@media (max-width: 720px) {
  .touchpoints { grid-template-columns: 1fr; }
  .hero__actions { gap: 1rem; }
  .footer__legal { flex-wrap: wrap; }
}

/* ----------------------- Reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
