
/* ==============================
   GLOBAL WEBSITE STYLING
================================ */

:root {
    --primary: #173B63;
    --secondary: #F4A51C;
    --green: #4B8B45;
    --text: #344054;
    --light-bg: #F5F8FA;
    --white: #FFFFFF;
    --border: #E5EAF0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6,
p, a, button, input, select, textarea {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    line-height: 1.3;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ==============================
   HEADER
================================ */

.header {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(23, 59, 99, 0.05);
}

.nav {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

/* LOGO */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand b {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.2px;
}

.brand small {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    letter-spacing: 2px;
}


/* NAVIGATION LINKS */
/* Active Navigation Underline */

.nav-links > a {
    position: relative;
    text-decoration: none;
}

.nav-links > a::after,
.services-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 0;
    height: 2px;
    background: #F4A51C;
    transition: width 0.3s ease;
}

.nav-links > a.active::after {
    width: 100%;
}

.nav-links > a.active {
    color: #173B63;
}

/* Services active underline */

.services-toggle {
    position: relative;
}

.services-toggle.active::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 23px;
}

.nav-links > a,
.services-toggle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: none;
    padding: 10px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links > a:hover,
.services-toggle:hover {
    color: var(--green);
}

.nav-links > a.active {
    color: var(--green);
    position: relative;
}

.nav-links > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: var(--secondary);
}


/* SERVICES DROPDOWN */

.nav-dropdown {
    position: relative;
}

.services-toggle span {
    color: var(--secondary);
    margin-left: 3px;
}

.services-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 255px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    box-shadow: 0 10px 25px rgba(23, 59, 99, 0.12);
    display: none;
    z-index: 1001;
}

.nav-dropdown:hover .services-menu,
.nav-dropdown:focus-within .services-menu {
    display: block;
}

.services-menu a {
    display: block;
    padding: 11px 17px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.services-menu a:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 22px;
}


/* THEME SELECTOR */

.theme-switch {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.theme-switch label {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.theme-switch select {
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--primary);
    background: var(--white);
    font-size: 13px;
    outline: none;
}

.theme-switch select:focus {
    border-color: var(--green);
}


/* HAMBURGER MENU */

.hamburger {
    display: none;
    background: transparent;
    border: none;
    padding: 7px;
}

.hamburger i {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 3px;
}
.services-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dropdown-arrow {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow {
    transform: rotate(225deg);
    margin-top: 4px;
}


/* ==============================
   RESPONSIVE HEADER
================================ */

@media (max-width: 1100px) {
    .nav-links {
        gap: 14px;
    }

    .nav-links > a,
    .services-toggle {
        font-size: 13px;
    }

    .brand b {
        font-size: 19px;
    }
}

@media (max-width: 900px) {
    .nav {
        min-height: 75px;
        flex-wrap: wrap;
    }

    .brand img {
        width: 55px;
        height: 55px;
    }

    .hamburger {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 15px 0;
        border-top: 1px solid var(--border);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links > a,
    .services-toggle {
        width: 100%;
        text-align: left;
        padding: 10px 5px;
        font-size: 15px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .services-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 12px;
    }

    .nav-dropdown:hover .services-menu {
        display: none;
    }

    .nav-dropdown:focus-within .services-menu {
        display: block;
    }

    .theme-switch {
        width: 100%;
        padding: 10px 0 15px;
    }
}

@media (max-width: 480px) {
    .brand b {
        font-size: 18px;
    }

    .brand small {
        font-size: 11px;
    }

    .brand img {
        width: 48px;
        height: 48px;
    }

    .container {
        width: 92%;
    }
}
