/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
    color: #e0e0e0;
    overflow: hidden;
    background-color: transparent;
    background-image: none;
}

.footer-container {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--spacing-md, 20px);
}

.site-footer::before,
.site-footer::after,
.footer-main::before,
.footer-main::after {
    display: none !important;
    content: none !important;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */

.footer-newsletter {
    background: transparent;
    padding: 0 var(--spacing-md, 20px);
    margin-bottom: -90px;
    position: relative;
    z-index: 10;
}

.footer-newsletter .footer-container {
    background: linear-gradient(135deg, #1AAF4B 0%, #16a085 100%);
    padding: 40px 24px;
    border-radius: 26px;
    box-shadow: none;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg, 40px);
}

.newsletter-info {
    flex: 0 1 45%;
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: white;
    margin: 0 0 var(--spacing-sm, 10px) 0;
    line-height: 1.3;
}

.newsletter-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.newsletter-form-wrapper {
    flex: 0 0 auto;
    min-width: 300px;
    display: flex;
    align-items: center;
}

/* Form styling inside newsletter */
.newsletter-form-wrapper form {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-direction: column;
}

.newsletter-form-wrapper input[type="email"],
.newsletter-form-wrapper input[type="text"],
.newsletter-form-wrapper input[type="name"] {
    flex: 1;
    min-width: 450px;
    height: 45px;
    padding: 0 16px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    background-color: white;
    color: #333;
    transition: box-shadow 0.3s ease;
}

.newsletter-form-wrapper input[type="email"]::placeholder,
.newsletter-form-wrapper input[type="text"]::placeholder,
.newsletter-form-wrapper input[type="name"]::placeholder {
    color: #999;
}

.newsletter-form-wrapper input[type="email"]:focus,
.newsletter-form-wrapper input[type="text"]:focus,
.newsletter-form-wrapper input[type="name"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.newsletter-form-wrapper input[type="submit"],
.newsletter-form-wrapper button[type="submit"],
.newsletter-form-wrapper .wpcf7 input[type="submit"],
.newsletter-form-wrapper .wpcf7 button[type="submit"] {
    padding: 0 28px;
    height: 45px;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    flex-shrink: 0;
    line-height: 45px;
}

.newsletter-form-wrapper input[type="submit"]:hover,
.newsletter-form-wrapper button[type="submit"]:hover,
.newsletter-form-wrapper .wpcf7 input[type="submit"]:hover,
.newsletter-form-wrapper .wpcf7 button[type="submit"]:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.newsletter-form-wrapper input[type="submit"]:active,
.newsletter-form-wrapper button[type="submit"]:active {
    transform: translateY(0);
}

/* Contact Form 7 compatibility */
.newsletter-form-wrapper .wpcf7 {
    display: contents;
}

.newsletter-form-wrapper .wpcf7-form {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.newsletter-form-wrapper .wpcf7-form p {
    display: contents;
}

.newsletter-form-wrapper .wpcf7 input.wpcf7-form-control {
    border-radius: 25px !important;
    padding: 0 16px !important;
    font-size: 0.9rem !important;
    height: 45px !important;
    line-height: 45px !important;
}

.newsletter-form-wrapper .wpcf7 input[type="submit"].wpcf7-form-control {
    padding: 0 28px !important;
    height: 45px !important;
    border-radius: 25px !important;
    background-color: #f39c12 !important;
    color: white !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3) !important;
    flex-shrink: 0;
}

.newsletter-form-wrapper .wpcf7 input[type="submit"].wpcf7-form-control:hover {
    background-color: #e67e22 !important;
    transform: translateY(-2px);
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md, 20px);
    }

    .newsletter-info {
        flex: 1;
    }

    .newsletter-form-wrapper {
        flex: 1;
        min-width: auto;
    }

    .newsletter-form-wrapper form,
    .newsletter-form-wrapper .wpcf7-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .newsletter-form-wrapper input[type="email"],
    .newsletter-form-wrapper input[type="text"],
    .newsletter-form-wrapper input[type="name"] {
        width: 100%;
        height: 45px;
    }

    .newsletter-form-wrapper input[type="submit"],
    .newsletter-form-wrapper button[type="submit"],
    .newsletter-form-wrapper .wpcf7 input[type="submit"],
    .newsletter-form-wrapper .wpcf7 button[type="submit"] {
        width: 100%;
        height: 45px;
    }

    .newsletter-form-wrapper .wpcf7-form p {
        flex-direction: column;
    }

    .newsletter-form-wrapper .wpcf7 input[type="submit"].wpcf7-form-control {
        flex: 1 !important;
        width: 100% !important;
    }

    .newsletter-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   MAIN FOOTER CONTENT
   ======================================== */

.footer-main {
    padding: 170px var(--spacing-md, 20px) var(--spacing-xl, 60px);
    background-color: #012C3B;
    background-image: none !important;
    position: relative;
    overflow: hidden;
}

.footer-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg, 40px);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 var(--spacing-md, 20px) 0;
    text-transform: capitalize;
}

/* ========================================
   COMPANY SECTION
   ======================================== */

.footer-col-company {
    grid-column: 1;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg, 40px);
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--spacing-sm, 10px);
    max-width: 180px;
}

.company-logo img,
.company-logo .custom-logo {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.company-logo .site-logo-link {
    display: inline-block;
    line-height: 0;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1aad53;
    margin: 0 0 var(--spacing-sm, 15px) 0;
    letter-spacing: 1px;
}

.company-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0;
}

/* Location */
.company-location,
.company-hotline {
    display: flex;
    gap: var(--spacing-md, 15px);
    align-items: flex-start;
}

.location-icon,
.phone-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: #1aad53;
    margin-top: 2px;
}

.location-info,
.hotline-info {
    flex: 1;
}

.location-title,
.hotline-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1aad53;
    margin: 0 0 var(--spacing-xs, 5px) 0;
    text-transform: capitalize;
}

.location-address {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.5;
}

.hotline-number,
.hotline-email {
    font-size: 0.9rem;
    margin: var(--spacing-xs, 5px) 0;
}

.hotline-number a,
.hotline-email a {
    color: #1aad53;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hotline-number a:hover,
.hotline-email a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========================================
   FOOTER MENUS & LINKS
   ======================================== */

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm, 10px);
}

.footer-menu li {
    margin: 0;
    position: relative;
    padding-left: 18px;
}

.footer-menu a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: #1aad53;
}

.footer-menu li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-menu li:hover::before {
    background: #1aad53;
    transform: scale(1.1);
}

.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a {
    color: #1aad53;
}

.footer-menu .current-menu-item::before,
.footer-menu .current_page_item::before {
    background: #1aad53;
}

/* ========================================
   SOCIAL SECTION
   ======================================== */

.footer-social {
    display: flex;
    gap: var(--spacing-md, 15px);
    flex-wrap: wrap;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(26, 188, 156, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-link:hover {
    background-color: #1aad53;
    transform: translateY(-3px);
}

.footer-social .social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer-bottom {
    background-color: #051a25;
    padding: var(--spacing-lg, 40px) var(--spacing-md, 20px);
    border-top: 1px solid rgba(26, 188, 156, 0.1);
}

.footer-copyright {
    font-size: 0.9rem;
    color: #808080;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .footer-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg, 40px);
    }

    .footer-col-company {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 130px var(--spacing-md, 20px) var(--spacing-lg, 40px);
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md, 20px);
    }

    .footer-col-company {
        grid-column: 1;
    }

    .company-info {
        gap: var(--spacing-md, 20px);
    }

    .newsletter-title {
        font-size: 1.5rem;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .footer-col-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-container {width: initial;}
    .footer-newsletter {
        padding: var(--spacing-md, 20px);
        margin-bottom: var(--spacing-md, 20px);
    }

    .newsletter-title {
        font-size: 1.3rem;
    }
.newsletter-form-wrapper input[type="email"] {width: 88%;}
    .newsletter-description {
        font-size: 0.85rem;
    }

    .footer-main {
        padding: var(--spacing-md, 20px);
    }

    .footer-row {
        gap: var(--spacing-md, 20px);
    }

    .company-name {
        font-size: 1.3rem;
    }

    .company-description {
        font-size: 0.85rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}
