/*
 * Footer — Figma Component 20 (desktop 405px, node 2156:2252) / Component 74 (mobile stacked,
 * node 2431:4903). Column headers 12px BoldItalic red; links 14px Medium #e4dedb, hover underline.
 */
.pv-footer {
    background: var(--sodri-raudona);
    color: var(--sub);
    padding-top: var(--space-7);
}

.pv-footer__grid {
    display: grid;
    /* Figma column starts x295/682/877/1170: col1 (logo) a touch wider so "PRIMO VINO" lands at 682;
       col1+col2 sum kept at 2.0 so the NAUDINGA/REKVIZITAI columns stay put. */
    grid-template-columns: 1.36fr .64fr 1fr 1fr;
    gap: var(--space-5);
    align-items: start;
}

.pv-footer__logo {
    width: 267px;
    height: auto;
}

.pv-footer__heading {
    /* Figma: heading (y6605) → first link (y6632) = 27px; the 12px heading has lh15.4, not the
       inherited body 24px, else the whole column drifts down. */
    margin-bottom: var(--space-2);
    line-height: 1.28;
    /* Design says --ryski-raudona — 2.9:1 on this bg, fails WCAG AA (PLAN §12 deferred #33) */
    color: var(--ryski-raudona-tint);
    font-size: 12px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.pv-footer__col ul {
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: 0;
}

/* Link/row pitch 30px */
.pv-footer__col li {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
}

.pv-footer__col a {
    color: var(--sub);
    text-decoration: none;
}

.pv-footer__col a:hover,
.pv-footer__col a:focus-visible {
    text-decoration: underline; /* hover pattern shown on "Dovanų rinkiniai" in the frame */
}

.pv-footer__requisites li {
    /* Narrow enough that "LT-" can't fit on line 1, so the address breaks after the comma and the
       postcode "LT-44244 Kaunas" stays whole on line 2 (Figma). */
    max-width: 230px;
}

.pv-footer__social {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Component 20 draws the three icons in one static state, so the comp gives no hover treatment —
   but they are links like every other footer link and were the only ones with no feedback at all.
   The column links answer with an underline, which is meaningless on a glyph, so the icons dip in
   opacity instead, on the same .2s ease curve the buttons use (base.css). Reduced motion is already
   handled by the global safety net. */
.pv-footer__social a {
    display: inline-flex;
    align-items: center;
    opacity: 1;
    transition: opacity .2s ease;
}

.pv-footer__social a:hover,
.pv-footer__social a:focus-visible {
    opacity: .7;
}

.pv-footer__divider {
    border: 0;
    border-top: 1px solid var(--linija-tamsi);
    /* Figma: tallest column bottom → divider (y6869) ≈ 40px. */
    margin: var(--space-4) 0 0;
}

.pv-footer__divider--brand {
    display: none;
}

.pv-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    /* Figma: divider (6869) → bottom row (6889) = 20px; bottom row → footer end (6946) = 39px. */
    padding: 20px 0 39px;
    font-size: 14px;
    font-weight: 500;
}

.pv-footer__payments {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .pv-footer {
        padding-top: 40px;
    }

    .pv-footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .pv-footer__logo {
        width: 207px;
        margin-inline: auto;
    }

    /* Component 74: lockup bottom → rule 39px, rule → first heading 38px. The 24px grid gap is
       already inside both distances, so only the remainder is spent here. */
    .pv-footer__divider--brand {
        display: block;
        margin: 15px 0 14px;
    }

    .pv-footer__social {
        gap: var(--space-4);
    }

    .pv-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}
