/* =========================================
   ABOUT PAGE (ACF) — Separate stylesheet (TIMELINE RESPONSIVE FIXED)
   ========================================= */

/* ===== HERO ===== */

.ah-about-hero{
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  overflow: hidden;

  padding: clamp(60px, 8vw, 140px) 0;
  color: #0b1f18;

  background:
    linear-gradient(
      0deg,
      rgba(255,255,255,var(--ah-about-hero-overlay, .65)),
      rgba(255,255,255,var(--ah-about-hero-overlay, .65))
    ),
    var(--ah-about-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ah-about-hero__inner{
  width: min(1200px, 92%);
  margin: 0 auto;
}

.ah-about-hero__eyebrow{
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ah-about-hero__title{
  margin: 0;
  font-size: clamp(30px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 820px;
}

.ah-about-hero__text{
  margin: 14px 0 0;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(0,0,0,.72);
}

.ah-about-hero__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #0a6b55;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.ah-about-hero__btn:hover{ filter: brightness(1.05); }


/* ===== SPLIT SECTION ===== */

.ah-about-split{
  padding: 60px 0;
}

.ah-about-split__inner{
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.ah-about-split__media{
  flex: 0 0 420px;
  max-width: 420px;
}

.ah-about-split__img{
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

.ah-about-split__content{
  flex: 1 1 auto;
  min-width: 0;
}

.ah-about-split__top{
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(0,0,0,.62);
  max-width: 650px;
}

.ah-about-split__title{
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.ah-about-split__body p{
  margin: 0 0 14px;
  color: rgba(0,0,0,.72);
  line-height: 1.9;
  font-size: 13px;
  max-width: 720px;
}

.ah-about-split__items{
  margin-top: 16px;
  border-top: 1px solid rgba(0,0,0,.10);
}

.ah-about-split__item{
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.ah-about-split__item h3{
  margin: 0 0 6px;
  font-size: 18px;
}

.ah-about-split__item p{
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(0,0,0,.65);
  max-width: 700px;
}


/* ===== TIMELINE SECTION ===== */

.ah-about-timeline{
  padding: 70px 0 90px;
}

.ah-about-timeline__inner{
  width: min(1200px, 92%);
  margin: 0 auto;
}

.ah-about-timeline__title{
  margin: 0 0 28px;
  font-size: 30px;
}

.ah-about-timeline__grid{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 10px 0;
}

/* center vertical line */
.ah-about-timeline__line{
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0,0,0,.14);
  transform: translateX(-50%);
}

/* Desktop: center gutter */
.ah-about-timeline__item{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
}

.ah-about-timeline__marker{
  grid-column: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

/* dot */
.ah-about-timeline__marker::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.22);
  z-index: 1;
}

/* number */
.ah-about-timeline__num{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,.60);
  font-variant-numeric: tabular-nums;

  background: rgba(255,255,255,.65);
  padding: 3px 7px;
  border-radius: 999px;
}

/* cards */
.ah-about-timeline__card{
  max-width: 430px;
}

.ah-about-timeline__card h3{
  margin: 0 0 6px;
  font-size: 24px;
}

.ah-about-timeline__card p{
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: rgba(0,0,0,.62);
}

/* left/right placement (DESKTOP) */
.ah-about-timeline__item--left .ah-about-timeline__card{
  grid-column: 1;
  text-align: right;
  margin-left: auto;
}

.ah-about-timeline__item--right .ah-about-timeline__card{
  grid-column: 3;
  text-align: left;
}

/* desktop number shift */
.ah-about-timeline__item--left .ah-about-timeline__num{
  transform: translate(calc(-50% + 26px), -50%);
}
.ah-about-timeline__item--right .ah-about-timeline__num{
  transform: translate(calc(-50% - 26px), -50%);
}


/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablets */
@media (max-width: 1024px){
  .ah-about-split__inner{ gap: 26px; }
  .ah-about-split__media{ flex: 0 0 360px; max-width: 360px; }
}

/* ✅ FIXED: Mobile/Tablet timeline stack */
@media (max-width: 980px){

  /* HERO */
  .ah-about-hero{
    padding: 70px 0;
  }
  .ah-about-hero__title{
    max-width: 100%;
    line-height: 1.1;
  }
  .ah-about-hero__text{
    max-width: 100%;
  }

  /* split stacks */
  .ah-about-split{
    padding: 48px 0;
  }
  .ah-about-split__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .ah-about-split__media{
    max-width: 100%;
    flex: 0 0 auto;
  }
  .ah-about-split__title{
    font-size: 28px;
  }

  /* timeline becomes left line */
  .ah-about-timeline{
    padding: 55px 0 70px;
  }

  .ah-about-timeline__line{
    left: 22px;
    transform: none;
  }

  .ah-about-timeline__grid{
    gap: 26px;
    padding: 0;
  }

  .ah-about-timeline__item{
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    align-items: start;
  }

  .ah-about-timeline__marker{
    grid-column: 1;
    justify-content: flex-start;
    min-height: 28px;
  }

  /* dot align to left line */
  .ah-about-timeline__marker::after{
    left: 22px;
    top: 14px;
    transform: translate(-50%, -50%);
  }

  /* number align to left line (disable desktop shift) */
  .ah-about-timeline__num{
    left: 22px;
    top: 14px;
    transform: translate(-50%, -50%);
  }
  .ah-about-timeline__item--left .ah-about-timeline__num,
  .ah-about-timeline__item--right .ah-about-timeline__num{
    transform: translate(-50%, -50%);
  }

  /* ✅ MOST IMPORTANT FIX: remove left/right grid-column rules */
  .ah-about-timeline__item--left .ah-about-timeline__card,
  .ah-about-timeline__item--right .ah-about-timeline__card{
    grid-column: 2;
    max-width: none;
    text-align: left !important;
    margin: 0 !important;
    padding-left: 6px;
  }

  .ah-about-timeline__card h3{
    font-size: 20px;
  }
}

/* Small mobiles */
@media (max-width: 640px){
  .ah-about-hero__eyebrow{ font-size: 13px; }
  .ah-about-hero__title{ font-size: 34px; }
  .ah-about-hero__text{ font-size: 13px; }

  .ah-about-split__title{ font-size: 24px; }
  .ah-about-split{ padding: 40px 0; }

  .ah-about-timeline__title{ font-size: 22px; }
  .ah-about-timeline__grid{ gap: 22px; }
}

/* Extra small */
@media (max-width: 420px){
  .ah-about-hero{ padding: 60px 0; }
  .ah-about-hero__title{ font-size: 30px; }
  .ah-about-hero__btn{ width: 100%; max-width: 260px; }
}
