/* ============================================================
   aipage-css.css — Mobile Responsiveness & Layout Fixes
   iAdsClick AI Agent Consultancy Page
   ============================================================ */

/* ── MOBILE HAMBURGER MENU ──────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1e3c72;
    border-radius: 3px;
    transition: all 0.3s;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-container { padding: 0 20px; }
    .nav-hamburger { display: flex; }

    .nav-links {
        display: none !important;
        flex-direction: column;
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background: white;
        overflow-y: auto;
        padding: 20px 0 40px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 999;
        gap: 0;
    }
    .nav-links.open {
        display: flex !important;
    }
    .nav-item > a {
        padding: 16px 28px;
        font-size: 1.05rem;
        border-bottom: 1px solid #f1f5f9;
        display: block;
    }
    .nav-item:hover > a {
        transform: none;
        background: #f8fafc;
    }
    .mega-menu {
        position: static !important;
        width: 100% !important;
        display: none !important;
        grid-template-columns: 1fr 1fr !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border-top: none !important;
        padding: 20px 28px !important;
        background: #f8fafc;
    }
    .nav-item:hover .mega-menu,
    .nav-item:focus-within .mega-menu {
        display: grid !important;
    }
    .nav-cta {
        margin: 16px 28px 0 !important;
        padding: 14px 20px !important;
        text-align: center;
        border-radius: 50px;
    }
}

@media (max-width: 600px) {
    .mega-menu {
        grid-template-columns: 1fr !important;
    }
}

/* ── HERO SLIDER ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-slider { height: auto; min-height: 560px; }
    .hero-content h1 { font-size: 2rem !important; }
    .hero-content p { font-size: 1rem !important; margin-bottom: 28px; }
    .cta-group { flex-direction: column; align-items: center; gap: 14px; }
    .btn { padding: 15px 30px; font-size: 0.95rem; width: 100%; max-width: 320px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.65rem !important; }
    .hero-slider { min-height: 520px; }
}

/* ── TRUST BANNER ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .trust-banner {
        font-size: 0.88rem;
        padding: 18px 15px;
        line-height: 1.9;
    }
    .trust-banner i { margin: 0 8px; }
}

/* ── SECTION HEADERS ────────────────────────────────────────── */
@media (max-width: 768px) {
    .section-header h2 { font-size: 1.8rem !important; }
    .section-header p { font-size: 1rem !important; }
}

/* ── SERVICES TABS ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .tabs-nav { gap: 8px; }
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.82rem;
    }
    .service-grid { grid-template-columns: 1fr !important; gap: 24px; }
    .service-card { padding: 30px 24px; }
    .service-card h3 { font-size: 1.3rem; }
    .container { padding: 30px 16px; }
}

/* ── WORKFLOW COMPARE ───────────────────────────────────────── */
@media (max-width: 768px) {
    .workflow-compare-grid {
        grid-template-columns: 1fr !important;
        padding: 0 16px;
        gap: 16px;
    }
    .compare-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }
    .compare-header { font-size: 1rem; padding: 18px 20px; }
    .compare-item { font-size: 0.88rem; padding: 14px 18px; }
}

/* ── AGENT VS BOT TABLE ─────────────────────────────────────── */
@media (max-width: 768px) {
    .agent-bot-wrap h2 { font-size: 1.7rem; }
    .avb-table { display: block; overflow-x: auto; white-space: nowrap; }
    .avb-table th,
    .avb-table td { padding: 12px 14px; font-size: 0.82rem; }
}

/* ── INTEGRATIONS ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .integrations-grid { gap: 12px; }
    .integration-pill { padding: 10px 16px; font-size: 0.87rem; }
    .integrations-section h2 { font-size: 1.8rem; }
}

/* ── PLATFORM LOGOS STRIP ───────────────────────────────────── */
@media (max-width: 768px) {
    .platform-logos { gap: 12px; }
    .platform-logo { padding: 10px 16px; font-size: 0.9rem; }
}

/* ── INDUSTRY PILLARS ───────────────────────────────────────── */
@media (max-width: 768px) {
    .pillars-grid { grid-template-columns: 1fr !important; }
    .pillar-card { padding: 30px 24px; }
    .pillar-card h3 { font-size: 1.3rem; }
}

/* ── PRICING SECTION ────────────────────────────────────────── */
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr !important; max-width: 480px; margin: 40px auto 0; }
    .pricing-card.featured { transform: scale(1); }
}

@media (max-width: 480px) {
    .pricing-card { padding: 32px 24px; }
    .pricing-price { font-size: 2rem; }
}

/* ── SECURITY SECTION ───────────────────────────────────────── */
@media (max-width: 768px) {
    .security-grid { grid-template-columns: 1fr !important; }
    .compliance-badges { flex-direction: column; align-items: center; }
    .compliance-badge { width: 100%; max-width: 300px; justify-content: center; }
}

/* ── FAQ SECTION ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .faq-question { font-size: 0.95rem; padding: 18px 20px; }
    .faq-answer { padding: 0 20px 18px; font-size: 0.92rem; }
}

/* ── STATS SECTION ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 20px; }
    .stat-val { font-size: 2.8rem !important; }
    .stat-label { font-size: 1rem; }
    .stat-item { padding: 24px 16px; }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr !important; }
}

/* ── USE CASES ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .use-case-grid { grid-template-columns: 1fr !important; }
    .use-case-card { padding: 36px 28px; }
    .use-case-card h3 { font-size: 1.4rem; }
}

/* ── CASE STUDIES ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .cs-grid { grid-template-columns: 1fr !important; }
    .cs-card { padding: 28px 24px; }
    .cs-stats { gap: 14px; }
    .cs-val { font-size: 1.6rem; }
    .case-study-carousel { padding: 36px 20px !important; }
    .case-study-carousel h3 { font-size: 1.6rem !important; }
    .case-study-stats { gap: 28px; }
    .case-stat-val { font-size: 2.2rem; }
}

/* ── BLOG & FEEDS ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .feeds-grid { grid-template-columns: 1fr !important; }
    .blog-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .blog-content { padding: 24px; }
    .blog-card h3 { font-size: 1.2rem; }
    .feeds-section h2 { font-size: 1.8rem; }
}

/* ── CTA SECTION ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cta-box h2 { font-size: 2rem !important; }
    .cta-box p { font-size: 1.05rem; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 14px; }
    .cta-btn { width: 100%; max-width: 340px; text-align: center; padding: 16px 30px; font-size: 1rem; }
    .contact-unit h2 { font-size: 1.8rem !important; }
    .unit-btns { flex-direction: column; align-items: center; gap: 14px; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 36px; }
}

@media (max-width: 580px) {
    .footer-grid { grid-template-columns: 1fr !important; }
    .footer-social { justify-content: flex-start; }
    .site-footer { padding: 36px 20px 24px; }
}

/* ── FLOATING CTAs ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .floating-ctas { display: none; }
    body { padding-bottom: 76px; }
    .mobile-sticky-cta { display: block; }
}

/* ── HERO SLIDE ADJUSTMENTS ─────────────────────────────────── */
@media (max-width: 480px) {
    .hero-slide { padding: 40px 20px; }
    .hero-content { max-width: 100%; }
}

/* ── SEO INTRO & HOW WE WORK (new sections) ─────────────────── */
@media (max-width: 768px) {
    .seo-intro-section { padding: 40px 20px; }
    .seo-kw-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .seo-kw-pill { font-size: 0.76rem; padding: 8px 10px; }
    .how-we-work { padding: 40px 20px; }
}

/* ── GENERAL UTILITY ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .workflow-compare-section,
    .agent-bot-section,
    .integrations-section,
    .industry-pillars,
    .pricing-section,
    .security-section,
    .lead-magnet-section,
    .faq-section,
    .use-cases-section,
    .blog-section,
    .feeds-section,
    .cta-section,
    .stats-section,
    .platform-strip {
        padding: 40px 16px;
    }

    /* Prevent horizontal overflow site-wide */
    body, html { overflow-x: hidden; max-width: 100vw; }
    * { box-sizing: border-box; }

    /* Lead magnet form */
    .lm-form { flex-direction: column; align-items: center; gap: 12px; }
    .lm-form input { width: 100%; max-width: 340px; }
    .lm-form button { width: 100%; max-width: 340px; }

    /* Workflow visual */
    .workflow-visual { padding: 20px 16px; }
    .workflow-step { padding: 14px 16px; gap: 14px; }
}

@media (max-width: 400px) {
    .seo-kw-grid { grid-template-columns: 1fr; }
}
