/* ==========================================================================
   SITE HEADER & NAVIGATION — LIGHT THEME
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    padding: 18px 24px;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(15, 23, 42, 0.08);

    transition:
        padding 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;

    font-family:
        'Plus Jakarta Sans',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}


/* ==========================================================================
   SCROLLED HEADER
   ========================================================================== */

.site-header.scrolled {
    padding: 14px 24px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);
}


/* ==========================================================================
   NAV CONTAINER
   ========================================================================== */

.nav-container {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* ==========================================================================
   LOGO
   ========================================================================== */

.logo {
    flex-shrink: 0;
}

.logo a {
    display: inline-block;

    font-size: 22px;
    font-weight: 800;
    line-height: 1;

    color: #0f172a;

    text-decoration: none;

    letter-spacing: -0.03em;
}

.logo-dot {
    color: #6366f1;
}


/* ==========================================================================
   MAIN NAVIGATION
   ========================================================================== */

.nav-links {
    display: flex;
    align-items: center;

    gap: 30px;

    list-style: none;

    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}


/* ==========================================================================
   NAV LINKS
   ========================================================================== */

.nav-link {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 7px 0;

    color: #334155;

    font-family: inherit;

    font-size: 15px;
    font-weight: 650;

    line-height: 1.4;

    text-decoration: none;

    background: transparent;

    border: 0;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #4f46e5;
}

.nav-link.active {
    color: #4f46e5;
}


/* Active underline */

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background: #6366f1;

    border-radius: 99px;
}


/* ==========================================================================
   SERVICES DROPDOWN
   ========================================================================== */

.nav-dropdown {
    position: relative;

    z-index: 1002;
}


/* Invisible bridge between Services and dropdown */

.nav-dropdown::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 50%;

    width: 380px;
    height: 18px;

    transform: translateX(-50%);

    background: transparent;

    z-index: 1001;
}


/* ==========================================================================
   DROPDOWN ARROW
   ========================================================================== */

.dropdown-arrow {
    color: #475569;

    transition:
        transform 0.25s ease,
        color 0.25s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);

    color: #4f46e5;
}


/* ==========================================================================
   DROPDOWN MENU
   ========================================================================== */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 18px);
    left: 50%;

    width: 465px;

    padding: 12px;

    transform:
        translateX(-50%)
        translateY(-8px);

    background: #ffffff;

    border: 1px solid #dbe3ef;

    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.16);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;

    z-index: 1000;
}


/* Dropdown top arrow */

.dropdown-menu::before {
    content: "";

    position: absolute;

    top: -7px;
    left: 50%;

    width: 13px;
    height: 13px;

    transform:
        translateX(-50%)
        rotate(45deg);

    background: #ffffff;

    border-left: 1px solid #dbe3ef;
    border-top: 1px solid #dbe3ef;
}


/* Show dropdown */

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/* ==========================================================================
   DROPDOWN ITEMS
   ========================================================================== */

.dropdown-item {
    display: flex;
    align-items: center;

    gap: 15px;

    width: 100%;

    padding: 14px 12px;

    color: #0f172a;

    text-decoration: none;

    border-radius: 12px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.dropdown-item:hover {
    background: #f1f5f9;

    transform: translateX(3px);
}


/* ==========================================================================
   DROPDOWN ICON BOX
   ========================================================================== */

.dropdown-icon {
    width: 46px;
    height: 46px;

    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    border: 1px solid rgba(15, 23, 42, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dropdown-item:hover .dropdown-icon {
    transform: scale(1.05);
}

.dropdown-icon svg {
    width: 21px;
    height: 21px;

    stroke-width: 2.2;
}


/* ==========================================================================
   AUTOMATE YOUR BUSINESS
   Purple
   ========================================================================== */

.automate-icon {
    color: #7c3aed;

    background: #ede9fe;

    border-color: #ddd6fe;

    box-shadow:
        0 4px 12px rgba(124, 58, 237, 0.10);
}


/* ==========================================================================
   WEB DESIGN
   Emerald
   ========================================================================== */

.web-icon {
    color: #047857;

    background: #d1fae5;

    border-color: #a7f3d0;

    box-shadow:
        0 4px 12px rgba(5, 150, 105, 0.10);
}


/* ==========================================================================
   SHARED HOSTING
   Blue
   ========================================================================== */

.hosting-icon {
    color: #0369a1;

    background: #e0f2fe;

    border-color: #bae6fd;

    box-shadow:
        0 4px 12px rgba(2, 132, 199, 0.10);
}


/* ==========================================================================
   SERVER & WHM
   Indigo
   ========================================================================== */

.server-icon {
    color: #4338ca;

    background: #e0e7ff;

    border-color: #a5b4fc;

    box-shadow:
        0 4px 12px rgba(79, 70, 229, 0.14);
}


/* ==========================================================================
   ADVANCED HOSTING
   Orange / Amber
   ========================================================================== */

.advanced-hosting-icon {
    color: #c2410c;

    background: #ffedd5;

    border-color: #fdba74;

    box-shadow:
        0 4px 12px rgba(234, 88, 12, 0.12);
}


/* ==========================================================================
   DROPDOWN CONTENT
   ========================================================================== */

.dropdown-content {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;
}

.dropdown-content strong {
    display: block;

    color: #0f172a;

    font-size: 15px;
    font-weight: 750;

    line-height: 1.35;

    letter-spacing: -0.01em;
}

.dropdown-content small {
    display: block;

    color: #475569;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.45;
}


/* Hover text */

.dropdown-item:hover .dropdown-content strong {
    color: #312e81;
}


/* ==========================================================================
   NAV ACTIONS
   ========================================================================== */

.nav-actions {
    display: flex;
    align-items: center;

    gap: 16px;

    flex-shrink: 0;
}


/* ==========================================================================
   PRIMARY CTA
   ========================================================================== */

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 20px;

    background:
        linear-gradient(
            135deg,
            #6366f1 0%,
            #4f46e5 100%
        );

    color: #ffffff;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.30);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cta-btn:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(99, 102, 241, 0.40);
}


/* ==========================================================================
   MOBILE CTA
   ========================================================================== */

.mobile-cta-item {
    display: none;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    width: 100%;

    padding: 13px 18px;

    background:
        linear-gradient(
            135deg,
            #6366f1 0%,
            #4f46e5 100%
        );

    color: #ffffff;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    box-shadow:
        0 6px 18px rgba(99, 102, 241, 0.25);
}


/* ==========================================================================
   MOBILE MENU BUTTON
   ========================================================================== */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 10px;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 5px;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    cursor: pointer;

    z-index: 1100;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.menu-toggle:hover {
    background: #eef2ff;

    border-color: #c7d2fe;
}

.menu-toggle span {
    display: block;

    width: 20px;
    height: 2px;

    background: #0f172a;

    border-radius: 2px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* Hamburger → X */

.menu-toggle.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* ==========================================================================
   BODY WHEN MOBILE MENU IS OPEN
   ========================================================================== */

body.menu-open {
    overflow: hidden;
}


/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */

@media (max-width: 1000px) {

    .site-header {
        padding: 15px 18px;
    }

    .site-header.scrolled {
        padding: 13px 18px;
    }

    .nav-container {
        gap: 15px;
    }


    /* Show hamburger */

    .menu-toggle {
        display: flex;
    }


    /* Hide desktop CTA */

    .nav-actions .cta-btn {
        display: none;
    }


    /* Mobile navigation panel */

    .nav-links {
        position: fixed;

        top: 0;
        right: 0;

        width: min(340px, 88vw);
        height: 100dvh;

        margin: 0;

        padding: 90px 24px 35px;

        background:
            linear-gradient(
                180deg,
                #ffffff 0%,
                #f8fafc 100%
            );

        border-left: 1px solid #e2e8f0;

        box-shadow:
            -15px 0 50px rgba(15, 23, 42, 0.12);

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 8px;

        overflow-y: auto;

        transform: translateX(100%);

        visibility: hidden;

        transition:
            transform 0.35s
                cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0.35s ease;

        z-index: 1050;
    }


    /* Open */

    .nav-links.active {
        transform: translateX(0);

        visibility: visible;
    }


    /* Mobile items */

    .nav-links > li {
        width: 100%;
    }

    .nav-links > li:not(.mobile-cta-item) {
        border-bottom: 1px solid #e2e8f0;
    }


    /* Mobile links */

    .nav-link {
        display: flex;

        width: 100%;

        padding: 15px 4px;

        color: #334155;

        font-size: 15px;
        font-weight: 650;
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.active {
        color: #4f46e5;
    }

    .nav-link.active::after {
        display: none;
    }


    /* =====================================================
       MOBILE SERVICES
       ===================================================== */

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        justify-content: space-between;
    }

    .dropdown-arrow {
        width: 16px;
        height: 16px;
    }


    /* Disable desktop dropdown positioning */

    .dropdown-menu {
        position: static;

        width: 100%;

        padding: 5px 0 10px;

        transform: none;

        background: transparent;

        border: 0;

        border-radius: 0;

        box-shadow: none;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        display: none;
    }

    .dropdown-menu::before {
        display: none;
    }


    /* Show mobile dropdown */

    .nav-dropdown.open .dropdown-menu {
        display: block;

        transform: none;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }


    /* Mobile dropdown item */

    .dropdown-item {
        padding: 12px 8px 12px 14px;

        background: #f8fafc;

        margin-bottom: 4px;
    }

    .dropdown-item:hover {
        transform: none;

        background: #eef2ff;
    }


    /* Mobile icon */

    .dropdown-icon {
        width: 40px;
        height: 40px;

        min-width: 40px;
    }

    .dropdown-icon svg {
        width: 19px;
        height: 19px;
    }


    .dropdown-content strong {
        font-size: 13px;
    }

    .dropdown-content small {
        font-size: 10px;
    }


    /* Mobile CTA */

    .mobile-cta-item {
        display: block;

        border: 0 !important;

        margin-top: auto;

        padding-top: 20px;
    }


    /* Remove hover bridge */

    .nav-dropdown::after {
        display: none;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .logo a {
        font-size: 20px;
    }

    .nav-links {
        width: 92vw;

        padding-left: 20px;
        padding-right: 20px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .dropdown-content small {
        display: none;
    }

    .dropdown-item {
        padding: 11px 8px;
    }
}