/* ================================================================
   header.css — CostMasters
   Exact CSS extracted from raw-materials.html design file
   Covers: global body, top-info-strip, navbar, gradient-btn,
           pricing-btn, nav-link hover
   ================================================================ */

/* ================= GLOBAL & BACKGROUND ================= */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    background-color: #0a0a1a;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 25%, rgba(79, 159, 255, 0.12), transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(26, 95, 186, 0.08), transparent 40%),
        linear-gradient(135deg, #0a0a1a 0%, #0d0d26 50%, #14143d 100%);
    z-index: -1;
}

.content-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================= TOP INFO STRIP ================= */
.top-info-strip {
    background-color: #050510;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1100;
}

.info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-left {
    display: flex;
    gap: 25px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.info-left a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.info-left a:hover {
    color: #4F9FFF;
}

.info-socials {
    display: flex;
    gap: 15px;
}

.info-socials a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: 0.3s;
}

.info-socials a:hover {
    color: #4F9FFF;
    transform: translateY(-1px);
}

/* ================= STICKY NAVBAR ================= */
.navbar {
    background: #ffffff;
    padding: 8px 0;
    position: sticky;
    top: 32px !important;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
.navbar-nav-links {
    display: flex;
    align-items: center;
}
/* ================= NAVBAR LINKS ================= */
.navbar .nav-link {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: normal;
    color: #1a1a1a;
    margin: 0 14px;
    padding: 6px 0;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
    background: linear-gradient(135deg,
            #0d47a1 0%,
            #0b3d91 60%,
            #4F9FFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

/* ================= GRADIENT BUTTON ================= */
.gradient-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 50px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg,
            #0d47a1 0%,
            #0b3d91 60%,
            #4F9FFF 100%);
}

.gradient-btn:hover {
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.45);
    color: #fff;
}

.gradient-btn:active {
    box-shadow: 0 3px 10px rgba(13, 71, 161, 0.3);
}

/* ================= PRICING / SUBSCRIPTION BUTTON ================= */
.pricing-btn {
    font-weight: 600;
    font-size: 14px;
    padding: 6px 18px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid #0d47a1;
    color: #0d47a1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background: linear-gradient(135deg,
            #0d47a1 0%,
            #0b3d91 60%,
            #4F9FFF 100%);
    color: #fff;
    border: 1px solid transparent;
}

.pricing-btn1 {
    font-weight: 600;
    font-size: 12px;
    padding: 6px 18px;
    border-radius: 50px;
    background: #0d47a1;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}
/* ================================================================
   header.css — RESPONSIVE ADDITIONS
   Add these rules at the bottom of your existing header.css
   ================================================================ */

/* ================= HAMBURGER BUTTON ================= */
.navbar-hamburger {
    display: none;               /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 1050;
}

.navbar-hamburger:hover {
    background: rgba(13, 71, 161, 0.08);
}

.navbar-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Animate hamburger → X when open */
.navbar-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= MOBILE BREAKPOINT ================= */
@media (max-width: 991px) {

    /* Show hamburger */
    .navbar-hamburger {
        display: flex;
    }

    /* Nav-links: hidden drawer, slides down when .open is added */
    .navbar-nav-links {
        display: none;              /* collapsed by default */
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 12px 0 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);

        /* Position it below the navbar */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
    }

    .navbar-nav-links.open {
        display: flex;
    }

    /* Stack nav items */
    .navbar-nav-links .nav-link {
        width: 100%;
        margin: 0;
        padding: 10px 24px;
        font-size: 13px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav-links .nav-link:last-of-type {
        border-bottom: none;
    }

    /* Buttons in mobile menu */
    .navbar-nav-links .gradient-btn,
    .navbar-nav-links .pricing-btn {
        margin: 12px 24px 4px;
        width: calc(100% - 48px);
        text-align: center;
        justify-content: center;
    }

    /* Make navbar relative so the dropdown positions correctly */
    .navbar {
        position: sticky;
        top: 32px;
    }

    /* Ensure .content-wrapper doesn't clip the dropdown */
    .navbar .content-wrapper {
        flex-wrap: wrap;
        position: relative;
    }

    /* Top strip: stack on very small screens */
    @media (max-width: 480px) {
        .info-content {
            flex-direction: column;
            gap: 6px;
            text-align: center;
        }

        .info-left {
            flex-direction: column;
            gap: 4px;
            align-items: center;
        }

        .content-wrapper {
            padding: 0 16px;
        }
    }
}

/* ================= TABLET TWEAKS (992px – 1199px) ================= */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .nav-link {
        margin: 0 8px;
        font-size: 11px;
    }

    .gradient-btn {
        padding: 7px 16px;
        font-size: 12px;
    }

    .content-wrapper {
        padding: 0 24px;
    }
}
