/* ===== FOOTER COMPONENT ===== */
.site-footer {
    margin-top: 36px;
    background: darkolivegreen;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,0.9);
    border-top-left-radius: 28px; /* rounded top-left corner */
    padding: 36px 0 40px;
}

.site-footer .max {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 0 1rem;
}

/* top row: logo/tagline/button + sponsor text */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
}

.ft-left .ft-logo {
    width: 120px;
    height: auto;
    display: block;
    margin-bottom: 18px;
}

.ft-left .ft-tagline {
    font-weight: 700;
    letter-spacing: .2px;
    font-size: 18px;
    line-height: 1.9;
    max-width: 520px;
}

.ft-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 18px 48px;
    border-radius: 9999px;
    background: #6F8B4B; /* pill green */
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,.18) inset, 0 6px 14px rgba(0,0,0,.12);
    transition: transform .15s ease, filter .15s ease;
    margin-bottom: 50px;
}

.ft-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.ft-right h3 {
    margin: 0;
    font-weight: 800;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.1;
    letter-spacing: .3px;
}

/* bottom row: 3 columns */
.footer-bottom {
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-bottom .col {
    min-width: 0; /* Allows content to shrink properly */
}

.footer-bottom h5 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.7;
    opacity: .95;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    word-break: break-all;
    display: inline-block;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-bottom .social {
    display: inline-block;
    margin: 4px 0;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.10);
}

/* Responsive Footer Styles */
/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .footer-top {
        gap: 2.5rem;
    }
    
    .footer-bottom {
        gap: 2rem;
    }
}

/* Tablets and medium screens */
@media (max-width: 980px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .ft-right {
        order: -1;
    }
    
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .ft-left .ft-logo {
        width: 96px;
        margin: 0 auto 18px;
    }
    
    .ft-left .ft-tagline {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .site-footer {
        padding: 24px 0 32px;
        margin-top: 24px;
    }
    
    .site-footer .max {
        padding: 0 1rem;
    }
    
    .footer-top {
        gap: 1.5rem;
    }
    
    .footer-bottom {
        gap: 1.25rem;
    }
    
    .ft-right h3 {
        font-size: clamp(18px, 2vw, 24px);
        line-height: 1.3;
    }
    
    .ft-left .ft-tagline {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .footer-bottom p {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .site-footer {
        padding: 20px 0 28px;
        margin-top: 20px;
    }
    
    .site-footer .max {
        padding: 0 0.75rem;
    }
    
    .footer-top {
        gap: 1.25rem;
    }
    
    .footer-bottom {
        gap: 1rem;
    }
    
    .ft-left .ft-logo {
        width: 80px;
    }
    
    .ft-left .ft-tagline {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .ft-cta {
        padding: 12px 28px;
        font-size: 14px;
        margin-bottom: 30px;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        text-align: center;
    }
    
    .ft-right h3 {
        font-size: clamp(16px, 4vw, 20px);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .footer-bottom h5 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .footer-bottom p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Better spacing for address and contact info */
    .footer-bottom .col p {
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom .col p:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom .col {
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom .col:last-child {
        margin-bottom: 0;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .site-footer {
        padding: 16px 0 24px;
    }
    
    .site-footer .max {
        padding: 0 0.5rem;
    }
    
    .ft-left .ft-logo {
        width: 70px;
    }
    
    .ft-left .ft-tagline {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    .ft-cta {
        padding: 10px 24px;
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .ft-right h3 {
        font-size: clamp(14px, 4.5vw, 18px);
        line-height: 1.1;
    }
    
    .footer-bottom h5 {
        font-size: 14px;
    }
    
    .footer-bottom p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .footer-bottom .social {
        padding: 4px 8px;
        font-size: 12px;
    }
}