/* Mobile responsive fixes for SolarFlow marketing pages */

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    max-width: 100vw;
}

@media (max-width: 767px) {
    .px-margin-edge {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .text-display-lg {
        font-size: clamp(1.75rem, 7vw, 2.75rem) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em;
    }

    .text-headline-lg {
        font-size: clamp(1.375rem, 5vw, 1.75rem) !important;
        line-height: 1.25 !important;
    }

    .text-headline-md {
        font-size: clamp(1.125rem, 4vw, 1.5rem) !important;
        line-height: 1.3 !important;
    }

    .text-body-lg {
        font-size: clamp(0.9375rem, 3.5vw, 1rem) !important;
        line-height: 1.6 !important;
    }

    .stat-value {
        font-size: clamp(1.125rem, 5.5vw, 1.75rem) !important;
        line-height: 1.2 !important;
    }

    .stat-label {
        font-size: 0.625rem !important;
        line-height: 1.3 !important;
        letter-spacing: 0.06em;
    }
}

.whatsapp-fab {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    z-index: 1000;
}

.whatsapp-fab a {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    background-color: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.whatsapp-fab svg {
    width: 1.625rem;
    height: 1.625rem;
    flex-shrink: 0;
    display: block;
}

.btn-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 640px) {
    .btn-group-mobile {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        gap: 1rem;
    }

    .btn-group-mobile > a,
    .btn-group-mobile > button {
        width: auto;
    }
}

.btn-group-mobile > a,
.btn-group-mobile > button {
    width: 100%;
    justify-content: center;
}

.section-badge {
    padding: 0.375rem 0.875rem;
    line-height: 1.25;
}
