/*
 * Footer stylesheet – Vegustando theme.
 * Migrated from Divi Code module inline <style> blocks.
 */

/* =========================================================
   MAIN FOOTER CONTAINER
   ========================================================= */

.vegustando-site-footer {
    background-color: #f6f3ea;
    color: #3f4a3c;
    padding: 40px 20px 0;
}

.vegustando-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.vegustando-footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.vegustando-footer-bottom {
    border-top: 1px solid #d9d2c3;
    padding: 20px 0;
}

/* =========================================================
   LEFT SECTION
   ========================================================= */

.footer-left-section {
    color: #3f4a3c;
    padding: 0;
    text-align: center;
}

.recipes-section {
    margin-bottom: 40px;
}

.recipes-section h3,
.social-section h3 {
    color: #4a7c2a;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.recipes-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.recipes-section ul li {
    margin-bottom: 12px;
}

.recipes-section ul li a {
    color: #5b6b57;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.recipes-section ul li a:hover {
    color: #4a7c2a;
}

/* =========================================================
   SOCIAL (AddToAny-compatible structure)
   ========================================================= */

.social-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.addtoany-social-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.addtoany-social-wrapper .a2a_kit {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 10px 0 !important;
    gap: 10px !important;
}

.addtoany-social-wrapper .a2a_button_instagram,
.addtoany-social-wrapper .a2a_button_pinterest,
.addtoany-social-wrapper .a2a_button_facebook {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin: 0 5px !important;
    position: relative !important;
    overflow: hidden !important;
}

.addtoany-social-wrapper .a2a_button_instagram {
    background: #4a7c2a !important;
    color: #ffffff !important;
}

.addtoany-social-wrapper .a2a_button_pinterest {
    background: #4a7c2a !important;
    color: #ffffff !important;
}

.addtoany-social-wrapper .a2a_button_facebook {
    background: #4a7c2a !important;
    color: #ffffff !important;
}

.addtoany-social-wrapper .a2a_button_instagram:hover,
.addtoany-social-wrapper .a2a_button_pinterest:hover,
.addtoany-social-wrapper .a2a_button_facebook:hover {
    background: #68d391 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(74, 124, 42, 0.4) !important;
}

.addtoany-social-wrapper svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

/* Hide AddToAny default icon/label elements */
.addtoany-social-wrapper .a2a_svg {
    display: none !important;
}

.addtoany-social-wrapper .a2a_label {
    display: none !important;
}

/* Reset AddToAny default link styles */
.addtoany-social-wrapper .a2a_kit a {
    background-image: none !important;
    border: none !important;
    padding: 0 !important;
}

/* =========================================================
   CENTER SECTION
   ========================================================= */

.footer-center-section {
    color: #3f4a3c;
    padding: 0;
}

.info-section h3 {
    color: #4a7c2a;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.info-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.info-section ul li {
    margin-bottom: 12px;
}

.info-section ul li a {
    color: #5b6b57;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.info-section ul li a:hover {
    color: #4a7c2a;
}

/* =========================================================
   SCREEN READER TEXT UTILITY
   ========================================================= */

.vegustando-site-footer .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vegustando-site-footer .screen-reader-text:focus,
.vegustando-site-footer .screen-reader-text:active {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* =========================================================
   RIGHT SECTION – Newsletter (MC4WP + Placeholder)
   ========================================================= */

.footer-right-section {
    color: #3f4a3c;
    padding: 0;
}

.newsletter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.newsletter-section__title {
    color: #4a7c2a;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.newsletter-section__description {
    color: #5b6b57;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 16px;
    margin-top: 0;
    max-width: 400px;
}

.footer-newsletter {
    background-color: rgba(74, 124, 42, 0.15);
    padding: 24px 28px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 16px;
    gap: 0;
}

.newsletter-section__legal {
    color: #7d776c;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    max-width: 400px;
}

.newsletter-section__legal-link {
    color: #4a7c2a;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.newsletter-section__legal-link:hover {
    color: #68d391;
    text-decoration: none;
}

/* =========================================================
   PLACEHOLDER FORM (MC4WP inactive)
   ========================================================= */

.footer-newsletter-form--placeholder {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.footer-newsletter-form__input {
    background-color: #1a202c;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    border-radius: 5px;
    padding: 10px 15px;
    width: 100%;
    max-width: 250px;
    font-size: 14px;
    text-align: left;
    box-sizing: border-box;
    flex: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter-form__input::placeholder {
    color: #cbd5e0;
}

.footer-newsletter-form__input:focus {
    outline: none;
    border-color: #4a7c2a;
    box-shadow: 0 0 0 2px rgba(74, 124, 42, 0.15);
}

.footer-newsletter-form__input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer-newsletter-form__submit {
    background-color: #4a7c2a;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px;
}

.footer-newsletter-form__submit:hover:not(:disabled) {
    background-color: #68d391;
    transform: translateY(-1px);
}

.footer-newsletter-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   MC4WP FORM STYLING (when plugin is active)
   ========================================================= */

.footer-newsletter .mc4wp-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.footer-newsletter .mc4wp-form-fields {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.footer-newsletter .mc4wp-form input[type="email"],
.footer-newsletter .mc4wp-form input[type="text"] {
    background-color: #1a202c;
    border: 1px solid #4a5568;
    color: #e2e8f0;
    border-radius: 5px;
    padding: 10px 15px;
    width: 100%;
    max-width: 250px;
    font-size: 14px;
    text-align: left;
    box-sizing: border-box;
    flex: 1;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-newsletter .mc4wp-form input[type="email"]::placeholder,
.footer-newsletter .mc4wp-form input[type="text"]::placeholder {
    color: #cbd5e0;
}

.footer-newsletter .mc4wp-form input[type="email"]:focus,
.footer-newsletter .mc4wp-form input[type="text"]:focus {
    outline: none;
    border-color: #4a7c2a;
    box-shadow: 0 0 0 2px rgba(74, 124, 42, 0.15);
}

.footer-newsletter .mc4wp-form input[type="submit"] {
    background-color: #4a7c2a;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 120px;
}

.footer-newsletter .mc4wp-form input[type="submit"]:hover {
    background-color: #68d391;
    transform: translateY(-1px);
}

/* MC4WP response messages */
.footer-newsletter .mc4wp-response {
    width: 100%;
    margin-top: 12px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 13px;
    text-align: center;
}

.footer-newsletter .mc4wp-success {
    background-color: rgba(104, 211, 145, 0.15);
    color: #22863a;
    border: 1px solid #27ae60;
}

.footer-newsletter .mc4wp-error {
    background-color: rgba(245, 101, 101, 0.15);
    color: #c53030;
    border: 1px solid #f56565;
}

/* =========================================================
   BOTTOM BAR
   ========================================================= */

.footer-bottom-section {
    text-align: center;
}

.footer-bottom-content {
    margin: 0 auto;
    padding: 0;
}

.footer-bottom-content p {
    color: #7d776c;
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

/* =========================================================
   MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .vegustando-site-footer {
        padding: 30px 20px 0;
    }

    .vegustando-footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .vegustando-footer-bottom {
        padding: 15px 0;
    }

    .addtoany-social-wrapper .a2a_kit {
        gap: 5px !important;
        padding: 8px 0 !important;
    }

    .addtoany-social-wrapper .a2a_button_instagram,
    .addtoany-social-wrapper .a2a_button_pinterest,
    .addtoany-social-wrapper .a2a_button_facebook {
        width: 35px !important;
        height: 35px !important;
        margin: 0 3px !important;
    }

    .addtoany-social-wrapper svg {
        width: 16px !important;
        height: 16px !important;
    }

    .info-section h3,
    .info-section ul {
        text-align: center;
    }

    .footer-newsletter {
        padding: 18px 16px;
        max-width: 100%;
    }

    .newsletter-section__description {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .footer-newsletter-form--placeholder,
    .footer-newsletter .mc4wp-form,
    .footer-newsletter .mc4wp-form-fields {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .footer-newsletter-form__input,
    .footer-newsletter .mc4wp-form input[type="email"],
    .footer-newsletter .mc4wp-form input[type="text"] {
        max-width: 100% !important;
    }

    .footer-newsletter-form__submit,
    .footer-newsletter .mc4wp-form input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
    }

    .newsletter-section__legal {
        font-size: 11px;
    }

    .footer-bottom-content p {
        font-size: 13px;
    }
}
