body.cartline-core .cl-button--primary,
body.cartline-core .cl-button--light {
    color: #111111;
}

body.cartline-core .cl-button--primary:hover,
body.cartline-core .cl-button--light:hover {
    color: #111111;
}

/* Launch homepage: compact router layout */
.cl-header__main-inner,
.cl-header__main-inner--minimal {
    min-height: 76px;
}

.cl-header__main-inner--minimal {
    justify-content: space-between;
}

.cl-header__actions {
    margin-left: auto;
}

.cl-language-switch {
    color: #aeb8c4;
    font-weight: 700;
    white-space: nowrap;
}

.cl-language-switch a {
    color: #aeb8c4;
    text-decoration: none;
}

.cl-language-switch a.is-active,
.cl-language-switch a:hover {
    color: #ffffff;
}

/* Keep the canonical GitHub logo artwork; adjust render size only. */
body.cartline-core .cl-brand-logo--header {
    width: 220px !important;
    height: 55px !important;
    max-width: none !important;
    max-height: none !important;
}

body.cartline-core .cl-brand-logo--footer {
    width: 230px !important;
    height: 58px !important;
    max-width: none !important;
    max-height: none !important;
}

.cl-hero {
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.cl-hero__launch {
    display: block;
}

.cl-hero__launch .cl-hero__copy {
    max-width: 880px;
}

.cl-hero__launch .cl-hero__copy h1 {
    margin-bottom: 1.25rem;
}

.cl-hero__launch .cl-hero__copy p {
    max-width: 720px;
    margin-bottom: 0;
}

.cl-section--verticals {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.cl-vertical-grid {
    gap: 1.25rem;
    align-items: start;
}

.cl-vertical-column {
    min-width: 0;
}

.cl-vertical-card {
    min-height: 320px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cl-vertical-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 124, 0, .72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .26);
}

.cl-vertical-card h2 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    margin-bottom: .8rem;
}

.cl-vertical-card strong {
    margin-top: 1.25rem;
    color: #ff9a3c;
}

.cl-brand-plates {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .8rem;
}

.cl-brand-plates span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .42rem .72rem;
    border: 1px solid #2b3948;
    border-radius: 8px;
    background: #101923;
    color: #dce3ea;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
}

.cl-home-trust {
    border-top: 1px solid #202b38;
    border-bottom: 1px solid #202b38;
    background: #0b131d;
}

/* Explicit selectors make the live WordPress result resistant to legacy/theme CSS collisions. */
body.cartline-core .cl-home-trust .cl-home-trust__grid {
    width: min(calc(100% - 2rem), var(--cl-max));
    min-height: 86px;
    margin-inline: auto;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: center;
}

body.cartline-core .cl-home-trust .cl-home-trust__grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 1rem 1.5rem;
    text-align: center;
}

body.cartline-core .cl-home-trust .cl-home-trust__grid > div + div {
    border-left: 1px solid #263241;
}

body.cartline-core .cl-home-trust .cl-home-trust__grid strong {
    color: #f5f7fa;
    font-size: .95rem;
}

/* Footer follows the existing cartline.ro information structure; only the canonical Cartline logo is added. */
.cl-footer__grid--legacy {
    grid-template-columns: minmax(280px, 1.4fr) minmax(190px, .75fr) minmax(260px, 1fr);
    gap: 3rem;
    align-items: start;
}

.cl-footer__brand p + p {
    margin-top: .45rem;
}

.cl-footer__contact li {
    color: #9eabb9;
}

@media (max-width: 900px) {
    .cl-footer__grid--legacy {
        grid-template-columns: 1fr 1fr;
    }

    .cl-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .cl-header__main-inner,
    .cl-header__main-inner--minimal {
        min-height: 70px;
        gap: .55rem;
    }

    .cl-header__actions {
        margin-left: 0;
    }

    .cl-language-switch {
        font-size: .78rem;
    }

    body.cartline-core .cl-brand-logo--header {
        width: 170px !important;
        height: 43px !important;
    }

    body.cartline-core .cl-brand-logo--footer {
        width: 210px !important;
        height: 53px !important;
    }

    .cl-hero {
        padding: 3.25rem 0 2.75rem;
    }

    .cl-hero__launch .cl-hero__copy h1 {
        font-size: clamp(2.55rem, 14vw, 4rem);
    }

    .cl-hero__actions .cl-button {
        width: 100%;
    }

    .cl-vertical-grid {
        grid-template-columns: 1fr;
    }

    .cl-vertical-card {
        min-height: 250px;
        padding: 1.5rem;
    }

    .cl-brand-plates {
        gap: .4rem;
        margin-top: .65rem;
    }

    .cl-brand-plates span {
        min-height: 30px;
        padding: .38rem .62rem;
        font-size: .74rem;
    }

    body.cartline-core .cl-home-trust .cl-home-trust__grid {
        grid-template-columns: 1fr !important;
    }

    body.cartline-core .cl-home-trust .cl-home-trust__grid > div {
        min-height: 54px;
        padding: .8rem 1rem;
    }

    body.cartline-core .cl-home-trust .cl-home-trust__grid > div + div {
        border-left: 0;
        border-top: 1px solid #263241;
    }

    .cl-footer__grid--legacy {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .cl-footer__brand {
        grid-column: auto;
    }
}
