/* =========================================================
   MUSANDA FOUNDATION
   Global Stylesheet
   ========================================================= */


/* =========================================================
   1. GOOGLE FONTS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&family=Roboto+Mono:wght@400;500;600;700&display=swap');


/* =========================================================
   2. ROOT VARIABLES
   ========================================================= */

:root {

    /* -----------------------------------------------------
       Brand Colours
       ----------------------------------------------------- */

    --primary-color: #2C307A;
    --secondary-color: #B22034;

    /* -----------------------------------------------------
       Neutral Colours
       ----------------------------------------------------- */

    --black-color: #1A1A1A;
    --white-color: #FFFFFF;

    --light-color: #F7F7FA;
    --grey-color: #6B6B6B;
    --light-grey-color: #E5E5E5;


    /* -----------------------------------------------------
       Typography
       ----------------------------------------------------- */

    --heading-font: 'Roboto Mono', monospace;
    --body-font: 'Open Sans', sans-serif;
    --accent-font: 'Caveat', cursive;


    /* -----------------------------------------------------
       Layout
       ----------------------------------------------------- */

    --container-width: 1200px;


    /* -----------------------------------------------------
       Border Radius
       ----------------------------------------------------- */

    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 14px;


    /* -----------------------------------------------------
       Shadows
       ----------------------------------------------------- */

    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.08);

    --shadow-medium: 0 6px 20px rgba(0, 0, 0, 0.10);

    --shadow-large: 0 12px 35px rgba(0, 0, 0, 0.14);


    /* -----------------------------------------------------
       Transitions
       ----------------------------------------------------- */

    --transition-fast: 0.2s ease;

    --transition-normal: 0.3s ease;

    --transition-slow: 0.5s ease;
}


/* =========================================================
   3. GLOBAL RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;

    color: var(--black-color);
    background-color: var(--white-color);

    overflow-x: hidden;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border: none;
    background: none;
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}


ul,
ol {
    list-style: none;
}


/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}


h1 {
    font-size: 3.5rem;
}


h2 {
    font-size: 2.5rem;
}


h3 {
    font-size: 1.75rem;
}


h4 {
    font-size: 1.4rem;
}


h5 {
    font-size: 1.2rem;
}


h6 {
    font-size: 1rem;
}


p {
    margin-bottom: 1rem;
}


.accent-text {
    font-family: var(--accent-font);
}


/* =========================================================
   5. CONTAINER
   ========================================================= */

.container {
    width: 90%;
    max-width: var(--container-width);

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   6. SECTIONS
   ========================================================= */

.section {
    padding: 90px 0;
}


.section-header {
    margin-bottom: 50px;
}


.section-title {
    margin-bottom: 15px;

    color: var(--primary-color);
}


.section-description {
    max-width: 700px;

    margin-left: auto;
    margin-right: auto;

    color: var(--grey-color);
}


/* =========================================================
   7. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 13px 25px;

    border-radius: var(--radius-small);

    font-family: var(--heading-font);
    font-size: 0.9rem;
    font-weight: 600;

    transition: var(--transition-normal);

    cursor: pointer;
}


/* Primary Button */

.btn-primary {
    color: var(--white-color);
    background-color: var(--primary-color);
}


.btn-primary:hover {
    background-color: #232661;

    transform: translateY(-2px);
}


/* Secondary Button */

.btn-secondary {
    color: var(--white-color);
    background-color: var(--secondary-color);
}


.btn-secondary:hover {
    background-color: #941D2D;

    transform: translateY(-2px);
}


/* Outline Button */

.btn-outline {
    color: var(--primary-color);

    background-color: transparent;

    border: 2px solid var(--primary-color);
}


.btn-outline:hover {
    color: var(--white-color);

    background-color: var(--primary-color);

    transform: translateY(-2px);
}


/* =========================================================
   8. CARD
   ========================================================= */

.card {
    background-color: var(--white-color);

    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);

    overflow: hidden;

    transition: var(--transition-normal);
}


.card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-medium);
}


/* =========================================================
   9. IMAGE
   ========================================================= */

.image-cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.image-contain {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   10. TEXT UTILITIES
   ========================================================= */

.text-center {
    text-align: center;
}


.text-left {
    text-align: left;
}


.text-right {
    text-align: right;
}


.text-primary {
    color: var(--primary-color);
}


.text-secondary {
    color: var(--secondary-color);
}


.text-muted {
    color: var(--grey-color);
}


/* =========================================================
   11. BACKGROUND UTILITIES
   ========================================================= */

.bg-primary {
    background-color: var(--primary-color);
}


.bg-secondary {
    background-color: var(--secondary-color);
}


.bg-light {
    background-color: var(--light-color);
}


.bg-white {
    background-color: var(--white-color);
}


/* =========================================================
   12. FLEX UTILITIES
   ========================================================= */

.flex {
    display: flex;
}


.flex-center {
    display: flex;

    align-items: center;
    justify-content: center;
}


.flex-between {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   13. GRID UTILITIES
   ========================================================= */

.grid {
    display: grid;
}


/* =========================================================
   14. VISIBILITY
   ========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   15. ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid var(--secondary-color);

    outline-offset: 3px;
}


/* =========================================================
   16. SELECTION
   ========================================================= */

::selection {
    color: var(--white-color);

    background-color: var(--primary-color);
}


/* =========================================================
   17. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}


::-webkit-scrollbar-track {
    background-color: var(--light-color);
}


::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);

    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}


/* =========================================================
   18. RESPONSIVE TYPOGRAPHY
   ========================================================= */


   /* =========================================================
   19. NAVIGATION BAR
   ========================================================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background-color: var(--white-color);

    border-bottom: 1px solid var(--light-grey-color);

    transition: var(--transition-normal);
}


/* Navbar when user scrolls */

.navbar.scrolled {
    box-shadow: var(--shadow-small);
}


/* Navbar Container */

.navbar-container {
    min-height: 80px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;

    flex-direction: column;

    line-height: 1;

    flex-shrink: 0;
}


.logo-main {
    color: var(--primary-color);

    font-family: var(--heading-font);

    font-size: 1.25rem;
    font-weight: 700;

    letter-spacing: 1px;
}


.logo-sub {
    margin-top: 5px;

    color: var(--secondary-color);

    font-family: var(--heading-font);

    font-size: 0.55rem;
    font-weight: 700;

    letter-spacing: 3px;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.nav-menu {
    display: flex;

    align-items: center;

    gap: 30px;

    margin-left: auto;
}


.nav-link {
    position: relative;

    padding: 8px 0;

    color: var(--black-color);

    font-family: var(--heading-font);

    font-size: 0.8rem;
    font-weight: 600;

    transition: var(--transition-fast);
}


.nav-link:hover {
    color: var(--primary-color);
}


/* Active navigation link */

.nav-link.active {
    color: var(--primary-color);
}


/* Active / hover underline */

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background-color: var(--secondary-color);

    transition: var(--transition-normal);
}


.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* =========================================================
   NAVIGATION CTA
   ========================================================= */

.nav-cta {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    color: var(--white-color);

    background-color: var(--secondary-color);

    border-radius: var(--radius-small);

    font-family: var(--heading-font);

    font-size: 0.75rem;
    font-weight: 600;

    white-space: nowrap;

    transition: var(--transition-normal);
}


.nav-cta:hover {
    background-color: #941D2D;

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-btn {
    display: none;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: var(--primary-color);

    font-size: 1.25rem;

    border-radius: var(--radius-small);

    transition: var(--transition-fast);
}


.mobile-menu-btn:hover {
    background-color: var(--light-color);
}

/* =========================================================
   20. FOOTER
   ========================================================= */

.footer {
    color: rgba(255, 255, 255, 0.75);

    background-color: var(--primary-color);
}


/* =========================================================
   FOOTER GRID
   ========================================================= */

.footer-grid {
    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;

    gap: 50px;

    padding: 70px 0 55px;
}


/* =========================================================
   FOOTER BRAND
   ========================================================= */

.footer-brand {
    max-width: 330px;
}


.footer-logo {
    display: inline-flex;

    flex-direction: column;

    line-height: 1;
}


.footer-logo-main {
    color: var(--white-color);

    font-family: var(--heading-font);

    font-size: 1.4rem;
    font-weight: 700;

    letter-spacing: 1px;
}


.footer-logo-sub {
    margin-top: 5px;

    color: var(--secondary-color);

    font-family: var(--heading-font);

    font-size: 0.55rem;
    font-weight: 700;

    letter-spacing: 3px;
}


.footer-brand > p {
    margin: 20px 0 25px;

    font-size: 0.9rem;

    line-height: 1.8;
}


/* =========================================================
   FOOTER SOCIALS
   ========================================================= */

.footer-socials {
    display: flex;

    align-items: center;

    gap: 10px;
}


.footer-socials a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    color: var(--white-color);

    background-color: rgba(255, 255, 255, 0.1);

    border-radius: 50%;

    font-size: 0.85rem;

    transition: var(--transition-normal);
}


.footer-socials a:hover {
    background-color: var(--secondary-color);

    transform: translateY(-3px);
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.footer-column h3 {
    margin-bottom: 20px;

    color: var(--white-color);

    font-family: var(--heading-font);

    font-size: 0.9rem;
}


.footer-column ul {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.footer-column li {
    font-size: 0.85rem;
}


.footer-column a {
    transition: var(--transition-fast);
}


.footer-column a:hover {
    color: var(--white-color);

    padding-left: 4px;
}


/* =========================================================
   FOOTER CONTACT
   ========================================================= */

.footer-contact li {
    display: flex;

    align-items: flex-start;

    gap: 10px;
}


.footer-contact i {
    width: 16px;

    margin-top: 4px;

    color: var(--secondary-color);
}


.footer-contact a:hover {
    padding-left: 0;

    color: var(--white-color);
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 25px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


.footer-bottom p {
    margin: 0;

    font-size: 0.75rem;
}


.footer-bottom span {
    color: var(--secondary-color);

    font-weight: 600;
}

.logo img{
    width: 200px;
}


/* =========================================================
   FOOTER RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;

        gap: 40px;
    }


    .footer-contact {
        grid-column: 1 / 4;
    }

}


@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 40px 30px;

        padding: 60px 0 45px;
    }


    .footer-brand {
        grid-column: 1 / 3;

        max-width: 500px;
    }


    .footer-contact {
        grid-column: auto;
    }


    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 480px) {

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .footer-brand {
        grid-column: auto;
    }


    .footer-contact {
        grid-column: auto;
    }


    .footer-bottom {
        gap: 8px;
    }

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 768px) {

    .navbar-container {
        min-height: 70px;
    }


    .nav-menu {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        padding: 15px 5%;

        background-color: var(--white-color);

        border-top: 1px solid var(--light-grey-color);
        border-bottom: 1px solid var(--light-grey-color);

        box-shadow: var(--shadow-medium);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity var(--transition-normal),
            visibility var(--transition-normal),
            transform var(--transition-normal);
    }


    /* Open mobile menu */

    .nav-menu.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .nav-link {
        width: 100%;

        padding: 14px 0;
    }


    .nav-link::after {
        display: none;
    }


    .nav-cta {
        display: none;
    }


    .mobile-menu-btn {
        display: flex;
    }

}

@media (max-width: 992px) {

    h1 {
        font-size: 3rem;
    }


    h2 {
        font-size: 2.2rem;
    }

}


@media (max-width: 768px) {

    body {
        font-size: 15px;
    }


    h1 {
        font-size: 2.4rem;
    }


    h2 {
        font-size: 2rem;
    }


    h3 {
        font-size: 1.5rem;
    }


    .section {
        padding: 70px 0;
    }


    .section-header {
        margin-bottom: 35px;
    }

}


@media (max-width: 480px) {

    h1 {
        font-size: 2rem;
    }


    h2 {
        font-size: 1.7rem;
    }


    .section {
        padding: 55px 0;
    }


    .container {
        width: 92%;
    }

}