/* --- 1. CORE VARIABLES --- */

:root {
    --primary: #b11226;
    --secondary: #7a0c18;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    color: var(--text-dark);
    transition: var(--transition);
    overflow-x: hidden;
}


/* --- 2. DARK MODE --- */

body.dark-mode {
    background: #121212;
    color: var(--text-light);
}

body.dark-mode .vmg-section,
body.dark-mode .cta-section {
    background: #1e1e1e;
}

body.dark-mode .paecho-btn.outline {
    color: white;
    border-color: white;
}


/* --- 3. HEADER & NAVIGATION --- */

.top-bar {
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 10px 5%;
    font-size: 14px;
    align-items: center;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.social-icons {
    display: inline-block;
    margin-left: 15px;
}

.main-header {
    background: var(--secondary);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: #ff9d9d;
}


/* --- 4. DROPDOWNS --- */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--secondary);
    min-width: 180px;
    top: 100%;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* --- 5. MOBILE SIDEBAR MENU --- */

#sidebarToggle {
    display: none;
    color: rgb(126, 76, 76);
    font-size: 1.8rem;
    cursor: pointer;
}


/* Prevent page scroll when menu open */

body.menu-open {
    overflow: hidden;
}


/* Overlay */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
}

.menu-overlay.active {
    display: block;
}


/* SIDEBAR */

.side-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--secondary);
    z-index: 2001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.side-menu.active {
    right: 0;
}


/* HEADER */

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-shrink: 0;
}

#closeMenu {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}


/* SCROLL AREA */

.side-menu-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 30px 20px;
    max-height: calc(100vh - 80px);
    -webkit-overflow-scrolling: touch;
}


/* MENU LINKS */

.side-nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.side-nav-links a:hover {
    padding-left: 10px;
    color: var(--primary);
}


/* --- 6. MOBILE DROPDOWNS --- */

.mobile-dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 5px;
    cursor: pointer;
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.mobile-dropdown.active .mobile-dropdown-content {
    display: flex;
}

.mobile-dropdown-content a {
    padding: 8px 0;
    font-size: 0.95rem;
}

.mobile-dropdown-content a:hover {
    color: var(--primary);
    padding-left: 5px;
}


/* SCROLLBAR */

.side-menu-scroll::-webkit-scrollbar {
    width: 6px;
}

.side-menu-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}


/* --- 7. MOBILE RESPONSIVENESS --- */

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    #sidebarToggle {
        display: block;
    }
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        padding: 8px 2%;
    }
    .top-right {
        font-size: 12px;
    }
    .side-menu {
        width: 60%;
        max-width: 300px;
        padding: 25px 20px;
    }
}