/*
 * hb-cap.css - "Landing Page (Capability Sheet)" template, scoped under .hb-cap
 *
 * Mirrors the 2026 capability sheet: brand red, charcoal panels, warm grey
 * cards. Self-contained like hb-lp.css so marketing-site edits can't break it.
 */

.hb-cap {
    --cap-red: #A41D21;
    --cap-red-dark: #6e1213;
    --cap-ink: #231f20;
    --cap-text: #3a3a3a;
    --cap-muted: #5f5f5f;
    --cap-warm: #f4f1ee;
    color: var(--cap-text);
    font-size: 17px;
    line-height: 1.55;
    background: #fff;
}

.hb-cap *,
.hb-cap *::before,
.hb-cap *::after { box-sizing: border-box; }

.hb-cap h1, .hb-cap h2, .hb-cap h3, .hb-cap p, .hb-cap ul, .hb-cap ol, .hb-cap figure { margin: 0; }
.hb-cap ul, .hb-cap ol { padding: 0; list-style: none; }

.hb-cap__wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* The site header is absolutely positioned over the page, so the first
   section clears it. */
.hb-cap__top { padding: 160px 0 0; }

.hb-cap__section { padding: 44px 0 0; }
.hb-cap__section--tight { padding-top: 32px; }
.hb-cap > .hb-cap__section:last-child { padding-bottom: 72px; }

/* ---------------------------------------------------------- header band */
.hb-cap__hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: var(--cap-red);
    color: #fff;
}

.hb-cap__heroLogo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    border-right: 1px solid rgba(255, 255, 255, .35);
}

.hb-cap__heroLogo img { width: 100%; max-width: 230px; height: auto; }

.hb-cap__heroText { padding: 30px 36px; }

.hb-cap__eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
    margin-bottom: 10px !important;
}

.hb-cap__eyebrow--red { color: var(--cap-red); letter-spacing: .2em; }

.hb-cap .hb-cap__h1 {
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    text-transform: none;
    margin-bottom: 10px;
}

.hb-cap__sub { font-size: 17px; color: rgba(255, 255, 255, .92); }

.hb-cap__intro {
    font-size: 19px;
    color: var(--cap-text);
    margin: 24px 0 !important;
}

/* ----------------------------------------------------------------- stats */
.hb-cap__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--cap-ink);
    border-radius: 10px;
    padding: 22px 10px;
    color: #fff;
}

.hb-cap__stats li {
    text-align: center;
    padding: 4px 12px;
    border-left: 1px solid rgba(164, 29, 33, .9);
}

.hb-cap__stats li:first-child { border-left: 0; }

.hb-cap__stats strong {
    display: block;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
}

.hb-cap__stats span { display: block; font-size: 14px; line-height: 1.35; margin-top: 8px; }

/* ---------------------------------------------------------------- photos */
.hb-cap__photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.hb-cap__photos img {
    width: 100%;
    height: 100%;
    aspect-ratio: 722 / 584;
    object-fit: cover;
    display: block;
}

/* -------------------------------------------------------------- headings */
.hb-cap .hb-cap__rule {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cap-ink);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cap-red);
    margin-bottom: 18px;
}

.hb-cap .hb-cap__h2 {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    color: var(--cap-ink);
    line-height: 1.25;
    margin-bottom: 14px;
}

.hb-cap__muted { color: var(--cap-muted); }

.hb-cap__lead { margin-bottom: 18px !important; }

/* ---------------------------------------------------------------- phases */
.hb-cap__phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.hb-cap__phase {
    color: #fff;
    padding: 22px 48px 26px 28px;
    min-height: 150px;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
}

.hb-cap__phase + .hb-cap__phase {
    margin-left: -18px;
    padding-left: 46px;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 26px 50%);
}

.hb-cap__phase--1 { background: var(--cap-ink); }
.hb-cap__phase--2 { background: var(--cap-red-dark); }
.hb-cap__phase--3 { background: var(--cap-red); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 26px 50%); padding-right: 28px; }

.hb-cap .hb-cap__phase h3 {
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
}

.hb-cap__phase p { font-size: 15px; line-height: 1.45; }

.hb-cap__every {
    background: var(--cap-warm);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 16px !important;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--cap-ink);
}

.hb-cap__every strong { text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; }

/* ------------------------------------------------------------ case study */
.hb-cap__case {
    background: var(--cap-warm);
    border-left: 8px solid var(--cap-red);
    padding: 24px 28px;
}

.hb-cap__case ul { margin: 0 0 14px; }

.hb-cap__case li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.hb-cap__case li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cap-red);
}

.hb-cap__case strong { color: var(--cap-ink); }

/* --------------------------------------------------------------- why us */
.hb-cap__why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.hb-cap__card {
    background: var(--cap-warm);
    border-top: 6px solid var(--cap-red);
    padding: 18px 20px 22px;
}

.hb-cap .hb-cap__card h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cap-ink);
    margin-bottom: 8px;
}

.hb-cap__card p { font-size: 16px; }

/* --------------------------------------------------------- capabilities */
.hb-cap__caps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.hb-cap__caps li {
    background: var(--cap-warm);
    border-radius: 10px;
    padding: 22px 16px 20px;
    text-align: center;
}

.hb-cap__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--cap-red);
    color: #fff;
    margin-bottom: 12px;
}

.hb-cap .hb-cap__caps h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--cap-ink);
    margin-bottom: 6px;
    text-transform: none;
}

.hb-cap__caps p { font-size: 15px; color: var(--cap-muted); line-height: 1.4; }

/* ----------------------------------------------------------------- reach */
.hb-cap__reach {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 20px;
    align-items: center;
}

.hb-cap__map img { width: 100%; height: auto; display: block; }

.hb-cap__regions { display: grid; gap: 12px; }

.hb-cap__region {
    background: var(--cap-warm);
    border-left: 7px solid var(--cap-red);
    padding: 14px 18px;
}

.hb-cap__regionHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.hb-cap .hb-cap__regionHead h3 {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--cap-ink);
}

.hb-cap__badge {
    flex: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: .04em;
}

.hb-cap__badge--red { background: var(--cap-red); }
.hb-cap__badge--dark { background: var(--cap-ink); }

.hb-cap__region li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.5;
}

.hb-cap__region li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cap-red);
}

.hb-cap__sites { margin-top: 16px !important; }

.hb-cap__trusted {
    background: var(--cap-warm);
    margin-top: 14px !important;
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cap-muted);
}

.hb-cap__trusted strong { font-size: 19px; letter-spacing: .08em; color: var(--cap-ink); margin-left: 8px; }

/* ------------------------------------------------------------------- CTA */
.hb-cap__cta {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
}

.hb-cap__ctaText {
    background: var(--cap-ink);
    color: #fff;
    padding: 32px 30px;
}

.hb-cap__ctaText .hb-cap__eyebrow { color: rgba(255, 255, 255, .85); }

.hb-cap .hb-cap__ctaText h2 {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.hb-cap__ctaText p:last-child { color: rgba(255, 255, 255, .9); }

.hb-cap .hb-cap__ctaBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--cap-red);
    color: #fff;
    text-decoration: none;
    padding: 28px 20px;
    text-align: center;
    transition: background .2s ease;
}

.hb-cap .hb-cap__ctaBtn:hover,
.hb-cap .hb-cap__ctaBtn:focus-visible { background: var(--cap-red-dark); color: #fff; }

.hb-cap .hb-cap__ctaBtn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

.hb-cap__ctaBig { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.hb-cap__ctaSmall { font-size: 16px; margin-top: 8px; }

.hb-cap__contact {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: var(--cap-red);
    color: #fff;
    margin-top: 14px;
}

.hb-cap__contactLogo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-right: 1px solid rgba(255, 255, 255, .35);
}

.hb-cap__contactLogo img { width: 100%; max-width: 210px; height: auto; }

.hb-cap__contactText { padding: 22px 30px; font-size: 16px; }

.hb-cap__contactName { font-size: 22px; font-weight: 800; text-transform: uppercase; }

.hb-cap__contactLinks { margin-top: 8px !important; font-weight: 700; font-size: 18px; }

.hb-cap .hb-cap__contactLinks a { color: #fff; text-decoration: none; }
.hb-cap .hb-cap__contactLinks a:hover,
.hb-cap .hb-cap__contactLinks a:focus-visible { text-decoration: underline; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 991px) {
    .hb-cap__top { padding-top: 130px; }
    .hb-cap__hero, .hb-cap__contact { grid-template-columns: 220px 1fr; }
    .hb-cap__caps { grid-template-columns: repeat(2, 1fr); }
    .hb-cap__reach { grid-template-columns: 1fr; }
    .hb-cap__cta { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hb-cap { font-size: 16px; }
    .hb-cap__hero, .hb-cap__contact { grid-template-columns: 1fr; }
    .hb-cap__heroLogo, .hb-cap__contactLogo { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .35); padding: 22px; }
    .hb-cap__heroLogo img { max-width: 180px; }
    .hb-cap__heroText, .hb-cap__contactText { padding: 22px; }
    .hb-cap__stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .hb-cap__stats li:nth-child(3) { border-left: 0; }
    .hb-cap__photos { grid-template-columns: 1fr; }
    .hb-cap__phases { grid-template-columns: 1fr; gap: 8px; }
    .hb-cap__phase,
    .hb-cap__phase + .hb-cap__phase,
    .hb-cap__phase--3 { clip-path: none; margin-left: 0; padding: 20px 22px; min-height: 0; }
    .hb-cap__why, .hb-cap__caps { grid-template-columns: 1fr; }
    .hb-cap__ctaText { padding: 26px 22px; }
}
