/* Footer Popup Modal Styles */
.footer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.footer-modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 20px;
}

.footer-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--gold);
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.footer-modal-close {
    color: var(--white);
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.footer-modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.8);
}

.footer-modal-text {
    flex: 1;
    padding: 60px 50px;
    max-width: 60%;
}

.footer-modal-header {
    margin-bottom: 30px;
}

.footer-modal-header h2 {
    margin: 0;
    color: var(--gold);
    font-family: 'EB Garamond', serif;
    font-weight: 400;
}

.brand-name {
    display: block;
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.brand-tagline {
    display: block;
    font-size: 16px;
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-modal-body {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.intro-text {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.6;
}

.more-link, .less-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin: 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.more-link:hover, .less-link:hover {
    color: var(--white);
    transform: translateX(5px);
}

.hidden-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.hidden-content.expanded {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.additional-content {
    margin-top: 20px;
}

.additional-content p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.additional-content p:last-child {
    margin-bottom: 0;
}

.footer-modal-cta {
    display: inline-block;
    margin-top: 35px;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, #b8941f 100%);
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.footer-modal-cta:hover {
    background: linear-gradient(135deg, #e6c757 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.footer-modal-image {
    width: 40%;
    object-fit: cover;
    position: relative;
}

.footer-modal-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, transparent 30%);
    pointer-events: none;
}

/* Legacy format support for sections */
.footer-modal-body strong {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Make footer links clickable */
.footer-nav li {
    transition: all 0.3s ease;
}

.footer-nav li[onclick] {
    cursor: pointer;
}

.footer-nav li[onclick]:hover {
    transform: translateX(5px);
}

.footer-nav li[onclick]:hover span {
    color: var(--gold);
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-modal-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .footer-modal-text {
        max-width: 100%;
        padding: 40px 30px;
    }
    
    .footer-modal-image {
        width: 100%;
        height: 300px;
        order: -1;
    }
    
    .brand-name {
        font-size: 28px;
    }
    
    .intro-text {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .footer-modal-text {
        padding: 30px 20px;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .brand-tagline {
        font-size: 14px;
    }
    
    .footer-modal-cta {
        padding: 12px 30px;
        font-size: 12px;
    }
}