/* ═══════════════════════════════════════════════════════════
   Better Fix — Responsive Overrides
   ═══════════════════════════════════════════════════════════ */

/* ─── Large Desktop (≤1200px) ─── */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* ─── Tablet (≤992px) ─── */
@media (max-width: 991.98px) {
    section {
        padding: 60px 0;
    }

    .hero-section {
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 16px 0;
        margin-top: 8px;
        border-top: 1px solid var(--border);
    }

    .navbar-main .nav-link::after {
        display: none;
    }

    .nav-cta {
        display: block !important;
        margin-top: 8px;
        padding: 0 16px;
    }

    .nav-cta .btn-accent {
        display: block;
        text-align: center;
        margin-left: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .page-banner h1 {
        font-size: 2rem;
    }
}

/* ─── Mobile Landscape (≤768px) ─── */
@media (max-width: 767.98px) {
    /* ── Force safe-area padding — Bootstrap 5 uses --bs-gutter-x so !important needed ── */
    .container,
    .container-fluid,
    .container-sm,
    .container-md {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    section {
        padding: 48px 0;
    }

    .hero-section {
        min-height: auto;
    }

    /* Direct horizontal padding on content as fallback */
    .hero-content {
        padding: 40px 20px 28px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-stats {
        max-width: 100%;
        margin-top: 36px;
    }

    .hero-stat-number {
        font-size: 1.4rem;
    }

    /* ── Hero image on mobile ── */
    .hero-image-wrapper img {
        border-radius: 16px !important;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .top-bar {
        display: none;
    }

    /* ── Cards padding ── */
    .service-card {
        padding: 24px 20px;
    }

    .testimonial-card {
        padding: 24px 20px;
    }

    .offer-card {
        padding: 24px 20px;
    }

    .why-choose-card {
        padding: 24px 20px;
    }

    /* ── Gallery ── */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* ── Footer ── */
    .footer-main {
        padding: 40px 0 20px;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 8px;
    }

    .copyright {
        text-align: center;
    }

    /* ── Stats ── */
    .stat-item {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    /* ── CTA ── */
    .cta-section .row {
        text-align: center;
    }

    .cta-section h2 {
        font-size: 1.6rem;
    }

    .cta-section .d-flex {
        justify-content: center;
    }

    .cta-phone {
        font-size: 1.1rem;
    }

    /* ── Page Banner ── */
    .page-banner {
        padding: 40px 0 35px;
    }

    .page-banner h1 {
        font-size: 1.7rem;
    }

    .brands-section {
        padding: 40px 0;
    }

    .map-wrapper {
        height: 280px;
    }

    /* ── About section ── */
    .about-image-wrapper img {
        height: 280px;
    }

    /* ── Floating buttons ── */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 16px;
        right: 16px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 76px;
        right: 19px;
    }
}

/* ─── Mobile Portrait (≤576px) ─── */
@media (max-width: 575.98px) {
    /* Tighter safe-area on small phones */
    .container,
    .container-fluid,
    .container-sm,
    .container-md {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-label {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    /* Direct horizontal padding as fallback */
    .hero-content {
        padding: 36px 16px 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .hero-stats {
        max-width: 100%;
    }

    .hero-stat-number {
        font-size: 1.3rem;
    }

    .hero-stat {
        padding: 14px 6px;
    }

    .hero-stat-label {
        font-size: 10.5px;
        letter-spacing: 0.3px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* ── Cards full-width padding ── */
    .service-card {
        padding: 20px 16px;
    }

    .testimonial-card {
        padding: 20px 16px;
    }

    .why-choose-card {
        padding: 20px 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        justify-content: center;
    }

    .stat-item {
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    /* ── About section ── */
    .about-image-wrapper img {
        height: 240px;
    }

    .about-badge {
        padding: 12px 16px;
    }

    .about-badge .number {
        font-size: 1.5rem;
    }

    /* ── Feature items ── */
    .feature-item {
        gap: 10px;
    }

    /* ── Footer ── */
    .footer-heading {
        margin-top: 8px;
    }

    .contact-info-card {
        padding: 16px;
    }

    .offer-card {
        padding: 20px 16px;
    }

    /* ── Navbar ── */
    .navbar-main {
        padding: 10px 0;
    }
}
