/* Mobile First Approach */
/* Hide menu on mobile */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--primary);
        width: 100%;
        display: none;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .menu-toggle {
        display: block;
    }

    nav.active {
        display: flex;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .vertical-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .vertical-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        padding: 10rem 1rem 7rem;
    }
    
    .hero h2 {
        font-size: 3.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Mobile menu for smaller screens */
@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between; /* space between logo and menu icon */
        align-items: center;
        flex-direction: row; /* keep logo and menu toggle on same line */
        padding: 0 1rem;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--primary);
        width: 100%;
        display: none;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 0;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    nav.active {
        display: flex;
    }

    .hero {
        padding: 7rem 1rem 4rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
}