/*
 * v2.css — Acorn Investment Partners (v2 redesign layer)
 *
 * Loaded after index-fresh.css (+ page CSS) on the *-v2.html pages only.
 * Adds the v2 components — hero stat band, transaction feature cards,
 * deal-figure numerals, engagement process strip, dark CTA stage, and the
 * expanded footer — and overrides a handful of v1 leftovers. The v1 files
 * are untouched.
 */

html {
    scroll-padding-top: 84px;
}

/* --- Accessibility: skip link --------------------------------------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    padding: 0.8rem 1.4rem;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.skip-link:focus {
    left: 0;
}

/* --- Nav: contact action --------------------------------------------- */
.nav-contact {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(244, 247, 251, 0.85);
    border: 1px solid rgba(126, 158, 214, 0.42);
    padding: 0.55rem 1rem;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-contact:hover {
    background: rgba(126, 158, 214, 0.18);
    border-color: rgba(126, 158, 214, 0.7);
    color: #ffffff;
}

@media (max-width: 920px) {
    .nav-contact {
        margin-left: auto;
    }
}

@media (max-width: 420px) {
    .nav-contact {
        display: none;
    }
}

/* --- Home hero v2: single-column statement + stat band --------------- */
.hero-stage-v2 .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
}

.hero-stage-v2 .hero-copy {
    max-width: 46rem;
}

.hero-stage-v2 .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3.8rem, 6.4vw, 6.2rem);
}

.hero-lede {
    margin: 1.4rem 0 0;
    max-width: 36rem;
    color: rgba(244, 247, 251, 0.72);
    font-size: 1.04rem;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin-top: 4.25rem;
    padding-top: 2.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-stat {
    display: grid;
    gap: 0.45rem;
    align-content: start;
    justify-items: center;
}

.stat-value {
    font-family: "Newsreader", serif;
    font-weight: 600;
    font-size: clamp(2rem, 2.9vw, 2.9rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.stat-label {
    color: rgba(157, 180, 217, 0.85);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Numbered detail rows (home platform section) --------------------- */
.detail-row-v2 {
    grid-template-columns: 56px 170px minmax(0, 1fr);
}

.detail-num {
    font-family: "Newsreader", serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-soft);
    opacity: 0.55;
}

@media (max-width: 920px) {
    .detail-row-v2 {
        grid-template-columns: 1fr;
    }

    .detail-num {
        display: none;
    }
}

/* --- Stacked section (full-width head above content) ------------------ */
.section-shell-stack {
    display: block;
}

.section-shell-stack .section-head {
    margin-bottom: 2.75rem;
    max-width: none;
}

.section-shell-stack .section-head h2 {
    max-width: none;
}

/* --- Transaction feature cards (home) --------------------------------- */
.tx-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.tx-feature {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tx-feature:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(13, 43, 96, 0.12);
}

.tx-feature-cat {
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tx-feature-value {
    margin-top: 1.4rem;
    font-family: "Newsreader", serif;
    font-weight: 600;
    font-size: clamp(2.3rem, 3vw, 2.9rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.tx-feature-title {
    margin: 0.7rem 0 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
}

.tx-feature-date {
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.tx-feature-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tx-feature-cta .tx-arrow {
    transition: transform 0.3s ease;
}

.tx-feature:hover .tx-feature-cta .tx-arrow {
    transform: translateX(4px);
}

@media (max-width: 920px) {
    .tx-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Deal figures on the transactions page ---------------------------- */
.tx-figure {
    font-family: "Newsreader", serif;
    font-weight: 600;
    font-size: clamp(2rem, 2.6vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.tx-figure-note {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .tx-meta {
        grid-auto-flow: row;
        gap: 0.35rem;
    }

    .tx-figure {
        margin-top: 0.2rem;
    }
}

/* --- Engagement process strip (insurer solutions) ---------------------- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    border-top: 1px solid var(--line-strong);
    padding-top: 2rem;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding-right: 1rem;
}

.process-num {
    font-family: "Newsreader", serif;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent-soft);
    opacity: 0.5;
}

.process-step h3 {
    margin: 0.9rem 0 0.5rem;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.68;
}

@media (max-width: 920px) {
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 560px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* --- About hero rail: stat treatment ----------------------------------- */
.page-hero-rail-v2 .rail-stat {
    display: grid;
    gap: 0.45rem;
    padding: 1.35rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero-rail-v2 .rail-stat:last-child {
    border-bottom: 0;
}

/* --- Dark CTA stage (site-wide close) ----------------------------------- */
.cta-stage {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(52, 96, 170, 0.08), transparent 24%),
        linear-gradient(180deg, #0c2856 0%, #0a1f48 100%);
    color: var(--hero-ink);
    border-top: 0;
}

.cta-shell {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    text-align: center;
}

.cta-shell h2 {
    margin: 0;
    max-width: 16ch;
    font-family: "Newsreader", serif;
    font-weight: 600;
    font-size: clamp(2.4rem, 4vw, 3.9rem);
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--hero-ink);
}

.cta-shell .section-tag {
    margin-bottom: 1.1rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    margin-top: 2.4rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 1.8rem;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: rgba(244, 247, 251, 0.88);
    transform: translateY(-2px);
}

.cta-alt {
    position: relative;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(157, 180, 217, 0.4);
    color: rgba(244, 247, 251, 0.88);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.cta-alt:hover {
    color: #ffffff;
    border-color: rgba(157, 180, 217, 0.85);
}

.cta-address {
    margin: 2.2rem 0 0;
    color: rgba(244, 247, 251, 0.55);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

/* --- Expanded footer ----------------------------------------------------- */
.footer-shell-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    gap: 2rem 2.5rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--line);
    align-items: start;
}

.site-footer-v2 {
    padding: 0 0 2.4rem;
}

.footer-heading {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-col {
    display: grid;
    gap: 0.45rem;
    justify-items: start;
}

.footer-col p,
.footer-col a {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col a:hover {
    color: var(--accent);
}

/* v1 leftovers from the cream palette — align to navy neutrals. */
.footer-footnote,
.tx-disclaimer {
    color: var(--muted);
}

@media (max-width: 920px) {
    .footer-shell-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .footer-shell-v2 {
        grid-template-columns: 1fr;
    }
}

/* --- Motion: v2 elements ------------------------------------------------- */
/* Hero entrance for the new hero pieces (mirrors index-fresh.css timing). */
.js .hero-lede {
    opacity: 0;
    animation: heroRise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.26s;
}

.js .hero-stats {
    opacity: 0;
    animation: heroRise 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.42s;
}

/* Scroll reveal for v2-only components, driven by script-v2.js. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .hero-lede,
    .js .hero-stats,
    .js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* --- Small-screen refinements -------------------------------------------- */
@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.6rem;
        margin-top: 3rem;
    }

    .cta-stage {
        padding: 4.5rem 0;
    }

    .cta-actions {
        flex-direction: column;
        gap: 1.1rem;
    }
}
