/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #007bff;
    --text-color: #333;
    --background-color: #fff;
    --border-color: #e7e7e7;
    --navbar-height: 70px;
    --max-width: 1200px;
    --font-family: 'Inter', sans-serif;
}

/* --- General Body Styles --- */
body {
    font-family: var(--font-family);
    margin-top: var(--navbar-height); /* Space for the sticky navbar */
    padding: 0;
    background-color: #f4f6f8;
}

/* --- Navbar General Styles --- */
.navbar {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    height: var(--navbar-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Brand/Logo --- */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.navbar-brand-name {
    font-size: 1.2rem;
    font-weight: 600;
}

/* --- Navigation Links --- */
.navbar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-item {
    margin-left: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 4px;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* --- CTA Button --- */
.cta-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #0056b3;
    color: #fff;
}

.cta-button::after {
    display: none; /* No underline for button */
}

/* --- Mobile Menu Toggle --- */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.navbar-toggle-icon {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: background-color 0.2s ease-out;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: transform 0.3s ease-out;
}

.navbar-toggle-icon::before {
    top: -8px;
}

.navbar-toggle-icon::after {
    top: 8px;
}

/* --- Mobile/Responsive Styles --- */
@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: -4px 0 15px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        padding-top: 100px;
        transition: right 0.35s ease-in-out;
        z-index: 1050;
    }
    
    .navbar-menu.is-active {
        right: 0;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-item {
        margin: 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 15px 30px;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link::after {
        display: none; /* No underline on mobile links */
    }

    .cta-button {
        margin: 20px 30px;
        text-align: center;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-toggle[aria-expanded="true"] .navbar-toggle-icon {
        background-color: transparent; /* Middle bar disappears */
    }

    .navbar-toggle[aria-expanded="true"] .navbar-toggle-icon::before {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle[aria-expanded="true"] .navbar-toggle-icon::after {
        transform: translateY(-8px) rotate(-45deg);
    }
}
