/* AGL site footer — linked from includes/footer.php */

.agl-footer {
    background: linear-gradient(180deg, #f4f6f5 0%, #eef7ee 100%);
    border-top: 1px solid #d8e8dc;
    color: #333;
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.5;
}

.agl-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px 24px;
}

.agl-footer-brand {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d8e8dc;
}

.agl-footer-contact-bar {
    margin-bottom: 24px;
}

.agl-footer-contact-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #1f5f3b;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(31, 95, 59, 0.25);
    transition: background 0.2s, transform 0.2s;
    text-align: center;
    font-family: inherit;
}

.agl-footer-contact-btn:hover {
    background: #17462c;
    transform: translateY(-1px);
}

.agl-footer-contact-btn:focus-visible {
    outline: 2px solid #1f5f3b;
    outline-offset: 2px;
}

.agl-footer-league {
    font-size: 18px;
    font-weight: 700;
    color: #1f5f3b;
    margin: 0 0 4px;
}

.agl-footer-season {
    margin: 0;
    color: #666;
    font-size: 13px;
}

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

.agl-footer-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f5f3b;
    margin: 0 0 10px;
}

.agl-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.agl-footer-links li {
    margin-bottom: 8px;
}

.agl-footer-links a {
    color: #1f5f3b;
    font-weight: 600;
    text-decoration: none;
}

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

.agl-footer-sponsors {
    margin: 0 0 8px;
    color: #555;
    font-size: 13px;
}

.agl-footer-sponsor-names {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #444;
    font-size: 13px;
}

.agl-footer-sponsor-names li {
    margin-bottom: 4px;
}

.agl-footer-note {
    margin: 10px 0 0;
    font-size: 12px;
    color: #777;
}

.agl-footer-bottom {
    padding-top: 18px;
    border-top: 1px solid #d8e8dc;
    text-align: center;
}

.agl-footer-copy {
    margin: 0 0 8px;
    font-size: 13px;
    color: #555;
}

.agl-footer-disclaimer {
    margin: 0;
    font-size: 11px;
    color: #888;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

/* League contacts modal */
.agl-footer-contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

.agl-footer-contact-modal[hidden] {
    display: none !important;
}

.agl-footer-contact-modal.open {
    display: flex !important;
}

body.agl-footer-modal-open {
    overflow: hidden;
}

.agl-footer-contact-modal-content {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.agl-footer-contact-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #eef1ef;
}

.agl-footer-contact-modal-header h3 {
    margin: 0;
    color: #1f5f3b;
    font-size: 18px;
}

.agl-footer-contact-modal-meta {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}

.agl-footer-contact-modal-close {
    border: none;
    background: #eef5ef;
    color: #1f5f3b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.agl-footer-contact-modal-close:hover {
    background: #dce9df;
}

.agl-footer-contact-modal-body {
    padding: 16px 20px 20px;
    overflow-y: auto;
}

.agl-footer-contact-card {
    border: 1px solid #eef1ef;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.agl-footer-contact-card:last-child {
    margin-bottom: 0;
}

.agl-footer-contact-role {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8a6d1f;
    margin-bottom: 6px;
}

.agl-footer-contact-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f5f3b;
    margin-bottom: 8px;
}

.agl-footer-contact-row {
    font-size: 14px;
    color: #444;
    margin: 4px 0;
    word-break: break-word;
}

.agl-footer-contact-row a {
    color: #1f5f3b;
    font-weight: 600;
    text-decoration: none;
}

.agl-footer-contact-row a:hover {
    text-decoration: underline;
}

.agl-footer-contact-label {
    font-weight: 600;
    color: #666;
}

@media (min-width: 600px) {
    .agl-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .agl-footer-inner {
        padding: 36px 24px 28px;
    }

    .agl-footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .agl-footer-brand,
    .agl-footer-contact-bar {
        grid-column: 1 / -1;
    }

    .agl-footer-brand {
        border-bottom: 1px solid #d8e8dc;
        padding-bottom: 22px;
        margin-bottom: 12px;
    }

    .agl-footer-contact-bar {
        margin-bottom: 12px;
    }
}
