/**
 * Footer Layout Styles
 * Site footer, widgets, and bottom bar
 * 
 * @package Ashrey_Natural
 * @version 1.0.0
 */

/* ========================================
   Site Footer
   ======================================== */
.footer-curve {
    position: relative;
    width: 100%;
    height: 54px;
    line-height: 0;
    color: #99c24e;
}

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

.site-footer {
    position: relative;
    background-color: var(--color-background-footer);
    color: var(--color-text-footer);
    margin-top: -1px;
    overflow: hidden;
}

/* ========================================
   Footer Main Content
   ======================================== */
.footer-main {
    position: relative;
    padding: var(--spacing-5xl) 0 var(--spacing-3xl);
    z-index: 1;
    background-image: none;
}

.footer-main::after {
    content: '';
    display: block;
    width: min(100%, 960px);
    height: 1px;
    margin: var(--spacing-3xl) auto var(--spacing-2xl);
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.55) 40%, rgba(255, 255, 255, 0) 0);
    background-size: 16px 1px;
    opacity: 0.6;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-4xl);
    align-items: start;
    text-align: center;
    justify-items: center;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 340px;
}

.footer-main .container {
    position: relative;
    z-index: 1;
}

.footer-branding {
    align-items: center;
    text-align: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo-wrap {
    display: flex;
    justify-content: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-full);
}

.footer-logo img {
    max-height: 72px;
    width: auto;
}

.footer-site-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

.footer-site-title a {
    color: var(--color-text-footer);
    text-decoration: none;
}

.footer-description {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.footer-description p {
    margin: 0 0 var(--spacing-sm);
}

.footer-vat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-2xs);
    background-color: rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: var(--spacing-sm) var(--spacing-lg);
}

.vat-label {
    font-size: var(--font-size-xs);
    opacity: 0.8;
}

.vat-value {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   Footer Sections
   ======================================== */
.footer-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-footer);
}

.footer-links nav,
.footer-categories {
    text-align: right;
}

/* ========================================
   Footer Social Links
   ======================================== */
.footer-social {
    margin-top: var(--spacing-md);
}

.footer-social-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-button-primary-text);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.social-link.whatsapp-link {
    background-color: var(--color-button-whatsapp-bg);
}

.social-link.whatsapp-link:hover {
    background-color: #128C7E;
}

/* ========================================
   Footer Menu
   ======================================== */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--spacing-sm);
}

.footer-menu li {
    margin-bottom: var(--spacing-xs);
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--color-button-primary-text);
    padding-left: var(--spacing-xs);
}

/* ========================================
   Footer Categories
   ======================================== */
.footer-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--spacing-xs);
}

.footer-category-list li {
    margin-bottom: var(--spacing-xs);
}

.footer-category-list a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
    display: inline-block;
}

.footer-category-list a:hover {
    color: var(--color-button-primary-text);
    padding-left: var(--spacing-xs);
}

/* ========================================
   Footer Newsletter
   ======================================== */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.12);
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    margin-top: 0;
    text-align: center;
    box-shadow: 0 24px 60px rgba(25, 63, 9, 0.22);
}

.footer-newsletter-text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-footer);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.newsletter-input-wrapper {
    display: flex;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: var(--spacing-xs);
    align-items: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    background: rgba(255, 255, 255, 0.16);
    color: var(--color-text-footer);
    min-height: 48px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.22);
}

.newsletter-submit {
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
    color: var(--color-secondary-forest-dark);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 48px;
    transition: all var(--transition-base);
    box-shadow: 0 12px 25px rgba(10, 31, 2, 0.18);
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 28px rgba(10, 31, 2, 0.25);
}

.newsletter-message {
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    display: none;
}

.newsletter-message.success {
    display: block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-button-primary-text);
}

.newsletter-message.error {
    display: block;
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* ========================================
   Footer Contact Row
   ======================================== */
/* ========================================
   Footer Social Bar
   ======================================== */
.footer-social-bar {
    margin-top: var(--spacing-3xl);
    display: flex;
    justify-content: center;
}

.footer-social-list {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    color: var(--color-button-primary-text);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 25px rgba(16, 43, 4, 0.2);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(16, 43, 4, 0.28);
}

/* ========================================
   Footer Bottom
   ======================================== */
.footer-bottom {
    background-image: linear-gradient(180deg, rgba(143, 190, 63, 0.96) 0%, rgba(118, 159, 45, 0.96) 100%);
    padding: var(--spacing-2xl) 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.footer-payment-strip {
    margin-bottom: var(--spacing-2xl);
    display: flex;
    justify-content: center;
}

.footer-payment-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-payment-list li {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-button-primary-text);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    padding: 0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 60px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.footer-bottom-content {
    display: grid;
    gap: var(--spacing-sm);
    justify-items: center;
    text-align: center;
    margin-top: var(--spacing-xl);
}

.copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

.copyright p {
    margin: 0;
}

.footer-bottom-links {
    font-size: var(--font-size-sm);
}

.footer-bottom-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-bottom-menu a:hover {
    color: var(--color-button-primary-text);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: var(--color-button-primary-text);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

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

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-main {
        padding: var(--spacing-2xl) 0 var(--spacing-xl);
    }
    
    .footer-newsletter {
        padding: var(--spacing-md);
    }
    
    .newsletter-input-wrapper {
        flex-direction: column;
        background: rgba(255, 255, 255, 0.1);
        padding: var(--spacing-sm);
        border-radius: var(--radius-xl);
    }
    
    .newsletter-form input[type="email"] {
        width: 100%;
    }
    
    .newsletter-submit {
        width: 100%;
        min-width: auto;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .footer-bottom-content {
        gap: var(--spacing-md);
    }
    
    .footer-bottom-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .footer-menu a:hover,
[dir="rtl"] .footer-category-list a:hover {
    padding-left: 0;
    padding-right: var(--spacing-xs);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: var(--spacing-xl);
}

@media (max-width: 768px) {
    [dir="rtl"] .back-to-top {
        left: var(--spacing-md);
    }
}


