:root {
    --primary-color: #d11f26;
    /* Adjusted red to match logo/image better */
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-text: #666;
    --white: #ffffff;
    --gray-bg: #f5f5f5;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    /* 10px = 1rem */
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    font-size: 1.6rem;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 170rem;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 576px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 4.5rem;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.2rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

.btn-budget {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    letter-spacing: 1px;
}

.btn-budget:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Desktop Click Behavior */
.nav-item.dropdown.active .dropdown-menu {
    display: block !important;
}

.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* Shared Dropdown Link Styles */
.dropdown-menu a {
    display: block;
    color: var(--white) !important;
    padding: 1.2rem 4rem;
    font-size: 1.1rem;
    text-align: left;
    white-space: normal;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    padding-left: 4.5rem;
}

@media (min-width: 993px) {
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: var(--primary-color);
        min-width: 320px;
        padding: 3rem 0;
        display: none;
        z-index: 9999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        margin-top: 10px;
        /* Space for the triangle */
    }

    /* Small triangle/arrow */
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid var(--primary-color);
    }
}

/* Typography Utility */
.text-red {
    color: var(--primary-color);
}

h2.section-title {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 4rem;
}

.view-more {
    display: inline-block;
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 2rem;
    transition: var(--transition);
}

.view-more:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 3rem;
    height: 2.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 3rem;
    height: 0.2rem;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:first-child {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    nav#main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }

    nav#main-nav.active {
        right: 0;
    }

    nav#main-nav a {
        font-size: 2.4rem;
    }

    .btn-budget {
        margin-top: 2rem;
    }
    
    .nav-item.dropdown {
        flex-direction: column;
        width: 100%;
    }

    .nav-item.dropdown .dropdown-menu {
        display: none;
        position: static;
        transform: none;
        width: 100%;
        min-width: 100%;
        background-color: var(--primary-color);
        padding: 2rem 0;
        margin-top: 1.5rem;
        box-shadow: none;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-item.dropdown .dropdown-menu a {
        color: var(--white) !important;
        text-align: center;
        font-size: 1.8rem;
        padding: 1rem 2rem;
        text-transform: uppercase;
    }


    body.menu-open {
        overflow: hidden;
    }
}