/* --- Burger menu --- */
@media (max-width: 600px) {
    .header-nav {
        position: absolute;
        top: 6rem;
        right: 0;
        background: rgb(255, 255, 255);
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        width: 100%;

        /* Animation setup */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    /* Show burger icon */
    .burger {
        display: flex;
        margin-left: auto;
    }

    /* Style the burger lines */
    .burger span {
        display: block;
        height: 3px;
        background: rgb(22, 22, 22);
        border-radius: 5px;
        transition: all 0.3s ease; /* smooth animation */
    }

    /* When menu is open */
    .menu-toggle:checked + .burger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle:checked + .burger span:nth-child(2) {
        opacity: 0; /* middle line fades out */
    }

    .menu-toggle:checked + .burger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* When checkbox is checked → show nav */
    .menu-toggle:checked ~ nav .header-nav {
            max-height: 500px;   /* big enough to fit links */
            opacity: 1;
    }

} /* end bureger media query */


@media (max-width: 900px) {

    .footer-container {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    .footer-nav {
        flex-wrap: wrap;
        row-gap:1px
        
    }
}


@media (max-width: 600px) {
    h1, h2, p {
        margin-bottom: 1.0rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
        line-height: 3rem;
    }

    p, ol, ul, a { 
        font-size: 2.0rem;
        line-height: 3.10rem;
        font-weight: 400;
    }

 
    a {
        font-weight: 500;
    }
}