@charset "utf-8";
/* ==========================================================================
   Yuniq — Standalone Header/Nav Stylesheet
   Extracted so the header markup can be reused on any page.
   Just link this file and paste the <header> HTML — no other
   dependency on the main stylesheet is required.

   NOTE: this component uses the "Poppins" font for nav text/headings.
   Make sure Poppins is loaded on any page you use this on, e.g.:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet">
   ========================================================================== */

:root {
    --color-primary: #e54b4b;
    /* red accent — active link / hover */
    --color-accent: #fa5b0f;
    /* orange accent — dropdown icons */
    --color-text: #767676;
    --color-text-dark: #000;
    --color-border: #e9ecef;

    --font-heading: "Poppins", sans-serif;

    --container-max: 1200px;
    --transition: all .3s ease;
}

/* ---------- Base resets needed for the header to render correctly ---------- */

*,
.site-header * {
    box-sizing: border-box;
}

.site-header a {
    color: inherit;
}

.site-header img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* ---------- Header / Nav ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 26px 0;
    transition: var(--transition);
}

.site-header.is-scrolled {
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 18px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo img {
    max-width: 100px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    transition: var(--transition);
}

.site-header.is-scrolled .nav-links a {
    color: #000;
}

.nav-links a:hover,
.nav-links a.is-current {
    color: var(--color-primary);
}

/* ---------- Dropdown nav (Services → HR / IT → IT sub-services) ---------- */

.nav-links>li {
    position: relative;
}

.nav-links>li.has-dropdown>a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.caret {
    font-size: 10px;
    line-height: 1;
    transition: transform .25s ease;
}

.has-dropdown:hover>a>.caret {
    transform: rotate(180deg);
}

.has-dropdown--right:hover>a>.caret--right {
    transform: translateX(2px);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    list-style: none;
    margin: 16px 0 0 0;
    padding: 10px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 300;
}

.has-dropdown:hover>.dropdown,
.has-dropdown:focus-within>.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    position: relative;
}

.dropdown li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text-dark);
    transition: var(--transition);
}

.dropdown li a:hover {
    background-color: #f9f9f9;
}

.dd-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.dd-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.dd-text strong {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.dd-text small {
    font-size: 12px;
    color: var(--color-text);
}

.dropdown li a .caret--right {
    margin-left: auto;
    color: var(--color-text);
}

/* second-level flyout — opens to the right of the first dropdown */
.dropdown--flyout {
    top: 0;
    left: 100%;
    margin: 0 0 0 12px;
    min-width: 260px;
}

.dropdown--flyout .dd-icon {
    width: 18px;
    height: 18px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

.site-header.is-scrolled .nav-toggle span {
    background-color: #000;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
    .container {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #fff;
        box-shadow: 0 20px 30px rgba(0, 0, 0, .12);
        padding: 12px 24px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links>li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links>li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        color: #000 !important;
        padding: 14px 0;
        width: 100%;
    }

    .nav-links>li.has-dropdown>a {
        justify-content: space-between;
        width: 100%;
    }

    /* dropdowns become static, collapsible panels instead of hover flyouts */
    .dropdown,
    .dropdown--flyout {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        margin: 0;
        padding: 0;
        min-width: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .has-dropdown.is-open>.dropdown {
        max-height: 900px;
        padding: 6px 0 10px 8px;
    }

    .dropdown li a {
        padding: 10px 8px;
    }

    .dd-text small {
        display: none;
        /* keep mobile rows compact — title is enough once nested */
    }

    .caret,
    .caret--right {
        transition: transform .25s ease;
    }

    .has-dropdown.is-open>a>.caret {
        transform: rotate(180deg);
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (min-width: 1041px) and (max-width: 1220px) {

    /* not enough room to open the IT-services flyout to the right without
	   clipping the viewport edge — stack it below its parent row instead */
    .dropdown--flyout {
        position: static;
        left: auto;
        top: auto;
        box-shadow: none;
        background-color: #f9f9f9;
        border-radius: 8px;
        margin: 6px 0 6px 12px;
        min-width: 0;
        width: calc(100% - 12px);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height .25s ease;
    }

    .has-dropdown--right:hover>.dropdown--flyout,
    .has-dropdown--right:focus-within>.dropdown--flyout {
        max-height: 500px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 18px;
    }
}