/*
 * AYU Foundation Child Theme — ayu-components.css
 * Reusable components (buttons, cards, nav, accordion, footer, icons, Connection Frame)
 * plus homepage section-specific layout (hero, mission, signs, ABA, early intervention, etc.).
 * Ported unchanged from the approved prototype's components.css + sections.css.
 */

/* ===== components.css ===== */
/* AYU Foundation — Reusable components */

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  height: var(--btn-height-md);
  padding-inline: var(--space-lg);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: var(--fw-semibold);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background-color var(--duration-micro) var(--ease-standard),
              color var(--duration-micro) var(--ease-standard),
              border-color var(--duration-micro) var(--ease-standard),
              transform var(--duration-micro) var(--ease-standard),
              box-shadow var(--duration-micro) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn-icon { width: var(--icon-size-sm); height: var(--icon-size-sm); transition: transform var(--duration-micro) var(--ease-standard); flex: none; }
.btn:hover .btn-icon { transform: translateX(3px); }

.btn--sm { height: var(--btn-height-sm); padding-inline: var(--space-md); font-size: var(--fs-body-sm); }
.btn--lg { height: var(--btn-height-lg); padding-inline: var(--space-xl); }

.btn--primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
}
.btn--primary:hover { background: var(--color-btn-primary-bg-hover); box-shadow: var(--shadow-md); }

.btn--donate {
  background: var(--color-btn-donate-bg);
  color: var(--color-btn-donate-text);
}
.btn--donate:hover { background: var(--color-btn-donate-bg-hover); box-shadow: var(--shadow-md); }

.btn--outline {
  background: transparent;
  border-color: var(--color-btn-outline-border);
  color: var(--color-btn-outline-text);
}
.btn--outline:hover { background: var(--color-btn-outline-bg-hover); }

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

.btn--block { width: 100%; }

/* Text link with animated arrow (Learn More, etc.) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  color: var(--color-text-link);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--duration-micro) var(--ease-standard); }
.link-arrow:hover svg, .link-arrow:focus-visible svg { transform: translateX(4px); }
.link-arrow--coral { color: var(--color-text-link-coral); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--ayu-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--duration-card) var(--ease-standard), border-color var(--duration-card) var(--ease-standard);
}
.site-header.is-scrolled {
  border-color: var(--border-color-soft);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  flex: none;
}
.brand img { height: 46px; width: auto; }

.primary-nav { display: flex; }
.primary-nav ul { display: flex; align-items: center; gap: var(--space-lg); }
.primary-nav a {
  position: relative;
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  padding-block: var(--space-2xs);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--ayu-coral);
  border-radius: var(--radius-pill);
  transition: right var(--duration-micro) var(--ease-standard);
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  right: 0;
}
.primary-nav a[aria-current="page"] { color: var(--ayu-purple); font-weight: var(--fw-semibold); }

.header-ctas { display: flex; align-items: center; gap: var(--space-sm); flex: none; }

.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  z-index: var(--z-mobile-menu);
  background: var(--ayu-white);
  padding: var(--space-lg) var(--container-pad) var(--space-xl);
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--duration-card) var(--ease-out), opacity var(--duration-card) var(--ease-out);
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--space-2xs); }
.mobile-menu a {
  display: block;
  padding: var(--space-sm) var(--space-2xs);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--ayu-purple);
  border-bottom: 1px solid var(--border-color-soft);
}
.mobile-menu .header-ctas { flex-direction: column; align-items: stretch; margin-top: var(--space-lg); }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu { transition: none; }
}

/* ============ ICONS / ORBIT DOTS ============ */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-chip-size);
  height: var(--icon-chip-size);
  border-radius: var(--radius-sm);
  flex: none;
}
.icon-chip svg { width: var(--icon-size-md); height: var(--icon-size-md); }
.icon-chip--purple { background: rgba(63,43,112,0.10); color: var(--ayu-purple); }
.icon-chip--blue   { background: rgba(11,110,153,0.10); color: var(--ayu-blue-accessible); }
.icon-chip--coral  { background: rgba(179,59,31,0.10); color: var(--ayu-coral-accessible); }

.orbit-dot {
  border-radius: 50%;
  position: absolute;
}
.orbit-dot--blue  { background: var(--gradient-orbit-blue); }
.orbit-dot--coral { background: var(--gradient-orbit-coral); }

/* ============ CARDS ============ */
.card {
  background: var(--ayu-white);
  border: 1px solid var(--border-color-soft);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--duration-card) var(--ease-standard), box-shadow var(--duration-card) var(--ease-standard), border-color var(--duration-card) var(--ease-standard);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Service bento tiles */
.service-tile {
  background: var(--ayu-white);
  border: 1px solid var(--border-color-soft);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--duration-card) var(--ease-standard), box-shadow var(--duration-card) var(--ease-standard);
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-tile .icon-chip { width: 80px; height: 80px; border-radius: var(--radius-md); margin-bottom: var(--space-2xs); }
.service-tile .icon-chip svg, .service-tile .icon-chip img { width: 38px; height: 38px; }
.service-tile--anchor {
  grid-row: span 2;
  justify-content: center;
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(160deg, var(--ayu-pale-lavender) 0%, var(--ayu-white) 65%);
}
.service-tile--anchor .icon-chip { width: 100px; height: 100px; }
.service-tile--anchor .icon-chip svg, .service-tile--anchor .icon-chip img { width: 48px; height: 48px; }
.service-tile--anchor h3 { font-size: var(--fs-h2); }
.service-tile--anchor p { font-size: var(--fs-body-lg); }
.service-tile--blue { background: linear-gradient(160deg, var(--ayu-pale-blue) 0%, var(--ayu-white) 70%); }
.service-tile--cream { background: linear-gradient(160deg, var(--ayu-cream) 0%, var(--ayu-white) 70%); }
.service-tile--lavender-subtle { background: linear-gradient(160deg, var(--ayu-pale-lavender) 0%, var(--ayu-white) 55%); }
.service-tile--blue-subtle { background: linear-gradient(160deg, var(--ayu-pale-blue) 0%, var(--ayu-white) 55%); }
.service-tile h3, .service-tile h4 { color: var(--ayu-purple); }
.service-tile p { color: var(--color-text-secondary); }

.services-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: var(--space-xl);
}
.services-grid > .service-tile--anchor { grid-column: 1; }
.services-grid > .service-tile:nth-child(2) { grid-column: 2; grid-row: 1; }
.services-grid > .service-tile:nth-child(3) { grid-column: 3; grid-row: 1; }
.services-grid > .service-tile:nth-child(4) { grid-column: 2; grid-row: 2; }
.services-grid > .service-tile:nth-child(5) { grid-column: 3; grid-row: 2; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid > .service-tile--anchor { grid-column: 1 / -1; grid-row: 1; }
  .services-grid > .service-tile:nth-child(2) { grid-column: 1; grid-row: 2; }
  .services-grid > .service-tile:nth-child(3) { grid-column: 2; grid-row: 2; }
  .services-grid > .service-tile:nth-child(4) { grid-column: 1; grid-row: 3; }
  .services-grid > .service-tile:nth-child(5) { grid-column: 2; grid-row: 3; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid > .service-tile--anchor,
  .services-grid > .service-tile:nth-child(2),
  .services-grid > .service-tile:nth-child(3),
  .services-grid > .service-tile:nth-child(4),
  .services-grid > .service-tile:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Pathway cards (Get Involved) */
.pathway-cards {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
}
.pathway-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform var(--duration-card) var(--ease-standard), border-color var(--duration-card) var(--ease-standard), box-shadow var(--duration-card) var(--ease-standard);
}
.pathway-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.4); }
.pathway-card:hover .icon-chip { transform: scale(1.06); }
.pathway-card--donate {
  background: linear-gradient(160deg, rgba(242,99,52,0.22), rgba(242,99,52,0.08));
  border-color: rgba(242,99,52,0.5);
  box-shadow: 0 0 0 1px rgba(242,99,52,0.15), 0 20px 50px rgba(242,99,52,0.18);
}
.pathway-card .icon-chip {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.14); color: #fff;
  transition: transform var(--duration-card) var(--ease-standard);
}
.pathway-card .icon-chip svg { width: 28px; height: 28px; }
.pathway-card--donate .icon-chip { background: rgba(242,99,52,0.22); }
.pathway-card h3 { color: #fff; font-size: var(--fs-h3); }
.pathway-card p { color: rgba(255,255,255,0.78); }

@media (max-width: 1024px) {
  .pathway-cards { grid-template-columns: 1fr; }
  .pathway-cards > .pathway-card--donate { order: -1; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .pathway-cards { grid-template-columns: 1fr 1fr; }
  .pathway-cards > .pathway-card--donate { grid-column: 1 / -1; }
}

/* ============ PHOTO PLACEHOLDER (Phase 1 — no production photography yet) ============ */
.photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ayu-pale-blue) 0%, var(--ayu-pale-lavender) 100%);
  color: var(--ayu-purple-light);
}
/* An abstract "scene" (soft overlapping forms + a connecting line) previews the
   eventual photo's compositional weight and the Connected Paths language it will
   sit inside — a deliberate stand-in for a real photograph, not a generic empty state. */
.photo-placeholder__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.photo-placeholder__caption {
  position: absolute;
  left: 50%;
  bottom: var(--space-lg);
  transform: translateX(-50%);
  max-width: 80%;
  text-align: center;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-body);
  color: var(--ayu-purple);
  background: rgba(255,255,255,0.82);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
/* legacy fallback for any placeholder not yet upgraded to __scene/__caption */
.photo-placeholder > svg:not(.photo-placeholder__scene) {
  position: relative; z-index: 1; width: 40px; height: 40px; opacity: 0.5; margin-top: 40%;
}
.photo-placeholder > span:not(.photo-placeholder__caption) {
  position: relative; z-index: 1; display: block; margin-top: var(--space-xs); font-size: var(--fs-caption); font-weight: var(--fw-medium); opacity: 0.75; text-align: center; padding-inline: var(--space-lg);
}

/* ============ AYU CONNECTION FRAME ============ */
.connection-frame {
  position: relative;
  isolation: isolate;
}
.connection-frame__ribbon {
  position: absolute;
  z-index: var(--z-decoration);
  pointer-events: none;
}
.connection-frame__photo {
  position: relative;
  z-index: var(--z-content);
  border-radius: var(--radius-frame);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ayu-pale-lavender);
  box-shadow: var(--shadow-lg);
}
.connection-frame__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
/* Photo/container aspect ratios match exactly (4:5) at every breakpoint, so object-fit:cover
   renders these with no cropping regardless of viewport width — object-position is set for
   correctness and to protect against any future change to the frame's aspect-ratio. */
.connection-frame--light .connection-frame__photo img { object-position: center 18%; }
.connection-frame--light .connection-frame__photo { aspect-ratio: 16/10; border-radius: var(--radius-lg); }

/* Foreground accent sits ABOVE the photo, overlapping one corner — the "slight overlap
   between decorative elements and image" that makes the frame read as one connected
   composition rather than a graphic floating behind a separate rectangle. */
.connection-frame__accent {
  position: absolute;
  z-index: var(--z-content);
  pointer-events: none;
}

/* ============ BADGES / VALUE CUES ============ */
.value-cues {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl) var(--space-lg);
  padding-top: var(--space-lg);
  margin-top: var(--space-2xs);
  border-top: 1px solid var(--border-color-soft);
}
.value-cue { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--ayu-purple); }
.value-cue__icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; flex: none;
}
.value-cue__icon svg { width: 22px; height: 22px; }
.value-cue__icon--purple { background: rgba(63,43,112,0.10); color: var(--ayu-purple); }
.value-cue__icon--blue   { background: rgba(11,110,153,0.10); color: var(--ayu-blue-accessible); }
.value-cue__icon--coral  { background: rgba(179,59,31,0.10); color: var(--ayu-coral-accessible); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
}
.badge--blue { background: rgba(11,110,153,0.10); color: var(--ayu-blue-accessible); }
.badge--source-note { background: var(--ayu-pale-blue); color: var(--ayu-blue-accessible); border: 1px solid rgba(11,110,153,0.25); }

/* ============ CITATION CALLOUT ============ */
.citation {
  border-left: 3px solid var(--ayu-blue-accessible);
  background: var(--ayu-pale-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-md) var(--space-lg);
}
.citation__source { color: var(--ayu-blue-accessible); font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); }

/* ============ CHECKLIST (Recognizing the Signs) ============ */
.checklist { display: flex; flex-direction: column; gap: var(--space-sm); }
.checklist li { display: flex; align-items: flex-start; gap: var(--space-sm); }
.checklist .check-icon { flex: none; width: 26px; height: 26px; margin-top: 2px; color: var(--ayu-blue-accessible); }
.info-note {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  background: var(--ayu-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-md);
}
.info-note svg { flex: none; width: 22px; height: 22px; color: var(--ayu-blue-accessible); margin-top: 1px; }

/* ============ PROCESS LINE (ABA principles / How Support Works) — signature AYU component ============ */
.process-line { position: relative; padding-block: var(--space-lg); }
.process-line__path { position: absolute; inset: 0; z-index: var(--z-base); }
.process-line__path path { stroke-width: 4.5; opacity: 0.9; }
.process-line__nodes {
  position: relative;
  z-index: var(--z-content);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-lg);
}
.process-node {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-xs);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: transform var(--duration-card) var(--ease-standard);
}
.process-node .icon-chip {
  width: 72px; height: 72px;
  transition: transform var(--duration-card) var(--ease-standard), box-shadow var(--duration-card) var(--ease-standard);
}
.process-node .icon-chip svg { width: 34px; height: 34px; }
.process-node:hover, .process-node:focus-within { transform: translateY(-3px); }
.process-node:hover .icon-chip, .process-node:focus-within .icon-chip {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}
.process-node h5 { color: var(--ayu-purple); font-size: var(--fs-h5); }
.process-node p { color: var(--color-text-secondary); font-size: var(--fs-body-sm); }

/* ABA's process line is the site's signature moment: bigger nodes, a visible background
   contour so the path doesn't float on empty cream, and a stronger hover accent. */
.process-line--signature { padding-block: var(--space-2xl) var(--space-lg); }
.process-line--signature::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%; top: 50%;
  width: 132%; height: 260%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(63,43,112,0.06) 0%, rgba(112,208,246,0.05) 55%, transparent 75%);
  pointer-events: none;
}
.process-line--signature .process-line__nodes { gap: var(--space-xl); }
.process-line--signature .process-node .icon-chip { width: 92px; height: 92px; }
.process-line--signature .process-node .icon-chip svg { width: 44px; height: 44px; }
.process-line--signature .process-node h5 { font-size: var(--fs-h4); }
.process-line--signature .process-node p { font-size: var(--fs-body); }
.process-line--signature .process-node:hover .icon-chip,
.process-line--signature .process-node:focus-within .icon-chip {
  transform: scale(1.12);
  box-shadow: var(--shadow-lg);
}

.stepper__nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); position: relative; z-index: var(--z-content); }
.step-node {
  display: flex; flex-direction: column; gap: var(--space-2xs);
  transition: transform var(--duration-card) var(--ease-standard);
}
.step-node:hover, .step-node:focus-within { transform: translateY(-3px); }
.step-node__num {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ayu-purple); color: #fff;
  font-family: var(--font-heading); font-weight: var(--fw-bold);
  font-size: var(--fs-h5);
  margin-bottom: var(--space-2xs);
  box-shadow: 0 6px 16px rgba(63,43,112,0.28);
}
.step-node h5 { font-size: var(--fs-h4); }

@media (max-width: 900px) {
  .process-line__nodes { grid-template-columns: repeat(3, 1fr); }
  .process-line__nodes > :nth-child(4), .process-line__nodes > :nth-child(5) { grid-column: span 1; }
  .stepper__nodes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .process-line__nodes, .stepper__nodes { grid-template-columns: 1fr; text-align: left; }
  .process-node { flex-direction: row; text-align: left; }
  .process-line__path { display: none; }
  .process-line--signature .process-node .icon-chip { width: 68px; height: 68px; }
  .process-line--signature .process-node .icon-chip svg { width: 32px; height: 32px; }
  .process-line--signature::before { width: 100%; }
}

/* ============ APPROACH LIST (Why Families Trust AYU) ============ */
.approach-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-xl); }
.approach-item { display: flex; gap: var(--space-sm); align-items: flex-start; }
.approach-item__marker { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.approach-item__marker svg { width: 100%; height: 100%; }
.approach-item__marker--purple { color: var(--ayu-purple); }
.approach-item__marker--blue   { color: var(--ayu-blue-accessible); }
.approach-item__marker--coral  { color: var(--ayu-coral-accessible); }
.approach-item p { color: var(--color-text-primary); font-weight: var(--fw-medium); }
@media (max-width: 720px) { .approach-list { grid-template-columns: 1fr; } }

/* ============ ACCORDION (FAQ) ============ */
.accordion { display: flex; flex-direction: column; }
.accordion-item {
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--duration-card) var(--ease-standard);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: none;
  border: none;
  text-align: left;
  padding: var(--space-xl) var(--space-md);
  min-height: 76px;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ayu-purple);
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-card) var(--ease-standard), color var(--duration-card) var(--ease-standard);
}
.accordion-trigger:hover {
  background: var(--ayu-pale-lavender);
  color: var(--ayu-purple-dark);
}
.accordion-trigger[aria-expanded="true"] {
  color: var(--ayu-purple-dark);
}
.accordion-item.is-open {
  border-color: var(--ayu-coral);
}
.accordion-trigger__chevron {
  flex: none;
  width: 28px; height: 28px;
  padding: 4px;
  border-radius: 50%;
  background: var(--ayu-pale-lavender);
  color: var(--ayu-purple);
  transition: transform var(--duration-card) var(--ease-standard), background-color var(--duration-card) var(--ease-standard), color var(--duration-card) var(--ease-standard);
}
.accordion-trigger[aria-expanded="true"] .accordion-trigger__chevron {
  transform: rotate(180deg);
  background: var(--ayu-coral);
  color: #fff;
}
.accordion-panel {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition: height var(--duration-card) var(--ease-standard), opacity var(--duration-card) var(--ease-standard);
}
.accordion-panel[data-open="true"] {
  opacity: 1;
}
.accordion-panel__inner {
  padding: 0 var(--space-2xs) var(--space-md);
  color: var(--color-text-secondary);
}
@media (prefers-reduced-motion: reduce) {
  .accordion-panel { transition: none; }
}

.faq-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-3xl); }
@media (max-width: 860px) { .faq-columns { grid-template-columns: 1fr; } }

/* ============ COUNTER (demo component — design system only) ============ */
.counter-demo-flag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  background: var(--ayu-coral-accessible);
  color: #fff;
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  margin-bottom: var(--space-md);
}
.counter-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.counter { text-align: center; padding: var(--space-lg); border-radius: var(--radius-md); background: var(--ayu-pale-lavender); }
.counter__value { font-family: var(--font-heading); font-size: var(--fs-h1); font-weight: var(--fw-extrabold); color: var(--ayu-purple); }
.counter__label { color: var(--color-text-secondary); font-size: var(--fs-body-sm); margin-top: var(--space-2xs); }
@media (max-width: 640px) { .counter-row { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.site-footer__upper {
  background: var(--ayu-pale-lavender);
  padding-block: var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
}
.footer-col h6 {
  font-family: var(--font-heading);
  font-size: var(--fs-body-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--ayu-purple);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col a, .footer-col address { color: var(--color-text-secondary); font-size: var(--fs-body-sm); font-style: normal; line-height: var(--lh-loose); transition: color var(--duration-micro) var(--ease-standard); }
.footer-col a:hover { color: var(--ayu-purple); }
.footer-brand img { height: 44px; margin-bottom: var(--space-md); }
.footer-brand p { color: var(--color-text-secondary); font-size: var(--fs-body-sm); max-width: 30ch; line-height: var(--lh-body); }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(63,43,112,0.08);
  color: var(--ayu-purple);
}
.footer-social svg { width: 18px; height: 18px; }
.newsletter-form { display: flex; gap: var(--space-2xs); margin-top: var(--space-sm); max-width: 320px; }
.newsletter-form input {
  flex: 1;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding-inline: var(--space-sm);
  background: #fff;
}
.newsletter-form button {
  flex: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--ayu-purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.newsletter-form button svg { width: 18px; height: 18px; }

.site-footer__lower {
  background: var(--ayu-ink);
  color: rgba(255,255,255,0.7);
  padding-block: var(--space-md);
}
.footer-lower-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--fs-caption);
}
.footer-lower-inner a { color: rgba(255,255,255,0.7); }
.footer-lower-inner a:hover { color: #fff; }
.legal-links { display: flex; gap: var(--space-lg); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-lower-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== sections.css (homepage section-specific layout) ===== */
/* AYU Foundation — Section-specific styling */

/* ============ HERO ============ */
.hero {
  padding-block: var(--space-3xl) var(--space-3xl);
  position: relative;
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: var(--z-content);
}
.hero__watermark {
  position: absolute;
  top: -16%;
  right: -20%;
  width: 68%;
  max-width: 1000px;
  opacity: 0.10;
  z-index: var(--z-base);
  pointer-events: none;
}
.hero__text { max-width: 54ch; }
.hero__eyebrow { margin-bottom: var(--space-md); }
.hero__headline { margin-bottom: var(--space-md); }
.hero__subhead { max-width: 46ch; color: var(--color-text-secondary); margin-bottom: var(--space-lg); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xl); }

/* The visual column: photo, ribbon and accent are designed as one merged composition,
   not "photo in a box with decoration around it" — the ribbon and accent are allowed to
   travel outside the photo's own bounds, and two soft blurred orbs sit behind everything
   to add atmosphere without adding literal decoration. */
.hero__visual {
  position: relative;
  padding: 8% 10% 10% 6%;
  isolation: isolate;
}
.hero__visual::before,
.hero__visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
}
.hero__visual::before {
  width: 62%; height: 62%;
  background: var(--ayu-pale-blue);
  opacity: 0.9;
  top: -6%; right: -8%;
}
.hero__visual::after {
  width: 46%; height: 46%;
  background: var(--ayu-pale-lavender);
  opacity: 0.85;
  bottom: -4%; left: -6%;
}
.hero__photo-ribbon {
  position: absolute;
  top: -12%; left: -14%;
  width: 128%; height: 124%;
  z-index: 1;
  pointer-events: none;
}
.hero__photo {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  clip-path: url(#ayuOrganicClip);
  background: var(--ayu-pale-lavender);
  box-shadow: var(--shadow-hero);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero__photo-accent {
  position: absolute;
  bottom: -9%; left: -11%;
  width: 40%; height: 40%;
  z-index: 3;
  pointer-events: none;
}
.hero__orbit { position: absolute; z-index: var(--z-decoration); }

@media (max-width: 1024px) {
  .hero { padding-block: var(--space-2xl) var(--space-xl); }
  .hero__text { max-width: none; }
  .hero__visual { order: -1; max-width: 460px; margin-inline: auto; padding: 10% 12%; }
  .hero__watermark { width: 95%; right: -35%; top: -8%; }
}
@media (max-width: 640px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .value-cues { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm) var(--space-md); }
  .hero__visual { padding: 9% 11%; }
}

/* ============ MISSION ============ */
/* overflow is intentionally visible (not hidden) here: the section-transition orb below
   is allowed to cross the Hero/Mission boundary — one of the page's few deliberate
   cross-section transition devices. body { overflow-x: hidden } remains the horizontal-
   scroll safety net, so this never risks a page-level scrollbar. */
.mission { position: relative; overflow: visible; }
.mission::before {
  content: "";
  position: absolute;
  left: -6%;
  top: -6%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ayu-pale-blue);
  opacity: 0.65;
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}
.mission__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.mission__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
  /* pulled left of its grid cell so the photo visibly breaks the column edge rather than
     sitting neatly inside it — the "break the grid" composition the section calls for */
  margin-left: clamp(-3rem, -5vw, -1.5rem);
}
.mission__photo img {
  width: 100%; height: 100%; object-fit: cover;
  /* Desktop (aspect-ratio 3/4 vs the photo's native 4/5) crops the sides only, so the
     45% reads; the mobile override below (16/9) crops top/bottom only, so the 15% reads —
     each breakpoint's crop axis only ever looks at the value that applies to it. */
  object-position: 45% 15%;
}
.mission__statement {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  color: var(--ayu-purple);
  letter-spacing: var(--ls-heading);
  margin-block: var(--space-sm) var(--space-md);
}
.mission__ribbon { position: absolute; z-index: var(--z-decoration); pointer-events: none; }

@media (max-width: 1024px) {
  .mission__grid { grid-template-columns: 1fr; }
  .mission__photo { aspect-ratio: 16/9; max-width: 480px; margin-left: 0; }
  .mission::before { width: 60%; left: -10%; }
  /* The ribbon is tuned to bridge the photo and heading in the two-column desktop
     layout; once the grid stacks, its fixed position would land across live text
     instead, so it's hidden rather than repositioned for a single relationship
     that no longer exists in the stacked layout. */
  .mission__ribbon { display: none; }
}

/* ============ SIGNS ============ */
/* Second cross-section transition device: a soft curved edge lets the pale-blue Signs
   background rise into the white Services section above it, instead of a hard horizontal
   seam — used sparingly (this and the Hero/Mission orb are the only two on the page). */
.signs-transition { overflow: visible; }
.signs-transition__curve {
  position: absolute;
  top: -59px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 0;
  pointer-events: none;
}
.signs__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-xl); align-items: center; }
.signs__illustration { display: flex; justify-content: center; align-items: center; }
.signs__illustration svg { width: 100%; max-width: 620px; height: auto; }
@media (max-width: 900px) {
  .signs__grid { grid-template-columns: 1fr; }
  .signs__illustration { order: -1; max-width: 360px; margin-inline: auto; }
}

/* ============ ABA (process line) ============ */
.aba__intro { max-width: 760px; margin-bottom: var(--space-2xl); }
.aba__inset { float: right; width: 140px; margin-left: var(--space-lg); border-radius: var(--radius-md); overflow: hidden; shape-outside: margin-box; }
.aba__inset img { aspect-ratio: 1; object-fit: cover; }

/* ============ EARLY INTERVENTION ============ */
.early__grid { display: grid; grid-template-columns: 1.05fr 1.1fr; gap: var(--space-2xl); align-items: center; }
.early__frame {
  position: relative;
  margin-left: clamp(-2.5rem, -4vw, -1rem);
}
.early__frame::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 120%; height: 120%;
  top: -10%; left: -14%;
  border-radius: 50%;
  background: var(--ayu-cream);
  opacity: 0.8;
  filter: blur(30px);
  pointer-events: none;
}
.early__frame .connection-frame__photo { aspect-ratio: 4/5; position: relative; z-index: 1; }
.early__ribbon {
  position: absolute;
  top: 50%;
  left: 43%;
  width: 90px;
  transform: translateY(-50%);
  z-index: var(--z-decoration);
  pointer-events: none;
  opacity: 0.8;
}
@media (max-width: 1024px) {
  .early__grid { grid-template-columns: 1fr; }
  .early__ribbon { display: none; }
  .early__frame { order: -1; max-width: 420px; margin-inline: auto; }
}

/* ============ HOW SUPPORT WORKS ============ */
.stepper { position: relative; }

/* ============ TRUST ============ */
.trust__grid { display: grid; grid-template-columns: 0.95fr 1.2fr; gap: var(--space-2xl); align-items: center; }
.trust__visual-wrap {
  position: relative;
  isolation: isolate;
}
/* Offset colour panel behind the photo — an asymmetric, layered treatment rather than
   another plain portrait card; the panel peeks out at the bottom-left corner. */
.trust__visual-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: translate(-14px, 16px) rotate(-2deg);
  background: linear-gradient(150deg, var(--ayu-pale-blue), var(--ayu-pale-lavender));
  border-radius: var(--radius-lg);
}
/* Cropped ambient orb bleeding from behind the section boundary */
.trust__visual-wrap::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 70%; height: 70%;
  top: -14%; right: -18%;
  border-radius: 50%;
  background: var(--ayu-coral);
  opacity: 0.06;
  filter: blur(30px);
  pointer-events: none;
}
.trust__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--ayu-pale-blue), var(--ayu-pale-lavender));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(1.5deg);
  box-shadow: var(--shadow-lg);
}
.trust__visual > img:not(.trust__visual-accent) { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; position: relative; z-index: 1; }
.trust__visual img.trust__visual-accent {
  position: absolute;
  bottom: -4%;
  right: -6%;
  width: 42%;
  height: auto;
  z-index: 2;
  opacity: 0.7;
  transform: rotate(-6deg);
}
.trust__contour {
  position: absolute;
  top: -8%;
  left: -10%;
  width: 30%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}
.trust__anchor-dot {
  position: absolute;
  bottom: -6%;
  left: -5%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-orbit-coral);
  box-shadow: 0 6px 16px rgba(242,99,52,0.35);
  z-index: 2;
}
@media (max-width: 1024px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__visual-wrap { order: -1; max-width: 420px; margin-inline: auto; }
  .trust__visual { transform: none; }
  .trust__visual-wrap::before { transform: translate(-8px, 10px) rotate(-1deg); }
}

/* ============ GET INVOLVED ============ */
.get-involved { position: relative; color: #fff; }
.get-involved__ribbon { position: absolute; inset: 0; z-index: var(--z-base); opacity: 0.5; pointer-events: none; }
.get-involved .container { position: relative; z-index: var(--z-content); }
.get-involved__head { max-width: 640px; margin-bottom: var(--space-2xl); }
.get-involved__head h2 { color: #fff; }
.get-involved__head p { color: rgba(255,255,255,0.8); margin-top: var(--space-sm); }

/* ============ COMMITMENT ============ */
.commitment { text-align: center; position: relative; }
.commitment.commitment--roomy { padding-block: var(--space-4xl); }
.commitment .container--narrow { position: relative; z-index: var(--z-content); max-width: 680px; }
.commitment__statement {
  margin-top: var(--space-md);
  font-size: clamp(1.875rem, 1.5rem + 1.9vw, 2.75rem);
  line-height: var(--lh-tight);
}
.commitment__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  max-width: 1400px;
  opacity: 0.14;
  z-index: var(--z-base);
  pointer-events: none;
}

/* ============ FAQ ============ */
.faq__foot { text-align: center; margin-top: var(--space-xl); }

/* ============ FINAL CTA ============ */
.final-cta { text-align: center; position: relative; }
.final-cta__ribbon { position: absolute; bottom: -2px; left: 0; width: 100%; z-index: var(--z-base); pointer-events: none; }
.final-cta .container { position: relative; z-index: var(--z-content); }
.final-cta__ctas { display: flex; justify-content: center; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-lg); }
@media (max-width: 480px) { .final-cta__ctas .btn { width: 100%; } }

/* ============ FOOTER RIBBON ============ */
.footer-ribbon { position: absolute; z-index: var(--z-base); pointer-events: none; opacity: 0.9; }
