/* About template (about.php). Tokens, headings and buttons come from h26-shared.css */

#about-scope {
  --ab-green-text: var(--h26-green);
  --ab-header: 90px; /* fixed site header, so anchored headings stay in view */
  --ab-inline: max(var(--h26-gutter), calc((100% - 1200px) / 2)); /* full-bleed sections, 1200px content */
}
/* The theme uppercases headings and buttons in its own font */
#about-scope h1,
#about-scope h2,
#about-scope h3 { letter-spacing: normal; }
#about-scope ul,
#about-scope ol { margin: 0; padding: 0; list-style: none; }
#about-scope .ab-section { margin: 0; padding: 48px var(--ab-inline); scroll-margin-top: var(--ab-header); }
#about-scope .ab-title { margin-bottom: 24px; font-size: clamp(28px, 3.4vw, 42px); }
#about-scope .ab-link { display: inline-flex; gap: 6px; font-size: 16px; font-weight: 700; color: var(--ab-green-text); }
#about-scope .ab-link:hover { text-decoration: underline; }

/* Intro: photo on the right, faded into the black text column */
#about-scope .ab-intro {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 42vw, 560px);
  overflow: hidden;
  background: var(--h26-bg);
}
#about-scope .ab-intro__media { position: absolute; inset: 0 0 0 max(38%, calc(100% - 860px)); }
#about-scope .ab-intro__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--h26-bg) 0%, rgba(10, 13, 11, 0.6) 22%, rgba(10, 13, 11, 0) 50%);
}
#about-scope .ab-intro__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* face and laptop */
}
#about-scope .ab-intro__body {
  position: relative;
  z-index: 1;
  box-sizing: content-box !important;
  max-width: 560px;
  padding: 48px var(--h26-gutter) 48px var(--ab-inline);
}
#about-scope .ab-intro__title {
  margin: 0 0 20px;
  font-family: 'Anton', sans-serif;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--h26-white);
}
#about-scope .ab-intro__title span { display: block; color: var(--h26-green-text); }
#about-scope .ab-intro__lead { margin: 0 0 16px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--h26-white); }
#about-scope .ab-intro__text { margin: 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: rgba(255, 255, 255, 0.8); }

/* What We Do */
#about-scope .ab-services { --h26-accent: var(--h26-green); background: var(--h26-light); color: var(--h26-ink); }
#about-scope .ab-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
#about-scope .ab-panel {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: var(--h26-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
#about-scope .ab-panel__icon { flex: none; width: 40px; height: 40px; color: var(--ab-green-text); }
#about-scope .ab-panel__title,
#about-scope .ab-step__title {
  margin: 4px 0 8px;
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  color: inherit;
}
#about-scope .ab-panel__text { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: var(--h26-muted); }

/* Our Scouting Approach */
#about-scope .ab-approach { background: var(--h26-bg); color: var(--h26-white); }
#about-scope .ab-approach__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#about-scope .ab-step { display: flex; gap: 18px; padding: 4px 28px; }
#about-scope .ab-step:first-child { padding-left: 0; }
#about-scope .ab-step + .ab-step { border-left: 1px solid rgba(255, 255, 255, 0.18); }
#about-scope .ab-step__num {
  font-family: 'Anton', sans-serif;
  font-size: clamp(44px, 4.4vw, 60px);
  line-height: 0.9;
  color: var(--h26-green-text);
}
#about-scope .ab-step__text { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }

/* Where We Scout */
#about-scope .ab-scout { --h26-accent: var(--h26-green); background: var(--h26-light); color: var(--h26-ink); }
#about-scope .ab-scout .ab-title { margin-bottom: 8px; }
#about-scope .ab-sub { margin: 0 0 24px; font-size: 16px; color: var(--h26-muted); }
/* 5 + 4 on desktop, rows centered */
#about-scope .ab-logos { --ab-cols: 5; --ab-gap: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--ab-gap); }
#about-scope .ab-logo {
  display: flex;
  flex: 0 0 calc((100% - (var(--ab-cols) - 1) * var(--ab-gap)) / var(--ab-cols));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 132px;
  padding: 16px 12px;
  border-radius: 8px;
  background: var(--h26-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  text-align: center;
}
/* --ab-logo-w is set per logo (inc/about-data.php) so every logo covers about the same area */
#about-scope .ab-logo__mark { display: flex; align-items: center; justify-content: center; width: 100%; height: 72px; }
#about-scope .ab-logo__img { width: var(--ab-logo-w); max-width: 100%; height: auto; }
#about-scope .ab-logo__name { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--h26-ink); }
#about-scope .ab-scout__cta { margin: 28px 0 0; text-align: center; }
#about-scope .ab-btn-outline { min-width: 260px; border: 2px solid var(--ab-green-text); background: var(--h26-white); color: var(--ab-green-text); }
#about-scope .ab-btn-outline:hover,
#about-scope .ab-btn-outline:focus-visible { background: var(--ab-green-text); color: var(--h26-white); }

/* Contact */
#about-scope .ab-contact {
  --h26-accent: var(--h26-green);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px 48px;
  background: var(--h26-white);
  color: var(--h26-ink);
}
#about-scope .ab-contact__lead { margin: 0 0 12px; font-size: 16px; color: var(--h26-muted); }
#about-scope .ab-contact__name { margin: 0 0 2px; font-size: 18px; font-weight: 700; }
#about-scope .ab-contact__email { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; color: var(--ab-green-text); overflow-wrap: anywhere; }
#about-scope .ab-contact__email:hover { text-decoration: underline; }
#about-scope .ab-contact__cta { margin: 24px 0 0; }
#about-scope .ab-contact__cta .h26-btn { min-width: 200px; min-height: 48px; }
#about-scope .ab-contact__form:empty { display: none; }

@media (max-width: 1024px) {
  #about-scope .ab-logos { --ab-cols: 4; }
  #about-scope .ab-services__grid { grid-template-columns: 1fr; }
  #about-scope .ab-approach__grid { grid-template-columns: 1fr; gap: 28px; }
  #about-scope .ab-step,
  #about-scope .ab-step:first-child { padding: 0; }
  #about-scope .ab-step + .ab-step { padding-top: 28px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  #about-scope .ab-contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #about-scope { --ab-header: 70px; }
  #about-scope .ab-section { padding: 36px var(--ab-inline); }
  /* Photo above the intro */
  #about-scope .ab-intro { display: block; min-height: 0; }
  #about-scope .ab-intro__media { position: relative; inset: auto; aspect-ratio: 4 / 3.4; }
  #about-scope .ab-intro__media::after { background: linear-gradient(180deg, rgba(10, 13, 11, 0) 60%, var(--h26-bg) 100%); }
  #about-scope .ab-intro__img { object-position: 55% 38%; }
  #about-scope .ab-intro__body { margin-top: -24px; padding: 0 var(--h26-gutter) 36px; }
  #about-scope .ab-panel { padding: 18px; }
  #about-scope .ab-logos { --ab-cols: 3; --ab-gap: 8px; }
  #about-scope .ab-logo { min-height: 100px; padding: 12px 6px; }
  #about-scope .ab-logo__mark { height: 50px; }
  #about-scope .ab-logo__img { width: calc(var(--ab-logo-w) * 0.7); }
  #about-scope .ab-logo__name { font-size: 12px; }
  #about-scope .ab-btn-outline,
  #about-scope .ab-contact__cta .h26-btn { width: 100%; min-width: 0; }
}
