/* =========================================================
   SITE FOOTER STYLING (footer.css)
   Theme: Emerald Green (#285b40) & Metallic Gold (#a47a22)
========================================================= */
html {                      
    scroll-behavior: smooth;
}                           

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-footer {
    width: 100%;
    background: linear-gradient(180deg, #f6faf6 0%, #eef5ef 100%);
    color: #17352d;
    border-top: 1px solid rgba(40, 91, 64, 0.14);
    margin-top: auto;
}

.footer-top-accent {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #17352d 0%, #285b40 45%, #a47a22 78%, #e8cb7a 100%);
}

.footer-main {
    padding: 56px 24px 44px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 4-Column Responsive Grid on Large Desktop */
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.footer-col {
    min-width: 0;
}

/* Centered Logo & Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 14px;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.footer-description {
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.62;
    color: #475569;
    max-width: 340px;
    text-align: center;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 350px;
    background: #ffffff;
    border: 1.5px solid rgba(40, 91, 64, 0.25);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(23, 53, 45, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form:focus-within {
    border-color: #285b40;
    box-shadow: 0 0 0 3px rgba(40, 91, 64, 0.12);
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: #17352d;
    outline: none;
}

.newsletter-form input::placeholder {
    color: #8492a6;
}

.newsletter-form button {
    flex-shrink: 0;
    padding: 0 16px;
    min-height: 40px;
    border: none;
    border-radius: 7px;
    background: linear-gradient(135deg, #285b40 0%, #17352d 100%);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
    background: #087f5b;
}

/* Column Headings */
.footer-heading {
    margin: 0 0 20px;
    padding-left: 12px;
    border-left: 4px solid #a47a22;
    font-size: 1.15rem;
    font-weight: 800;
    color: #17352d;
    line-height: 1.3;
}

/* Links Lists */
.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 11px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a i {
    font-size: 0.72rem;
    color: #a47a22;
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: #285b40;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* Contact List */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #334155;
}

.contact-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(40, 91, 64, 0.1);
    color: #285b40;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.footer-contact a {
    color: #334155;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #285b40;
}

/* Social Media Circular Badges */
.footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(40, 91, 64, 0.2);
    color: #285b40;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(23, 53, 45, 0.05);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
    background: #285b40;
    border-color: #285b40;
    color: #f3d586;
    transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
    background: #17352d;
    border-top: 1px solid rgba(232, 203, 122, 0.28);
    padding: 16px 20px;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.4;
}

.footer-bottom a.footer-white-link,
.footer-bottom a.footer-white-link:visited {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.footer-bottom a.footer-white-link:hover {
    color: #f3d586;
    text-decoration: underline;
}

.footer-sep {
    color: #e8cb7a;
    font-size: 0.85rem;
}

.dev-credit,
.dev-credit:visited {
    color: #f3d586;
    font-weight: 700;
    text-decoration: none;
}

.dev-credit:hover {
    text-decoration: underline;
}

/* =========================================================
   TABLET RESPONSIVE (<= 991px -> 2 Columns)
========================================================= */

@media (max-width: 991px) {
    .footer-main {
        padding: 46px 22px 38px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 28px;
    }
}

/* =========================================================
   MOBILE RESPONSIVE (<= 600px -> 1 Column)
========================================================= */

@media (max-width: 600px) {
    .footer-main {
        padding: 36px 16px 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-logo img {
        width: 160px;
    }

    .footer-description {
        font-size: 0.88rem;
        margin-bottom: 16px;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-heading {
        font-size: 1.06rem;
        margin-bottom: 14px;
    }

    .footer-links li {
        margin-bottom: 9px;
    }

    .footer-links a {
        font-size: 0.88rem;
    }

    .footer-contact li {
        font-size: 0.86rem;
        margin-bottom: 11px;
    }

    .footer-bottom {
        padding: 16px 14px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 5px;
    }

    .footer-sep {
        display: none;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}