/*
 * Duru Flora — Global Footer CSS
 * Loaded by footer.php partial on every page.
 * Variables are defined in shop.css / home.css / blog.css;
 * we re-declare the ones needed here as fallbacks.
 */

:root {
    --forest:   #1a2e1e;
    --moss:     #2c4c3b;
    --sage:     #4a7c59;
    --forest:   #1a2e1e;
    --moss:     #2c4c3b;
    --sage:     #4a7c59;
    --ivory:    #ffffff;
    --cream:    #ffffff;
    --muted:    #a1b3a5;
    --f-display: 'Cinzel', Georgia, serif;
    --f-body:    'DM Sans', system-ui, sans-serif;
}


/* ── Footer shell ── */
.site-footer {
    background: var(--forest);
    padding: 64px 48px 36px;
    overflow: hidden;
}

/* ── Inner grid ── */
.footer-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 32px;
}

/* ── Brand column ── */
.footer-brand-name {
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.footer-brand-name span { color: var(--sage); }

.footer-tagline {
    font-size: 0.86rem;
    color: rgba(250, 248, 242, 0.45);
    line-height: 1.8;
    max-width: 240px;
}

/* ── Column headings ── */
.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 20px;
}

/* ── Column links ── */
.footer-col a {
    display: block;
    font-size: 0.86rem;
    color: rgba(250, 248, 242, 0.48);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.25s;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 24px;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    font-size: 0.78rem;
    color: rgba(250, 248, 242, 0.48);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-legal-links a:hover {
    color: var(--cream);
}

.footer-copy-row {
    text-align: right;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(250, 248, 242, 0.48);
}

/* ── Social & Contact Links ── */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--cream);
    font-size: 16px;
    transition: background 0.3s, transform 0.3s, color 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.social-link-btn:hover {
    background: var(--cream);
    color: var(--forest);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ── Footer Brand Hover & Visibility ── */
.footer-brand-mark img {
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Make the dark green logo visible on dark green footer by turning it light */
    filter: brightness(0) invert(1) opacity(0.9);
}
.footer-brand-mark img:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(0) invert(1) opacity(1) drop-shadow(0 4px 12px rgba(250, 248, 242, 0.15));
}

.footer-contact-link {
    display: flex;
    align-items: center;
    font-size: 0.86rem;
    color: rgba(250, 248, 242, 0.48);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.25s;
}

.footer-contact-link:hover { color: var(--cream); }

.footer-address {
    display: flex;
    align-items: flex-start;
    font-size: 0.86rem;
    color: rgba(250, 248, 242, 0.48);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ── Newsletter Form ── */
.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-newsletter-form input {
    width: 100%;
    padding: 13px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,0.25);
    background: #ffffff !important;
    color: #1a2e1e !important;
    font-family: var(--f-body);
    font-size: 14.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: #a4906d;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.footer-newsletter-form button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--sage);
    color: var(--ivory);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter-form button:hover {
    background: #5b966d;
}

/* ── Trust Indicators ── */
.footer-trust-indicators {
    max-width: 1220px;
    margin: 0 auto 32px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(250, 248, 242, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-item i {
    font-size: 1.2rem;
    color: var(--sage);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

/* Tablet (~1100px): two-column layout */
@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (~768px): single column */
@media (max-width: 768px) {
    .site-footer {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 48px;
        padding-bottom: 28px;
    }



    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
        margin-bottom: 24px;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-trust-indicators {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .trust-item {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }

    .footer-copy-row {
        text-align: center;
    }

    .footer-tagline {
        max-width: 100%;
    }
}

/* Very small screens */
@media (max-width: 430px) {
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-col a {
        font-size: 0.88rem;
    }
}
