/* ===== FOOTER STYLES ===== */

/* Main Footer */
.footer {
    background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 50%, var(--background-tertiary) 100%);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Header - Title, Description and Donate Button */
.footer-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-header h3 {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.footer-header p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto 2rem auto;
    font-size: 1rem;
    max-width: 400px;
    font-weight: 300;
}

/* Desktop donate button in header - matches reservations button style - BIGGER */
.footer-header .footer-donate-btn {
    background: #541D23;
    color: white;
    border: 2px solid white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.footer-header .footer-donate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.footer-header .footer-donate-btn:hover::before {
    left: 100%;
}

.footer-header .footer-donate-btn:hover {
    background: white;
    color: #541D23;
    border-color: white;
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.footer-header .footer-donate-btn:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
}

/* Desktop Footer Layout - Centered Quick Links */
.footer-main {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.footer-social-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.footer-social-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Apple-style Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3,
.footer-section h4 {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    max-width: 280px;
    font-weight: 300;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.4rem 0;
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.4;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

/* Quick Links - Two Column Layout for Desktop */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 2.5rem;
    max-width: 420px;
    margin: 0 auto;
    align-items: start;
}

.quick-links-grid a {
    text-align: left;
    padding: 0.3rem 0;
}

/* Large Desktop - More spacing */
@media (min-width: 1200px) {
    .quick-links-grid {
        gap: 0.5rem 3rem;
        max-width: 450px;
    }
}

/* Tablet - Maintain two columns but reduce spacing */
@media (max-width: 1024px) and (min-width: 769px) {
    .quick-links-grid {
        gap: 0.3rem 2rem;
        max-width: 380px;
    }
}

/* Mobile: Single Column */
@media (max-width: 768px) {
    .quick-links-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-width: 200px;
    }
    
    .quick-links-grid a {
        text-align: center;
        padding: 0.4rem 0;
    }
}

/* Hide donate section on desktop - button is now in header */
.donate-section {
    display: none;
}

/* Apple-style Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 4px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.social-icon:hover {
    color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: all 0.2s ease;
}

/* Apple-style Footer Bottom */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.copyright p {
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1200px) {
    .footer-content {
        padding: 0 2.5rem;
    }

    .footer-main {
        gap: 4rem;
    }

    .social-icons {
        gap: 2rem;
    }
}

/* Mobile tap highlight fixes */
@media (max-width: 768px) {

    Hide desktop donate button in header on mobile
    .footer-header .footer-donate-btn {
        display: none;
    }

    /* Show mobile donate section */
    .donate-section {
        display: flex;
    }

    /* Reorder footer content for mobile */
    .footer-content {
        display: flex;
        flex-direction: column;
    }

    .footer-header {
        order: 1;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-light);
    }

    .footer-main {
        order: 2;
        margin-bottom: 2rem;
    }

    .footer-social-section {
        order: 3;
    }

    .footer-bottom {
        order: 4;
    }

    /* Remove tap highlights for all interactive elements */
    .footer-donate-btn,
    .social-icon,
    .footer-section a,
    button,
    a {
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        outline: none !important;
    }

    /* Remove focus outlines on mobile */
    *:focus {
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1rem;
    }

    .footer-content {
        padding: 0 1.5rem;
    }

    .footer-header {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-header h3 {
        font-size: 1.3rem;
    }

    .footer-header p {
        font-size: 0.95rem;
        max-width: 350px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .donate-section {
        justify-content: center;
        margin-top: 1rem;
    }

    .quick-links-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        max-width: 200px;
    }

    .footer-social-section {
        margin-bottom: 1.5rem;
    }

    .footer-social-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: 1.2rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-header {
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-light);
    }

    .footer-header h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .footer-header p {
        font-size: 0.95rem;
        max-width: 300px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    /* Reorder sections for mobile - quick links first, then donate button */
    .quick-links-section {
        order: 1;
        margin-bottom: 1.5rem;
    }

    .donate-section {
        order: 2;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    /* Mobile donate button styling - matches reservations button style - BIGGER */
    .donate-section .footer-donate-btn {
        background: #541D23;
        color: white;
        border: 2px solid white;
        padding: 1.1rem 2rem;
        border-radius: 30px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
        position: relative;
        overflow: hidden;
        min-width: 180px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        white-space: nowrap;
    }

    .donate-section .footer-donate-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.6s ease;
    }

    .donate-section .footer-donate-btn:hover::before {
        left: 100%;
    }

    .donate-section .footer-donate-btn:hover {
        background: white;
        color: #541D23;
        border-color: white;
        transform: scale(0.95);
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }

    .donate-section .footer-donate-btn:active {
        transform: translateY(0) scale(1);
        box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .footer-section a {
        padding: 0.1rem 0;
        /* Reduced from 0.2rem */
    }

    .quick-links-grid {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        max-width: 150px;
        margin: 0 auto;
    }

    .footer-donate-btn {
        padding: 1.1rem 2rem;
        font-size: 1rem;
        min-width: 180px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .footer-social-section {
        margin-bottom: 1.5rem;
    }

    .footer-social-section h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 42px;
        height: 42px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .social-icon:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Small Mobile */
@media (max-width: 320px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        padding: 0 0.75rem;
    }

    .footer-main {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .donate-section {
        margin-bottom: 0.75rem;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section a {
        padding: 0.05rem 0;
        /* Even more reduced for small screens */
    }

    .quick-links-grid {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        max-width: 120px;
        margin: 0 auto;
    }

    .footer-donate-btn {
        padding: 1rem 1.8rem;
        font-size: 0.95rem;
        min-width: 160px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .footer-social-section h4 {
        font-size: 1.1rem;
    }

    .social-icons {
        gap: 0.75rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}