/* ============================================
   MBIZ Consulting Inc - Main Stylesheet
   Theme inspired by Elegant Marketing + DigiKnown
============================================ */

:root {
    /* Brand Colors */
    --primary: #0286E7;
    --primary-dark: #0269B8;
    --primary-light: #0286E7;
    --accent: #02BFC9;
    --accent-hover: #02A3AB;
    --dark: #0F172A;
    --gray-900: #1E293B;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F1F5F9;
    --white: #FFFFFF;
    --success: #10B981;

    /* Brand palette (MBIZ Consulting Inc brand guidelines) */
    --teal: #02BFC9;
    --blue: #0286E7;
    --ink: #231F20;
    --navy: #041C4C;

    /* Typography */
    --font-main: 'Gilroy', 'Poppins', system-ui, -apple-system, sans-serif;
    --font-heading: 'Gilroy', 'Poppins', 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, #02BFC9, #0286E7);
    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: #02BFC9;
}

.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: #02BFC9;
}

.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(2, 134, 231, 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(2, 191, 201, 0.35);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 191, 201, 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 the original hamburger/X while the drawer is open. */
    .mobile-toggle.active {
        visibility: hidden;
        pointer-events: none;
    }

    /* 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: #0286E7;
    }

    /* ===== 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: #0286E7 !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: #0286E7 !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:#E6F3FE;
    color:var(--primary);

}

/* Mobile Services Submenu Fix */

@media (max-width: 900px){

    .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:900px){

    .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;
    }

}


/* ============================================
   MBIZ CONSULTING INC - BRAND LAYER
   (consistent fonts, colours, buttons, spacing)
============================================ */
body, button, input, select, textarea { font-family: var(--font-main); }
h1, h2, h3, h4, .section-title, .hero-title { font-family: var(--font-heading); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Top bar */
.top-bar { background: var(--navy); padding: 9px 0; font-size: 13.5px; }
.top-bar-inner { justify-content: space-between; }
.top-bar-link { color: #fff; opacity: .92; }
.top-bar-link:hover { color: var(--teal); opacity: 1; }
.top-bar-link strong { font-weight: 700; margin-left: 4px; }

/* Logo */
.logo-img {
    height: 110px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    margin-top:20px;
}

@media (max-width: 900px) {
    .logo-img {
        height: 100px;
        max-width: 160px;
    }
}
.logo-icon { background: linear-gradient(135deg, var(--teal), var(--blue)); box-shadow: 0 4px 12px rgba(2,134,231,.3); }
.logo-name { color: var(--navy); letter-spacing: .5px; font-weight: 800; }
.logo-tagline { color: var(--blue); letter-spacing: 3px; font-weight: 700; }

/* One button system: primary = blue, accent = teal (dark text), outline */
.btn, .nav-cta, .about-btn, .contact-form button { font-family: var(--font-main); }
.btn-primary, .nav-cta { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(2,134,231,.3); }
.btn-primary:hover, .nav-cta:hover { background: #0269B8; color: #fff; box-shadow: 0 8px 22px rgba(2,134,231,.4); }
.btn-accent { background: var(--teal); color: var(--navy); box-shadow: 0 6px 18px rgba(2,191,201,.35); }
.btn-accent:hover { background: #02A3AB; color: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

@media (max-width: 1180px) {
    .desktop-cta { padding: 10px 16px; font-size: 13.5px; }
    .nav-link { padding: 10px 10px; }
}

/* Hero */
.hero { background: linear-gradient(160deg, #F4FAFF 0%, #E6F3FE 60%, #DDF6F8 100%); padding: 104px 0 96px; }
.hero-badge { background: rgba(2,191,201,.14); color: #027F86; }
.hero-title { color: var(--navy); }
.hero-card { max-width: 380px; padding: 34px 30px; border: 1px solid #E2E8F0; }
.hero-card-title { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.hero-checklist { display: grid; gap: 14px; }
.hero-checklist li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink); font-size: 16px; }
.hero-checklist li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }

/* Cards / sections */
.service-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; font-size: 15px; font-weight: 800; display: grid; place-items: center; margin-bottom: 18px; }
.service-card p { margin-bottom: 14px; }
.section-header { margin-bottom: 56px; }
.cta-banner { background: linear-gradient(135deg, var(--navy), #0B3A8A); }
.cta-banner h2, .cta-banner p { color: #fff; }

/* Interior page hero */
.page-hero { background: linear-gradient(160deg, #F4FAFF 0%, #E6F3FE 70%, #DDF6F8 100%); padding: 88px 0 72px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--navy); letter-spacing: -.5px; margin: 6px 0 14px; }
.page-hero p { color: #475569; font-size: 17px; max-width: 560px; margin: 0 auto; }

/* Our work / reviews / empty states */
.work-section { padding: 96px 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-item { margin: 0; border-radius: 16px; overflow: hidden; background: #F1F5F9; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-item:hover img { transform: scale(1.04); }
.center-link { text-align: center; margin-top: 40px; }
.empty-state { max-width: 560px; margin: 0 auto; text-align: center; padding: 56px 32px; border: 1px dashed #CBD5E1; border-radius: 20px; background: #F8FAFC; }
.empty-state h2 { font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.empty-state p { color: #64748B; margin-bottom: 24px; }
.reviews-section { padding: 96px 0; background: #F8FAFC; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review-card { background: #fff; border-radius: 16px; padding: 30px; box-shadow: var(--shadow-md); border-top: 4px solid var(--teal); }
.review-card p { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 18px; }
.review-card footer strong { display: block; color: var(--navy); }
.review-card footer span { color: #64748B; font-size: 14px; }

/* About extras */
.values-section { padding: 96px 0; background: #F8FAFC; }
.values-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.values-list li { background: #fff; border-radius: 14px; padding: 18px 22px; border-left: 4px solid var(--teal); color: #475569; }
.values-list li strong { color: var(--navy); }
.team-section { padding: 96px 0; }
.team-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.team-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }

/* Contact form (simple, labelled) */
.contact-form .field { display: block; margin-bottom: 4px; }
.contact-form .field span { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 6px 6px; }
.contact-form select { width: 100%; padding: 17px 22px; margin-bottom: 16px; border-radius: 30px; border: 1px solid #e5e5e5; background: #fafafa; font-size: 16px; color: var(--ink); }
.contact-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2,134,231,.12); background: #fff; }
.contact-form textarea { min-height: 130px; resize: vertical; border-radius: 24px; }
.contact-form button { width: 100%; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success-message { background: #DCFCE7; color: #166534; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; }
.error-message { background: #FEE2E2; color: #B91C1C; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; }
.contact-box a:hover { color: var(--blue); }

/* Footer extras */
.footer-logo-img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-col a, .footer-text { display: block; }
.footer-text { color: #CBD5E1; margin-bottom: 10px; font-size: 15px; }
.footer-cta { color: var(--teal) !important; font-weight: 700; margin-top: 8px; }
.footer-bottom { justify-content: center; text-align: center; }

@media (max-width: 900px) {
    .hero { padding: 72px 0 64px; }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
    .services-section, .about-home, .process-section, .faq-section, .work-section, .reviews-section, .values-section, .team-section { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 600px) {
    .work-grid { grid-template-columns: 1fr; }
    .top-bar-inner { justify-content: center; }
    .top-bar-link:first-child { display: none; }
    .page-hero { padding: 64px 0 52px; }
    .contact-form-card { padding: 28px 22px; border-radius: 24px; }
}


/* Fix Purple Color in Services Dropdown */
.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu a.active,
.dropdown-submenu a:hover,
.dropdown-submenu a:focus,
.dropdown-submenu a.active {
    color: #0286E7 !important;
}

/* MBIZ brand consistency — shared navigation, buttons and typography */
:root { --primary:#0286E7; --primary-dark:#0269B8; --accent:#02BFC9; --ink:#231F20; --blue:#0286E7; --teal:#02BFC9; }
body, button, input, textarea, select {font-family:var(--font-main,'Gilroy','Poppins',system-ui,sans-serif);}
.btn, .nav-cta, .about-btn, .sd-button, .contact-form button {font-family:var(--font-main,'Gilroy','Poppins',system-ui,sans-serif);font-weight:700;}
.btn-primary, .nav-cta, .sd-button {background:#0286E7;color:#fff;}
.btn-primary:hover, .btn-primary:focus-visible, .nav-cta:hover, .nav-cta:focus-visible, .sd-button:hover, .sd-button:focus-visible {background:#0269B8;color:#fff;}
.btn-outline {color:#041C4C;}
.btn-outline:hover, .btn-outline:focus-visible {background:#0286E7;color:#fff;border-color:#0286E7;}
.btn-accent {background:#02BFC9;color:#041C4C;}
.btn-accent:hover,.btn-accent:focus-visible {background:#02A3AB;color:#041C4C;}
.service-child-dropdown a:hover,.service-child-dropdown a:focus-visible {color:#0286E7;}
/* Avoid hiding focus for keyboard users */
a:focus-visible,button:focus-visible {outline:2px solid #02BFC9;outline-offset:3px;}

/* Step 5: phone/tablet navigation containment and accessible touch targets */
@media (max-width: 900px) {
  .nav-menu { box-sizing: border-box; overscroll-behavior: contain; }
  .nav-menu .dropdown, .nav-menu .service-child-dropdown { max-width: 100%; }
  .nav-menu .service-child-dropdown a { overflow-wrap: anywhere; }
  .nav-menu .service-has-child > a { min-height: 44px; }
  .nav-menu .mobile-close { flex-shrink: 0; }
}
@media (max-width: 390px) {
  .navbar { gap: 8px; }
  .logo { gap: 8px; min-width: 0; }
  .logo-name { font-size: 14px; letter-spacing: -.3px; }
  .logo-icon { width: 38px; height: 38px; flex-shrink: 0; }
  .nav-menu { max-width: 88vw; }
}


/* Free Website Audit CTA paired with consultation links */
.free-audit-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 8px 0;
    border: 1px solid #0286e7;
    border-radius: 999px;
    background: #fff;
    color: #0269b8;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.free-audit-cta:hover {
    background: #0286e7;
    color: #fff;
    transform: translateY(-1px);
}
@media (max-width: 640px) {
    .free-audit-cta { max-width: 100%; }
}





















/* =====================================
   LEGAL PAGES - PRIVACY & TERMS
===================================== */

.legal-hero {
    background: linear-gradient(135deg, #041C4C, #0b376b);
    padding: 85px 20px;
    text-align: center;
    color: #fff;
}

.legal-hero .container {
    max-width: 900px;
    margin: auto;
}

.legal-eyebrow {
    display: inline-block;
    color: #02BFC9;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.legal-hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    margin: 0 0 15px;
    color: #fff;
}

.legal-hero h1 span {
    color: #02BFC9;
}

.legal-hero p {
    color: #d4e3f3;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.legal-hero small {
    color: #a9c5df;
    font-size: 13px;
}

.legal-content {
    padding: 65px 20px;
    background: #f5f8fc;
}

.legal-content .container {
    max-width: 950px;
    margin: auto;
}

.legal-card {
    background: #fff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(4, 28, 76, .06);
}

.legal-card h2 {
    color: #041C4C;
    font-size: 21px;
    margin: 32px 0 12px;
    line-height: 1.4;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: #536277;
    font-size: 15px;
    line-height: 1.85;
}

.legal-card ul {
    padding-left: 23px;
    margin: 12px 0 20px;
}

.legal-card li {
    margin-bottom: 8px;
}

.legal-card a {
    color: #0286E7;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.legal-contact {
    background: #f1f7fc;
    border-left: 4px solid #0286E7;
    padding: 20px;
    border-radius: 10px;
    margin-top: 18px;
}

.legal-contact strong {
    color: #041C4C;
    font-size: 17px;
}

.legal-contact p {
    margin: 8px 0 0;
}

@media(max-width: 700px) {
    .legal-hero {
        padding: 60px 18px;
    }

    .legal-content {
        padding: 35px 15px;
    }

    .legal-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .legal-card h2 {
        font-size: 19px;
        margin-top: 26px;
    }

    .legal-card p,
    .legal-card li {
        font-size: 14px;
    }
}

