/* ============================================
   MAIN STREET PAGE
   Program logos row + Locally Atchison Business Incubator section
   ============================================ */

/* ---------- Program logos (replaces the old combined logo image, 2026-10-13:
   Kansas Main Street issued a new logo; files live in images/main-street/) ---------- */
.ms-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-6) var(--space-10);
    /* .page-header has no top padding here, and the KMS artwork runs to its top edge,
       so without this the sticky site header's shadow looked like it clipped the logos */
    margin: 0 0 var(--space-6);
    padding-top: var(--space-10);
}

.ms-logos img {
    display: block;
    width: auto;
    height: 96px;
    object-fit: contain;
}

.ms-logos .ms-logo--msa {
    height: 78px;
}

@media (max-width: 640px) {
    .ms-logos {
        gap: var(--space-4) var(--space-6);
    }

    .ms-logos img {
        height: 68px;
    }

    .ms-logos .ms-logo--msa {
        height: 56px;
    }
}

.page-header .btn.ms-jump {
    margin-top: var(--space-5);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--chamber-red);
    border-color: var(--chamber-red);
    color: var(--white);
}

.page-header .btn.ms-jump:hover {
    background: var(--chamber-red-dark);
    border-color: var(--chamber-red-dark);
}

/* ---------- Business Incubator ---------- */
.incubator {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 110% -10%, rgba(39, 175, 165, 0.16), transparent 60%),
        radial-gradient(900px 420px at -10% 110%, rgba(196, 29, 21, 0.08), transparent 60%),
        var(--white);
    scroll-margin-top: 90px;
}

.incubator__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--space-10);
    align-items: center;
    margin-bottom: var(--space-12);
}

.incubator__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    background: rgba(30, 138, 130, 0.12);
    color: var(--chamber-teal-dark);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.incubator__title {
    margin: var(--space-4) 0 var(--space-4);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--chamber-slate-dark);
}

.incubator__title span {
    color: var(--chamber-teal);
}

.incubator__lead {
    font-size: var(--text-lg);
    color: var(--dark-gray);
    margin-bottom: var(--space-6);
    max-width: 60ch;
}

.incubator__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-5);
}

.incubator__note {
    font-size: var(--text-sm);
    color: var(--dark-gray);
}

/* Rent stair-step card */
.incubator__steps-card {
    background: var(--chamber-slate-dark);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
}

.incubator__steps-card h3 {
    color: var(--white);
    margin: 0 0 var(--space-1);
    font-size: var(--text-xl);
}

.incubator__steps-card > p {
    margin: 0 0 var(--space-6);
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-sm);
}

.rent-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: var(--space-3);
    height: 220px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rent-step {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    text-align: center;
}

.rent-step__bar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: var(--space-3);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: linear-gradient(180deg, var(--chamber-teal-bright), var(--chamber-teal-dark));
    color: var(--white);
}

.rent-step__pct {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    line-height: 1;
}

.rent-step__who {
    margin-top: var(--space-1);
    font-size: 0.7rem;
    opacity: 0.9;
    padding: 0 var(--space-1);
}

.rent-step--100 .rent-step__bar { height: 100%; }
.rent-step--50 .rent-step__bar { height: 55%; }
.rent-step--25 .rent-step__bar { height: 32%; }

.rent-step__months {
    margin-top: var(--space-2);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
}

.rent-step__split {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.incubator__steps-card .incubator__footnote {
    margin: var(--space-5) 0 0;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.65);
}

/* How it works timeline */
.incubator__how {
    margin-bottom: var(--space-12);
}

.incubator__subtitle {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--chamber-slate-dark);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: how;
}

.how-step {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(51, 79, 93, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5) var(--space-5);
    box-shadow: var(--shadow-card);
    counter-increment: how;
}

.how-step::before {
    content: counter(how);
    position: absolute;
    top: calc(-1 * var(--space-4));
    left: var(--space-5);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--chamber-red);
    color: var(--white);
    font-weight: var(--font-bold);
    box-shadow: 0 4px 10px rgba(196, 29, 21, 0.3);
}

.how-step h4 {
    margin: var(--space-2) 0 var(--space-2);
    color: var(--chamber-slate-dark);
}

.how-step p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--dark-gray);
}

/* Requirements + support */
.incubator__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.incubator__panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--chamber-teal);
}

.incubator__panel--support {
    border-top-color: var(--chamber-red);
}

.incubator__panel h3 {
    margin: 0 0 var(--space-4);
    color: var(--chamber-slate-dark);
    font-size: var(--text-xl);
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
}

.check-list li {
    position: relative;
    padding-left: var(--space-8);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(30, 138, 130, 0.14);
    color: var(--chamber-teal-dark);
    font-size: 0.8rem;
    font-weight: var(--font-bold);
}

.partner-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0 var(--space-5);
}

.partner-chip {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--off-white);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    color: var(--chamber-slate-dark);
}

/* Goals */
.incubator__goals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.goal-card {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--off-white);
}

.goal-card__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: var(--space-3);
}

.goal-card p {
    margin: 0;
    font-weight: var(--font-semibold);
    color: var(--chamber-slate-dark);
}

/* Closing call to action */
.incubator__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-8) var(--space-10);
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, var(--chamber-teal-dark), var(--chamber-slate));
    color: var(--white);
}

.incubator__cta h3 {
    margin: 0 0 var(--space-1);
    color: var(--white);
}

.incubator__cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.incubator__cta .btn {
    background: var(--white);
    color: var(--chamber-slate-dark);
    border-color: var(--white);
}

.incubator__cta .btn:hover {
    background: var(--off-white);
}

@media (max-width: 960px) {
    .incubator__hero,
    .incubator__details {
        grid-template-columns: 1fr;
    }

    .how-steps,
    .incubator__goals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: var(--space-8);
    }
}

@media (max-width: 560px) {
    .how-steps,
    .incubator__goals {
        grid-template-columns: 1fr;
    }

    .incubator__steps-card,
    .incubator__panel {
        padding: var(--space-6);
    }

    .incubator__cta {
        padding: var(--space-6);
    }

    .rent-steps {
        height: 190px;
    }
}

/* Larger call-to-action buttons (no btn--lg in global.css) */
.incubator .btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.incubator .btn--primary {
    background: var(--chamber-red);
    border-color: var(--chamber-red);
    color: var(--white);
}

.incubator .btn--primary:hover {
    background: var(--chamber-red-dark);
    border-color: var(--chamber-red-dark);
}


/* ---------- Main Street by the numbers ---------- */
.ms-stats {
    padding: var(--space-12) 0;
    background: linear-gradient(120deg, var(--chamber-slate-dark), var(--chamber-slate) 55%, var(--chamber-teal-dark));
    color: var(--white);
}

.ms-stats__title {
    text-align: center;
    color: var(--white);
    margin: 0 0 var(--space-8);
}

.ms-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.ms-stat {
    text-align: center;
    padding: var(--space-6) var(--space-4);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.ms-stat__icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: var(--space-3);
}

.ms-stat__value {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: var(--font-bold);
    line-height: 1.05;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.ms-stat__label {
    margin-top: var(--space-2);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-base);
}

@media (max-width: 760px) {
    .ms-stats__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}
