/*
 * Final visual corrections for the approved Lenterra landing page.
 * Loaded after the base and reference styles so these rules win cleanly.
 */

/* General proportions */
.reference-home .container,
.corporate-light-site .site-footer .container {
    max-width: 1240px;
}

.reference-section-heading {
    max-width: 820px;
    margin-bottom: 3rem;
}

.reference-section-heading p {
    font-size: .98rem;
}

/* Solution cards: improve readability and visual weight */
.build-grid {
    gap: 18px;
}

.build-card {
    min-height: 310px;
    padding: 28px 24px;
    border-radius: 18px;
}

.build-card-icon {
    width: 46px;
    height: 46px;
    font-size: .68rem;
}

.build-card h3 {
    font-size: 1.08rem;
}

.build-card p {
    min-height: 126px;
    font-size: .82rem;
    line-height: 1.75;
}

.build-card a {
    font-size: .78rem;
}

/* Why Lenterra: content was too small and visually drowned */
.why-reference {
    padding: 54px 0 88px;
}

.why-reference-panel {
    padding: 52px 48px;
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(25, 61, 120, .075);
}

.why-reference-title h2 {
    max-width: 820px;
    margin-bottom: 2.6rem;
    font-size: clamp(2.2rem, 3.7vw, 3.25rem);
    line-height: 1.08;
}

.why-grid {
    max-width: 1040px;
    gap: 0;
}

.why-item {
    min-width: 0;
    padding: 0 24px;
}

.why-item-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    border-radius: 13px;
    font-size: .7rem;
}

.why-item h3 {
    margin-bottom: .65rem;
    font-size: .94rem;
    line-height: 1.35;
}

.why-item p {
    max-width: 185px;
    font-size: .76rem;
    line-height: 1.72;
}

.why-reference-panel::after {
    width: 250px;
    height: 250px;
    right: -26px;
    bottom: -52px;
    opacity: .1;
}

/* Process timeline: larger labels and descriptions */
.reference-process {
    padding: 86px 0 104px;
}

.process-line {
    gap: 26px;
    margin-top: 3rem;
}

.process-line::before {
    top: 37px;
}

.process-step-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 1.15rem;
    font-size: .78rem;
    border-width: 2px;
}

.process-step strong {
    font-size: .78rem;
}

.process-step h3 {
    margin: .25rem 0 .65rem;
    font-size: .94rem;
}

.process-step p {
    max-width: 175px;
    margin-inline: auto;
    font-size: .73rem;
    line-height: 1.68;
}

/* CTA: fix the severely collapsed text column */
.reference-home .site-cta {
    padding: 0 0 96px;
}

.reference-home .cta-panel {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, auto) !important;
    align-items: center !important;
    justify-content: initial !important;
    gap: clamp(32px, 5vw, 72px) !important;
    min-height: 300px;
    padding: clamp(48px, 6vw, 76px) !important;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 18%, rgba(0, 183, 240, .23), transparent 31%),
        linear-gradient(125deg, #071f4e 0%, #0a3477 58%, #0c448e 100%);
}

.reference-home .cta-copy {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 760px !important;
    flex: none !important;
}

.reference-home .cta-copy .eyebrow {
    margin-bottom: 1rem;
    color: #8de7ff;
}

.reference-home .cta-panel h2 {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 0 1rem !important;
    font-size: clamp(2.5rem, 4.5vw, 4.4rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.052em !important;
    text-wrap: balance;
}

.reference-home .cta-panel p {
    width: 100% !important;
    max-width: 620px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, .76) !important;
    font-size: 1rem !important;
    line-height: 1.78 !important;
}

.reference-home .cta-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    flex-wrap: wrap;
    gap: 12px !important;
    width: auto !important;
    min-width: 300px;
    flex: 0 0 auto !important;
}

.reference-home .cta-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: .78rem 1.35rem;
    border-radius: 10px;
    white-space: nowrap;
    font-weight: 750;
}

.reference-home .cta-actions .btn-ghost {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    background: rgba(255, 255, 255, .04);
}

.reference-home .cta-actions .btn-ghost:hover {
    border-color: #fff;
    background: #fff;
    color: #0b3476;
}

/* Footer: improve legibility, spacing, and hierarchy */
.corporate-light-site .site-footer .container {
    padding-top: 4.25rem !important;
    padding-bottom: 2rem !important;
}

.corporate-light-site .footer-main-row {
    align-items: flex-start;
    padding-top: 0;
}

.corporate-light-site .footer-brand {
    margin-bottom: 1.25rem !important;
}

.corporate-light-site .brand-logo-footer {
    width: 78px;
    height: 66px;
}

.corporate-light-site .footer-brand strong {
    font-size: 1.12rem;
}

.corporate-light-site .footer-brand small {
    margin-top: .35rem;
    font-size: .56rem;
}

.corporate-light-site .footer-description {
    max-width: 310px;
    font-size: .84rem;
    line-height: 1.75;
}

.corporate-light-site .site-footer h2 {
    margin-bottom: 1.15rem;
    font-size: .92rem;
    font-weight: 800;
}

.corporate-light-site .site-footer a {
    margin: .62rem 0;
    color: rgba(255, 255, 255, .68);
    font-size: .81rem;
    line-height: 1.45;
}

.corporate-light-site .site-footer a:hover {
    color: #fff;
}

.corporate-light-site .footer-badges span {
    font-size: .68rem;
}

.corporate-light-site .footer-bottom {
    margin-top: 3rem;
    padding-top: 1.35rem;
    font-size: .76rem;
}

/* Large tablets and smaller desktop */
@media (max-width: 1199.98px) {
    .build-card {
        min-height: 280px;
    }

    .why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 20px;
    }

    .why-item {
        padding: 0;
        border-right: 0;
    }

    .why-item p {
        max-width: 260px;
    }

    .reference-home .cta-panel {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .build-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .build-card {
        min-height: 270px;
    }

    .process-line {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 24px;
    }

    .process-step p {
        max-width: 220px;
    }

    .reference-home .cta-panel {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }

    .reference-home .cta-copy,
    .reference-home .cta-panel h2,
    .reference-home .cta-panel p {
        max-width: 760px !important;
    }

    .reference-home .cta-actions {
        justify-content: flex-start !important;
        min-width: 0;
    }

    .corporate-light-site .footer-description {
        max-width: 500px;
    }
}

/* Mobile landscape / small tablet */
@media (max-width: 767.98px) {
    .reference-section-heading {
        margin-bottom: 2.25rem;
    }

    .build-grid {
        grid-template-columns: 1fr;
    }

    .build-card {
        min-height: auto;
    }

    .build-card p {
        min-height: auto;
    }

    .why-reference-panel {
        padding: 38px 28px;
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reference-home .cta-panel {
        padding: 44px 30px !important;
    }

    .reference-home .cta-panel h2 {
        font-size: clamp(2.35rem, 9vw, 3.5rem) !important;
    }

    .corporate-light-site .footer-main-row {
        row-gap: 2.5rem !important;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-item p {
        max-width: none;
    }

    .process-line {
        grid-template-columns: 1fr;
    }

    .process-step {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 16px;
        text-align: left;
    }

    .process-step-icon {
        grid-row: 1 / 5;
        width: 68px;
        height: 68px;
        margin: 0;
    }

    .process-step p {
        max-width: none;
        margin: 0;
    }

    .reference-home .cta-panel {
        padding: 38px 24px !important;
        border-radius: 22px;
    }

    .reference-home .cta-panel h2 {
        font-size: clamp(2.15rem, 12vw, 3rem) !important;
    }

    .reference-home .cta-actions {
        width: 100% !important;
    }

    .reference-home .cta-actions .btn {
        width: 100%;
    }

    .corporate-light-site .site-footer .container {
        padding-top: 3.25rem !important;
    }

    .corporate-light-site .footer-bottom {
        display: grid;
        gap: .6rem;
    }
}
