/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
    background-color: var(--wp--preset--color--tertiary, #EDEBE4);
    padding: 60px 0;
    margin-top: 40px;
}

.newsletter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-content,
.newsletter-form-wrapper {
    flex: 1;
    max-width: 500px;
}

.newsletter-title {
    margin: 0 0 10px;
    color: var(--wp--preset--color--secondary);
    font-size: 1.8rem;
    font-weight: 800;
}

.newsletter-desc {
    margin: 0;
    color: #555;
    font-size: 1rem;
}



/* Specific styling for Contact Form 7 to make it look like a single bar */
.newsletter-form-wrapper .wpcf7 form {
    margin: 0;
}

.newsletter-form-wrapper .wpcf7 p {
    margin: 0;
    gap: 16px;
    display: flex;
    flex-wrap: wrap;
}


.newsletter-form-wrapper {
    position: relative;
}

.newsletter-form-wrapper .wpcf7-not-valid-tip {
    font-size: 14px;
}

.newsletter-form-wrapper .wpcf7-response-output {
    font-size: 14px;
    border-radius: 6px;
    padding: 2px 8px;
    margin-top: 33px;
}

.newsletter-form-wrapper input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    font-size: 1rem;
    font-family: inherit;
    background-color: transparent;
    max-width: fit-content;
    min-width: 1%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.newsletter-form-wrapper input[type="email"]:focus,
.newsletter-form-wrapper input[type="email"]:focus-within {
    outline: none;
    border: 0;
}

.newsletter-form-wrapper input[type="submit"] {
    padding: 14px 35px;
    background-color: var(--wp--preset--color--secondary, #063F30);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    height: 100%;

    /* Matches input height */
}

.newsletter-form-wrapper input[type="submit"]:hover {
    background-color: var(--wp--preset--color--primary, #98782D);
}

.newsletter-form-wrapper span.wpcf7-spinner {
    position: absolute;
    right: -7px;
    top: 13px;
    display: none;
}

.newsletter-form-wrapper .wpcf7-form.submitting span.wpcf7-spinner {
    display: inline-block;
}


@media (min-width: 768px) {
    .newsletter-form-wrapper .wpcf7 p {
        background: #fff;
        padding: 6px 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        flex-wrap: nowrap;
        gap: 0
    }

    .newsletter-form-wrapper input[type="email"] {
        /* width: 100%; */
        padding: 14px 16px;
        border: 0;
        font-size: 1rem;
        font-family: inherit;
        background-color: transparent;
        max-width: fit-content;
        min-width: 1%;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .newsletter-form-wrapper span.wpcf7-spinner {
        position: absolute;
        right: -7px;
        top: 21px;
        width: 20px;
        height: 20px;
        background-color: #fff;
        /* Hide spinner to keep it clean */
    }

    .newsletter-form-wrapper .wpcf7-spinner::before {
        background-color: var(--wp--preset--color--secondary, #063F30);
        width: 5px;
        height: 5px;
        transform-origin: 7px 7px;
        top: 3px;
        left: 3px;
    }

    .newsletter-form-wrapper .wpcf7-not-valid-tip {
        position: absolute;
        bottom: -30px;
        font-size: 14px;
    }

}

/* ==========================================================================
   Main Footer Grid
   ========================================================================== */
.site-footer {
    background-color: var(--wp--preset--color--secondary, #063F30);
    color: #fff;
}

.footer-widgets {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col .widget-title {
    color: var(--wp--preset--color--primary);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--wp--preset--color--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

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

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.875rem;
}

/* ==========================================================================
   Copyright Bar
   ========================================================================== */
.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-info-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form-wrapper .wpcf7 form {
        flex-direction: column;
    }

    .newsletter-form-wrapper input[type="submit"] {
        width: 100%;
    }

    .site-info-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Footer Custom Widget (Contact & Social Icons)
   ========================================================================== */
.footer-about-widget,
.footer-contact-widget {
    margin-bottom: 20px;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-widget-logo {
    width: 180px;
    height: auto;
    margin-bottom: 25px;
    display: block;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact-list .contact-icon {
    color: var(--wp--preset--color--primary, #98782D);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-list .contact-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-contact-list .contact-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-list .contact-text a:hover {
    color: var(--wp--preset--color--primary, #98782D);
}

.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: var(--wp--preset--color--primary, #98782D);
    color: #fff;
    transform: translateY(-3px);
}