/*
 * Clevo Footer Styles
 * Scope: .clevo-footer
 *
 * All variables are scoped to .clevo-footer so this stylesheet
 * is safe to include on any page alongside other stylesheets.
 *
 * @package clevo
 */

/* ── TOKENS ─────────────────────────────────────────────────────────── */
.clevo-footer {
    --cf-brand: #2563eb;
    /* Royal Blue – matches LP theme */
    --cf-brand-dark: #1e40af;
    --cf-text: #94a3b8;
    /* Slate 400 – readable on dark bg */
    --cf-text-heading: #f1f5f9;
    /* Slate 100 */
    --cf-bg: #0f172a;
    /* Slate 900 – deep dark */
    --cf-bg-top: #1e293b;
    /* Slate 800 – slightly lighter for badges */
    --cf-border: rgba(255, 255, 255, 0.08);
    --cf-radius: 10px;
    --cf-container: 1340px;
    --cf-font: 'Inter', system-ui, -apple-system, sans-serif;
    --cf-font-heading: 'Outfit', 'Inter', sans-serif;
}

/* ── RESET (scoped) ─────────────────────────────────────────────────── */
.clevo-footer *,
.clevo-footer *::before,
.clevo-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.clevo-footer {
    font-family: var(--cf-font);
    font-weight: 400;
    letter-spacing: 0;
    background-color: var(--cf-bg);
    color: var(--cf-text);
    font-size: 0.9rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.clevo-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Remove focus ring on mouse/touch click — preserve it for keyboard nav */
.clevo-footer a:focus:not(:focus-visible),
.clevo-footer button:focus:not(:focus-visible) {
    outline: none;
}

.clevo-footer a:hover {
    color: var(--cf-text-heading);
}

/* ── CONTAINER ──────────────────────────────────────────────────────── */
.cf-container {
    width: 100%;
    max-width: var(--cf-container);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ── TRUST BADGES BAR ───────────────────────────────────────────────── */
.cf-badges-bar {
    background-color: var(--cf-bg-top);
    border-bottom: 1px solid var(--cf-border);
    padding: 1.25rem 0;
}

.cf-badges-bar .cf-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 5rem;
}

.cf-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--cf-text);
    font-weight: 500;
}

.cf-badge__icon {
    color: var(--cf-brand);
    display: flex;
    flex-shrink: 0;
}

/* ── MAIN FOOTER ────────────────────────────────────────────────────── */
.cf-main {
    padding: 3.5rem 0 2.5rem;
}

.cf-main__inner {
    display: grid;
    gap: 2.5rem;
    /* Brand column + up to 3 nav columns */
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .cf-main__inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .cf-main__inner {
        grid-template-columns: 2fr repeat(3, 1fr);
        align-items: start;
    }
}

/* ── BRAND COLUMN ───────────────────────────────────────────────────── */
.cf-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cf-brand__logo {
    display: inline-flex;
    color: var(--cf-text-heading);
}

.cf-brand__wordmark {
    font-family: var(--cf-font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--cf-text-heading);
}

.cf-brand__tagline {
    font-size: 0.875rem;
    color: var(--cf-text);
    max-width: 240px;
    line-height: 1.6;
}

/* ── SOCIAL ICONS ───────────────────────────────────────────────────── */
.cf-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.cf-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--cf-border);
    color: var(--cf-text);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.cf-social__link:hover {
    background-color: var(--cf-brand);
    border-color: var(--cf-brand);
    color: #fff;
}

/* ── NAV COLUMNS ────────────────────────────────────────────────────── */
.cf-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cf-col__heading {
    font-family: var(--cf-font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cf-text-heading);
}

.cf-col__info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--cf-text);
}

.cf-col__info-line {
    margin: 0;
    line-height: 1.5;
}

.cf-col__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cf-col__link {
    color: var(--cf-text);
    font-size: 0.9rem;
    display: inline-block;
    position: relative;
    padding-bottom: 1px;
}

.cf-col__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--cf-brand);
    transition: width 0.25s ease;
}

.cf-col__link:hover {
    color: var(--cf-text-heading);
}

.cf-col__link:hover::after {
    width: 100%;
}

/* ── TRUSTPILOT-STYLE RATING WIDGET ────────────────────────────────── */
.cf-tp {
    margin-top: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cf-tp__stars {
    display: flex;
    gap: 3px;
}

.cf-tp__star {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cf-tp__star svg {
    width: 26px;
    height: 26px;
    fill: #00b67a;
    display: block;
}

/* Half star: grey right half via inline SVG gradient */
.cf-tp__star--half svg {
    fill: url(#cf-half-grad);
}

.cf-tp__label {
    font-size: 0.78rem;
    color: var(--cf-text-muted);
    margin: 0;
    line-height: 1.4;
}

.cf-tp__label strong {
    color: var(--cf-text);
    font-weight: 600;
}

/* ── BOTTOM BAR ─────────────────────────────────────────────────────── */
.cf-bottom {
    border-top: 1px solid var(--cf-border);
    padding: 1.25rem 0;
}

.cf-bottom__inner {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-end;
    text-align: right;
}

@media (min-width: 600px) {
    .cf-bottom__inner {
        flex-direction: row;
        justify-content: flex-end;
        text-align: right;
    }
}

.cf-bottom__copy,
.cf-bottom__credit {
    font-size: 0.8rem;
    color: var(--cf-text);
    line-height: 1.5;
}
