/* ==== Layout CSS === */
/* This file contains the CSS for the layout of the website */
/* It includes styles for the header, footer, navbar, grid, page structure */


/* =========================================
   Layout - Site Header and Navigation
   ========================================= */

/* Mobile-first: stacked nav */
.site-header {
    background-color: var(--color-primary);
    padding: 1rem 2rem;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}


.site-nav .nav-item a {
    color: var(--color-text-light);
}

.nav-item a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.125rem; /* 18px */
    transition: color 0.3s ease;
}

.site-nav .nav-item a:hover {
    color: var(--color-secondary);
}


/* Tablet and up: horizontal nav */
@media (min-width: 768px) {
    .site-nav .nav-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}




/* =========================================
   Burger Menu
   ========================================= */
    .burger{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 10;
    }

    .burger-line{
        width: 100%;
        height: 3px;
        background-color: var(--color-text-light);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hide nav links on mobile */
    .nav-links-wrapper{
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-links-wrapper.show {
        display: flex;
    }

    @media (min-width: 768px) {
        .burger {
             display: none;
        }

        .nav-links-wrapper {
            display: flex;
            flex-direction: row;
            justify-content: center;
        }
    }









/* =========================================
   Overlay when burger clicked
   ========================================= */

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100;
  }
  
  /* Mobile menu container */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    width: 80%;
    max-width: 300px;
    background-color: var(--color-white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 101;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  /* When menu is open */
  .mobile-menu.open {
    left: 0;
  }
  
  .mobile-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .mobile-logo {
    height: 30px;
  }
  
  .close-menu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
  }
  
  .close-menu i {
    font-size: 1.5rem; /*adjust size here */
    color: var(--color-text-main); /* or var(--color-primary) etc. */
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.125rem;
  }
  
  .mobile-nav-links a {
    color: var(--color-text-main);
    font-weight: 600;
  }











/* =========================================
   Layout - Footer
   ========================================= */

.site-footer {
    background-color: var(--color-text-main);
    color: var(--color-text-light);
    text-align: left;
    padding: 2rem 2rem;
}

.site-footer h3 {
    color: var(--color-text-light);
    font-size: 1rem; /* 14px */
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-branding {
    font-size: 0.875rem; /* 14px */
}

.footer-links, .footer-social {
    padding-bottom: 2rem;
}

.footer-links {
    padding-bottom: 4rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--color-text-light);
}



.footer-links a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
    font-size: 0.875rem; /* 14px */
}

.footer-links a:hover {
    color: var(--color-highlight);
}

.footer-social a {
    font-size: 1.5rem;
    padding-bottom: 1rem;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--color-highlight);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    font-size: 0.8rem; /* 14px */
}




/* Responsive layout */
@media (min-width: 768px) {
    .site-footer p, a {
        font-size: 1rem; /* 14px */
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-branding {
        text-align: left;
        max-width: 250px;
    }

    .footer-links ul {
        flex-direction: column;
    }

    .footer-links li {
        margin: 0;
        line-height: 1;
    }



    .footer-bottom p {
        font-size: 0.875rem; /* 14px */
        text-align: right;
    }
}
