/* ============================================================
   Alfalend Footer – Frontend Styles
   v1.0.0
   ============================================================ */

/* ── CSS custom properties ── */

.af-footer {
    --af-brown:       #3D1A00;
    --af-green:       #7DC242;
    --af-green-dim:   rgba(125, 194, 66, 0.22);
    --af-white:       var(--af-on-surface-strong, #ffffff);
    --af-muted:       var(--af-on-surface-strong-soft, rgba(255, 255, 255, 0.62));
    --af-faint:       var(--af-on-surface-strong-faint, rgba(255, 255, 255, 0.36));
    --af-divider:     var(--af-on-surface-strong-faint, rgba(255, 255, 255, 0.07));
    --af-bar-bg:      rgba(0, 0, 0, 0.22);
    --af-font:        'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --af-max-w:       1280px;
}

/* ── Reset inside footer ── */

.af-footer *,
.af-footer *::before,
.af-footer *::after {
    box-sizing: border-box;
    margin:     0;
    padding:    0;
}

/* ── Outer wrapper ── */

.af-footer {
    background-color: var(--af-surface-strong, var(--af-brown));
    border-top: 4px solid var(--af-accent-border, transparent);
    color:            var(--af-white);
    font-family:      var(--af-font);
    font-size:        14px;
    line-height:      1.65;
    width:            100%;
}

/* ── Inner grid ── */

.af-footer__inner {
    display:               grid;
    grid-template-columns: 190px repeat(3, 1fr);
    gap:                   48px;
    max-width:             var(--af-max-w);
    margin:                0 auto;
    padding:               52px 40px 44px;
    align-items:           start;
}

/* ── Brand column ── */

.af-footer__brand {
    display:        flex;
    flex-direction: column;
    gap:            14px;
    padding-right:  24px;
    border-right:   1px solid var(--af-divider);
}

.af-footer__logo-link {
    display:   block;
    max-width: 140px;
}

.af-footer__logo {
    width:   100%;
    height:  auto;
    display: block;
    /* Invert dark logo for dark background.
       Replace with a white-version logo URL in admin to avoid this. */
    filter:  brightness(0) invert(1);
}

.af-footer__site-name {
    font-size:       22px;
    font-weight:     700;
    color:           var(--af-white);
    text-decoration: none;
    line-height:     1.15;
    letter-spacing:  -0.3px;
}

.af-footer__tagline {
    color:       var(--af-muted);
    font-size:   12.5px;
    line-height: 1.55;
    max-width:   155px;
}

/* ── City column ── */

.af-footer__col {
    display:        flex;
    flex-direction: column;
    gap:            0;
}

.af-footer__city-head {
    font-family:     'Poppins', var(--af-font);
    font-size:       11px;
    font-weight:     700;
    text-transform:  uppercase;
    letter-spacing:  2px;
    color:           var(--af-green);
    margin-bottom:   18px;
    padding-bottom:  12px;
    border-bottom:   1px solid var(--af-green-dim);
}

/* ── Shop block ── */

.af-footer__shop {
    margin-bottom: 4px;
}

/* ── Icon rows ── */

.af-footer__row {
    display:       flex;
    align-items:   flex-start;
    gap:           8px;
    margin-bottom: 6px;
    color:         var(--af-muted);
    font-size:     13.5px;
}

.af-footer__row span {
    line-height: 1.45;
}

.af-footer__row a {
    color:           var(--af-muted);
    text-decoration: none;
    transition:      color 0.16s ease;
    line-height:     1.45;
}

.af-footer__row a:hover {
    color: var(--af-green);
}

/* ── Icons ── */

.af-ico {
    width:      14px;
    height:     14px;
    flex-shrink: 0;
    margin-top:  3px;
    color:      var(--af-green);
    fill:       var(--af-green);
    opacity:    0.9;
}

/* ── Projektimüük section ── */

.af-footer__proj {
    border-top:  1px solid var(--af-divider);
    padding-top: 18px;
    margin-top:  16px;
}

.af-footer__proj-label {
    font-family:     'Poppins', var(--af-font);
    font-size:       10px;
    font-weight:     700;
    text-transform:  uppercase;
    letter-spacing:  1.8px;
    color:           var(--af-faint);
    margin-bottom:   12px;
}

.af-footer__proj-contact {
    margin-bottom: 2px;
}

.af-footer__proj-name {
    display:       block;
    font-weight:   600;
    font-size:     13.5px;
    color:         rgba(255, 255, 255, 0.90);
    margin-bottom: 5px;
}

.af-footer__proj-sep {
    height:     1px;
    background: var(--af-divider);
    margin:     12px 0;
}

/* ── Bottom bar ── */

.af-footer__bar {
    background:  var(--af-bar-bg);
    border-top:  1px solid var(--af-divider);
    text-align:  center;
    padding:     14px 40px;
}

.af-footer__copy {
    font-size: 12px;
    color:     var(--af-faint);
}

/* ── Responsive: tablet 2 cols ── */

@media (max-width: 1100px) {
    .af-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap:     32px;
        padding: 44px 32px 36px;
    }

    .af-footer__brand {
        grid-column:    1 / -1;
        flex-direction: row;
        align-items:    center;
        flex-wrap:      wrap;
        gap:            20px;
        padding-right:  0;
        border-right:   none;
        border-bottom:  1px solid var(--af-divider);
        padding-bottom: 28px;
        margin-bottom:  4px;
    }

    .af-footer__tagline {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .af-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap:     24px;
        padding: 36px 24px 28px;
    }
}

/* ── Responsive: mobile 1 col ── */

@media (max-width: 560px) {
    .af-footer__inner {
        grid-template-columns: 1fr;
        gap:     28px;
        padding: 32px 20px 24px;
    }

    .af-footer__brand {
        flex-direction: column;
        align-items:    flex-start;
    }

    .af-footer__bar {
        padding: 12px 20px;
    }
}
