/* Theme variables */
:root {
    --background-color: #F5F5F5;
    --text-color: #333333;
    --title-color: #333333;
    --border-color: #4A6A8A;
    --nav-text-color: #333333;
}

/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
}

body {
    font-family: 'Playfair Display', serif;
}

/* Page content */
#page-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
    color: var(--text-color);
}





/* Navigation styles */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: var(--background-color) !important;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem; /* Increase from 2rem to 3rem to accommodate larger font */
    padding: 0;
    margin: 0;
}

nav a {
    color: var(--nav-text-color) !important;
    text-decoration: none;
    font-size: 1.5rem; /* Reduce from 1.8rem to 1.5rem to make it smaller */
    font-family: 'Playfair Display', serif; /* Add consistent font family */
    position: relative;
    transition: all 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
}

nav a.active {
    color: var(--nav-text-color) !important;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .nav-desktop {
        display: none !important;
    }
    
    .nav-mobile {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: 100%;
        padding: 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background-color: var(--background-color);
    }
    
    .hamburger {
        background: transparent;
        border: none;
        font-size: 1.8rem;
        color: var(--text-color);
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
        -webkit-tap-highlight-color: transparent;
    }
    
    .side-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(10, 10, 26, 0.95);
        transform: translateX(100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        will-change: transform;
    }
    
    .side-menu.open {
        transform: translateX(0);
    }
    
    .side-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .side-menu a {
        color: #FFFFFF !important;
        text-decoration: none;
        font-size: 1.5rem; /* Reduce from 1.8rem to 1.5rem to match desktop */
        font-family: 'Cinzel', serif;
        display: block;
        opacity: 1;
        transition: opacity 0.2s ease;
        position: relative;
    }
    
    .side-menu a:hover {
        opacity: 0.8;
    }

    .side-menu a.active {
        color: #FFFFFF !important;
    }
    
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        z-index: 1999;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    main {
        padding-top: calc(70px + env(safe-area-inset-top));
    }
}

/* Desktop navigation */
@media (min-width: 769px) {
    .nav-mobile {
        display: none !important;
    }
    
    .nav-desktop {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100%;
    }
}

/* Cookie consent modal styles */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.modal-content p {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-family: 'Playfair Display', serif;
}

.modal-content a {
    color: #CC9900;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons button {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-buttons button:hover {
    background: var(--border-color);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 106, 138, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0;
    }
}



body.modal-open {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
}

main {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 10px; /* Reduce from 20px to 10px to bring content even higher */
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem !important;
    }

    nav ul {
        flex-direction: column;
        gap: 2rem;
        justify-content: center !important;
        font-size: 1.5rem; /* Reduce from 1.8rem to 1.5rem to match desktop */
    }

    /* Remove the blue line on mobile */
    header {
        border-bottom: none !important;
    }

    .side-menu ul li {
        border-bottom: none;
    }

    .side-menu {
        background: rgba(10, 10, 26, 0.85); /* Increased transparency to 85% */
    }

    .side-menu.instant-close {
        transition: none !important;
        transform: translateX(100%) !important;
    }

    .side-menu a {
        color: #FFFFFF; /* Force burger menu text to stay white in both themes */
    }

    .side-menu a:hover {
        color: #FFFFFF; /* Ensure hover state also keeps text white */
        opacity: 0.8;
        transform: scale(1.05);
    }

    main {
        padding-top: calc(70px + env(safe-area-inset-top));
        padding-bottom: 0;
        position: relative;
        z-index: 1;
    }


}

@media (min-width: 769px) and (max-width: 1024px) {
    #cookie-modal .modal-content {
        padding: 1.5rem;
    }

    #cookie-modal .modal-content.expanded {
        max-width: 700px;
        padding: 2rem;
        padding-top: 2rem;
    }

    #cookie-modal .modal-content p {
        font-size: 1rem;
    }

    #cookie-modal .modal-content h1 {
        font-size: 2.2rem;
        margin-top: 0.5rem;
    }

    #cookie-modal .modal-content ul li {
        font-size: 0.9rem;
    }

    #cookie-modal .modal-content a.back-to-consent {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    #cookie-modal .modal-buttons button {
        padding: 0.7rem 1.3rem;
        background: var(--cta-background);
        border: 2px solid #CC9900;
        border-radius: 4px;
        color: var(--text-color);
        font-family: 'Cinzel', serif;
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: background 0.3s ease, border-color 0.3s ease;
        cursor: pointer;
        pointer-events: auto;
        box-sizing: border-box;
    }

    #cookie-modal .modal-buttons button:hover {
        background: var(--cta-background-hover);
        border-color: var(--text-color);
        color: var(--text-color);
    }
}

/* Privacy policy content styles */
#privacy-policy-content {
    color: #000000;
}

#privacy-policy-content h1 {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
}

#privacy-policy-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

#privacy-policy-content ul li {
    color: #000000;
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

#privacy-policy-content .back-to-consent {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #000000;
    border: 2px solid #CC9900;
    border-radius: 4px;
    color: #FFFFFF;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

#privacy-policy-content .back-to-consent:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
}