/* ==========================================================
   GLOBAL: Base Variables + Reset
========================================================== */
:root {
    --blue: #0f2f70;
    --accent: #0097b2;
    --white: #ffffff;
    --black: #000000;
    --light-grey: #f2f2f2;
    --dark-grey: #444444;
    --medium-grey: #eeeeee;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {overflow-x: hidden;}
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--light-grey);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: 100px;
}
a, button, #imageModal, .collapse-toggle,.modal .close {cursor: pointer;}
/* ==========================================================
   LAYOUT: Header
========================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--blue);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.logo-container img {
    max-height: 60px;
    height: auto;
    width: auto;
}

/* ==========================================================
   LAYOUT: Navigation (in header)
========================================================== */
.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    text-decoration: none;
}
.nav-links.open {display: flex;}
.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.25s ease-in-out;
}
.nav-links a:hover {color: var(--accent);}
.nav-links a:hover::after {width: 100%;}
.nav-links a.active-link {
    color: var(--white);
    font-weight: 700;
    background-color: var(--accent);
    border-radius: 4px;
    padding: 0.50rem 0.75rem;
}
.nav-links a.active-link::after {display: none;}

/* ==========================================================
   LAYOUT: Hero
========================================================== */
.hero {
    background-color: var(--light-grey);
    padding: 4rem 2rem 2rem;
    text-align: center;
}
.hero div {
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 1rem;
}
.hero .highlight {color: var(--accent);}
hero p {color: var(--dark-grey);}

/* ==========================================================
   LAYOUT: Main
========================================================== */
main {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
main section {
    background-color: var(--white);
    border-radius: 6px;
    padding: 3.5em;
    gap: 1em;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}
main h2 {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 0.5rem;   
}
main p {
    font-size: 1rem;
    color: var(--dark-grey);
    line-height: 1.6;
}
main a {color: var(--accent);}

/* ==========================================================
   LAYOUT: Left & Right Panels
========================================================== */
.left-panel {flex: 3 1 0%;}
.right-panel {flex: 1 1 0%;}
.right-panel h2 {text-align: center;}
.bullet-list {
    padding-left: 1.25rem;
    margin-top: 0.25rem;
    list-style: disc;
    color: var(--black);
}
.bullet-list li {margin-bottom: 0.5rem;}
.left-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue);
    margin: 0;
}

/* ==========================================================
   LAYOUT: Footer Content
========================================================== */
footer {
    background: var(--blue);
    color: var(--white);
    padding: 2rem 1rem;
}
.footer-top {
    max-width: 1000px;
    margin: 1em auto 0;
    padding: 0 3rem;
    gap: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand img {
    height: 90px;
    object-fit: contain;
}
.footer-links-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0.5rem auto;
    display: block;
}
.footer-socials a {
    color: var(--white);
    margin: 0 .25em;
    font-size: 1.25rem;
    transition: color 0.2s;
}
.footer-socials a:hover, .footer-links a:hover {color: var(--accent);}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
}
.footer-links {text-align: center;}

/* ==========================================================
   FEATURES: Modal Box Pop-out
========================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 2rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.modal .close {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
}

/* ==========================================================
   MEDIA QUERIES
========================================================== */
@media (max-width: 768px) {
    main {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--blue);
        width: 200px;
        padding: 1rem;
        z-index: 999;
    }
    .nav-links.open {display: flex;}
    .left-panel, .right-panel {width: 100%;}
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand img {height: 60px;}
    .footer-section {flex: none;}
    .footer-links-socials {align-items: center;}
    .menu-toggle {display: block;}
}