/* ============================================
   VEER - Mobile App Design (Reference)
   ============================================ */

@media (max-width: 991px) {
    .ref-design .veer-navbar { display: none !important; }

    /* App Hero */
    .app-hero {
        padding-top: 56px;
        background: var(--bg);
        padding-bottom: 8px;
    }

    .app-hero-image {
        position: relative;
        height: 42vh;
        min-height: 280px;
        max-height: 380px;
        overflow: hidden;
        border-radius: 0 0 28px 28px;
        margin: 0 12px;
        box-shadow: 0 12px 40px rgba(10,46,115,0.15);
    }
    .app-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
    }
    .app-hero-image-overlay {
        position: absolute; inset: 0;
        background: linear-gradient(transparent 40%, rgba(10,46,115,0.5));
    }
    .app-seal {
        top: auto; bottom: 16px; right: 16px;
        width: 72px; height: 72px;
    }
    .app-seal .seal-inner strong { font-size: 18px; }
    .app-seal .seal-inner span { font-size: 7px; }

    /* Bottom Sheet */
    .app-hero-sheet {
        background: var(--white);
        margin: -40px 12px 0;
        position: relative;
        z-index: 5;
        border-radius: 24px;
        padding: 24px 20px 20px;
        box-shadow: 0 -8px 40px rgba(10,46,115,0.12);
    }
    .app-sheet-handle {
        width: 40px; height: 4px;
        background: var(--gray-light);
        border-radius: 4px;
        margin: 0 auto 16px;
    }
    .app-hero-title {
        font-family: var(--font-display);
        font-size: 26px;
        font-weight: 900;
        color: var(--dark);
        line-height: 1.1;
        margin-bottom: 10px;
        text-transform: uppercase;
    }
    .app-hero-title span { color: var(--secondary); }
    .app-hero-desc { font-size: 14px; color: var(--gray); margin-bottom: 16px; line-height: 1.6; }

    .app-stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }
    .app-stat-pill {
        background: linear-gradient(135deg, rgba(10,46,115,0.06), rgba(255,122,0,0.06));
        border-radius: 14px;
        padding: 12px 8px;
        text-align: center;
        border: 1px solid var(--gray-light);
    }
    .app-stat-pill strong { display: block; font-size: 18px; font-weight: 900; color: var(--secondary); }
    .app-stat-pill span { font-size: 9px; color: var(--gray); font-weight: 700; text-transform: uppercase; line-height: 1.2; display: block; margin-top: 2px; }

    .app-hero-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }
    .app-icon-chip {
        display: flex; align-items: center; gap: 8px;
        padding: 10px 12px;
        background: var(--bg);
        border-radius: 12px;
        font-size: 11px;
        font-weight: 700;
        color: var(--primary);
    }
    .app-icon-chip i { color: var(--secondary); font-size: 14px; width: 18px; text-align: center; }

    .app-hero-btns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 12px;
    }
    .app-hero-btns .ref-btn-call,
    .app-hero-btns .ref-btn-wa {
        justify-content: center;
        padding: 14px 12px;
        font-size: 13px;
        border-radius: 14px;
    }

    .app-quote-bar {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        width: 100%;
        padding: 14px;
        border-radius: 14px;
        background: linear-gradient(135deg, var(--secondary), #ff9a3c);
        color: var(--white);
        font-weight: 800;
        font-size: 14px;
        box-shadow: 0 6px 20px rgba(255,122,0,0.3);
    }

    /* Horizontal project swiper */
    .app-hero-swiper-wrap {
        padding: 16px 0 8px;
        margin: 0 12px;
    }
    .app-hero-swiper {
        border-radius: 16px;
        overflow: hidden;
    }
    .app-hero-swiper .swiper-slide img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 14px;
    }
    .app-swiper-pagination { margin-top: 10px !important; position: relative !important; }
    .app-swiper-pagination .swiper-pagination-bullet-active { background: var(--secondary) !important; }

    /* Mobile sections as app cards */
    .ref-design .section {
        padding: 32px 0;
    }
    .ref-design .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ref-trust-strip { padding: 14px 0; }
    .ref-trust-item { font-size: 12px; padding: 8px 12px; }
    .ref-trust-item i { font-size: 18px; }

    .ref-svc-body img { height: 160px; margin-top: 0 !important; }

    .ref-about-mini-stats { grid-template-columns: repeat(2, 1fr); }

    .ref-process-flow {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
        overflow: visible;
        flex-wrap: wrap;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0;
        width: 100%;
    }
    .ref-process-flow::-webkit-scrollbar { display: none; }
    .ref-process-node { min-width: 0; flex: none; }
    .ref-process-arrow { display: none; }
    .ref-process-node > span { display: block; font-size: 9px; }

    .ref-projects-row {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ref-projects-row::-webkit-scrollbar { display: none; }
    .ref-project-thumb { min-width: 160px; flex: 0 0 160px; }
    .ref-project-cta { min-width: 180px; flex: 0 0 180px; }

    .ref-contact-section { padding: 40px 0; }
    .ref-contact-title { font-size: 1.5rem; }
    .ref-contact-form { padding: 20px 16px; }
    .ref-warranty-seal { margin-top: 20px; }

    /* Enhanced mobile header */
    .mobile-app-header {
        background: rgba(255,255,255,0.96);
        box-shadow: 0 2px 16px rgba(10,46,115,0.06);
    }
    .mobile-logo .logo-text {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .mobile-logo .logo-text small {
        display: block;
        font-size: 8px;
        color: var(--gray);
        letter-spacing: 0.5px;
        font-weight: 600;
    }

    /* Bottom nav enhanced */
    .mobile-bottom-nav {
        border-radius: 20px 20px 0 0;
        padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 32px rgba(10,46,115,0.1);
    }
    .bottom-nav-item {
        border-radius: 14px;
        padding: 6px 10px;
        min-width: 56px;
    }
    .bottom-nav-item.active {
        background: rgba(255,122,0,0.1);
    }

    .sticky-mobile-cta {
        bottom: 68px;
        padding: 0 12px;
    }
    .sticky-cta-call, .sticky-cta-whatsapp, .sticky-cta-quote {
        border-radius: 14px;
        padding: 12px 8px;
        font-size: 11px;
        font-weight: 800;
    }
    .sticky-cta-call { border-radius: 14px 0 0 14px; }
    .sticky-cta-quote { border-radius: 0 14px 14px 0; }

    body.ref-design { padding-bottom: 140px; }

    .floating-actions { bottom: 150px; }

    /* App-style service cards scroll on mobile */
    .ref-service-cards {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ref-service-cards::-webkit-scrollbar { display: none; }
    .ref-svc-card {
        min-width: 85vw;
        flex: 0 0 85vw;
        scroll-snap-align: center;
    }

    /* Feature bar mobile */
    .ref-feature-bar .feature-bar-inner {
        margin: 0;
        border-radius: 16px;
    }
    .ref-feature-bar .feature-bar-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ref-testimonial-faq .section-title { font-size: 1.4rem; }
}

@media (max-width: 575px) {
    .app-hero-image { height: 36vh; min-height: 240px; margin: 0 8px; border-radius: 0 0 22px 22px; }
    .app-hero-sheet { margin: -32px 8px 0; padding: 20px 16px; border-radius: 20px; }
    .app-hero-title { font-size: 22px; }
    .app-hero-icons { grid-template-columns: 1fr; }
    .ref-why-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ref-why-item { padding: 16px 10px; }
}

@media (min-width: 992px) {
    .app-hero { display: none !important; }
}
