/* =========================================================
1399px
========================================================= */
@media (max-width: 1399px) {
    .header__phone .header__phone-content {
        display: none;
    }
    .header__nav > ul > li > a {
        padding: 0 6px;
    }
}

/* =========================================================
1199px - LARGE TABLETS & SMALL LAPTOPS
========================================================= */
@media (max-width: 1199px) {
    .top-cart-sec .cartmenuBtn {
        margin-top: 5px;
    }
    .single-product .product-page-outer .related.products h2,
    .single-product.woocommerce div.product .product_title.entry-title {
        font-size: 36px;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
    /* Topbar & Header */
    .topbar { display: none; }
    .site-header { top: 0; }
    .header__right { display: none; } 
    .menu-toggle { display: flex; } 

    /* Typography */
    h1 { font-size: 58px; }
    h2 { font-size: 40px; }
    section { padding: 100px 0; }

    /* Mobile Nav Container (Slide-in Menu) */
    .header__nav {
        position: fixed;
        top: 80px;
        left: -100%; 
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary);
        padding: 30px 20px 80px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 998;
        overflow-y: auto;
    }

    .header__nav.active {
        left: 0; 
    }

    .header__nav > ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .header__nav > ul > li {
        width: 100%;
        margin-bottom: 15px;
    }

    .header__nav > ul > li > a {
        width: 100%;
        padding: 16px 20px;
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        justify-content: space-between;
    }

    .site-header.sticky .header__nav > ul > li > a { 
        color: var(--white); 
    }

    /* Sub-menu Mobile Styling */
    .sub-menu {
        position: relative;
        top: 0; left: 0;
        width: 100%;
        background: transparent; box-shadow: none; border: none;
        padding: 5px 0 0 15px;
        display: none; /* Hidden by default on mobile */
        opacity: 1; visibility: visible; transform: none; 
    }
    
    /* Disable Desktop Hover on Mobile */
    .has-dropdown:hover .sub-menu {
        display: none; 
    }

    /* Show via JS Class Tap */
    .has-dropdown.dropdown-active .sub-menu {
        display: block; 
        animation: mobileDropdown 0.3s ease forwards;
    }

    
    .has-dropdown > a i {
        transition: transform 0.3s ease;
    }
    .has-dropdown.dropdown-active > a i {
        transform: rotate(180deg);
        color: var(--secondary);
    }

    /* Smooth dropdown animation */
    @keyframes mobileDropdown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .sub-menu a {
        color: rgba(255,255,255,0.7);
        padding: 12px 20px;
    }

    .sub-menu a:hover {
        background: transparent;
        padding-left: 20px;
        color: var(--secondary);
    }
    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background: var(--secondary); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background: var(--secondary); }

    /* Grids to 2 Columns */
    .services__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 350px; }
    .service-card { grid-column: span 1 !important; grid-row: span 1 !important; }
    .service-card--large .service-card__content { 
        /*padding: 40px; */
    }
    
    .process-line { display: none; } 
    .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

/* =========================================================
1024px - TABLETS
========================================================= */
@media (max-width: 1024px) {
    .woocommerce-checkout .workshop-benefits {
        padding-top: 120px !important;
    }
    .woocommerce-cart .workshop-benefits {
        padding: 140px 0 35px !important;
    }
    .single-product .product-page-outer {
        padding: 160px 0 0;
    }
    .entry-content {
        margin: 0;
    }
    /* Hero Section */
    .hero { 
        min-height: auto; 
        padding: 160px 0 240px; 
    }
    .hero__wrapper { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero__content { margin: 0 auto; }
    .hero__buttons { justify-content: center; }
    .hero__floating-ui { display: none !important; } 

    /* Hero Trust Strip Fix */
    .hero-trust__wrapper { grid-template-columns: repeat(2, 1fr); }
    .hero-trust__item:nth-child(2) { border-right: none; }
    .hero-trust__item:nth-child(1),
    .hero-trust__item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }

    /* Layout Grids */
    .problems__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    
    /* Before & After Section */
    .before-after__row { flex-direction: column; gap: 60px; text-align: center; }
    .before-after .col-lg-5 { width: 100%; }
    .before-after .col-lg-6 { width: 100%; margin-top: 20px; }
    .benefit-list { display: flex; flex-direction: column; align-items: center; }
    
    /* Workshop Section */
    .workshop__wrapper { grid-template-columns: 1fr; gap: 50px; }
    .workshop__image { position: relative; top: 0; }
    .workshop__image img { height: 500px; }

    /* Contact Section Fix */
    .contact-wrapper { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .contact-info p { margin: 0 auto 40px; }
    .contact-details { display: grid; grid-template-columns: repeat(2, 1fr); text-align: left; }
    .services__grid_list {grid-template-columns: repeat(2, 1fr);}
    .page-template-booking-template .contact-details {
        grid-template-columns: repeat(1, 1fr);
    }
    section {
        padding: 50px 0;
    }
    .aboutHero h1 {
        font-size: 44px;
        margin-bottom: 16px;
    }
    .hero__subtitle {
        margin-bottom: 16px;
    }
}

/* =========================================================
991px - TABLETS
========================================================= */
@media (max-width: 991px) {
    .service-card__content p {
        display: none;
    }
    .service-card__content h3 {
        font-size: 20px;
        margin-bottom: 0px;
    }
    .service-card__content a {
        color: var(--secondary);
        font-weight: 500;
    }
    .workshop-benefits .benefit-block h3 {
        font-size: 1.2rem;
    }
    .workshop-benefits.services-dt h2 {
        font-size: 1.5rem;
    }
    .aboutHero h1 {
        font-size: 34px;
    }
    .manufacturers-sec ul {
        grid-template-columns: auto auto auto;
    }
    .section-title {
        margin-bottom: 30px;
    }
    .related-posts {
        padding: 20px 0;
    }
    .newsListing.sectionSpace .benefit-list {
        align-items: unset;
    }
    .car-workshops .car-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsContent {
        padding: 16px;
    }
    .newsContent h3 {
        margin-bottom: 8px;
        font-size: 22px;
        line-height: 1.3;
    }
    .newsContent p {
        display: none;
    }
    .newsMeta {
        gap: 8px;
        margin-bottom: 10px;
    }
    .newsBtn {
        color: #f7931d;
    }
    .newsImage img {
        min-height: 200px;
    }
    .newsImage {
        width: 270px;
    }
}

/* =========================================================
767px - MOBILE
========================================================= */
@media (max-width: 767px) {
    .woocommerce-checkout .workshop-benefits {
        padding-top: 100px !important;
    }
    .woocommerce-order-received section.workshop-benefits {
        padding-top: 60px !important;
    }
    .woocommerce-cart .workshop-benefits {
        padding: 100px 0 0px !important;
    }
    .woocommerce-shipping-fields .woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox .woocommerce-form__input.input-checkbox {
        top: 5px;
    }
    .single-product .product-page-outer .related.products h2,
    .single-product.woocommerce div.product .product_title.entry-title {
        font-size: 24px;
    }
    .single-product .product-page-outer {
        padding: 100px 0 0 !important;
    }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsCard {
      align-items: start;
    }
    .newsImage {
        width: 100px;
        margin-top: 20px;
        margin-left: 16px;
    }
    .newsImage img {
        min-height: 100px;
    }
    .newsBtn {
        font-size: 14px;
        font-weight: 500;
    }
    .newsContent h3 {
        font-size: 19px;
    }
    .newsMeta {
        font-size: 13px;
    }
    .aboutHero h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    .car-workshops .car-category-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .aboutHero {
        padding: 120px 0 30px !important;
    }
    .accordion.workshop-accordion {
        max-width: 100%;
    }
    /* Global Typography & Spacing */
    h1 { font-size: 44px; }
    h2 { font-size: 32px; }
    h3 { font-size: 26px; }
    section { padding: 35px 0 !important; }
    .section-title { margin-bottom: 20px; }
    .services__heading {
        margin-bottom: 20px;
    }
    /* Header */
    .header { min-height: 70px; }
    .site-header.sticky .header { min-height: 70px; }
    .header__logo img { height: 40px; }
    .header__nav { top: 70px; height: calc(100vh - 70px); } 

    /* Hero Elements */
    .hero__subtitle { font-size: 11px; padding: 8px 15px; line-height: 1.4; white-space: normal; margin-bottom:12px }
    .hero__content h1 { font-size: 40px; margin-bottom: 20px; }
    .hero__buttons { flex-direction: column; width: 100%; gap: 15px; }
    .hero__buttons a { width: 100%; }

    /* Collapse all grids to 1 Column */
    .problems__grid { grid-template-columns: 1fr; }
    .services__grid { grid-template-columns: 1fr; grid-auto-rows: 400px; }
    section#services .btn-theme {
    display: none;
}
    .process-grid { grid-template-columns: 1fr; gap: 30px; }
    .workshop__content { grid-template-columns: 1fr; }
    
    /* Contact Form Fixes */
    .contact-details { grid-template-columns: 1fr; gap: 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .contact-form-card { padding: 40px 25px; }

    /* Interactive Slider Widget */
    .comparison-widget { height: 300px; }
    .comparison-handle { width: 45px; height: 45px; font-size: 16px; }
    .comparison-label { padding: 6px 12px; font-size: 10px; top: 15px; }
    .comparison-label--before { left: 15px; }
    .comparison-label--after { right: 15px; }

    /* Testimonials */
    .testimonial-card { padding: 35px 25px; }
    .testimonial-card__quote { font-size: 90px; right: 15px; top: 0px; }

    /* Footer Elements */
    .footer__grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-main { padding: 40px 0 30px;}
    .footer-bottom__wrapper { flex-direction: column; text-align: center; gap: 15px; }
    .services__grid_list {grid-template-columns: repeat(1, 1fr);}
    .manufacturers-sec.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .workshop-location-info .location-info-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        font-size: 16px;
    }
    .workshop-location-info .location-info-card {
        padding: 16px;
        column-gap: 10px;
        align-items: start;
    }
    .location-info-content h3 {
        font-size: 20px;
    }
    .workshop-services .workshop-services-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
    .workshop-services .service-icon, .service-areas-location .area-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        border-radius: 8px;
        font-size: 20px;
    }
    .workshop-services .service-card {
        gap: 10px;
        padding: 16px;
    }
    .service-areas-location .service-areas-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
    .workshop-benefits.services-dt .benefit-list strong {
        padding-right: 0px;
        padding-left: 0px;
    }
    .workshop-benefits .benefit-list strong {
        padding-right: 5px;
        padding-left: 5px;
    }
    .workshop-benefits .benefit-list ul li {
        display: block;
    }
    .workshop-benefits .benefit-list ul li::before {
        position: relative;
        top: -3px;
    }
    .workshop-video video {
        aspect-ratio: 1.4;
    }
    .footer-bio {
        margin-bottom: 0;
        max-width: 100%;
    }
    .footer-links-list {
        gap: 8px;
    }
    .widget-title {
        font-size: 18px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .workshop-faq .accordion-body h3 {
        font-size: 20px;
    }
    .workshop-faq .accordion-body h4 {
        font-size: 16px;
    }
    .workshop-location .workshop-location-map iframe {
        min-height: unset;
        aspect-ratio: 1.6;
    }
    .home .hero {
        min-height: 90vh;
    }
    .hero__content p {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 45px;
    }
    .galleryBlock .section-title h2 {
        font-size: 20px;
    }
    .galleryBlock {
        padding: 1rem;
    }
    .galleryBlock .section-title.mb-5 {
        margin-bottom: 0 !important;
    }
    .galleryBlock .subtitle {
        margin-bottom: 10px;
    }
    .gallery-row {
        row-gap: 30px;
    }
    section.single-page-section ul li {
        min-width: 130px;
    }
}

/* =========================================================
575px - SMALL MOBILE
========================================================= */
@media (max-width: 575px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(1, 1fr);
    }
    .manufacturers-sec ul {
        grid-template-columns: auto auto;
    }
    /* Global Typography */
    h1, .hero__content h1 { font-size: 34px; line-height: 1.2; }
    h2 { font-size: 26px; }
    
    /* Hero Adjustments */
    .hero { padding: 130px 0 220px; }
    .hero-trust__item { padding: 15px 10px; }
    .hero-trust__item strong { font-size: 24px; }
    .hero-trust__item span { font-size: 10px; letter-spacing: 0.5px; }

    /* Cards Layout */
    .problem-card { padding: 30px 20px; }
    .service-card__content { padding: 30px 20px; }
    .service-card__content h3 { font-size: 24px; }
    .workshop-card { padding: 30px 20px; text-align: center; }
    .workshop-card__icon { margin: 0 auto 20px; }
    
    /* Section Specific Tweaks */
    .comparison-widget { height: 250px; }
    .workshop__image img { height: 350px; }
    
    /* Forms */
    .contact-form-card { padding: 30px 20px; }
    .contact-info h2 { font-size: 30px; }
    .workshop-location .workshop-location-map iframe {
        aspect-ratio: 1.1;
    }
}