/**
 * Heritage Harvests - Enhanced Footer Styles
 * A premium, nature-inspired footer for organic products
 */

/* ===== Footer Container ===== */
.hh-footer {
    background: linear-gradient(180deg, #1B5E20 0%, #0D3B13 100%);
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Decorative leaf pattern overlay */
.hh-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 Q35 15 30 25 Q25 15 30 5' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

/* Top wave decoration */
.hh-footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    transform: translateY(-99%);
    overflow: hidden;
}

.hh-footer-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== Newsletter Section ===== */
.hh-newsletter {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.15) 0%, rgba(46, 125, 50, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px;
    position: relative;
}

.hh-newsletter-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hh-newsletter h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #FFFFFF;
}

.hh-newsletter p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 25px;
    line-height: 1.6;
}

.hh-newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.hh-newsletter-form input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hh-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hh-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #8BC34A;
    background: rgba(255, 255, 255, 0.15);
}

.hh-newsletter-form button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #8BC34A 0%, #4CAF50 100%);
    color: #FFFFFF;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hh-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
}

/* ===== Main Footer Content ===== */
.hh-footer-main {
    padding: 60px 30px 40px;
    position: relative;
}

.hh-footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
}

/* Footer Brand Column */
.hh-footer-brand {
    padding-right: 30px;
}

.hh-footer-brand .hh-footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.hh-footer-brand .hh-footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.hh-footer-brand .hh-footer-logo:hover img {
    opacity: 1;
}

.hh-footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 25px;
}

/* Social Links */
.hh-social-links {
    display: flex;
    gap: 12px;
}

.hh-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hh-social-links a:hover {
    background: #8BC34A;
    transform: translateY(-3px);
}

.hh-social-links a svg {
    width: 18px;
    height: 18px;
}

/* Footer Columns */
.hh-footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}

.hh-footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #8BC34A, #4CAF50);
    border-radius: 2px;
}

.hh-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hh-footer-column ul li {
    margin-bottom: 12px;
}

.hh-footer-column ul li a {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hh-footer-column ul li a:hover {
    color: #8BC34A;
    padding-left: 5px;
}

/* Contact Info */
.hh-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.hh-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #8BC34A;
    margin-top: 2px;
}

.hh-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hh-contact-item a:hover {
    color: #8BC34A;
}

/* ===== Certifications/Trust Badges ===== */
.hh-trust-badges {
    padding: 30px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hh-trust-badges-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hh-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.hh-badge svg {
    width: 24px;
    height: 24px;
    color: #8BC34A;
}

/* ===== Footer Bottom ===== */
.hh-footer-bottom {
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.hh-footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.hh-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.hh-copyright a {
    color: #8BC34A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hh-copyright a:hover {
    color: #FFFFFF;
}

.hh-footer-links {
    display: flex;
    gap: 25px;
}

.hh-footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hh-footer-links a:hover {
    color: #8BC34A;
}

/* Payment Methods */
.hh-payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hh-payment-methods span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.hh-payment-methods img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.hh-payment-methods img:hover {
    opacity: 1;
}

/* ===== Back to Top Button ===== */
.hh-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
    z-index: 999;
}

.hh-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hh-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.4);
}

.hh-back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .hh-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hh-footer-brand {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }

    .hh-social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hh-newsletter {
        padding: 40px 20px;
    }

    .hh-newsletter h3 {
        font-size: 24px;
    }

    .hh-newsletter-form {
        flex-direction: column;
    }

    .hh-footer-main {
        padding: 40px 20px 30px;
    }

    .hh-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .hh-footer-brand {
        grid-column: span 1;
    }

    .hh-footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hh-trust-badges-inner {
        gap: 25px;
    }

    .hh-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

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

    .hh-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hh-badge {
        font-size: 12px;
    }

    .hh-badge svg {
        width: 20px;
        height: 20px;
    }
}