/* ============================================
   MBIZ Digital Agency - Main Stylesheet
   Theme inspired by Elegant Marketing + DigiKnown
============================================ */

:root {
    /* Brand Colors */
    --primary: #6B21A8;
    --primary-dark: #4C1D95;
    --primary-light: #A855F7;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --dark: #0F172A;
    --gray-900: #1E293B;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F1F5F9;
    --white: #FFFFFF;
    --success: #10B981;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   TOP UTILITY BAR (DigiKnown Style)
============================================ */
.top-bar {
    background: #0F172A;
    color: var(--white);
    font-size: 14px;
    padding: 10px 0;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-bar-icon svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.top-bar-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.top-bar-label {
    font-size: 11px;
    opacity: 0.7;
    letter-spacing: 0.3px;
}

.top-bar-number {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #60A5FA;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.top-bar-phone-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-phone-icon svg {
    width: 14px;
    height: 14px;
    fill: #60A5FA;
}

.top-bar-phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.top-bar-phone-label {
    font-size: 11px;
    opacity: 0.7;
}

.top-bar-phone-number {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.top-bar-search {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.top-bar-search:hover {
    background: rgba(255,255,255,0.15);
}

.top-bar-search svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* ============================================
   MAIN NAVBAR (Elegant Marketing Style)
============================================ */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -1px;
    box-shadow: 0 4px 12px rgba(107, 33, 168, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.4px;
}

.logo-tagline {
    font-size: 10px;
    font-weight: 500;
    color: var(--gray-500);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

/* Desktop dropdown hover */
@media (min-width: 901px) {
    .nav-item:hover .nav-link svg {
        transform: rotate(180deg);
    }

    .nav-item:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 260px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    border: 1px solid var(--gray-100);
    z-index: 100;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--dark);
    font-size: 14.5px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    color: var(--dark);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1002;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: none;
}

.mobile-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.2s ease;
}

.mobile-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Desktop only */
.mobile-cta {
    display: none;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1100px) {
    .nav-link {
        padding: 10px 12px;
        font-size: 14.5px;
    }
}

@media (max-width: 992px) {
    .top-bar-label,
    .top-bar-phone-label {
        display: none;
    }

    .top-bar-number {
        font-size: 16px;
    }

    .logo-tagline {
        display: none;
    }
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: flex !important;
    }

    /* Hide desktop CTA on mobile */
    .desktop-cta {
        display: none !important;
    }

    /* Overlay - BELOW the menu */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Menu panel - ABOVE overlay */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px 40px;
        gap: 2px;
        box-shadow: -8px 0 30px rgba(0,0,0,0.15);
        transition: right 0.35s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Mobile menu header with X */
    .mobile-menu-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 4px 0 16px;
        margin-bottom: 8px;
        border-bottom: 1px solid #F1F5F9;
        list-style: none;
    }

    .mobile-menu-title {
        font-size: 13px;
        font-weight: 600;
        color: #64748B;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-item {
        width: 100%;
        position: static !important;
    }

    .nav-link {
        padding: 14px 12px;
        font-size: 16px;
        justify-content: space-between;
        width: 100%;
        color: #334155;
    }

    .nav-link.active {
        color: #6B21A8;
    }

    /* ===== MOBILE DROPDOWN - CLEAN ===== */
    .dropdown {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        background: #F1F5F9 !important;
        margin: 0 0 6px 0 !important;
        padding: 6px !important;
        min-width: 100% !important;
        width: 100% !important;
        border-radius: 8px !important;
        display: none !important;
    }

    .nav-item.open .dropdown {
        display: block !important;
    }

    .nav-item.open > .nav-link {
        color: #6B21A8 !important;
    }

    .nav-item.open > .nav-link svg {
        transform: rotate(180deg);
    }

    .dropdown-item {
        display: block !important;
        padding: 12px 14px !important;
        font-size: 14px !important;
        color: #334155 !important;
        border-radius: 6px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dropdown-item:hover,
    .dropdown-item:active {
        background: #ffffff !important;
        color: #6B21A8 !important;
    }

    /* Mobile CTA inside menu */
    .mobile-cta {
        display: flex !important;
        margin-top: 24px;
        justify-content: center;
        width: 100%;
        list-style: none;
    }

    .mobile-cta .nav-cta {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
        opacity: 1 !important;
        visibility: visible !important;
    }
}
@media (max-width: 600px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-inner {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .top-bar-right {
        gap: 16px;
    }

    .top-bar-number {
        font-size: 15px;
    }

    .top-bar-phone-number {
        font-size: 14px;
    }

    .navbar {
        height: 68px;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .logo-name {
        font-size: 17px;
    }

    .nav-menu {
        width: 280px;
    }
}

/* ============================================
   SEARCH MODAL
============================================ */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    width: 90%;
    max-width: 640px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 17px;
    font-family: inherit;
}

.search-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services Inner Dropdown */

.services-dropdown{
    position:absolute;
}


.service-has-child{
    position:relative;
}


.service-has-child > a{
    display:flex;
    justify-content:space-between;
    align-items:center;
}


.service-child-dropdown{

    position:absolute;
    left:100%;
    top:0;

    width:240px;

    background:#fff;
    padding:15px;

    border-radius:15px;

    box-shadow:0 15px 35px rgba(0,0,0,.12);


    opacity:0;
    visibility:hidden;

    transform:translateX(15px);

    transition:.25s ease;

}


.service-has-child:hover .service-child-dropdown{

    opacity:1;
    visibility:visible;

    transform:translateX(0);

}



.service-child-dropdown a{

    display:block;

    padding:12px 15px;

    color:#27364d;

    text-decoration:none;

    border-radius:8px;

}



.service-child-dropdown a:hover{

    background:#f5f3ff;
    color:#7127c9;

}

/* Mobile Services Submenu Fix */

@media (max-width: 991px){

    .service-child-dropdown{
        position:static;
        width:100%;
        margin-top:10px;

        display:none;

        opacity:1;
        visibility:visible;
        transform:none;

        box-shadow:none;
        background:#f5f7fb;
        border-radius:12px;
    }


    .service-has-child.active .service-child-dropdown{
        display:block;
    }


    .service-has-child > a span{
        transition:.3s;
    }


    .service-has-child.active > a span{
        transform:rotate(90deg);
    }

}

@media(max-width:991px){

    .service-child-dropdown{
        position:static;
        display:none;
        opacity:1;
        visibility:visible;
        transform:none;
        width:100%;
        margin-top:10px;
    }


    .service-has-child.active .service-child-dropdown{
        display:block;
    }

}

@media(max-width:991px){

    .main-header{
        position:sticky;
        top:0;
        z-index:9999;
    }


    .contact-main{
        padding-top:50px;
    }


    .contact-info h2{
        font-size:32px;
        line-height:1.15;
    }

}
