/* ===== COMPREHENSIVE MOBILE RESPONSIVE ===== */

html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
    max-width: 100vw;
}
#whatsapp-chat, .blantershow-chat {
    z-index: 9999;
}
.container, .row, .col, [class*="col-"] {
    min-width: 0;
}

/* ===== TABLET (max-width: 991px) ===== */
@media (max-width: 991px) {
    /* Navbar */
    #mainNav .navbar-nav {
        padding-top: 0;
    }
    #mainNav .navbar-nav .nav-link {
        padding: 10px 12px !important;
        font-size: 16px !important;
    }
    #mainNav .navbar-nav .nav-link::after {
        display: none;
    }
    #mainNav .nav-item.dropdown .nav-link.open + .dropdown-menu {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    #mainNav .dropdown-menu {
        position: static !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    #mainNav .dropdown-menu.open {
        display: block !important;
    }
    #mainNav .dropdown-item {
        padding: 10px 12px 10px 32px !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        font-weight: 600 !important;
        font-size: 15px !important;
        color: #1e293b !important;
    }
    #mainNav .dropdown-item.fw-bold {
        padding: 8px 12px 4px 12px !important;
        margin: 0 !important;
    }

    /* Hero */
    .hero {
        min-height: 500px;
    }
    .hero-stats {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        padding: 20px 0;
        gap: 30px;
    }
    .hero-stat h3 {
        font-size: 28px;
    }

    /* Process horizontal - stack on tablet */
    .process-horiz {
        flex-direction: column;
        gap: 20px;
    }
    .process-horiz-step {
        flex-direction: row;
        gap: 16px;
    }
    .process-horiz-top {
        justify-content: flex-start;
        width: auto;
    }
    .process-horiz-arrow {
        display: none;
    }
    .process-horiz-bottom {
        padding: 0;
        flex: 1;
    }
    .process-horiz-card {
        text-align: left;
    }
    .process-horiz-card::after {
        display: none;
    }

    /* Stats bar */
    .stats-bar .row > div {
        margin-bottom: 20px;
    }
    .stat-item-icon {
        margin-bottom: 10px;
    }
    .stat-item h3 {
        font-size: 30px;
    }

    /* About feature grid */
    .about-feature-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    /* Window rows */
    .window-row {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 0;
    }
    .window-row.reversed .window-row-image,
    .window-row.reversed .window-row-content {
        order: unset;
    }
    .window-row-image img {
        height: 260px;
    }
    .window-row-perf-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Products split */
    .split-section {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .split-image img {
        height: 250px;
    }
    .glass-row {
        grid-template-columns: 1fr !important;
        gap: 16px;
        text-align: center;
    }
    .glass-row img {
        height: 140px;
        margin: 0 auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== MOBILE LANDSCAPE (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Center ALL content on mobile */
    .section-label,
    .section-title,
    .section-desc,
    .section-text,
    h2, h3, h4, h5, h6,
    p,
    .product-feature-card,
    .product-feature-card h4,
    .product-feature-card p,
    .product-feature-link,
    .testimonial-card,
    .testimonial-card p,
    .testimonial-author,
    .testimonial-stars,
    .about-feature-grid,
    .about-feature-item,
    .about-feature-item h5,
    .about-feature-item p,
    .window-row-content,
    .window-row-content h3,
    .window-row-desc li,
    .split-content,
    .split-content h2,
    .split-content p,
    .split-content ul li,
    .glass-row,
    .glass-row h5,
    .glass-row ul li,
    .info-card,
    .info-card h5,
    .info-card p,
    .info-card ul li,
    .door-card-body,
    .door-card-body h4,
    .door-card-body p,
    .service-card-body,
    .service-card-body h4,
    .service-card-body p,
    .service-card-body .check-list,
    .service-card-body .check-list li,
    .hw-card,
    .hw-card h6,
    .contact-card,
    .contact-card h6,
    .contact-card p,
    .contact-form-card h3,
    .contact-form-desc,
    .contact-map-wrapper h3,
    .stat-item,
    .stat-item p,
    .cta-section h2,
    .cta-section p {
        text-align: center;
    }

    /* Center images */
    .product-feature-img,
    .stat-item-icon,
    .contact-card-icon,
    .contact-card,
    .process-horiz-card-icon,
    .testimonial-avatar,
    .hw-card i {
        margin-left: auto;
        margin-right: auto;
    }

    /* Center flex layouts */
    .product-feature-link,
    .testimonial-author,
    .hero-btns,
    .cta-buttons,
    .about-feature-item,
    .contact-card,
    .service-card-body .btn,
    .door-card-body .btn {
        justify-content: center;
    }

    /* Center items */
    .section-label,
    .section-title,
    .section-desc,
    .section-text {
        margin-left: auto;
        margin-right: auto;
    }

    .section {
        padding: 25px 0;
    }

    /* Hero */
    .hero {
        display: block !important;
        height: auto !important;
        min-height: 400px !important;
        padding: 100px 0 30px;
        text-align: center;
        position: relative;
    }
    .hero-video {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        object-fit: cover;
        opacity: 0.8;
    }
    .hero-overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.1) 100%);
    }
    .hero-content {
        text-align: center;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 16px;
    }
    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 15px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .hero-text {
        font-size: 15px;
        margin-bottom: 25px;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    #whatsapp-chat {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 120px;
    }
    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }
    .hero-stats {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        display: flex;
        justify-content: center;
        gap: 15px;
        padding: 20px 16px 0;
    }
    .hero-stat {
        text-align: center;
        color: #fff;
        flex: 1;
    }
    .hero-stat h3 {
        font-size: 24px;
        color: #fff;
    }
    .hero-stat p {
        font-size: 11px;
        color: rgba(255,255,255,0.7);
    }

    /* About section on homepage */
    .row.align-items-center > [class*="col-"] {
        text-align: center !important;
    }
    .row.align-items-center > [class*="col-"] p {
        text-align: center !important;
    }
    .row.align-items-center > [class*="col-"] a.btn {
        display: inline-flex !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .about-feature-grid {
        grid-template-columns: 1fr;
    }
    .about-feature-item {
        justify-content: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .about-experience-badge {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin: 0 auto 20px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Stats */
    .stat-item h3 {
        font-size: 26px;
    }
    .stat-item p {
        font-size: 12px;
    }

    /* Service cards */
    .service-card-img {
        height: 180px;
    }
    .service-card-body {
        padding: 20px;
    }

    /* Products */
    .door-grid {
        grid-template-columns: 1fr;
    }
    .door-card-body {
        text-align: center;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-card {
        text-align: center;
    }
    .info-card ul li {
        justify-content: center;
        display: flex;
    }
    .hw-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Window rows */
    .window-row {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 25px 0 !important;
    }
    .window-row.reversed .window-row-image,
    .window-row.reversed .window-row-content {
        order: unset !important;
    }
    .window-row-image {
        border-radius: 12px;
        overflow: hidden;
    }
    .window-row-image img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
    }
    .window-row-content h3 {
        font-size: 22px;
    }
    .window-row-desc li {
        font-size: 14px;
        text-align: center;
    }
    .window-row-perf {
        border-top: 1px solid #f1f5f9;
        padding-top: 16px;
    }
    .window-row-perf h5 {
        text-align: center;
    }
    .window-row-perf-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .window-row-perf-item {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
    }
    .window-row-perf-item .perf-icon {
        flex-shrink: 0;
    }
    .window-row-perf-item .perf-info {
        flex: none;
    }
    .window-row-perf-item .perf-label {
        text-align: center !important;
    }
    .window-row-perf-item .perf-bar {
        justify-content: center !important;
    }

    /* Product carousel */
    .product-carousel img {
        height: 250px;
    }

    /* Glass */
    .glass-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .glass-row img {
        height: 140px;
        margin: 0 auto;
    }

    /* Contact */
    .contact-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .contact-card {
        padding: 20px 16px;
    }
    .contact-card-icon {
        width: 42px;
        height: 42px;
    }
    .contact-form-card {
        padding: 24px;
    }
    .contact-form-card h3 {
        font-size: 20px;
    }
    .contact-map iframe {
        height: 250px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-contact ul li {
        justify-content: center;
    }
    .footer-bottom .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        gap: 4px;
    }

    /* ===== NUCLEAR MOBILE CENTERING ===== */
    *:not(.navbar-collapse):not(.navbar-collapse *) {
        text-align: center !important;
    }
    img, video, iframe, .hero-video {
        text-align: initial !important;
    }
    a.btn, button:not(.navbar-toggler), .btn, form {
        display: inline-flex !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .navbar-collapse, .navbar-collapse * {
        text-align: left !important;
    }
    .d-flex {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .row {
        justify-content: center !important;
    }
    ul:not(.navbar-collapse ul):not(.navbar-nav), ol {
        padding-left: 0 !important;
        list-style-position: inside !important;
    }
    ul:not(.navbar-collapse ul) li, ol li {
        justify-content: center !important;
        display: flex !important;
    }
    .form-control, .form-select, textarea {
        text-align: left !important;
    }
    .navbar-toggler {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* ===== MOBILE PORTRAIT (max-width: 576px) ===== */
@media (max-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Hero */
    .hero {
        min-height: 420px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-text {
        font-size: 14px;
    }
    .hero-stats {
        gap: 15px;
    }
    .hero-stat h3 {
        font-size: 24px;
    }
    .hero-stat p {
        font-size: 11px;
    }

    /* Sections */
    .section {
        padding: 20px 0;
    }
    .section-label {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 10px;
    }
    .section-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    /* Product feature cards */
    .product-feature-card {
        padding: 20px;
    }
    .product-feature-img {
        width: 56px;
        height: 56px;
    }
    .product-feature-card h4 {
        font-size: 17px;
    }

    /* About split */
    .about-split-img img {
        height: auto;
    }
    .about-experience-badge {
        width: 90px;
        height: 90px;
        bottom: -10px;
        right: -10px;
    }
    .about-experience-badge h2 {
        font-size: 28px;
    }
    .about-experience-badge span {
        font-size: 10px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gallery-card {
        aspect-ratio: 16/9;
    }

    /* Stats */
    .stats-bar {
        padding: 30px 0;
    }
    .stat-item-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    .stat-item-icon i {
        font-size: 16px;
    }
    .stat-item h3 {
        font-size: 24px;
    }

    /* CTA */
    .cta-section {
        padding: 40px 0;
    }
    .cta-section h2 {
        font-size: 24px;
    }
    .cta-section p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Center product links */
    .product-feature-link,
    .testimonial-author {
        justify-content: center;
    }
    .contact-info-item {
        justify-content: center;
    }

    /* Products */
    .door-card-img {
        height: 180px;
    }
    .door-card-body {
        padding: 20px;
    }
    .split-image img {
        height: 220px;
    }
    .hw-grid {
        grid-template-columns: 1fr;
    }

    /* Window */
    .windows-vertical {
        padding: 20px 0;
    }
    .window-row {
        padding: 20px 0;
        gap: 20px;
    }
    .window-row-image img {
        height: 200px;
    }
    .window-row-content h3 {
        font-size: 20px;
    }
    .window-row-desc li {
        font-size: 14px;
    }

    /* Contact */
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .contact-card {
        padding: 18px 16px;
    }
    .contact-card-icon {
        margin: 0 auto 10px;
    }
    .contact-card h6 {
        font-size: 14px;
    }
    .contact-card p {
        font-size: 13px;
    }
    .contact-form-card {
        padding: 20px;
        border-radius: 14px;
    }
    .contact-form-card h3 {
        font-size: 20px;
    }
    .contact-form-card .form-label {
        font-size: 13px;
    }
    .contact-form-card .form-control,
    .contact-form-card .form-select {
        padding: 10px 12px;
        font-size: 14px;
        text-align: left !important;
    }
    .contact-map-wrapper h3 {
        font-size: 20px;
    }
    .contact-map iframe {
        height: 220px;
    }

    /* Page hero */
    .page-hero {
        padding: 45px 0 10px;
    }
    .page-hero h1 {
        font-size: 28px;
    }

    /* Footer */
    .footer-grid {
        gap: 24px;
        text-align: center;
    }
    .footer-contact ul li {
        justify-content: center;
    }
    .footer-brand p {
        font-size: 13px;
    }
    .footer-bottom small {
        font-size: 12px;
    }
    .footer-bottom .container {
        gap: 4px;
    }
}

/* ===== VERY SMALL SCREENS (max-width: 380px) ===== */
@media (max-width: 380px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-btns .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    .stat-item h3 {
        font-size: 22px;
    }
    .product-feature-card {
        padding: 16px;
    }
    .product-feature-img {
        width: 48px;
        height: 48px;
    }
    .about-feature-grid {
        gap: 12px;
    }
}
