/* =====================================
   ABOUT PAGE — clean + intentional
   ===================================== */

/* ---- Layout tokens (uses your existing CSS vars) ---- */
:root{
  /* rail for readable text blocks (hero + benefits + how-it-works) */
  --about-rail: 800px;   /* fixed width, not ch */
  /* max width for hero grid */
  --about-hero-max: 1100px;
}

/* ---------- HERO ---------- */
.about-hero{
  background: var(--color-bg);
  color: var(--color-text);
  padding: var(--section-space) 0;
}

/* if not using the hero background layer, keep it off */
.about-hero .hero__media{ display:none; }

.about-hero .hero__inner{
  max-width: var(--about-hero-max);
  margin: 0 auto;
  padding: 0 1.25rem;

  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Title aligned to the same rail as paragraphs */
.about-hero .section__title{
  max-width: var(--about-rail);
  margin: 0 auto 1rem;
  color: var(--color-primary);
  line-height: 1.15;
  text-align: left;
}

/* Hero copy rail + bigger like homepage hero */
.about-hero .timeline-story{
  max-width: var(--about-rail);
  margin: 0 auto;
  font-size: clamp(1.05rem, 1.1vw, 1.15rem);
  line-height: 1.8;
}

.about-hero .timeline-story p{
  margin: 0 0 1.25rem;
  font-size: 1rem;
}
.about-hero .timeline-story p:last-child{
  margin-bottom: 0;
}

.about-hero .hero__photo{
  justify-self: start;
}
.about-hero .hero__photo img{
  width: min(425px, 100%);
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Desktop hero: text left, image right */
@media (min-width: 900px){
  .about-hero .hero__inner{
    grid-template-columns: 1.35fr 0.65fr;
    align-items: start;
    gap: 2rem;
  }
  .about-hero .hero__photo{
    justify-self: end;
    align-self: start;
  }
}

/* ---------- SECTION WRAPPERS ---------- */
.about-content{
  padding: var(--section-space) 1.25rem;
  background: var(--color-bg);
}

.about-panel{
  padding: var(--section-space) 1.25rem;
  background: var(--color-panel);
}

/* Keep headings aligned with the hero rail (unless opt into centering) */
.about-content .section__title,
.about-panel .section__title{
  max-width: var(--about-rail);
  margin: 0 auto 1.5rem;
  text-align: left;
  color: var(--color-primary);
  line-height: 1.2;
}

/* Optional utility for the one centred heading */
.section__title--center{
  text-align: center;
}

/* Body text blocks use the rail */
.about-panel .timeline-story,
.about-content .timeline-story{
  max-width: var(--about-rail);
  margin: 0 auto;
  line-height: 1.75;
}

.about-panel .timeline-story p,
.about-content .timeline-story p{
  margin: 0 0 1.25rem;
}
.about-panel .timeline-story p:last-child,
.about-content .timeline-story p:last-child{
  margin-bottom: 0;
}

/* ---------- BENEFITS LIST ---------- */
.about-benefits{
  max-width: var(--about-rail);
  margin: 0 auto;
}

.about-benefits ul{
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.about-benefits li{
  line-height: 1.6;
}

/* ---------- TIMELINE (centred feels natural) ---------- */
.timeline-list{
  position: relative;
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0;
  max-width: 920px; /* card layout looks best wider than 75ch */
}

/* subtle vertical line */
.timeline-list::before{
  content: "";
  position: absolute;
  top: 0;
  left: 42px;
  width: 3px;
  height: calc(100% + 40px);
  background: var(--color-primary);
  opacity: 0.12;
  border-radius: 4px;
}

.timeline-list li{
  position: relative;
  background: var(--color-white);
  margin: 0 0 1.75rem 0;
  padding: 1.5rem 1.5rem 1.5rem 100px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.75;
  transition: transform 0.2s ease;
}

.timeline-list li:hover{ transform: translateY(-2px); }

/* icon */
.timeline-list i{
  position: absolute;
  top: 1.35rem;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.timeline-list strong{
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 .25rem;
}

.timeline-list p{
  margin: 0.35rem 0 0;
  color: var(--color-text);
  font-size: 1rem;
}

/* reveal (if using JS to add .visible) */
.timeline-list li{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-list li.visible{
  opacity: 1;
  transform: translateY(0);
}

/* mobile timeline tweaks */
@media (max-width: 768px){
  .timeline-list::before{ left: 28px; }
  .timeline-list li{ padding: 1.25rem 1rem 1.25rem 80px; }
  .timeline-list i{ left: 12px; width: 38px; height: 38px; top: 1.1rem; }
}

/* ---------- CTA BANNER ---------- */
.cta-banner{
  text-align: center;
  padding: var(--section-space) 1.25rem;
  background: var(--color-white);
}
.cta-banner h2{
  color: var(--color-primary);
  margin: 0 0 1rem;
  line-height: 1.2;
}
.cta-banner p{
  max-width: 70ch;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.75;
}
.cta-buttons{
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.about-hero .section__title,
.about-hero .timeline-story,
.about-panel .section__title,
.about-panel .timeline-story,
.about-panel .about-benefits,
.about-content .section__title{
  max-width: var(--about-rail);
  margin-left: auto;
  margin-right: auto;
}

.timeline-list{
  max-width: 920px;
  margin: 2.5rem auto 0;
}