/* =============================================================
   SGA Advance Partner Landing Pages
   Scoped stylesheet — applies only inside .ap wrapper so it
   never overrides the theme's global H1/H2/H3 styles.

   Font: franklin-gothic-urw (self-hosted / brand webfont)
   Palette (official SGA only):
     --ap-blue        #005289  primary blue
     --ap-teal        #00948f  primary teal
     --ap-blue-dk     #003762  dark blue
     --ap-teal-dk     #006763  dark teal
     --ap-green       #b4d88b  green highlight
     --ap-yellow      #ffde6c  yellow highlight
     --ap-offwhite    #f7f7f7  off-white background
     white / near-black text
   ============================================================= */

/* ---- Optional self-hosted font face -------------------------
   If franklin-gothic-urw is NOT already loaded site-wide by the
   theme (Adobe Fonts kit or existing @font-face), drop the font
   files into /assets/fonts/advance-partner/ and uncomment.
--------------------------------------------------------------
@font-face {
  font-family: "franklin-gothic-urw";
  src: url("assets/fonts/advance-partner/franklin-gothic-urw-book.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "franklin-gothic-urw";
  src: url("assets/fonts/advance-partner/franklin-gothic-urw-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "franklin-gothic-urw";
  src: url("assets/fonts/advance-partner/franklin-gothic-urw-demi.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "franklin-gothic-urw";
  src: url("assets/fonts/advance-partner/franklin-gothic-urw-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
------------------------------------------------------------ */

.ap {
  --ap-blue: #005289;
  --ap-teal: #00948f;
  --ap-blue-dk: #003762;
  --ap-teal-dk: #006763;
  --ap-green: #b4d88b;
  --ap-yellow: #ffde6c;
  --ap-offwhite: #f7f7f7;
  --ap-ink: #1a2230;
  --ap-ink-soft: #4a5568;

  --ap-font: "franklin-gothic-urw", "Libre Franklin", "Franklin Gothic Medium",
             "Arial Narrow", Arial, sans-serif;

  --ap-maxw: 1200px;
  --ap-gutter: clamp(1.25rem, 4vw, 3rem);

  font-family: var(--ap-font);
  color: var(--ap-ink);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Reset a few things inside the wrapper without touching globals */
.ap *,
.ap *::before,
.ap *::after { box-sizing: border-box; }

.ap p { margin: 0 0 1em; }
.ap img { max-width: 100%; display: block; }
/* Only plain text links inherit color; buttons keep their own color. */
.ap a:not([class]) { color: inherit; }

/* ---- Layout helpers ---------------------------------------- */
.ap__wrap {
  width: 100%;
  max-width: var(--ap-maxw);
  margin: 0 auto;
  padding-left: var(--ap-gutter);
  padding-right: var(--ap-gutter);
}
.ap__section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

/* ---- Type scale (scoped, not theme H1/H2/H3) --------------- */
.ap__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  color: var(--ap-teal-dk);
}
.ap__eyebrow--onDark { color: var(--ap-yellow); }
.ap__eyebrow--dot::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.ap__h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.ap__h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}
.ap__h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}
.ap__lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: var(--ap-ink-soft);
  max-width: 62ch;
}
.ap__section--dark .ap__lead { color: rgba(255,255,255,0.82); }

/* ---- Buttons ----------------------------------------------- */
.ap__btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.ap__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ap-font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.9rem;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
/* Primary on dark: yellow fill */
.ap__btn--primary {
  background: var(--ap-yellow);
  color: var(--ap-blue-dk);
  border-color: var(--ap-yellow);
}
.ap__btn--primary:hover { background: #ffd23f; border-color: #ffd23f; }
/* Secondary on dark: outline */
.ap__btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.ap__btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
/* Primary on light: blue fill */
.ap__btn--blue {
  background: var(--ap-blue);
  color: #fff;
  border-color: var(--ap-blue);
}
.ap__btn--blue:hover { background: var(--ap-blue-dk); border-color: var(--ap-blue-dk); }
/* Secondary on light: outline blue */
.ap__btn--outline {
  background: transparent;
  color: var(--ap-blue);
  border-color: var(--ap-blue);
}
.ap__btn--outline:hover { background: var(--ap-blue); color: #fff; }

/* ---- Section color variants -------------------------------- */
.ap__section--dark { background: var(--ap-blue-dk); color: #fff; }
.ap__section--darkTeal { background: var(--ap-teal-dk); color: #fff; }
.ap__section--offwhite { background: var(--ap-offwhite); }
.ap__section--white { background: #fff; }
.ap__section--dark .ap__h2,
.ap__section--darkTeal .ap__h2 { color: #fff; }

/* =============================================================
   1. HERO
   ============================================================= */
.ap-hero {
  position: relative;
  background: linear-gradient(135deg, #003762 0%, #00343f 60%, #006763 100%);
  color: #fff;
  overflow: hidden;
}
/* Optional hero image: set --ap-hero-img on the section to layer
   a real Heath field photo behind the gradient. */
.ap-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--ap-hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  z-index: 0;
}
.ap-hero > .ap__wrap { position: relative; z-index: 1; }
.ap-hero__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.ap-hero__body .ap__lead { color: rgba(255,255,255,0.85); max-width: 54ch; }

.ap-hero__stats {
  border-left: 1px solid rgba(255,255,255,0.16);
  padding-left: clamp(1.5rem, 2.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.ap-stat__label {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 0.4rem;
}
.ap-stat__label .ap-stat__accent { color: var(--ap-yellow); }
.ap-stat__text {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.ap-stat + .ap-stat { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.6rem; }

/* =============================================================
   2. PARTNER BANNER
   ============================================================= */
.ap-banner {
  background: var(--ap-green);
  color: var(--ap-blue-dk);
}
.ap-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem 1.4rem;
  min-height: 60px;
  padding: 1.1rem 30px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ap-banner__sep { opacity: 0.5; }
.ap-banner__strong { font-weight: 700; }

/* =============================================================
   3. LEAD QUOTE (Carolyn)
   ============================================================= */
.ap-quote { background: var(--ap-offwhite); text-align: center; }
.ap-quote .ap__wrap,
.ap-ceo .ap__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ap-quote__mark {
  font-size: 4rem;
  line-height: 0.5;
  color: var(--ap-teal);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.ap-quote__text {
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ap-blue);
  max-width: 34ch;
  margin: 0 auto 1.6rem;
  text-align: center;
}
.ap-quote__cite {
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ap-ink-soft);
  text-align: center;
}

/* =============================================================
   4. EXPERTISE CARDS
   ============================================================= */
.ap-expertise__head { max-width: 70ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.ap-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ap-card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-top: 4px solid var(--ap-teal);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}
.ap-card__icon {
  width: 52px; height: 52px;
  border-radius: 4px;
  background: var(--ap-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.ap-card__icon svg { width: 26px; height: 26px; }
.ap-card__desc { color: var(--ap-ink-soft); font-size: 1rem; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 1.4rem; }
.ap-chip {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-blue);
  background: #eaf2f7;
  border: 1px solid #d3e3ee;
  border-radius: 3px;
  padding: 0.4rem 0.7rem;
}

/* =============================================================
   5. WHAT IT MEANS — three numbered cards (dark)
   ============================================================= */
.ap-means__head { max-width: 66ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.ap-means__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ap-means__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
}
.ap-means__num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-yellow);
  margin-bottom: 1.1rem;
}
.ap-means__card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  color: #fff;
}
.ap-means__card p { color: rgba(255,255,255,0.78); font-size: 0.98rem; margin: 0; }

/* =============================================================
   6. CONTRIBUTIONS LIST
   ============================================================= */
.ap-contrib__head { max-width: 66ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.ap-contrib__list { }
.ap-contrib__row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.8rem 1.75rem;
  margin-bottom: 1rem;
  border: 1px solid #e4e7ec;
  border-left: 4px solid var(--ap-yellow);
  background: #fff;
}
.ap-contrib__row:last-child { margin-bottom: 0; }
.ap-contrib__cat {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ap-teal);
  padding-top: 0.2rem;
}
.ap-contrib__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 0.4rem; }
.ap-contrib__desc { color: var(--ap-ink-soft); font-size: 0.98rem; margin: 0; }
.ap-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  white-space: nowrap;
}
.ap-status--delivered { background: var(--ap-green); color: #244a13; }
.ap-status--upcoming { background: var(--ap-yellow); color: #6b5200; }
.ap-status--dates { background: #eaf2f7; color: var(--ap-blue); }

/* =============================================================
   7. WORKSHOPS
   ============================================================= */
.ap-workshops__head { max-width: 64ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ap-dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.ap-date {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-bottom: 4px solid var(--ap-teal);
  padding: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.ap-date__day { font-size: 1.3rem; font-weight: 700; color: var(--ap-blue); margin: 0 0 0.3rem; }
.ap-date__city { font-size: 0.95rem; color: var(--ap-ink-soft); margin: 0 0 1.4rem; font-weight: 600; }
.ap-date__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ap-font);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--ap-yellow);
  color: var(--ap-blue-dk);
  border: 2px solid var(--ap-yellow);
  border-radius: 2px;
  padding: 0.65rem 1rem;
  transition: background-color .18s ease, border-color .18s ease;
}
.ap-date__btn:hover { background: #ffd23f; border-color: #ffd23f; }

.ap-gain {
  background: var(--ap-teal-dk);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem);
}
.ap-gain__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.6rem;
  color: #fff;
}
.ap-gain__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2.5rem;
}
.ap-gain__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.ap-gain__item::before {
  content: "";
  flex: 0 0 auto;
  width: 10px; height: 10px;
  margin-top: 0.45rem;
  background: var(--ap-yellow);
  border-radius: 2px;
}

/* =============================================================
   8. CEO QUOTE (Suzanne) — dark teal
   ============================================================= */
.ap-ceo { background: var(--ap-teal-dk); color: #fff; text-align: center; }
.ap-ceo__text {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  max-width: 38ch;
  margin: 0 auto 1.6rem;
  color: #fff;
  text-align: center;
}
.ap-ceo__cite {
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ap-green);
  text-align: center;
}

/* =============================================================
   9. FINAL CTA
   ============================================================= */
.ap-cta { background: var(--ap-blue-dk); color: #fff; text-align: center; }
.ap-cta__inner { max-width: 46ch; margin: 0 auto; }
.ap-cta .ap__h2 { margin-bottom: 1.2rem; }
.ap-cta__lead { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.ap-cta .ap__btns { justify-content: center; }

/* =============================================================
   Program context strip (top of content, under theme header)
   ============================================================= */
.ap-context {
  background: var(--ap-blue-dk);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ap-context__inner { display: flex; gap: 1rem; align-items: center; padding: 0.75rem 0; }
.ap-context__sep { color: var(--ap-yellow); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .ap-hero__grid { grid-template-columns: 1fr; }
  .ap-hero__stats {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.16);
    padding-left: 0;
    padding-top: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .ap-stat { flex: 1 1 220px; }
  .ap-stat + .ap-stat { border-top: none; padding-top: 0; }
  .ap-cards { grid-template-columns: 1fr; }
  .ap-means__grid { grid-template-columns: 1fr; }
  .ap-gain__grid { grid-template-columns: 1fr; }
  .ap-contrib__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .ap-contrib__row .ap-status { justify-self: start; }
}
@media (max-width: 520px) {
  .ap { font-size: 17px; }
  .ap__btns { flex-direction: column; align-items: stretch; }
  .ap__btn { width: 100%; }
}
