/* ==========================================================
   BLACK HARBOR GROUP - CAPITAL SOLUTIONS PAGE
   Unique design — diagonal splits, ribbon cards, visual stack
   ========================================================== */

/* ===================================================
   HERO — Diagonal split with dot pattern
=================================================== */
.cs-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            to right,
            rgba(var(--rgb-navy), 0.95) 20%,
            rgba(var(--rgb-navy), 0.5) 100%
        ),
        url("../images/heroes/capital-solutions.png") no-repeat center center;
    background-size: cover;
    overflow: hidden;
    padding: 130px 0 110px;
}

.cs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(178, 140, 64, 0.12) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
    opacity: 0.5;
    animation: dotFade 6s ease-in-out infinite alternate;
}

@keyframes dotFade {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.7;
    }
}

.cs-hero .hero-content {
    position: relative;
    z-index: 2;
}

.cs-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(178, 140, 64, 0.08);
    border: 1px solid rgba(178, 140, 64, 0.25);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 30px;
}

.cs-hero .hero-eyebrow i {
    font-size: 14px;
}

.cs-hero h1 {
    font-family: "Outfit", sans-serif;
    font-size: 68px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -3px;
    margin-bottom: 25px;
    line-height: 1.05;
}

.cs-hero h1 .accent {
    display: block;
    background: linear-gradient(
        135deg,
        var(--gold-primary),
        #e8c878,
        var(--gold-primary)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShift 4s ease infinite;
}

@keyframes goldShift {
    0%,
    100% {
        background-position: 0% center;
    }
    50% {
        background-position: 200% center;
    }
}

.cs-hero .hero-desc {
    font-size: 20px;
    color: white !important;
    max-width: 580px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.cs-hero .hero-line {
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
    margin-bottom: 25px;
}

.cs-hero .hero-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.cs-hero .hero-crumbs a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}
.cs-hero .hero-crumbs a:hover {
    color: var(--gold-primary);
}
.cs-hero .hero-crumbs .divider {
    color: rgba(255, 255, 255, 0.25);
}
.cs-hero .hero-crumbs .active {
    color: var(--gold-primary);
    font-weight: 600;
}

/* ===================================================
   OVERVIEW — Asymmetric with vertical accent
=================================================== */
.cs-overview {
    padding: 120px 0;
    background: var(--bg-white);
}

.cs-overview .ov-label {
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.cs-overview .ov-heading {
    font-family: "Outfit", sans-serif;
    font-size: 46px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -2px;
    margin-bottom: 35px;
}

.cs-overview .ov-text {
    font-size: 18px;
    line-height: 1.85;
    color: var(--text-slate-dark);
    margin-bottom: 20px;
}

.cs-overview .ov-accent-block {
    background: var(--bg-white);
    border-left: 4px solid var(--gold-primary);
    border-radius: 0 12px 12px 0;
    padding: 35px 30px;
    margin-top: 30px;
}

.cs-overview .ov-accent-block p {
    font-size: 18px;
    font-style: normal;
    color: var(--text-slate-darker);
    line-height: 1.7;
    margin: 0;
    font-family: "Outfit", sans-serif;
}

/* ===================================================
   CAPITAL PLATFORM — Feature strips
=================================================== */
.cs-platform {
    padding: 120px 0;
    background: linear-gradient(
        180deg,
        var(--bg-navy) 0%,
        var(--bg-navy-light) 100%
    );
}

.cs-platform .platform-strip {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(var(--rgb-navy), 0.03);
    border: 1px solid rgba(var(--rgb-navy), 0.04);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cs-platform .platform-strip::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(178, 140, 64, 0.15);
    transition: all 0.4s ease;
}

.cs-platform .platform-strip:hover::after {
    width: 6px;
    background: var(--gold-primary);
}

.cs-platform .platform-strip:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 35px rgba(var(--rgb-navy), 0.07);
}

.cs-platform .strip-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(178, 140, 64, 0.08),
        rgba(178, 140, 64, 0.15)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.cs-platform .platform-strip:hover .strip-icon {
    background: var(--gold-primary);
    box-shadow: 0 8px 20px rgba(178, 140, 64, 0.3);
}

.cs-platform .strip-icon i {
    font-size: 22px;
    color: var(--gold-primary);
    transition: color 0.3s;
}

.cs-platform .platform-strip:hover .strip-icon i {
    color: #fff;
}

.cs-platform .strip-text h5 {
    font-family: "Outfit", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* ===================================================
   CORE CAPITAL SOLUTIONS — Large feature blocks
=================================================== */
.cs-solutions {
    padding: 120px 0;
    background: linear-gradient(
        165deg,
        var(--bg-navy-dark) 0%,
        var(--bg-navy) 50%,
        var(--bg-navy-muted) 100%
    );
    position: relative;
    overflow: hidden;
}

.cs-solutions::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(178, 140, 64, 0.05) 0%,
        transparent 70%
    );
    top: -250px;
    right: -150px;
}

.cs-solution-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 45px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.cs-solution-block .sol-num {
    font-family: "Outfit", sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: rgba(178, 140, 64, 0.08);
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.5s ease;
    min-width: 70px;
}

.cs-solution-block:hover .sol-num {
    color: rgba(178, 140, 64, 0.25);
}

.cs-solution-block .sol-content h4 {
    font-family: "Outfit", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cs-solution-block .sol-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
}

.cs-solution-block .sol-tag {
    display: inline-block;
    background: rgba(178, 140, 64, 0.1);
    border: 1px solid rgba(178, 140, 64, 0.2);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.cs-solution-block:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(178, 140, 64, 0.25);
    transform: translateX(8px);
    box-shadow: 0 20px 50px rgba(var(--rgb-navy), 0.3);
}

/* ===================================================
   CAPITAL STACK — Visual layered diagram
=================================================== */
.cs-stack {
    padding: 120px 0;
    background: var(--bg-white);
}

.stack-visual {
    max-width: 600px;
    margin: 0 auto;
}

.stack-layer {
    display: flex;
    align-items: center;
    padding: 28px 30px;
    margin-bottom: 4px;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    cursor: default;
}

.stack-layer.senior {
    background: #e2e8f0;
}
.stack-layer.mezz {
    background: transparent;
}
.stack-layer.pref {
    background: transparent;
}
.stack-layer.common {
    background: transparent;
}

.stack-layer .layer-label {
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}

.stack-layer.senior .layer-label {
    color: var(--text-slate);
}
.stack-layer.mezz .layer-label,
.stack-layer.pref .layer-label,
.stack-layer.common .layer-label {
    color: var(--text-dark);
}

.stack-layer .layer-tag {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
}

.stack-layer.senior .layer-tag {
    color: var(--text-slate-dark);
    background: rgba(var(--rgb-navy), 0.05);
}
.stack-layer.mezz .layer-tag {
    color: var(--gold-primary);
    background: rgba(178, 140, 64, 0.1);
}
.stack-layer.pref .layer-tag {
    color: var(--gold-primary);
    background: rgba(178, 140, 64, 0.15);
}
.stack-layer.common .layer-tag {
    color: var(--gold-primary);
    background: rgba(178, 140, 64, 0.2);
}

.stack-layer:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(var(--rgb-navy), 0.1);
    z-index: 2;
}

.stack-layer .layer-arrow {
    position: absolute;
    right: -50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-slate-dark);
    writing-mode: vertical-rl;
    display: none;
}

/* ===================================================
   STRUCTURING APPROACH — Interlocking cards
=================================================== */
.cs-structuring {
    padding: 120px 0;
    background: transparent;
}

.struct-card {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 40px 30px;
    border: 1px solid rgba(var(--rgb-navy), 0.05);
    box-shadow: 0 3px 15px rgba(var(--rgb-navy), 0.03);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.struct-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.struct-card:hover::before {
    transform: scaleX(1);
}

.struct-card .struct-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(178, 140, 64, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: all 0.4s ease;
}

.struct-card .struct-icon i {
    font-size: 22px;
    color: var(--gold-primary);
    transition: all 0.3s;
}

.struct-card:hover .struct-icon {
    background: var(--gold-primary);
    box-shadow: 0 10px 25px rgba(178, 140, 64, 0.3);
    transform: scale(1.1);
}

.struct-card:hover .struct-icon i {
    color: #fff;
}

.struct-card h4 {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.struct-card p {
    font-size: 15px;
    color: var(--text-slate);
    line-height: 1.7;
    margin: 0;
}

.struct-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 55px rgba(var(--rgb-navy), 0.08);
    border-color: rgba(178, 140, 64, 0.15);
}

/* ===================================================
   INVESTMENT APPLICATIONS — Pill grid
=================================================== */
.cs-applications {
    padding: 120px 0;
    background: var(--bg-white);
}

.app-pill {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-white);
    border: 1px solid rgba(var(--rgb-navy), 0.04);
    border-radius: 60px;
    padding: 20px 30px;
    margin-bottom: 14px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-pill .pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold-primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.app-pill h5 {
    font-family: "Outfit", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.app-pill:hover {
    background: var(--bg-navy);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(var(--rgb-navy), 0.12);
}

.app-pill:hover h5 {
    color: #fff;
}
.app-pill:hover .pill-dot {
    background: var(--gold-primary);
    transform: scale(1.4);
}

/* ===================================================
   DEAL PROFILE — Dark data cells
=================================================== */
.cs-deal {
    padding: 120px 0;
    background: linear-gradient(
        165deg,
        var(--bg-navy-dark) 0%,
        var(--bg-navy) 50%,
        var(--bg-navy-muted) 100%
    );
}

.deal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    border-radius: 18px;
    overflow: hidden;
}

.deal-cell {
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    transition: background 0.4s ease;
    position: relative;
}

.deal-cell:hover {
    background: rgba(178, 140, 64, 0.05);
}

.deal-cell .cell-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(178, 140, 64, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: all 0.4s ease;
}

.deal-cell:hover .cell-ico {
    background: var(--gold-primary);
    box-shadow: 0 8px 20px rgba(178, 140, 64, 0.25);
}

.deal-cell .cell-ico i {
    font-size: 18px;
    color: var(--gold-primary);
    transition: color 0.3s;
}
.deal-cell:hover .cell-ico i {
    color: #fff;
}

.deal-cell h5 {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.deal-cell .cell-sub {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* ===================================================
   ADVANTAGE — Ribbon cards
=================================================== */
.cs-advantage {
    padding: 120px 0;
    background: var(--bg-white);
}

.adv-ribbon {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid rgba(var(--rgb-navy), 0.05);
    border-radius: 16px;
    padding: 35px 30px;
    margin-bottom: 16px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(var(--rgb-navy), 0.02);
}

.adv-ribbon .ribbon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), #d4a84e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(178, 140, 64, 0.25);
    transition: all 0.4s ease;
}

.adv-ribbon .ribbon-badge i {
    font-size: 22px;
    color: #fff;
}

.adv-ribbon .ribbon-body h4 {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.adv-ribbon .ribbon-body p {
    font-size: 15px;
    color: var(--text-slate);
    margin: 0;
    line-height: 1.6;
}

.adv-ribbon:hover {
    transform: translateX(10px);
    box-shadow: 0 20px 50px rgba(var(--rgb-navy), 0.08);
    border-color: rgba(178, 140, 64, 0.2);
}

.adv-ribbon:hover .ribbon-badge {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 30px rgba(178, 140, 64, 0.35);
}

/* ===================================================
   PROCESS — Connected step flow
=================================================== */
.cs-process {
    padding: 120px 0;
    background: transparent;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.process-step .step-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(var(--rgb-navy), 0.15);
}

.process-step .step-circle span {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-primary);
}

.process-step h4 {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-slate);
    line-height: 1.6;
    margin: 0;
}

.process-step:hover .step-circle {
    background: var(--gold-primary);
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(178, 140, 64, 0.3);
}

.process-step:hover .step-circle span {
    color: #fff;
}

.process-connector {
    position: absolute;
    top: 45px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(178, 140, 64, 0.2),
        rgba(178, 140, 64, 0.05)
    );
    z-index: 1;
}

/* ===================================================
   SHARED SECTION HEADER STYLE
=================================================== */
.cs-label {
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: block;
}

.cs-heading {
    font-family: "Outfit", sans-serif;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.cs-heading.dark {
    color: var(--text-dark);
}
.cs-heading.light {
    color: var(--text-dark);
}

.cs-desc {
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
}

.cs-desc.dark {
    color: var(--text-slate);
}
.cs-desc.light {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================================
   RESPONSIVE
=================================================== */
/* Capability Grid */
.capability-card {
    background: var(--bg-white);
    border: 1px solid rgba(var(--rgb-navy), 0.06);
    border-radius: 18px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
}
.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(var(--rgb-navy), 0.08);
}
.capability-icon {
    width: 60px;
    height: 60px;
    background: rgba(178, 140, 64, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--gold-primary);
    font-size: 24px;
}
.capability-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.capability-card p {
    font-size: 15px;
    color: var(--text-slate);
    line-height: 1.6;
    margin: 0;
}

/* Transaction Types */
.type-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
}
.type-box:hover {
    background: rgba(178, 140, 64, 0.05);
    border-color: var(--gold-primary);
    transform: scale(1.05);
}
.type-box i {
    font-size: 30px;
    color: var(--gold-primary);
    margin-bottom: 15px;
    display: block;
}
.type-box h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Risk Cards */
.risk-card-premium {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(var(--rgb-navy), 0.05);
    box-shadow: 0 4px 20px rgba(var(--rgb-navy), 0.02);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.risk-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(var(--rgb-navy), 0.1);
}
.risk-card-premium .risk-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(178, 140, 64, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--gold-primary);
    font-size: 24px;
}

@media (max-width: 991px) {
    .cs-hero h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }
    .cs-heading {
        font-size: 36px;
    }
    .deal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-connector {
        display: none;
    }
    .cs-solution-block {
        flex-direction: column;
        gap: 15px;
        padding: 30px 25px;
    }
    .cs-solution-block .sol-num {
        font-size: 40px;
    }
    .stack-visual {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .cs-hero {
        min-height: 50vh;
        padding: 100px 0 90px;
    }
    .cs-hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }
    .cs-heading {
        font-size: 30px;
        letter-spacing: -1px;
    }
    .deal-grid {
        grid-template-columns: 1fr;
    }
}
