/* About page styles (scoped with .about-*)
   Uses site variables from style.css
*/

:root {}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Force single-color background on About page (overrides global gradient) */
body { background: var(--color-bg) !important; background-image: none !important; }

/* Hero */
.about-hero {
  background: transparent;
  text-align: center;
}
.about-hero__inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.about-hero .kicker { align-self: center; padding: .25rem .5rem; border-radius: 999px; font-size: .8125rem; background: rgba(1,147,202,0.08); color: var(--color-primary-600); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.about-hero__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-600) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-hero__lead { max-width: 70ch; color: rgba(11,33,48,.82); margin-bottom: .25rem; }

.about-hero__bullets { margin: .5rem 0 0; /* increased for breathing room */ padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .5rem 1rem; width: 100%; max-width: 820px; }
.about-hero__bullets li { display: flex; align-items: center; justify-content: center; gap: .5rem; color: rgba(11,33,48,.85); }
.about-hero__bullets li::before { content: '\2713'; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(1,147,202,.1); color: var(--color-primary-600); font-weight: 700; font-size: .9rem; }

/* Stats (reuse .stat from site; add spacing) */
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 1.25rem; width: 100%; max-width: 860px; }
/* Center stats content for consistent alignment */
.about-stats .stat { text-align: center; }
/* Make stats panels match rounded look */
.about-stats .stat { border-radius: var(--radius-lg); }

/* Mission block */
.about-block { display: grid; gap: 1rem; max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.about-list { margin: .5rem 0 0; padding-left: 1rem; }
.about-list li { margin: .25rem 0; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.25rem; }
/* Add rhythm above major grids */
.values-grid { margin-top: 0; }
.value { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-1); }
.value__icon { font-size: 1.25rem; color: var(--color-primary-600); display: inline-flex; align-items: center; justify-content: center; }
.value__title { margin-top: .25rem; font-size: 1.0625rem; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 1rem; padding-left: 0; margin: 0; }
/* Use grid per item to vertically center the dot alongside the content */
.timeline__item { position: relative; display: grid; grid-template-columns: 18px 1fr; align-items: stretch; column-gap: 1rem; padding-left: 0; }
.timeline__dot { position: relative; left: auto; top: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--color-primary); box-shadow: var(--shadow-1); justify-self: center; align-self: center; }
/* Timeline rail (desktop and up) */
.timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: rgba(1,147,202,.18); }
.timeline__content { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: .75rem .9rem; box-shadow: var(--shadow-1); }

/* Small-screen timeline alignment stays centered */
@media (max-width: 480px) {
  .timeline { padding-left: 0; }
  .timeline::before { left: 9px; }
  .timeline__item { grid-template-columns: 18px 1fr; /* keep centered on mobile */ column-gap: .75rem; padding-left: 0; }
  .timeline__dot { left: auto; }
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
/* Add rhythm above major grids */
.team-grid { margin-top: 0; }
.member { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.member__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-600) 100%); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); }
.member__name { margin: 0; }
.member__role { margin: 0 0 .25rem; color: var(--color-muted); font-weight: 600; }
.member__links { display: inline-flex; align-items: center; gap: .5rem; }
.member .dot { opacity: .4; }

/* FAQ */
/* Use CSS columns so expanding one item doesn’t affect the adjacent column’s heights */
.faq { column-gap: .75rem; }
@media (min-width: 720px) {
  .faq { column-count: 2; }
}
@media (max-width: 719px) {
  .faq { column-count: 1; }
}
.faq__item { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 .75rem 0; padding: 0; display: block; }
/* Keep compact card padding within FAQ only */
.faq .card { padding: .5rem; width: 100%; display: block; }
.faq__question { width: 100%; background: transparent; border: none; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: .7rem .9rem; font-weight: 700; color: var(--color-text); cursor: pointer; font-size: .98rem; }
/* Show focus ring only for keyboard navigation */
.faq__question:focus { outline: none; box-shadow: none; }
.faq__question:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(1,147,202,0.18); border-radius: 8px; }
.faq__chev { transition: transform 200ms ease; color: var(--color-muted); }
.faq__question[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
/* Animated answer: collapsed by default; opens when parent has .is-open */
.faq__answer { overflow: hidden; max-height: 0; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: max-height 260ms cubic-bezier(.2,1,.3,1), opacity 220ms ease, transform 220ms ease, margin-top 200ms ease, padding-top 200ms ease, padding-bottom 200ms ease; padding: 0 .9rem 0; color: rgba(11,33,48,.85); font-size: .95rem; }
.faq__answer p { margin: 0; }
.faq__item.is-open .faq__answer { max-height: 800px; opacity: 1; visibility: visible; transform: translateY(0); padding: .25rem .9rem .75rem; }
/* add a gap between the card header and content when opened */
.faq__item.is-open .faq__question + .faq__answer { margin-top: .4rem; }

/* CTA */
.cta { display: grid; gap: .75rem; align-items: center; grid-template-columns: 1fr; justify-items: center; }
.cta.card { padding: 1.25rem; }
.cta__actions { display: inline-flex; gap: .75rem; flex-wrap: wrap; }
/* CTA spacing */
.cta__text h2 { margin-bottom: .25rem; }
.cta__text { text-align: center; }
@media (min-width: 700px) {
  .cta { grid-template-columns: 1fr auto; }
  .cta__text { text-align: left; }
}

/* Scoped About page section paddings for equal top/bottom spacing */
.about-page .section { padding: 2.5rem 0; }
@media (min-width: 900px) {
  .about-page .section { padding: 4rem 0; }
}
/* CTA section uses same rhythm */
.about-page .section.section--tight { padding: 2.5rem 0; }
@media (min-width: 900px) {
  .about-page .section.section--tight { padding: 3.5rem 0; }
}

/* Subheaders: space before content; a bit larger on desktop for rhythm */
.about-page .section h2 { margin-bottom: .9rem; }
@media (min-width: 900px) {
  .about-page .section h2 { margin-bottom: 1.25rem; }
}

/* Remove extra per-grid top margins; rely on h2 spacing above */
.values-grid { margin-top: 0; }
.team-grid { margin-top: 0; }
/* Timeline block spacing controlled by section padding + h2 margin */
.timeline { padding-left: 0; margin: 0; }

/* Mobile timeline keeps centered alignment without extra padding */
@media (max-width: 480px) {
  .timeline { padding-left: 0; }
}
