/* Homepage — section styles layered on top of style.css and resource-cards.css.
   Mobile-first: base styles target phones, then 768px and 992px. */

.hv2 section {
    padding: 64px 0;
}

/* Keep anchored sections clear of the fixed header on direct #links. */
.hv2 section[id] {
    scroll-margin-top: 90px;
}

/* Align the shared FAQ list with the left-aligned section headers. */
.hv2 .faq-list {
    margin-left: 0;
}

.hv2-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}

.hv2-section-header {
    max-width: 760px;
    margin-bottom: 40px;
}

.hv2-section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
}

.hv2-section-header p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.hv2-link {
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--brand-yellow);
}

.hv2-link:hover {
    border-bottom-color: var(--primary-color);
}

.hv2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Hero ---------- */
.hv2 .hv2-hero {
    padding: 130px 0 56px;
    background: var(--offwhite);
}

.hv2-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hv2-hero-sub {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Hero: full-width title row, then CTA beside the image */
.hv2-hero-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    margin: 28px 0 44px;
}

.hv2-hero-note {
    margin: 16px 0 0;
    font-size: 0.95rem;
}

.hv2-hero-image {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
}

.hv2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.hv2-hero-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    padding-bottom: 8px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.hv2-hero-cards .hv2-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
}

/* ---------- Shared card ---------- */
.hv2-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    border-top: 6px solid var(--brand-blue);
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hv2-card--yellow { border-top-color: var(--brand-yellow); }
.hv2-card--green { border-top-color: var(--brand-green); }
.hv2-card--blue { border-top-color: var(--brand-blue); }

.hv2-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.hv2-card p {
    margin-bottom: 16px;
}

/* Hero cards show the latest pieces; keep their excerpts to a tidy preview. */
.hv2-hero-cards .hv2-card p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hv2-card .hv2-link {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- Problem ---------- */
.hv2-situations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hv2-situation {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 24px;
}

.hv2-situation h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.hv2-situation p {
    margin-bottom: 0;
}

/* ---------- Solution band ---------- */
.hv2 .hv2-solution {
    background: var(--background-dark);
    padding: 56px 0;
}

.hv2-solution h2 {
    color: var(--white);
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    max-width: 760px;
    margin-bottom: 12px;
}

.hv2-solution p {
    color: #d9d9d9;
    font-size: 1.15rem;
    max-width: 760px;
    margin-bottom: 0;
}

/* ---------- How we work ---------- */
.hv2-start {
    border: 2px dashed var(--accent-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    background: var(--offwhite);
}

.hv2-start h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.hv2-start p {
    margin-bottom: 0;
}

.hv2-stages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hv2-stage {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.hv2-stage-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 14px;
}

.hv2-stage h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.hv2-you-get {
    margin-top: auto;
    background: var(--brand-yellow);
    border-radius: var(--border-radius);
    padding: 14px 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.hv2-you-get strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hv2-stage-proof {
    margin: 0 0 14px;
    font-size: 0.95rem;
}

.hv2-scaffolding {
    margin: 28px 0 48px;
    font-size: 1.15rem;
    color: var(--text-color);
}

.hv2-scaffolding strong {
    font-weight: 700;
}

.hv2-subheading {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.hv2-principles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

.hv2-principle {
    border-left: 4px solid var(--brand-green);
    padding: 4px 0 4px 16px;
}

.hv2-principle h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.hv2-principle p {
    margin-bottom: 0;
}

.hv2-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ---------- Client impact ---------- */
.hv2 .hv2-impact {
    background: var(--offwhite);
}

.hv2-industries {
    margin-top: 32px;
}

.hv2-industries p {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.hv2-industry-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hv2-industry-list li {
    background: var(--white);
    border: 1px solid #dddddd;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
}

.hv2-impact-footer {
    margin: 28px 0 0;
}

/* ---------- How we engage ---------- */
.hv2-engage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hv2-engage-col {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 24px;
}

.hv2-engage-col h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.hv2-checklist li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.hv2-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-green);
}

.hv2-checklist strong {
    color: var(--text-color);
}

.hv2-teamctx {
    background: var(--background-dark);
    border-color: var(--background-dark);
}

.hv2-teamctx h3,
.hv2-teamctx .hv2-eyebrow {
    color: var(--white);
}

.hv2-teamctx p {
    color: #d9d9d9;
}

.hv2-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hv2-badges li {
    border: 1px solid #5a5a5a;
    color: #e6e6e6;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
}

.hv2-teamctx .hv2-link {
    color: var(--white);
    border-bottom-color: var(--brand-yellow);
}

.hv2-pe-line {
    margin: 24px 0 0;
    padding: 18px 20px;
    background: var(--brand-green);
    border-radius: var(--border-radius);
    color: var(--primary-color);
}

/* ---------- Latest thinking ---------- */
.hv2-insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hv2-insight {
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    min-width: 0;
}

.hv2-insight img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 14px;
}

.hv2-insight-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.hv2-insight h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hv2-insight p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.hv2-insights-footer {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #e6e6e6;
}

.hv2-subscribe h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.hv2-subscribe p {
    margin-bottom: 12px;
}

.hv2-subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hv2-subscribe-form input {
    flex: 1 1 220px;
    padding: 12px 14px;
    border: 1px solid #cccccc;
    border-radius: var(--border-radius);
    font: inherit;
}

#email-capture-success p {
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

/* ---------- Team ---------- */
.hv2-team-footer {
    margin: 28px 0 0;
    text-align: center;
}

/* ---------- Contact ---------- */
.hv2 .hv2-contact {
    background: var(--brand-yellow);
    text-align: center;
}

.hv2-contact h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    margin-bottom: 12px;
}

.hv2-contact p {
    max-width: 640px;
    margin: 0 auto 28px;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
    .hv2 section {
        padding: 80px 0;
    }

    .hv2-hero-cards .hv2-card {
        flex-basis: 46%;
    }

    .hv2-situations,
    .hv2-principles,
    .hv2-insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hv2-insights-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .hv2-subscribe {
        max-width: 480px;
    }
}

/* ---------- Desktop ---------- */
@media (min-width: 992px) {
    .hv2 .hv2-hero {
        padding: 150px 0 72px;
    }

    /* Title and subtitle use the full width and never wrap on desktop
       (the subtitle's two lines are deliberate breaks). */
    .hv2-hero h1,
    .hv2-hero-sub {
        white-space: nowrap;
    }

    .hv2-hero h1 {
        font-size: clamp(2.2rem, 3.6vw, 2.95rem);
    }

    .hv2-hero-sub {
        font-size: clamp(1.05rem, 1.55vw, 1.25rem);
    }

    .hv2-hero-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
        gap: 48px;
    }

    .hv2-hero-image {
        justify-self: end;
    }

    .hv2-hero-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .hv2-stages,
    .hv2-services,
    .hv2-engage-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hv2-principles,
    .hv2-insights-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
