/**
 * Footer Styles for Trésor Sublime
 */

/* Footer Base Styles */
.site-footer {
    --ts-green: #164C2A;
    --ts-green-light: #1D6336;
    --ts-white: #FFFFFF;
    --ts-cream: #F5F5F5;
    --ts-gray: #E5E7EB;
    --ts-gray-light: #F3F4F6;
    --ts-spacing: 8px;
    
    background-color: var(--ts-green);
    color: var(--ts-white);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    margin-top: calc(var(--ts-spacing) * 8);
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: linear-gradient(to right, var(--ts-green-light), var(--ts-green), var(--ts-green-light));
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--ts-spacing) * 2);
}

/* Footer Widgets Area */
.footer-widgets-container {
    padding: calc(var(--ts-spacing) * 6) 0;
    background-color: var(--ts-green);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-widgets-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: calc(var(--ts-spacing) * 4);
}

@media (min-width: 576px) {
    .footer-widgets-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-widgets-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-widget {
    margin-bottom: calc(var(--ts-spacing) * 3);
}

.widget-title {
    color: var(--ts-white);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: calc(var(--ts-spacing) * 3);
    position: relative;
    padding-bottom: calc(var(--ts-spacing) * 2);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--ts-white);
}

/* Footer Logo & Description */
.footer-logo {
    margin-bottom: calc(var(--ts-spacing) * 2);
}

.footer-logo .site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
}

.footer-logo .site-title a {
    color: var(--ts-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-logo .site-title a:hover {
    color: var(--ts-gray-light);
}

.footer-description {
    margin-top: calc(var(--ts-spacing) * 2);
    line-height: 1.8;
    color: var(--ts-white);
    font-size: 0.95rem;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: calc(var(--ts-spacing) * 1.5);
}

.footer-menu a,
.footer-categories a {
    color: var(--ts-white);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-menu a::before,
.footer-categories a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--ts-white);
    transition: width 0.3s ease;
}

.footer-menu a:hover,
.footer-categories a:hover {
    color: var(--ts-gray-light);
    transform: translateX(5px);
}

.footer-menu a:hover::before,
.footer-categories a:hover::before {
    width: 100%;
}

/* Categories List */
.footer-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-categories li {
    margin-bottom: calc(var(--ts-spacing) * 1.5);
}

/* Newsletter Form */
.newsletter-footer-form p {
    margin-bottom: calc(var(--ts-spacing) * 2);
    color: var(--ts-white);
}

.newsletter-signup .form-group {
    display: flex;
    position: relative;
}

.newsletter-signup input[type="email"] {
    width: 100%;
    padding: calc(var(--ts-spacing) * 1.5);
    border: 1px solid var(--ts-gray);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--ts-white);
    font-size: 0.875rem;
}

.newsletter-signup input[type="email"]:focus {
    outline: none;
    border-color: var(--ts-white);
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-subscribe {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--ts-green-light);
    color: var(--ts-white);
    border: 1px solid var(--ts-white);
    border-radius: 2px;
    padding: calc(var(--ts-spacing) * 1) calc(var(--ts-spacing) * 2);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-subscribe.submitting {
    background: var(--ts-gray);
}

.btn-subscribe.submitted {
    background: #4CAF50;
}

/* Social Icons Section */
.footer-social {
    padding: calc(var(--ts-spacing) * 4) 0;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: calc(var(--ts-spacing) * 3);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--ts-white);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: var(--ts-green-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-svg {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

/* Footer Bottom */
.footer-bottom {
    padding: calc(var(--ts-spacing) * 4) 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.footer-bottom-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--ts-spacing) * 3);
}

@media (min-width: 768px) {
    .footer-bottom-wrapper {
        flex-direction: row;
    }
}

.copyright {
    color: var(--ts-white);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--ts-spacing) * 3);
}

.footer-links a {
    color: var(--ts-white);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--ts-gray-light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--ts-green-light);
    color: var(--ts-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.back-to-top:hover {
    background-color: var(--ts-green);
    transform: translateY(-5px);
}