/* ═══════════════════════════════════════════
   KMK DIGITAL — MOBILE FIXES
   Add to: kmk-digital-child/assets/css/child-overrides.css
═══════════════════════════════════════════ */

/* ── Fix 1: Logo — force single line on all screen sizes ── */
.nav-logo {
    white-space: nowrap;
    font-size: 18px !important;
    letter-spacing: -0.3px;
}

/* ── Fix 2: Hide "Start a Project" CTA from nav on mobile ──
   It should only appear in the mobile drawer menu          */
@media (max-width: 960px) {
    .nav-cta-btn {
        display: none !important;
    }
}

/* ── Fix 3: Featured Services section — fix mobile padding ── */
@media (max-width: 960px) {
    section[aria-label="Featured Services"] {
        padding: 80px 20px !important;
    }
    /* Fix the inner grid padding too */
    section[aria-label="Featured Services"] > div[style*="grid"] > div {
        padding: 36px 24px !important;
    }
}

@media (max-width: 600px) {
    section[aria-label="Featured Services"] {
        padding: 64px 20px !important;
    }
    /* Stack the 2-col grid to 1 col on mobile */
    section[aria-label="Featured Services"] > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Fix 4: Ensure ALL sections have consistent mobile padding ── */
@media (max-width: 960px) {
    .hero             { padding: 0 20px !important; }
    .home-services    { padding: 80px 20px !important; }
    .tech-stack       { padding: 80px 20px !important; }
    .testimonials     { padding: 80px 20px !important; }
    .cta-band         { padding: 64px 20px !important; }
    .about-hero       { padding: 120px 20px 80px !important; }
    .services-hero    { padding: 120px 20px 10px !important; }
    .wl-hero          { padding: 120px 20px 60px !important; }
    .contact-hero     { padding: 100px 20px 0 !important; }
    .contact-section  { padding: 48px 20px !important; }
    .app-hero         { padding: 120px 20px 60px !important; }
}

@media (max-width: 600px) {
    .hero             { padding: 0 20px !important; }
    .home-services    { padding: 64px 20px !important; }
    .tech-stack       { padding: 64px 20px !important; }
    .testimonials     { padding: 64px 20px !important; }
    .cta-band         { padding: 56px 20px !important; }
    .about-hero       { padding: 96px 20px 64px !important; }
    .services-hero    { padding: 96px 20px 10px !important; }
    .wl-hero          { padding: 96px 20px 48px !important; }
    .contact-hero     { padding: 88px 20px 0 !important; }
    .contact-section  { padding: 32px 20px !important; }
    .app-hero         { padding: 96px 20px 48px !important; }
}

/* ── Fix 5: Mobile menu — ensure Start a Project CTA is in drawer ── */
/* The .mobile-cta is already in the drawer — make sure it's visible */
@media (max-width: 960px) {
    .mobile-cta {
        display: block !important;
        margin-top: 24px;
        padding: 14px 24px;
        background: var(--accent);
        color: #0e0f11;
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: 2px;
        text-transform: uppercase;
        text-decoration: none;
        text-align: center;
        font-weight: 500;
    }
    .mobile-cta:hover {
        background: #ffd060;
        color: #0e0f11;
    }
}


/* ── Fix: Hero orbs causing horizontal overflow on mobile ── */
@media (max-width: 960px) {
    .hero {
        overflow: hidden !important;
    }
    .hero-orb-1 {
        width: 300px !important;
        height: 300px !important;
        right: -50px !important;
        top: -100px !important;
    }
    .hero-orb-2 {
        width: 200px !important;
        height: 200px !important;
    }
}

/* ── Fix: Prevent any child from blowing out the viewport ── */
#page,
#masthead,
#content,
.site-header {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* ── Root level safety net ── */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* ── Show Start a Project in hero on mobile only ── */
.hero-mobile-cta {
    display: none !important;
}
@media (max-width: 960px) {
    .hero-mobile-cta {
        display: inline-flex !important;
        width: 100% !important;
        justify-content: center !important;
    }
}
