/* =========================================================
   CFS GROUP - PREMIUM HEADER & TOP BAR
   File: css/cfs-header.css
   ========================================================= */


/* =========================================================
   01. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background: #ffffff;
    color: #172033;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}


/* =========================================================
   02. ROOT VARIABLES
   ========================================================= */

:root {
    --cfs-navy: #06152f;
    --cfs-navy-light: #092650;
    --cfs-navy-dark: #041024;

    --cfs-gold: #f5a000;
    --cfs-gold-light: #ffc44d;
    --cfs-gold-dark: #d98700;

    --cfs-white: #ffffff;
    --cfs-black: #111111;

    --cfs-text: #172033;
    --cfs-muted: #687386;

    --cfs-border: #e7ebf1;

    --cfs-container: 1400px;
}


/* =========================================================
   03. TOP BAR
   ========================================================= */

.cfs-topbar {
    position: relative;
    width: 100%;

    background:
        linear-gradient(
            105deg,
            #06152f 0%,
            #092650 48%,
            #071b3c 100%
        );

    color: #ffffff;

    overflow: hidden;

    z-index: 1000;
}


/* Topbar light animation */

.cfs-topbar::before {
    content: "";

    position: absolute;

    top: 0;
    left: -25%;

    width: 20%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.07),
            transparent
        );

    transform: skewX(-25deg);

    animation: cfsTopbarLight 8s infinite;

    pointer-events: none;
}

@keyframes cfsTopbarLight {

    0% {
        left: -25%;
    }

    45% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}


/* =========================================================
   04. TOP BAR CONTAINER
   ========================================================= */

.cfs-topbar-container {
    width: min(
        var(--cfs-container),
        calc(100% - 50px)
    );

    min-height: 56px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1fr
        auto
        auto;

    align-items: center;

    gap: 35px;
}


/* =========================================================
   05. TOP BAR MESSAGE
   ========================================================= */

.cfs-topbar-message {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}

.cfs-topbar-message-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(245, 160, 0, 0.55);

    border-radius: 50%;

    color: var(--cfs-gold);

    font-size: 15px;

    animation:
        cfsShieldPulse 3s ease-in-out infinite;
}

@keyframes cfsShieldPulse {

    0%,
    100% {
        box-shadow:
            0 0 0 0
            rgba(245, 160, 0, 0.20);
    }

    50% {
        box-shadow:
            0 0 0 7px
            rgba(245, 160, 0, 0);
    }
}

.cfs-topbar-message-text {
    color:
        rgba(255, 255, 255, 0.90);

    font-size: 13px;

    font-weight: 400;

    line-height: 1.4;

    white-space: nowrap;
}

.cfs-topbar-message-text strong {
    color: var(--cfs-gold-light);

    font-weight: 700;
}


/* =========================================================
   06. TOP BAR HIGHLIGHTS
   ========================================================= */

.cfs-topbar-highlights {
    display: flex;

    align-items: center;

    gap: 30px;
}

.cfs-topbar-highlight {
    display: flex;

    align-items: center;

    gap: 9px;

    color:
        rgba(255, 255, 255, 0.90);

    font-size: 12px;

    font-weight: 500;

    white-space: nowrap;
}

.cfs-topbar-highlight-icon {
    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(245, 160, 0, 0.08);

    border:
        1px solid
        rgba(245, 160, 0, 0.35);

    color: var(--cfs-gold);

    font-size: 12px;
}


/* =========================================================
   07. TOP BAR DESKTOP PHONE
   ========================================================= */

.cfs-topbar-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;
}

.cfs-topbar-phone {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.cfs-topbar-phone:hover {
    color: var(--cfs-gold-light);

    transform: translateY(-1px);
}

.cfs-topbar-phone-icon {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--cfs-gold);

    color: var(--cfs-navy);

    font-size: 13px;
}


/* =========================================================
   08. MOBILE TOP BAR ACTIONS
   ========================================================= */

.cfs-topbar-mobile-actions {
    display: none;
}


/* =========================================================
   09. MAIN HEADER
   ========================================================= */

.cfs-main-header {
    position: relative;

    width: 100%;

    background: #ffffff;

    z-index: 999;

    border-bottom:
        1px solid
        #edf0f4;

    box-shadow:
        0 5px 25px
        rgba(6, 21, 47, 0.05);
}


/* =========================================================
   10. MAIN HEADER CONTAINER
   ========================================================= */

.cfs-main-header-container {
    width: min(
        var(--cfs-container),
        calc(100% - 50px)
    );

    height: 88px;

    min-height: 88px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   11. LOGO
   ========================================================= */

.cfs-logo {
    width: 205px;
    height: 82px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    flex-shrink: 0;

    overflow: visible;

    position: relative;
}

.cfs-logo img {
    width: 195px;

    height: auto;

    max-width: none;

    max-height: 78px;

    display: block;

    object-fit: contain;

    transform: scale(1.18);

    transform-origin: left center;

    transition:
        transform 0.25s ease;
}

.cfs-logo:hover img {
    transform: scale(1.20);
}


/* =========================================================
   12. DESKTOP NAVIGATION
   ========================================================= */

.cfs-main-nav {
    height: 88px;

    display: flex;

    align-items: center;

    margin-left: auto;
}

.cfs-main-nav ul {
    display: flex;

    align-items: center;

    gap: 4px;

    height: 100%;
}

.cfs-main-nav ul li {
    height: 100%;

    display: flex;

    align-items: center;
}

.cfs-main-nav ul li a {
    position: relative;

    height: 88px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        0 17px;

    color: #172033;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.1px;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.cfs-main-nav ul li a::after {
    content: "";

    position: absolute;

    left: 17px;
    right: 17px;

    bottom: 0;

    height: 3px;

    background: var(--cfs-gold);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 0.25s ease;
}

.cfs-main-nav ul li a:hover {
    color: var(--cfs-navy);
}

.cfs-main-nav ul li a:hover::after,
.cfs-main-nav ul li a.cfs-nav-active::after {
    transform: scaleX(1);
}

.cfs-main-nav ul li a.cfs-nav-active {
    color: var(--cfs-navy);
}


/* =========================================================
   13. HEADER RIGHT SIDE
   ========================================================= */

.cfs-header-right {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}


/* =========================================================
   14. HEADER PHONE
   ========================================================= */

.cfs-header-phone {
    display: flex;

    align-items: center;

    gap: 10px;

    transition:
        transform 0.25s ease;
}

.cfs-header-phone:hover {
    transform: translateY(-1px);
}

.cfs-header-phone-icon {
    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(245, 160, 0, 0.12);

    color: var(--cfs-gold);

    font-size: 13px;

    border:
        1px solid
        rgba(245, 160, 0, 0.22);
}

.cfs-header-phone-content {
    display: flex;

    flex-direction: column;

    line-height: 1.15;
}

.cfs-header-phone-content small {
    color: #8b94a3;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 0.7px;

    margin-bottom: 4px;
}

.cfs-header-phone-content strong {
    color: var(--cfs-navy);

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   15. HEADER CTA
   ========================================================= */

.cfs-header-cta {
    min-height: 42px;

    padding:
        0 18px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    background:
        linear-gradient(
            135deg,
            var(--cfs-gold),
            var(--cfs-gold-dark)
        );

    color: var(--cfs-navy);

    border-radius: 4px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.2px;

    box-shadow:
        0 8px 20px
        rgba(245, 160, 0, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.cfs-header-cta:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(245, 160, 0, 0.28);

    background:
        linear-gradient(
            135deg,
            var(--cfs-gold-light),
            var(--cfs-gold)
        );
}

.cfs-header-cta i {
    font-size: 9px;

    transition:
        transform 0.25s ease;
}

.cfs-header-cta:hover i {
    transform: translateX(3px);
}


/* =========================================================
   16. MOBILE HEADER ACTIONS
   ========================================================= */

.cfs-mobile-actions {
    display: none;

    align-items: center;

    gap: 12px;
}


/* =========================================================
   17. MOBILE PHONE
   ========================================================= */

.cfs-mobile-phone {
    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(245, 160, 0, 0.10);

    border:
        1px solid
        rgba(245, 160, 0, 0.25);

    color: var(--cfs-gold);

    font-size: 13px;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.cfs-mobile-phone:hover {
    background: var(--cfs-gold);

    color: var(--cfs-navy);
}


/* =========================================================
   18. HAMBURGER
   ========================================================= */

.cfs-menu-toggle {
    width: 40px;
    height: 40px;

    padding: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    border: 0;

    border-radius: 4px;

    background: var(--cfs-navy);

    color: #ffffff;

    transition:
        background 0.25s ease;
}

.cfs-menu-toggle:hover {
    background: var(--cfs-navy-light);
}

.cfs-menu-toggle span {
    display: block;

    width: 18px;
    height: 2px;

    background: #ffffff;

    border-radius: 10px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Hamburger active */

.cfs-menu-toggle.cfs-menu-active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.cfs-menu-toggle.cfs-menu-active span:nth-child(2) {
    opacity: 0;
}

.cfs-menu-toggle.cfs-menu-active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   19. MOBILE NAVIGATION
   ========================================================= */

.cfs-mobile-nav {
    display: none;

    width: 100%;

    background: #ffffff;

    border-top:
        1px solid
        #edf0f4;

    box-shadow:
        0 15px 30px
        rgba(6, 21, 47, 0.10);

    overflow: hidden;

    max-height: 0;

    opacity: 0;

    transform: translateY(-8px);

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        transform 0.35s ease;
}

.cfs-mobile-nav-active {
    max-height: 500px;

    opacity: 1;

    transform: translateY(0);
}

.cfs-mobile-nav nav {
    width: 100%;
}

.cfs-mobile-nav ul {
    width: 100%;

    display: flex;

    flex-direction: column;
}

.cfs-mobile-nav ul li {
    width: 100%;

    border-bottom:
        1px solid
        #eef1f5;
}

.cfs-mobile-nav ul li:last-child {
    border-bottom: 0;
}

.cfs-mobile-nav ul li a {
    width: 100%;

    min-height: 53px;

    padding:
        0 20px;

    display: flex;

    align-items: center;

    gap: 13px;

    color: var(--cfs-text);

    font-size: 13px;

    font-weight: 600;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        padding-left 0.25s ease;
}

.cfs-mobile-nav ul li a i {
    width: 22px;

    color: var(--cfs-gold);

    font-size: 13px;

    text-align: center;
}

.cfs-mobile-nav ul li a:hover {
    background: #fafbfc;

    color: var(--cfs-navy);

    padding-left: 25px;
}

.cfs-mobile-nav ul li a.cfs-mobile-active {
    background:
        linear-gradient(
            90deg,
            rgba(245, 160, 0, 0.10),
            transparent
        );

    color: var(--cfs-navy);

    border-left:
        3px solid
        var(--cfs-gold);
}


/* =========================================================
   20. LARGE DESKTOP
   ========================================================= */

@media (max-width: 1250px) {

    .cfs-topbar-container,
    .cfs-main-header-container {
        width:
            calc(100% - 40px);
    }

    .cfs-main-nav ul li a {
        padding-left: 13px;
        padding-right: 13px;
    }

    .cfs-main-nav ul li a::after {
        left: 13px;
        right: 13px;
    }

    .cfs-header-right {
        gap: 12px;
    }

    .cfs-header-cta {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* =========================================================
   21. MEDIUM DESKTOP
   ========================================================= */

@media (max-width: 1200px) {

    .cfs-topbar-container {
        gap: 22px;
    }

    .cfs-topbar-highlights {
        gap: 18px;
    }

    .cfs-logo {
        width: 185px;
    }

    .cfs-logo img {
        width: 178px;

        max-height: 74px;
    }

    .cfs-main-nav ul li a {
        padding-left: 10px;
        padding-right: 10px;

        font-size: 12px;
    }

    .cfs-main-nav ul li a::after {
        left: 10px;
        right: 10px;
    }

    .cfs-header-phone-content strong {
        font-size: 12px;
    }

    .cfs-header-cta {
        padding-left: 13px;
        padding-right: 13px;

        font-size: 10px;
    }
}


/* =========================================================
   22. SMALLER LAPTOP
   ========================================================= */

@media (max-width: 1050px) {

    .cfs-topbar-message-text {
        font-size: 12px;
    }

    .cfs-topbar-highlights {
        gap: 12px;
    }

    .cfs-topbar-highlight {
        font-size: 11px;
    }

    .cfs-logo {
        width: 165px;
    }

    .cfs-logo img {
        width: 158px;

        max-height: 70px;
    }

    .cfs-main-nav ul li a {
        padding-left: 8px;
        padding-right: 8px;

        font-size: 11px;
    }

    .cfs-main-nav ul li a::after {
        left: 8px;
        right: 8px;
    }

    .cfs-header-phone {
        display: none;
    }

    .cfs-header-right {
        gap: 8px;
    }
}


/* =========================================================
   23. TABLET / MOBILE
   ========================================================= */

@media (max-width: 950px) {

    /* =====================================================
       TOP BAR MOBILE
       ===================================================== */

    .cfs-topbar-container {

        width: 100%;

        min-height: 54px;

        padding:
            7px 15px;

        display: flex;

        align-items: center;

        justify-content: space-between;
    }


    /* Hide desktop topbar */

    .cfs-topbar-message,
    .cfs-topbar-highlights,
    .cfs-topbar-actions {
        display: none;
    }


    /* Mobile actions */

    .cfs-topbar-mobile-actions {

        width: 100%;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 12px;
    }


    /* Phone - LEFT */

    .cfs-topbar-mobile-phone {

        min-height: 36px;

        padding:
            0 12px;

        display: inline-flex;

        align-items: center;

        justify-content: flex-start;

        gap: 7px;

        border:
            1px solid
            rgba(255, 255, 255, 0.20);

        border-radius: 4px;

        color: #ffffff;

        font-size: 10px;

        font-weight: 600;

        white-space: nowrap;

        flex-shrink: 0;

        transition:
            background 0.25s ease,
            border-color 0.25s ease;
    }

    .cfs-topbar-mobile-phone i {

        color: var(--cfs-gold);

        font-size: 10px;
    }

    .cfs-topbar-mobile-phone:hover {

        background:
            rgba(255, 255, 255, 0.05);

        border-color:
            rgba(245, 160, 0, 0.45);
    }


    /* Enquire Now - RIGHT */

    .cfs-topbar-mobile-enquiry {

        min-height: 36px;

        padding:
            0 14px;

        display: inline-flex;

        align-items: center;

        justify-content: center;

        gap: 7px;

        border-radius: 4px;

        background: var(--cfs-gold);

        color: var(--cfs-navy);

        font-size: 10px;

        font-weight: 700;

        white-space: nowrap;

        flex-shrink: 0;

        transition:
            background 0.25s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
    }

    .cfs-topbar-mobile-enquiry i {
        font-size: 8px;
    }

    .cfs-topbar-mobile-enquiry:hover {

        background:
            var(--cfs-gold-light);

        transform:
            translateY(-1px);

        box-shadow:
            0 5px 14px
            rgba(245, 160, 0, 0.22);
    }


    /* =====================================================
       MAIN HEADER MOBILE
       ===================================================== */

    .cfs-main-header-container {

        width: 100%;

        height: 72px;

        min-height: 72px;

        padding:
            0 15px;

        gap: 10px;
    }


    /* Logo */

    .cfs-logo {

        width: 145px;

        height: 62px;

        flex-shrink: 0;
    }

    .cfs-logo img {

        width: 138px;

        max-height: 58px;

        transform:
            scale(1.10);

        transform-origin:
            left center;
    }

    .cfs-logo:hover img {

        transform:
            scale(1.10);
    }


    /* Hide desktop navigation */

    .cfs-main-nav {
        display: none;
    }


    /* Hide desktop right */

    .cfs-header-right {
        display: none;
    }


    /* Mobile controls */

    .cfs-mobile-actions {

        display: flex;

        align-items: center;

        gap: 12px;

        margin-left: auto;
    }


    /* Mobile navigation */

    .cfs-mobile-nav {
        display: block;
    }
}


/* =========================================================
   24. MOBILE 600px
   ========================================================= */

@media (max-width: 600px) {

    .cfs-main-header-container {

        height: 68px;

        min-height: 68px;

        padding:
            0 14px;
    }


    /* Logo */

    .cfs-logo {

        width: 135px;

        height: 58px;
    }

    .cfs-logo img {

        width: 128px;

        max-height: 54px;

        transform:
            scale(1.10);

        transform-origin:
            left center;
    }


    /* Header actions */

    .cfs-mobile-actions {
        gap: 9px;
    }

    .cfs-mobile-phone {

        width: 36px;
        height: 36px;

        font-size: 12px;
    }

    .cfs-menu-toggle {

        width: 38px;
        height: 38px;
    }


    /* Mobile menu */

    .cfs-mobile-nav ul li a {

        min-height: 51px;

        padding:
            0 18px;

        font-size: 12px;
    }
}


/* =========================================================
   25. SMALL MOBILE 450px
   ========================================================= */

@media (max-width: 450px) {

    /* Top bar */

    .cfs-topbar-container {

        padding:
            7px 12px;
    }

    .cfs-topbar-mobile-actions {

        width: 100%;

        justify-content:
            space-between;

        gap: 8px;
    }

    .cfs-topbar-mobile-phone {

        min-height: 35px;

        padding:
            0 10px;

        font-size: 9px;
    }

    .cfs-topbar-mobile-phone i {

        font-size: 9px;
    }

    .cfs-topbar-mobile-enquiry {

        min-height: 35px;

        padding:
            0 11px;

        font-size: 9px;
    }

    .cfs-topbar-mobile-enquiry i {

        font-size: 7px;
    }


    /* Main header */

    .cfs-main-header-container {

        padding:
            0 12px;
    }

    .cfs-logo {

        width: 128px;
    }

    .cfs-logo img {

        width: 121px;
    }
}


/* =========================================================
   26. VERY SMALL MOBILE 380px
   ========================================================= */

@media (max-width: 380px) {

    .cfs-topbar-container {

        padding-left: 10px;

        padding-right: 10px;
    }

    .cfs-topbar-mobile-phone {

        padding:
            0 8px;

        font-size: 8.5px;
    }

    .cfs-topbar-mobile-enquiry {

        padding:
            0 9px;

        font-size: 8.5px;
    }


    /* Main header */

    .cfs-logo {

        width: 120px;
    }

    .cfs-logo img {

        width: 114px;
    }

    .cfs-mobile-actions {

        gap: 7px;
    }

    .cfs-mobile-phone {

        width: 34px;

        height: 34px;
    }

    .cfs-menu-toggle {

        width: 36px;

        height: 36px;
    }
}


/* =========================================================
   27. EXTRA SMALL MOBILE 340px
   ========================================================= */

@media (max-width: 340px) {

    .cfs-topbar-container {

        padding-left: 8px;

        padding-right: 8px;
    }

    .cfs-topbar-mobile-actions {

        gap: 6px;
    }

    .cfs-topbar-mobile-phone {

        padding:
            0 7px;

        font-size: 8px;
    }

    .cfs-topbar-mobile-enquiry {

        padding:
            0 8px;

        font-size: 8px;
    }


    /* Main header */

    .cfs-logo {

        width: 112px;
    }

    .cfs-logo img {

        width: 106px;
    }
}


/* =========================================================
   28. ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}