/* ─── Commercial ────────────────────────────────────────────
   Ported 1:1 from components/Commercial.tsx.
   Desktop: 1fr/1.1fr grid inside content-default. Left = photo
   (552×640 aspect, rounded 40). Right = eyebrow + giant "~2 GW"
   stat row + headline + body + CTA. Section has rounded top-left
   corner that catches the testimonial section's bottom-right curve
   above. Mobile: stacked photo → text.
   ─────────────────────────────────────────────────────────── */

.block-commercial {
    position: relative;
    overflow: hidden;
    background: white;
    border-top-left-radius: 40px;
}

.block-commercial__inner {
    display: flex;
    flex-direction: column;
    padding: var(--section-py-sm) var(--section-px);
}
@media (min-width: 768px) {
    .block-commercial__inner {
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        gap: 64px;
        align-items: center;
        min-height: 720px;
        padding: 80px var(--section-px);
    }
}

/* ── Photo ── */
.block-commercial__photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 552 / 640;
    border-radius: 40px;
    overflow: hidden;
    background: var(--slate-100);
}
@media (min-width: 768px) {
    .block-commercial__photo-wrap {
        max-width: 552px;
    }
}
@media (max-width: 767px) {
    .block-commercial__photo-wrap {
        aspect-ratio: 4 / 5;
        border-radius: 20px;
        margin-bottom: 40px;
    }
}

.block-commercial__photo-inner {
    position: absolute;
    inset: 0;
}
.block-commercial__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.block-commercial__photo-caption {
    position: absolute;
    left: 43px;
    bottom: 37px;
    z-index: 2;
    color: var(--slate-50);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--label-md);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .block-commercial__photo-caption {
        left: 20px;
        bottom: 20px;
        font-size: var(--label-sm);
        letter-spacing: 1.5px;
    }
}

/* ── Copy column ── */
.block-commercial__copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.block-commercial__eyebrow {
    color: var(--signal-blue);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--label-md);
    letter-spacing: 2.42px;
    text-transform: uppercase;
}
@media (max-width: 767px) {
    .block-commercial__eyebrow {
        letter-spacing: 2px;
    }
}

/* Stat row — giant numeral + smaller unit/caption stack */
.block-commercial__stat-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
@media (max-width: 767px) {
    .block-commercial__stat-row {
        gap: 12px;
        align-items: flex-end;
        margin-top: -12px;
    }
}

.block-commercial__stat-value {
    color: var(--ssm-blue);
    font-family: var(--font-display);
    font-weight: 700;
    /* Bespoke tight clamp — 96 floor, peaks 180 at the ≥1920 design ceiling.
       Token-scaled stats clamp down too far for this hero pair. */
    font-size: clamp(96px, calc(7vw + 24px), 180px);
    line-height: 0.85;
    letter-spacing: -3px;
}
@media (max-width: 767px) {
    .block-commercial__stat-value {
        font-size: 96px;
    }
}

.block-commercial__stat-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 240px;
    padding-bottom: 4px;
}
@media (max-width: 767px) {
    .block-commercial__stat-meta {
        padding-bottom: 8px;
        max-width: none;
    }
}

.block-commercial__stat-unit {
    color: var(--slate-300);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, calc(2.5vw + 12px), 68px);
    line-height: 1;
}
@media (max-width: 767px) {
    .block-commercial__stat-unit {
        font-size: var(--display-xs);
    }
}

.block-commercial__stat-caption {
    margin: 0;
    color: var(--slate-500);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--label-lg);
    line-height: 1.55;
}
@media (max-width: 767px) {
    /* On mobile the caption renders below the stat row, not alongside. */
    .block-commercial__stat-caption {
        flex-basis: 100%;
        margin-top: 8px;
    }
}

/* Headline + body */
.block-commercial__headline-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block-commercial__headline {
    /* Source: components/Commercial.tsx — display-sm, lh 0.95, ls -1px, ssm-blue */
    margin: 0;
    color: var(--ssm-blue);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--display-sm);
    line-height: 0.95;
    letter-spacing: -1px;
    text-transform: uppercase;
}
.block-commercial__headline p {
    margin: 0;
    font: inherit;
    color: inherit;
}
@media (max-width: 767px) {
    .block-commercial__headline {
        font-size: var(--display-sm);
        line-height: 0.95;
        letter-spacing: -1px;
    }
}

.block-commercial__body {
    margin: 0;
    max-width: 480px;
    color: var(--slate-700);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--body-md);
    line-height: 1.65;
}
.block-commercial__body p {
    margin: 0;
    font: inherit;
    color: inherit;
}
.block-commercial__body p + p {
    margin-top: 12px;
}
@media (max-width: 767px) {
    .block-commercial__body {
        font-size: var(--body-sm);
    }
}

/* CTAs — bespoke pill, distinct from the global .btn system */
.block-commercial__ctas {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
@media (max-width: 767px) {
    .block-commercial__ctas {
        flex-direction: column;
    }
}

.block-commercial__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 22px;
    background: var(--ssm-blue);
    color: var(--slate-100);
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--label-lg);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 200ms;
}
.block-commercial__cta:hover {
    background: #042b6e;
}
@media (max-width: 767px) {
    .block-commercial__cta {
        height: 44px;
        width: 100%;
        padding: 0 24px;
    }
}
