:root {
    --warm-emerald: #1e2b22; 
    --sand-paper: #F4F1EA;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--sand-paper);
    color: var(--warm-emerald);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* --- NAVIGATION BASE --- */
.main-nav {
    position: absolute; /* Scrolls away with the page */
    top: 0;
    width: 100%;
    padding: 50px 0;
    z-index: 3000;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: center; /* Centers the tabs perfectly */
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 7.5%;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1e2b22; /* Your Warm Emerald */
    white-space: nowrap; /* PREVENTS TWO LINES */
    transition: 0.3s;
}

/* --- HAMBURGER BUTTON --- */
.menu-toggle {
    display: none; /* Hidden on Desktop */
    position: absolute;
    right: 7.5%;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 3101;
}

.bar {
    width: 100%;
    height: 1px;
    background-color: #1e2b22;
    transition: 0.4s;
}

/* --- MOBILE/TABLET OVERLAY (1300px Breakpoint) --- */
@media (max-width: 1300px) {
    .menu-toggle {
        display: flex; /* Show hamburger */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen */
        height: 100vh;
        width: 100%;
        background-color: #1e2b22; /* Warm Emerald background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }

    .nav-links.active {
        right: 0; /* Slide in */
    }

    .nav-links a {
        font-size: 1.2rem;
        color: #f4f1ea !important; /* Sand color for visibility */
    }

    /* Animation: Bars to X */
    .is-active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background-color: #f4f1ea; }
    .is-active .bar:nth-child(2) { opacity: 0; }
    .is-active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background-color: #f4f1ea; }
}
@media screen and (max-width: 768px) {
    /* Standardizes the footer for all pages (Domenica, Podcast, Projects) */
    .footer-container, .footer-content {
        flex-direction: column !important;
        gap: 15px;
        text-align: center;
    }
    
    /* Ensures your .mp4 videos and images never overflow the screen */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
}
/* --- GLOBAL TITLE SCALING FOR MOBILE --- */
@media screen and (max-width: 768px) {
    
    /* Targets the main <h1> on Projects and Editorial pages */
    .projects-intro h1, 
    .gallery-header h1,
    .page-header h1,
    h1 {
        font-size: 2.8rem !important; /* Scales down from the desktop 6.5rem */
        letter-spacing: 5px !important;
        line-height: 1.1 !important;
        word-wrap: break-word;
        width: 90%;
        margin: 0 auto !important;
    }

    /* Specifically for the Podcast title which might be in a different class */
    .season-title {
        font-size: 2.2rem !important;
        letter-spacing: 2px !important;
        text-align: center;
    }

    /* Adjusts the space above the titles so you don't have to scroll forever */
    .projects-intro, 
    .gallery-header, 
    .page-header {
        padding-top: 100px !important;
        padding-bottom: 30px !important;
    }
}

