/* =============================================
   VEER Homepage - App UI + Tight Spacing
   ============================================= */

/* ---- Global homepage: reduce section gaps ---- */
.page-home.ref-design .section {
    padding: 20px 0 !important;
}
.page-home .section-header {
    margin-bottom: 14px !important;
}
.page-home .section-title {
    margin-bottom: 0 !important;
}
.page-home .ref-process-section .section-header {
    margin-bottom: 10px !important;
}
.page-home .ref-quote-card {
    position: static !important;
    top: auto !important;
}
.page-home .ref-projects-section {
    padding-top: 16px !important;
}
.page-home .ref-contact-section {
    padding: 32px 0 !important;
}
.page-home .ref-contact-side {
    gap: 10px !important;
}
.page-home .ref-warranty-seal {
    margin-bottom: 0 !important;
}

/* ---- Combined stats + features strip ---- */
.ref-home-strip {
    padding: 0;
    background: transparent;
}
.ref-home-strip .container {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ref-stats-inline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 12px 0 8px;
}
.ref-stats-inline .ref-stat-box {
    padding: 10px 6px;
}
.ref-stats-inline .ref-stat-box i { font-size: 22px; margin-bottom: 4px; }
.ref-stats-inline .ref-stat-box strong { font-size: 22px; }
.ref-stats-inline .ref-stat-box span { font-size: 11px; }

.ref-feature-inner {
    margin: 0 !important;
    padding: 14px 12px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(10, 46, 115, 0.08) !important;
    background: var(--white) !important;
    border: 1px solid #e8edf3 !important;
}
.ref-feature-inner .feature-bar-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}
.ref-feature-inner .feature-bar-item {
    padding: 8px 4px;
}
.ref-feature-inner .feature-bar-item i {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--primary);
}
.ref-feature-inner .feature-bar-item span {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.25;
}

.page-home .feature-bar {
    margin-top: 0 !important;
    padding: 0 !important;
}

/* ---- App Footer (horizontal) ---- */
.app-footer {
    background: #051a42;
    margin-top: 0;
}
.app-footer-top {
    padding: 20px 0 12px;
}
.app-footer-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.app-footer-social {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  
}
.app-footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    transition: var(--transition);
}
.app-footer-social a:hover {
    background: var(--secondary);
    color: var(--white);
}
.app-footer-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.app-footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    justify-content: center;
}
.app-footer-chip.whatsapp { background: rgba(37, 211, 102, 0.15); }
.app-footer-chip.location { flex: 1 1 100%; }
.app-footer-chip i { color: var(--secondary); font-size: 14px; }
.app-footer-chip.whatsapp i { color: #25D366; }

.app-footer-nav-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.app-footer-nav-scroll::-webkit-scrollbar { display: none; }
.app-footer-nav-scroll a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.app-footer-nav-scroll a:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.app-footer-map {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 4px;
}
.app-footer-map iframe { display: block; }

.app-footer-bottom {
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.app-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.app-footer-bottom .copyright {
    margin: 0;
    font-size: 11px;
    opacity: 0.7;
}
.app-footer-bottom .footer-legal {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.app-footer-bottom .footer-legal a {
    font-size: 11px;
    opacity: 0.8;
}

.app-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}
.footer-links-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-horizontal li {
    margin: 0 !important;
    list-style: none;
}
.footer-links-horizontal a {
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 991px) {

    body.page-home.ref-design {
        background: #fff !important;
        padding-bottom: calc(var(--mobile-nav-h) + var(--mobile-cta-h) + var(--mobile-cta-gap) + 24px + env(safe-area-inset-bottom)) !important;
        overflow-x: hidden;
    }

    /* ---- Floating Bottom Nav Island ---- */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: auto;
        border-radius: 22px;
        padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(10, 46, 115, 0.08);
        box-shadow: 0 8px 32px rgba(10, 46, 115, 0.18);
        z-index: 1000;
    }
    .bottom-nav-item {
        border-radius: 14px;
        padding: 6px 4px;
        min-width: 0;
        flex: 1;
        font-size: 9px;
        font-weight: 500;
    }
    .bottom-nav-item i { font-size: 18px; margin-bottom: 2px; }
    .bottom-nav-item.active {
        background: rgba(255, 122, 0, 0.12);
        color: var(--secondary);
    }

    /* Sticky CTA above floating nav - gap handled in luxury-upgrade.css */
    .sticky-mobile-cta {
        bottom: calc(88px + env(safe-area-inset-bottom));
        left: 12px;
        right: 12px;
        padding: 0;
        gap: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(10, 46, 115, 0.15);
    }
    .sticky-cta-call { border-radius: 0; }
    .sticky-cta-quote { border-radius: 0; }

    .floating-actions {
        bottom: calc(140px + env(safe-area-inset-bottom));
        right: 12px;
    }
    .floating-actions .float-quote,
    .floating-actions .float-top { display: none !important; }

    /* ---- Mobile Hero App Sheet ---- */
    .app-hero:not(.hero-slider-section) {
        padding-top: 56px;
        padding-bottom: 0;
        margin-bottom: 0;
        background: #eef1f6;
    }

    .app-hero.hero-slider-section {
        padding-top: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0;
        background: transparent !important;
        width: 100%;
    }

    .hero-slide-img,
    .hero-slide-frame img {
        width: 100% !important;
        height: auto !important;
    }

    .hero-mobile-pagination {
        bottom: 10px !important;
    }

    .app-hero:not(.hero-slider-section) {
        position: relative;
    }

    .app-hero-image {
        height: 46vh;
        min-height: 260px;
        max-height: 400px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .app-seal {
        bottom: 56px;
        right: 20px;
        width: 76px;
        height: 76px;
        z-index: 3;
    }

    .app-hero-sheet {
        margin: -52px 14px 16px;
        border-radius: 28px 28px 20px 20px;
        padding: 22px 18px 18px;
        box-shadow: 0 12px 40px rgba(10, 46, 115, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.9);
    }

    .app-sheet-handle {
        width: 44px;
        height: 5px;
        background: #d1d9e6;
        margin-bottom: 14px;
    }

    .app-hero-title {
        font-size: 24px;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .app-hero-desc {
        font-size: 13px;
        font-weight: 300;
        color: #5a6478;
        line-height: 1.65;
        margin-bottom: 14px;
    }

    .app-stats-row { gap: 6px; margin-bottom: 14px; }
    .app-stat-pill {
        padding: 10px 6px;
        border-radius: 12px;
        background: var(--white);
        border: 1px solid #e8edf3;
    }
    .app-stat-pill strong { font-size: 16px; font-weight: 600; }
    .app-stat-pill span { font-size: 8px; font-weight: 500; }

    .app-hero-icons {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 14px;
    }
    .app-icon-chip {
        padding: 9px 10px;
        font-size: 10px;
        font-weight: 500;
        border-radius: 10px;
        background: #f4f6f9;
    }

    .app-hero-btns { gap: 8px; margin-bottom: 10px; }
    .app-hero-btns .ref-btn-call,
    .app-hero-btns .ref-btn-wa {
        padding: 12px 10px;
        font-size: 12px;
        font-weight: 500;
        border-radius: 12px;
    }

    .app-quote-bar {
        padding: 12px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 12px;
    }

    /* Hide extra hero swiper */
    .app-hero-swiper-wrap { display: none !important; }

    /* Disable old horizontal scroll on service cards */
    .ref-service-cards:not(.ref-service-cards-desktop) {
        display: block;
        overflow: visible;
        scroll-snap-type: none;
    }

    /* ---- Trust strip compact ---- */
    .ref-trust-strip {
        margin-top: 0;
        padding: 8px 0;
    }
    .ref-trust-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .ref-trust-item {
        justify-content: flex-start;
        text-align: left;
        font-size: 12px;
        font-weight: 400;
        padding: 4px 16px;
    }

    /* Home strip mobile */
    .ref-home-strip {
        padding: 0 14px 8px;
    }
    .ref-home-strip .container {
        padding: 0;
    }
    .ref-stats-inline {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 0 0 10px;
    }
    .ref-stats-inline .ref-stat-box {
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(10, 46, 115, 0.06);
    }
    .ref-feature-inner .feature-bar-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* ---- Service cards swiper ---- */
    .ref-services {
        padding: 8px 0 16px;
        background: transparent;
    }
    .ref-services .container {
        padding-left: 0;
        padding-right: 0;
    }
    .ref-service-cards-desktop { display: none !important; }

    .service-swiper-wrap {
        display: block;
        position: relative;
        padding: 0 14px;
    }
    .service-mobile-swiper {
        overflow: hidden;
        border-radius: 18px;
    }
    .service-mobile-swiper .swiper-slide {
        height: auto;
    }
    .service-mobile-swiper .ref-svc-card {
        min-width: 0;
        margin: 0;
        box-shadow: 0 8px 28px rgba(10, 46, 115, 0.12);
    }
    .service-swiper-nav {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 14px;
    }
    .service-swiper-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--white);
        border: 1px solid #e2e8f0;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(10, 46, 115, 0.1);
        cursor: pointer;
    }
    .service-swiper-btn:hover {
        background: var(--secondary);
        color: var(--white);
        border-color: var(--secondary);
    }

    /* ---- App section cards ---- */
    .ref-design .section {
        padding: 12px 0 !important;
    }
    .ref-design .section-gray {
        background: transparent;
    }
    .ref-about-block .container,
    .ref-process-section .container,
    .ref-testimonial-faq .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ref-about-block {
        background: transparent;
    }
    .ref-about-row {
        background: var(--white);
        /* border-radius: 18px; */
        padding: 18px;
        /* margin: 0 14px 14px; */
        /* box-shadow: 0 4px 16px rgba(10, 46, 115, 0.06); */
    }
    .ref-about-row {
        display: block;
    }
    .ref-founder-img img { height: 280px; border-radius: 14px; }

    .ref-why-section {
        background: var(--white);
        border-radius: 18px;
        margin: 0 14px;
        padding: 18px 14px;
        box-shadow: 0 4px 16px rgba(10, 46, 115, 0.06);
    }

    /* Map banner mobile */
    .ref-map-banner {
        margin: 14px;
        border-radius: 18px;
        padding: 20px 16px;
    }
    .ref-map-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .ref-map-visual {
        flex-direction: column;
        gap: 10px;
    }
    .ref-map-pins {
        justify-content: center;
    }

    /* Counter mobile - card style, no overlap */
    .ref-counter-ribbon {
        margin: 0 14px 14px;
        border-radius: 18px;
        padding: 20px 16px !important;
        overflow: hidden;
    }
    .ref-counter-ribbon .counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .ref-counter-ribbon .counter-num { font-size: 28px; }

    /* Process section mobile — grid layout (no cut) */
    .ref-process-section {
        padding: 12px 0 !important;
        overflow: hidden;
    }
    .ref-process-section .container {
        padding-left: 14px;
        padding-right: 14px;
        max-width: 100%;
        overflow: hidden;
    }
    .ref-process-flow {
        background: var(--white);
        border-radius: 18px;
        padding: 16px 12px;
        margin: 0 !important;
        box-shadow: 0 4px 16px rgba(10, 46, 115, 0.06);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }
    .ref-process-arrow {
        display: none !important;
    }
    .ref-process-node {
        flex-direction: column;
        min-width: 0;
        flex: none;
        gap: 6px;
        align-items: center;
        width: 100%;
    }
    .ref-process-circle {
        width: 42px;
        height: 42px;
        font-size: 15px;
        margin-bottom: 0;
    }
    .ref-process-node > span {
        display: block !important;
        font-size: 9px;
        line-height: 1.25;
        text-align: center;
    }

    .ref-quote-card {
        position: static;
        margin: 14px 0 0 !important;
        border-radius: 18px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Projects scroll */
    .ref-projects-row {
        padding: 0 14px;
    }

    /* Contact mobile */
    .ref-contact-section {
        padding: 16px 0 20px !important;
        margin: 0;
        border-radius: 0;
    }
    .ref-contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 14px;
    }
    .ref-contact-title { font-size: 1.4rem; }
    .ref-contact-sub { font-size: 13px; }
    .ref-contact-form { padding: 18px 16px; border-radius: 16px; }
    .ref-contact-side { gap: 10px; }
    .ref-contact-info-card,
    .ref-why-checklist {
        border-radius: 14px;
        padding: 16px;
    }
    .ref-warranty-seal { border-radius: 14px; }

    .ref-testimonial-faq {
        padding: 12px 0 !important;
    }
    .ref-testimonial-faq .section-title {
        font-size: 1.25rem;
    }
    .ref-testimonial-wrap {
        padding: 0 36px;
    }
    .ref-testimonial-nav {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    /* Trust values compact */
    .page-home .ref-counter-ribbon {
        display: none;
    }
    .ref-trust-values {
        padding: 12px 0;
        margin: 0 14px 8px;
        background: var(--white);
        border-radius: 18px;
        box-shadow: 0 4px 16px rgba(10, 46, 115, 0.06);
    }
    .ref-trust-values .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .ref-trust-values .trust-item {
        padding: 8px 4px;
    }
    .ref-trust-values .trust-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .ref-trust-values .trust-item span {
        font-size: 10px;
    }

    /* Hide duplicate CTA on mobile (sticky bar exists) */
    .page-home .cta-section {
        display: none !important;
    }

    /* App footer mobile padding for bottom nav */
    .page-home .app-footer-bottom {
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

    /* Footer spacing */
    .app-footer-top { padding: 16px 0 10px; }
}

@media (min-width: 992px) {
    .service-swiper-wrap { display: none !important; }
    .app-footer-nav-scroll { display: none; }
    .app-footer-contact-strip .app-footer-chip.location { flex: 1; }

    .ref-service-cards-desktop {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .page-home .ref-home-strip {
        padding: 8px 0 4px;
    }
    .page-home .ref-services {
        padding: 16px 0 24px !important;
    }
    .page-home .ref-process-section {
        padding: 20px 0 !important;
    }
    .page-home .ref-map-banner {
        margin-top: 0;
        margin-bottom: 0;
    }
    .page-home .ref-counter-ribbon {
        padding: 16px 0 !important;
    }
    .page-home .cta-section {
        padding: 28px 0 !important;
        margin: 0;
    }

    /* Desktop homepage polish */
    .ref-hero-title {
        font-weight: 600;
        letter-spacing: -0.02em;
    }
    .ref-hero-desc {
        font-weight: 300;
        font-size: 15px;
        line-height: 1.7;
    }
    .ref-hero-wrap { padding: 40px 0 48px; }
    .ref-trust-strip { padding: 10px 0; }
    .ref-about-block .section-title,
    .ref-process-section .section-title { font-weight: 600; }
    .ref-contact-sub { font-weight: 300; }

    .ref-stats-inline .ref-stat-box strong { font-size: 24px; }
    .ref-feature-inner .feature-bar-item span { font-size: 10px; }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .ref-feature-inner .feature-bar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .ref-stats-inline {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 575px) {
    .app-hero-image { min-height: 240px; }
    .app-hero-sheet { margin: -44px 10px 12px; }
    .app-hero-title { font-size: 21px; }
    .ref-stats-inline { grid-template-columns: repeat(2, 1fr) !important; }
}
