/* footer-fixes.css – White AAA-Compliant Footer for Astra Child Theme
   Matches footer.php inline styles – NO CONFLICTS
   Updated: June 2026 – clean rewrite, no !important, proper specificity */

/* -------------------------
   Footer Wrapper & Base
--------------------------- */
#colophon,
.footer-wrapper,
.site-footer {
    background-color: #ffffff;
    color: #111111;
    text-align: center;
    padding: 30px 20px;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Footer Headings */
#colophon h3,
.footer-wrapper h3,
.site-footer h3 {
    color: #111111;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Footer Text & Lists */
#colophon p,
#colophon li,
.footer-wrapper p,
.footer-wrapper li,
.site-footer p,
.site-footer li {
    color: #111111;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* -------------------------
   Text Links Only
   Scoped to .footer-nav and .footer-contact
   Does NOT catch buttons styled as links
--------------------------- */
.footer-nav a:not(.footer-nav-button):not(.popup-trigger),
.footer-contact a {
    color: #111111;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-nav a:not(.footer-nav-button):not(.popup-trigger):hover,
.footer-nav a:not(.footer-nav-button):not(.popup-trigger):focus,
.footer-contact a:hover,
.footer-contact a:focus {
    color: #ff6f61;
    text-decoration: underline;
}

/* Color-Coded Link Classes */
.footer-link.tours  { color: #0066cc; }
.footer-link.search { color: #28a745; }
.footer-link.overview { color: #17a2b8; }
.footer-link.spots,
.footer-link.story  { color: #8b4513; }

.footer-link.tours:hover,
.footer-link.tours:focus,
.footer-link.search:hover,
.footer-link.search:focus,
.footer-link.overview:hover,
.footer-link.overview:focus,
.footer-link.spots:hover,
.footer-link.spots:focus,
.footer-link.story:hover,
.footer-link.story:focus {
    color: #ff6f61;
}

/* -------------------------
   Footer Navigation List
--------------------------- */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.footer-nav li {
    margin-bottom: 0;
}

/* -------------------------
   Map Button
--------------------------- */
.map-button {
    background-color: #ff69b4;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    min-height: 60px;
    transition: all 0.3s ease;
}

.map-button:hover,
.map-button:focus {
    background-color: #c71585;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,105,180,0.4);
}

/* -------------------------
   Popup Trigger / Nav Buttons
--------------------------- */
.footer-nav-button,
.popup-trigger {
    background-color: #f0f8f0;
    border: 1px solid #20B2AA;
    color: #003087;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-nav-button:hover,
.footer-nav-button:focus,
.popup-trigger:hover,
.popup-trigger:focus {
    background-color: #e0f0e0;
    color: #ff6f61;
    outline: 2px solid #ff6f61;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(32,178,170,0.3);
}

/* -------------------------
   Social Icons
--------------------------- */
.social-icons ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.social-icons a {
    font-size: 1.3rem;
    padding: 8px;
    border-radius: 6px;
    color: #20B2AA;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover,
.social-icons a:focus {
    background: rgba(255,105,180,0.1);
    color: #20B2AA;
}

/* -------------------------
   Home Button
--------------------------- */
.pretty-home-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #191970;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pretty-home-btn:hover,
.pretty-home-btn:focus {
    background: #ff69b4;
    color: #ffffff;
    transform: translateY(-2px);
    outline: 2px solid #ff69b4;
    outline-offset: 2px;
}

/* -------------------------
   Responsive – Mobile Stack
--------------------------- */
@media (max-width: 768px) {
    .footer-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 0.5em;
    }

    .social-icons ul {
        gap: 1em;
    }
}

/* -------------------------
   Accessibility
--------------------------- */
@media (prefers-reduced-motion: reduce) {
    .map-button,
    .footer-nav-button,
    .popup-trigger,
    .pretty-home-btn,
    .social-icons a {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .popup-trigger:focus { outline-width: 3px; }
    .map-button:focus { outline: 2px solid #ff69b4; }
}


/* -------------------------
   PNG Floater Clearance Utility
   Sitewide reusable class — single source of truth for MU-floater
   (top-floater.php) top clearance. Add this class to any page's
   top hero/heading element instead of hardcoding padding math.
   See PRIME-DIRECTIVE.md > FLOATER CLEARANCE STANDARD for the numbers.
   Added 2026-07-25.
--------------------------- */
.png-floater-clear {
    padding-top: 110px !important;
}
@media (max-width: 768px) {
    .png-floater-clear {
        padding-top: 90px !important;
    }
}
