/*
 * Applied AI Innovation Initiative — Custom CSS
 * Upload via: Appearance > Additional CSS  OR  your theme's Custom CSS field
 *
 * These rules cover ONLY what Athena / Bootstrap 4 cannot provide:
 *   1.  Hero image overlay + text positioning
 *   2.  Hero stat icon circle (SVG + border)
 *   3.  Pillar numbered grid (2-col, number prefix)
 *   4.  Process list counter (ordered steps with number accent)
 *   5.  Leader card portrait placeholder (initials square)
 *   6.  FAQ details/summary accordion
 *   7.  Audience card list bullet (gold square)
 *   8.  Outcome border-top accent
 *   9.  Eyebrow label (gold underline bar)
 *   10. Funding stat underline animation
 *   11. Scroll-reveal states ([data-reveal] / .ai-revealed)
 *   12. Contact-band shimmer
 *   13. WCAG: prefers-reduced-motion override
 *
 * Every other layout and colour decision defers to Athena classes.
 * All colour values use UCF brand tokens:
 *   Gold:  #FFC904   Black: #000000   Gray-700: #444444
 *   Text on light backgrounds uses #000 not #FFC904 (gold fails WCAG AA on white).
 */

/* ── 1. HERO ─────────────────────────────────────────────────── */
/* The media-background-container handles the full-bleed image.
   These rules position the text overlay on top of it. */
.ai-hero .media-background-container {
  background-color: #111;
}
.ai-hero .ai-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: 0;
  /* Dark gradient so text is readable over the photo */
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.25) 0%,
    rgba(0,0,0,.55) 55%,
    rgba(0,0,0,.82) 100%
  );
}
.ai-hero__eyebrow {
  font-size: clamp(.95rem, 1.4vw, 1.2rem);
  letter-spacing: .14em;
  margin-bottom: .85rem;
  display: block;
  opacity: 0; /* revealed by anime.js on load */
}
.ai-hero__h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5.25rem);
  max-width: 18ch;
  margin-bottom: 1.25rem;
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
  opacity: 0; /* revealed by anime.js */
}
.ai-hero__lede {
  max-width: 660px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
  opacity: 0; /* revealed by anime.js */
}

/* ── 2. HERO STAT BAR ────────────────────────────────────────── */
/* Athena's bg-inverse / bg-secondary cols handle colour.
   Only the icon circle and SVG sizing are custom. */
.ai-hero-stat {
  opacity: 0; /* revealed by anime.js */
}
.ai-hero-stat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255,201,4,.65);
  border-radius: 50%;
  color: #FFC904;
  margin-bottom: .75rem;
  flex-shrink: 0;
}
.ai-hero-stat__icon svg {
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 3. EYEBROW LABEL ────────────────────────────────────────── */
/* Black text (21:1 on white, AAA) with gold bottom border accent.
   Gold is used as border/accent only, never as text on light bg. */
.ai-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .16em;
  color: #000;               /* 21:1 on white — AAA */
  border-bottom: 3px solid #FFC904;
  padding-bottom: .4rem;
  margin-bottom: 0;
}

/* ── 4. PILLAR GRID ──────────────────────────────────────────── */
/* 2-col numbered grid. No Athena equivalent. */
.ai-pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid #e2e2e2;
  border-left: 3px solid #FFC904; /* gold accent replaces gold number */
  padding-left: 1rem;
}
.ai-pillar__num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #000;               /* 21:1 on white — AAA; gold fails (1.54:1) */
  min-width: 2.2rem;
  letter-spacing: -.01em;
}

/* ── 5. PROCESS LIST ─────────────────────────────────────────── */
/* Numbered ordered list steps. CSS counter provides leading-zero numbers.
   Number colour: black (21:1 AAA). Gold top-border replaces gold number. */
.ai-process-list {
  counter-reset: ai-step;
  margin: 0;
  padding: 0;
}
.ai-process-list__item {
  counter-increment: ai-step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 3px solid #FFC904; /* gold top-border accent */
}
.ai-process-list__item::before {
  content: counter(ai-step, decimal-leading-zero);
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;               /* 21:1 on white — AAA */
  min-width: 2.4rem;
  line-height: 1.2;
}
.ai-process-list__body h3 { margin-bottom: .35rem; }

/* ── 6. LEADER CARD PORTRAIT ─────────────────────────────────── */
/* Square initials placeholder. Athena [card] handles the card shell. */
.ai-leader-card { border-top: 4px solid #FFC904; }
.ai-leader-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #efefef;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 4px solid #FFC904;
}
.ai-leader-portrait span {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #000;
  letter-spacing: .02em;
}
.ai-leader-link {
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #FFC904;
  padding-bottom: 2px;
  display: inline-block;
}
.ai-leader-link:hover { color: #000; border-bottom-color: #000; }

/* ── 7. AUDIENCE CARD LIST BULLETS ──────────────────────────── */
/* Athena [card] handles the card shell; only the bullet style is custom. */
.ai-audience-card { border-top: 4px solid #FFC904; }
.ai-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ai-card-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: .97rem;
  line-height: 1.55;
  margin-bottom: .6rem;
  color: #444444;
}
.ai-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 7px;
  height: 7px;
  background: #FFC904;
}

/* ── 8. OUTCOME BLOCKS ───────────────────────────────────────── */
.ai-outcome {
  padding: 1.5rem;
  background: #fff;
  border-top: 4px solid #FFC904;
  box-shadow: 0 1px 0 #e2e2e2, 0 16px 36px -20px rgba(0,0,0,.2);
}

/* ── 9. PORTRAIT IN QUOTE SECTION ───────────────────────────── */
.ai-portrait {
  border-bottom: 4px solid #FFC904;
  max-width: 160px;
  margin: 0 auto;
}

/* ── 10. FUNDING STAT ANIMATED UNDERLINE ────────────────────── */
.ai-funding-stat {
  display: inline-block;
  position: relative;
}
.ai-funding-stat::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: #FFC904;
  transition: width .8s .4s cubic-bezier(.22,1,.36,1);
}
.ai-funding-stat.ai-revealed::after { width: 100%; }

/* ── 11. FAQ ACCORDION ────────────────────────────────────────── */
.ai-faq-list { display: grid; gap: .75rem; }
.ai-faq-item {
  border: 1px solid #e2e2e2;
  background: #fff;
  transition: border-color .15s ease;
}
.ai-faq-item[open] { border-color: #000; }
.ai-faq-summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #000;
  letter-spacing: .01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
}
.ai-faq-summary::-webkit-details-marker { display: none; }
.ai-faq-summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: #FFC904;
  line-height: 1;
  flex-shrink: 0;
}
.ai-faq-item[open] .ai-faq-summary::after { content: '\2212'; }
.ai-faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 1.25rem;
  transition:
    max-height .4s cubic-bezier(.22,1,.36,1),
    opacity .3s ease,
    padding .3s ease;
  /* display:block is required for max-height animation to work */
  display: block;
}
.ai-faq-item[open] .ai-faq-answer {
  max-height: 600px;
  opacity: 1;
  padding: 0 1.25rem 1.25rem;
}
.ai-faq-answer p { font-size: .97rem; line-height: 1.65; color: #444444; margin-bottom: .6rem; }
.ai-faq-answer p:last-child { margin-bottom: 0; }
.ai-faq-answer ul { padding-left: 1.2rem; }
.ai-faq-answer li { font-size: .97rem; line-height: 1.6; color: #444444; margin-bottom: .5rem; }

/* ── 12. CONTACT BAND SHIMMER ────────────────────────────────── */
/* Subtle animated gold highlight on the dark CTA section */
.ai-contact-band { position: relative; overflow: hidden; }
.ai-contact-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 35%,
    rgba(255,201,4,.06) 45%,
    rgba(255,201,4,.11) 50%,
    rgba(255,201,4,.06) 55%,
    transparent 65%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: ai-shimmer 5s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.ai-contact-band > * { position: relative; z-index: 1; }
@keyframes ai-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 13. SCROLL REVEAL STATES ────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .65s cubic-bezier(.22,1,.36,1),
    transform .65s cubic-bezier(.22,1,.36,1);
}
[data-reveal="left"]  { transform: translateX(-24px) translateY(0); }
[data-reveal="right"] { transform: translateX( 24px) translateY(0); }
[data-reveal].ai-revealed {
  opacity: 1;
  transform: none;
}

/* ── 14. SCROLLSPY ACTIVE STATE ──────────────────────────────── */
/* Highlights the matching section-menu link as the user scrolls */
.ai-nav-active {
  color: #000 !important;
  text-decoration: underline !important;
  text-decoration-color: #FFC904 !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 5px !important;
}

/* ── 15. PREFERS-REDUCED-MOTION ──────────────────────────────── */
/* Remove ALL transitions and animations for users who prefer it.
   This also makes ai-hero elements visible since anime.js won't fire. */
@media (prefers-reduced-motion: reduce) {
  .ai-hero__eyebrow,
  .ai-hero__h1,
  .ai-hero__lede,
  .ai-hero-stat,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .ai-contact-band::before { animation: none !important; }
  .ai-funding-stat::after  { width: 100% !important; transition: none !important; }
  .ai-faq-answer {
    max-height: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .ai-pillar { border-left: none; padding-left: 0; border-top: 3px solid #FFC904; }
  .ai-process-list__item { grid-template-columns: 1fr; }
  .ai-process-list__item::before { margin-bottom: -.5rem; }
  .ai-hero__lede { margin-bottom: 1.5rem; }
  .ai-portrait { max-width: 120px; }
}
