/* ============================================================
   AFC Hub — Products overview page
   Scope: .afcp
   Tokens mirror .hpv3 in public/css/homepage.css:543+ (canonical).
   Design source: Documentation/hub-template/products-page/Concept-A-Aligned-Evolution.html
   ============================================================ */

.afcp {
    --afcp-green: #0A883E;
    --afcp-green-dark: #065A28;
    --afcp-green-deep: #052E17;
    --afcp-green-light: #E8F5E9;
    --afcp-gold: #EFB443;
    --afcp-gold-warm: #F5C96B;
    --afcp-orange: #DC6E26;
    --afcp-teal: #12857F;
    --afcp-cream: #FDFAF3;
    --afcp-dark: #16281A;
    --afcp-text: #2D3A2D;
    --afcp-muted: #5A6E5A;
    --afcp-radius-lg: 28px;
    --afcp-radius-md: 18px;
    --afcp-pill: 100px;
    display: block;
    background: #fff;
    color: var(--afcp-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.afcp *, .afcp *::before, .afcp *::after { box-sizing: border-box; }
.afcp h1, .afcp h2, .afcp h3, .afcp h4 {
    color: var(--afcp-dark); font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: 0; margin: 0;
}
.afcp p { margin: 0; }
.afcp a { text-decoration: none; color: inherit; }
.afcp img { max-width: 100%; display: block; }
.afcp ul { margin: 0; padding: 0; list-style: none; }
.afcp a:focus-visible, .afcp button:focus-visible { outline: 3px solid var(--afcp-gold); outline-offset: 4px; }

.afcp-container { width: min(1280px, 92%); margin-inline: auto; }

/* ---------- buttons (hpv3 .hpv3-btn spec) ---------- */
.afcp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 48px; padding: 15px 32px; border-radius: var(--afcp-pill);
    font-size: 15px; font-weight: 700; border: 0; cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.afcp-btn:hover { transform: translateY(-2px); }
/* Every button label is white. Note the double-class specificity: `.afcp a`
   sets `color: inherit` (0,1,1) and out-specifies a bare `.afcp-btn-*` (0,1,0).
   Gold fill is dropped for the primary because white on #EFB443 is ~1.9:1 and
   unreadable; green gives white text 4.6:1 (WCAG AA). */
.afcp .afcp-btn { color: #fff; }
.afcp .afcp-btn-primary { background: var(--afcp-green); }
.afcp .afcp-btn-primary:hover { background: var(--afcp-green-dark); }
.afcp .afcp-btn-secondary { border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14); }
.afcp .afcp-btn-secondary:hover { background: rgba(255,255,255,.24); }
.afcp .afcp-btn-outline { background: var(--afcp-green-deep); border: 0; }
.afcp .afcp-btn-outline:hover { background: var(--afcp-dark); }

/* ---------- eyebrow / section head ---------- */
.afcp-tag {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
    color: var(--afcp-green); font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}
.afcp-tag::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--afcp-green); }
.afcp-tag--center { justify-content: center; }
.afcp-tag--center::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--afcp-green); }

.afcp-section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.afcp-section-head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; margin-bottom: 16px; }
.afcp-section-head h2 span { color: var(--afcp-green); }
.afcp-section-head p { color: var(--afcp-muted); font-size: 17px; line-height: 1.6; }

/* ---------- 1. HERO ---------- */
.afcp-hero { position: relative; display: flex; align-items: center; min-height: 430px; overflow: hidden; }
.afcp-hero-bg, .afcp-hero-overlay { position: absolute; inset: 0; }
.afcp-hero-bg { background-image: url('/images/afc-events-photos/BMCSDecember 12, 2024109.jpg'); background-size: cover; background-position: center 30%; }
.afcp-hero-overlay { background: linear-gradient(105deg, rgba(5,46,23,.95) 0%, rgba(6,77,36,.84) 44%, rgba(5,46,23,.38) 100%); }
/* The layout header is `fixed-top` and reserves no space, so the hero — which
   starts at y=0 — has to clear it itself: 57px below 992px, 90px above it. */
/* No `width: 100%` here — it would override .afcp-container's `min(1280px, 92%)`
   (same specificity, later rule) and run the hero copy to the screen edge. */
.afcp-hero-inner { position: relative; z-index: 2; padding: 92px 0 58px; }
@media (min-width: 992px) {
    .afcp-hero-inner { padding: 128px 0 58px; }
}
.afcp-hero-copy { max-width: 700px; padding-left: clamp(0px, 3.5vw, 64px); }
.afcp-badge {
    display: inline-flex; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 18px; padding: 8px 17px;
    border: 1px solid rgba(255,255,255,.22); border-radius: var(--afcp-pill); background: rgba(255,255,255,.1);
    color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.afcp-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--afcp-gold); }
.afcp-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.07; margin-bottom: 16px; }
.afcp-hero h1 span { color: var(--afcp-gold); }
.afcp-hero-lead { max-width: 560px; margin-bottom: 20px !important; color: rgba(255,255,255,.84); font-size: clamp(15.5px, 1.3vw, 18px); line-height: 1.6; }
.afcp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.afcp-hero-sig { display: flex; align-items: center; gap: 16px; color: var(--afcp-gold-warm); font-family: 'Fraunces', serif; font-style: italic; font-size: 18px; }
.afcp-hero-sig::before { content: ''; width: 42px; height: 3px; border-radius: 3px; background: var(--afcp-orange); }

/* ---------- 2. PROOF STRIP (overlaps hero, hpv3-stats pattern) ---------- */
.afcp-proof-wrap { position: relative; z-index: 5; }
.afcp-proof {
    margin-top: -46px; padding: 40px 48px; border-radius: var(--afcp-radius-lg);
    background: var(--afcp-green); box-shadow: 0 26px 60px rgba(10,136,62,.3); position: relative; overflow: hidden;
}
.afcp-proof::after { content: ''; position: absolute; top: -140px; right: -40px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.05); }
.afcp-proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.afcp-proof-item { border-left: 1px solid rgba(255,255,255,.22); padding-left: 24px; }
.afcp-proof-item:first-child { border-left: 0; padding-left: 0; }
.afcp-proof-num { display: block; color: #fff; font-family: 'Fraunces', serif; font-size: 42px; font-weight: 600; line-height: 1; margin-bottom: 8px; }
.afcp-proof-lbl { color: rgba(255,255,255,.8); font-size: 13.5px; line-height: 1.5; }

/* ---------- 3. ABOUT / BUILD-GROW-SCALE ---------- */
.afcp-about { padding: 96px 0 84px; }
.afcp-about-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 68px; align-items: center; }
.afcp-about-copy h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.14; margin-bottom: 20px; }
.afcp-about-copy h2 span { color: var(--afcp-green); }
.afcp-about-copy p { color: var(--afcp-muted); font-size: 16.5px; line-height: 1.75; margin-bottom: 16px; }
.afcp-about-cta { margin-top: 14px; }
.afcp-stage-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.afcp-stage { position: relative; margin: 0; border-radius: var(--afcp-radius-md); overflow: hidden; aspect-ratio: 3/4; }
.afcp-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.afcp-stage:hover img { transform: scale(1.05); }
.afcp-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(5,46,23,.82)); }
.afcp-stage-tag {
    position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; text-align: center;
    padding: 9px 12px; border-radius: var(--afcp-pill); font-size: 13px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase;
}
.afcp-stage:nth-child(1) .afcp-stage-tag { background: var(--afcp-green); color: #fff; }
.afcp-stage:nth-child(2) .afcp-stage-tag { background: var(--afcp-orange); color: #fff; }
.afcp-stage:nth-child(3) .afcp-stage-tag { background: var(--afcp-gold); color: var(--afcp-green-deep); }

/* ---------- 4. PRODUCT GRID ---------- */
/* Anchor target for the two in-page "#products" jumps. scroll-margin-top keeps
   the section heading clear of the layout's fixed-top header (57px / 90px). */
.afcp-products { padding: 92px 0; background: var(--afcp-cream); scroll-margin-top: 70px; }
@media (min-width: 992px) {
    .afcp-products { scroll-margin-top: 104px; }
}
.afcp-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.afcp-card {
    display: flex; flex-direction: column; overflow: hidden; background: #fff;
    border: 1px solid rgba(10,136,62,.1); border-radius: var(--afcp-radius-lg);
    transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}
.afcp-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(5,46,23,.4); border-color: rgba(10,136,62,.22); }
.afcp-card-media { position: relative; height: 260px; overflow: hidden; }
.afcp-card-media img { transition: transform 400ms ease; }
.afcp-card:hover .afcp-card-media img { transform: scale(1.04); }
.afcp-card-media img { width: 100%; height: 100%; object-fit: cover; }
.afcp-status {
    position: absolute; top: 14px; left: 14px; z-index: 2; padding: 7px 15px; border-radius: var(--afcp-pill);
    font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.afcp-status--soon { background: rgba(220,110,38,.95); color: #fff; }
.afcp-status--open { background: rgba(10,136,62,.95); color: #fff; }
.afcp-status--dev { background: rgba(255,255,255,.94); color: var(--afcp-dark); }
.afcp-card-body { display: flex; flex-direction: column; flex: 1; padding: 30px 32px 32px; }
.afcp-card-kicker { color: var(--afcp-green); font-size: 12px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 10px; }
.afcp-card h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.24; margin-bottom: 12px; }
.afcp-card > .afcp-card-body > p { color: var(--afcp-muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }
.afcp-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-bottom: 22px; }
.afcp-checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--afcp-text); font-size: 14px; line-height: 1.5; }
.afcp-checklist i { color: var(--afcp-green); font-size: 14px; margin-top: 2px; }
.afcp-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 24px; padding-top: 18px;
    border-top: 1px solid rgba(10,136,62,.12); color: var(--afcp-muted); font-size: 13px;
}
.afcp-card-meta span { display: inline-flex; align-items: center; gap: 8px; }
.afcp-card-meta i { color: var(--afcp-orange); font-size: 12px; }
.afcp-card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; color: var(--afcp-green); font-size: 15px; font-weight: 700; }
.afcp-card-link i { transition: transform 200ms ease; }
.afcp-card:hover .afcp-card-link i { transform: translateX(4px); }

/* ---------- 5. AUDIENCE + OUTCOMES ---------- */
.afcp-split { padding: 96px 0; }
.afcp-split-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 64px; }
.afcp-split-col h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; margin-bottom: 22px; }
.afcp-aud-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.afcp-aud {
    display: flex; align-items: center; gap: 13px; padding: 16px 18px;
    border: 1px solid rgba(10,136,62,.12); border-radius: var(--afcp-radius-md); background: #fff;
    font-size: 14.5px; font-weight: 600; color: var(--afcp-dark);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.afcp-aud:hover { border-color: rgba(10,136,62,.3); box-shadow: 0 14px 30px -20px rgba(5,46,23,.45); }
.afcp-aud-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.afcp-ico-green { background: var(--afcp-green-light); color: var(--afcp-green); }
.afcp-ico-orange { background: rgba(220,110,38,.1); color: var(--afcp-orange); }
.afcp-ico-teal { background: rgba(18,133,127,.1); color: var(--afcp-teal); }
.afcp-out-panel { padding: 34px 34px 30px; border-radius: var(--afcp-radius-lg); background: var(--afcp-green-light); }
.afcp-out-panel h2 { margin-bottom: 20px; }
.afcp-out-list { display: grid; gap: 14px; }
.afcp-out-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; line-height: 1.55; color: var(--afcp-text); }
.afcp-out-list i { color: var(--afcp-green); margin-top: 3px; }

/* ---------- 6. WHY AFC ---------- */
.afcp-why { padding: 92px 0; background: #fff; border-top: 1px solid rgba(10,136,62,.08); }
.afcp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.afcp-why-card {
    position: relative; overflow: hidden; padding: 34px 28px;
    border: 1px solid rgba(10,136,62,.07); border-radius: var(--afcp-radius-lg); background: #fff;
    transition: box-shadow 250ms ease, transform 250ms ease;
}
.afcp-why-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--afcp-green); transform: scaleX(0); transition: transform 250ms ease; }
.afcp-why-card:hover { transform: translateY(-6px); box-shadow: 0 22px 56px rgba(10,136,62,.1); }
.afcp-why-card:hover::before { transform: scaleX(1); }
.afcp-why-card .afcp-aud-ico { width: 58px; height: 58px; border-radius: 17px; font-size: 22px; margin-bottom: 20px; }
.afcp-why-card h3 { font-size: 19px; line-height: 1.3; margin-bottom: 10px; }
.afcp-why-card p { color: var(--afcp-muted); font-size: 14px; line-height: 1.65; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
    .afcp-about-grid { grid-template-columns: 1fr; gap: 44px; }
    .afcp-proof-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
    .afcp-proof-item:nth-child(3) { border-left: 0; padding-left: 0; }
    .afcp-split-grid { grid-template-columns: 1fr; gap: 48px; }
    .afcp-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .afcp-hero { min-height: 400px; }
    .afcp-hero-inner { padding: 84px 0 46px; }
    .afcp-hero-copy { padding-left: 0; }
    .afcp-hero-actions .afcp-btn { flex: 1 1 100%; }
    .afcp-proof { margin-top: -30px; padding: 30px 26px; }
    .afcp-proof-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
    .afcp-proof-item { border-left: 0; padding-left: 0; }
    .afcp-proof-num { font-size: 32px; }
    .afcp-about, .afcp-products, .afcp-split, .afcp-why { padding: 62px 0; }
    .afcp-product-grid, .afcp-why-grid, .afcp-aud-grid, .afcp-checklist { grid-template-columns: 1fr; }
    .afcp-card-media { height: 210px; }
    .afcp-section-head { margin-bottom: 36px; }
    .afcp-out-panel { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .afcp *, .afcp *::before, .afcp *::after { transition: none !important; animation: none !important; }
}
