/* ===== RESPONSIVE ===== */

/* Desktop Large - 1024px */
@media (max-width: 1024px) {
    /* Hero typography handled in hero.css */

    .section-heading {
        font-size: 38px;
    }

    .section-subheading {
        font-size: 26px;
    }

    .promo-text {
        font-size: 26px;
    }

    .delivery-title {
        font-size: 32px;
    }

    .services-title {
        font-size: 34px;
    }

    .issues-title {
        font-size: 38px;
    }

    .service-title {
        font-size: 38px;
    }

    .company-name {
        font-size: 30px;
    }

    /* Services grid - 2 columns on tablet landscape */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet - 768px */
@media (max-width: 768px) {
    /* Hero typography handled in hero.css */

    .promo-text {
        font-size: 24px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .column-image {
        order: -1;
    }

    .column-text {
        padding-right: 0;
    }

    .section-heading {
        font-size: 36px;
    }

    .section-subheading {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4 {
        height: 250px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .company-name {
        font-size: 28px;
    }

    .rating-score {
        font-size: 18px;
    }

    .rating-stars-large i {
        font-size: 14px;
    }

    .delivery-header {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .delivery-title {
        font-size: 32px;
        text-align: center;
    }

    .delivery-subtitle {
        font-size: 16px;
        text-align: center;
    }

    .delivery-media {
        grid-template-columns: 1fr;
    }

    .btn-delivery-whatsapp {
        font-size: 16px;
        padding: 15px 30px;
    }

    .services-title {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding-bottom: 60px;
        /* Add padding to prevent content being hidden by sticky buttons */
    }

    .btn-whatsapp,
    .btn-delivery-whatsapp {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    /* Header adjustments for tablet */
    .header-container {
        padding: 0 15px;
    }

    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Two column section */
    .two-column-section {
        padding: 50px 0;
    }

    /* Services section */
    .services-section {
        padding: 50px 0;
    }

    /* Sticky buttons */
    .sticky-btn {
        padding: 12px 8px;
        font-size: 14px;
        gap: 8px;
    }

    .sticky-btn i {
        font-size: 18px;
    }
}

/* Mobile L - 425px */
@media (max-width: 425px) {

    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Hero section */
    .hero {
        height: 320px;
    }

    .hero-title {
        font-size: 24px;
        padding: 0 10px;
        word-wrap: break-word;
        hyphens: none;
    }

    .hero-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }

    .hero-content {
        top: -30%;
    }

    /* Header */
    .header-container {
        padding: 0 10px;
    }

    .logo img {
        height: 28px;
    }

    .btn-outline {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Promo text */
    .promo-text {
        font-size: 20px;
        padding: 0 10px;
    }

    /* Form section */
    .contact-form {
        padding: 20px 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 16px;
    }

    /* Section headings */
    .section-heading {
        font-size: 28px;
    }

    .section-subheading {
        font-size: 20px;
    }

    .section-description {
        font-size: 15px;
    }

    .why-choose-heading {
        font-size: 20px;
    }

    .benefits-list li {
        font-size: 15px;
    }

    /* Gallery */
    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4 {
        height: 200px;
    }

    /* Reviews */
    .company-name {
        font-size: 24px;
    }

    .review-card {
        padding: 15px;
    }

    /* Delivery section */
    .delivery-title {
        font-size: 26px;
    }

    .delivery-subtitle {
        font-size: 14px;
    }

    /* Issues section */
    .issues-title {
        font-size: 26px;
    }

    .issues-description {
        font-size: 14px;
    }

    .issues-list li {
        font-size: 14px;
    }

    /* Service section */
    .service-title {
        font-size: 26px;
    }

    .service-description {
        font-size: 14px;
    }

    /* Services grid */
    .services-title {
        font-size: 28px;
    }

    .services-intro {
        font-size: 15px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-card-title {
        font-size: 18px;
    }

    .service-card-text {
        font-size: 14px;
    }

    /* WhatsApp buttons */
    .btn-whatsapp {
        font-size: 16px;
        padding: 12px 25px;
    }

    /* Sticky buttons */
    .sticky-btn {
        padding: 10px 6px;
        font-size: 13px;
        gap: 6px;
    }

    .sticky-btn i {
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 80px;
    }

    .footer-logo {
        height: 45px;
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer-contact {
        font-size: 14px;
    }
}

/* Mobile M - 375px */
@media (max-width: 375px) {

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Hero section */
    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.2;
        padding: 0 8px;
    }

    .hero-subtitle {
        font-size: 12px;
        padding: 0 8px;
    }

    .hero-content {
        top: -30%;
    }

    /* Header - critical Contact Us button fix */
    .header-container {
        padding: 0 8px;
        gap: 5px;
    }

    .logo img {
        height: 25px;
        max-width: 100px;
    }

    .btn-outline {
        padding: 6px 12px;
        font-size: 11px;
        border-width: 1px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Promo text */
    .promo-text {
        font-size: 18px;
        line-height: 1.3;
    }

    /* Form */
    .contact-form {
        padding: 18px 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 8px;
        font-size: 14px;
    }

    /* Section headings */
    .section-heading {
        font-size: 24px;
    }

    .section-subheading {
        font-size: 18px;
    }

    .section-description {
        font-size: 14px;
    }

    .why-choose-heading {
        font-size: 18px;
    }

    .benefits-list li {
        font-size: 14px;
        gap: 8px;
    }

    .benefits-list li i {
        font-size: 16px;
    }

    /* Reviews */
    .company-name {
        font-size: 22px;
    }

    .company-address {
        font-size: 13px;
    }

    .reviewer-name {
        font-size: 14px;
    }

    .review-text {
        font-size: 13px;
    }

    /* Delivery */
    .delivery-title {
        font-size: 22px;
    }

    .delivery-subtitle {
        font-size: 13px;
    }

    .btn-delivery-whatsapp {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* Issues */
    .issues-title {
        font-size: 22px;
    }

    /* Services */
    .services-title {
        font-size: 24px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 26px;
    }

    /* Promo banner */
    .promo-banner-title {
        font-size: 18px;
    }

    /* Sticky buttons - ensure visibility */
    .sticky-btn {
        padding: 10px 4px;
        font-size: 12px;
        gap: 5px;
    }

    .sticky-btn i {
        font-size: 15px;
    }

    /* Footer */
    .footer {
        padding: 35px 0 75px;
    }

    .footer-logo {
        height: 40px;
    }

    .footer-social {
        gap: 10px;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Mobile S - 320px (smallest mobile devices) */
@media (max-width: 320px) {

    /* Container - minimal padding */
    .container {
        padding: 0 10px;
    }

    /* Hero section */
    .hero {
        height: 280px;
    }

    .hero-title {
        font-size: 18px;
        line-height: 1.25;
        padding: 0 5px;
    }

    .hero-subtitle {
        font-size: 11px;
        padding: 0 5px;
    }

    .hero-content {
        top: -30%;
    }

    /* Header - Contact Us button MUST remain visible */
    .header {
        padding: 8px 0;
    }

    .header-container {
        padding: 0 6px;
        gap: 4px;
        justify-content: space-between;
    }

    .logo img {
        height: 22px;
        max-width: 85px;
        object-fit: contain;
    }

    .btn-outline {
        padding: 5px 10px;
        font-size: 10px;
        border-width: 1px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
    }

    /* Promo section */
    .promo-section {
        padding: 20px 0;
    }

    .promo-text {
        font-size: 16px;
        line-height: 1.3;
    }

    /* Form section */
    .contact-form-section {
        padding: 15px 0;
    }

    .contact-form {
        padding: 15px 10px;
        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 13px;
        border-radius: 6px;
    }

    .btn-submit {
        padding: 10px;
        font-size: 14px;
    }

    /* Two column section */
    .two-column-section {
        padding: 35px 0;
    }

    .two-column-grid {
        gap: 25px;
    }

    /* Section headings */
    .section-heading {
        font-size: 22px;
        line-height: 1.2;
    }

    .section-subheading {
        font-size: 16px;
    }

    .section-description {
        font-size: 13px;
        line-height: 1.5;
    }

    .why-choose-heading {
        font-size: 16px;
        margin-top: 15px;
    }

    .benefits-list li {
        font-size: 13px;
        margin-bottom: 6px;
        gap: 8px;
    }

    .benefits-list li i {
        font-size: 14px;
        flex-shrink: 0;
    }

    /* Gallery */
    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4 {
        height: 180px;
    }

    /* Reviews section */
    .reviews-section {
        padding: 30px 0;
    }

    .company-name {
        font-size: 20px;
    }

    .company-address {
        font-size: 12px;
    }

    .review-card {
        padding: 12px;
    }

    .reviewer-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .reviewer-name {
        font-size: 13px;
    }

    .reviewer-role {
        font-size: 11px;
    }

    .review-stars i {
        font-size: 12px;
    }

    .review-time {
        font-size: 11px;
    }

    .review-text {
        font-size: 12px;
        line-height: 1.5;
    }

    .more-reviews {
        font-size: 13px;
    }

    /* Delivery section */
    .delivery-section {
        padding: 30px 0;
    }

    .delivery-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .delivery-subtitle {
        font-size: 12px;
    }

    .media-item img {
        border-radius: 8px;
    }

    .btn-delivery-whatsapp {
        font-size: 13px;
        padding: 10px 18px;
    }

    /* Issues section */
    .car-issues-section {
        padding: 30px 0;
    }

    .issues-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .issues-description {
        font-size: 13px;
    }

    .issues-list li {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .issues-list li i {
        font-size: 14px;
    }

    /* Promo banner */
    .promo-banner {
        padding: 20px 15px;
    }

    .promo-banner-title {
        font-size: 16px;
    }

    .promo-warranty {
        font-size: 14px;
    }

    .btn-promo-whatsapp {
        font-size: 13px;
        padding: 10px 18px;
    }

    /* Vehicle service section */
    .vehicle-service-section {
        padding: 30px 0;
    }

    .service-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .service-subtitle {
        font-size: 16px;
    }

    .service-description {
        font-size: 13px;
    }

    .service-fix-heading {
        font-size: 16px;
    }

    .service-fix-list li {
        font-size: 13px;
    }

    /* Customer review card */
    .customer-review-card {
        padding: 15px;
    }

    .reviewer-avatar-large {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .reviewer-name-large {
        font-size: 14px;
    }

    .reviewer-meta {
        font-size: 11px;
    }

    .review-text-large {
        font-size: 13px;
    }

    /* Services section */
    .services-section {
        padding: 35px 0;
    }

    .services-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .services-intro {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .services-grid {
        gap: 20px;
        margin-bottom: 30px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }

    .service-icon i {
        font-size: 24px;
    }

    .service-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .service-card-text {
        font-size: 13px;
    }

    /* WhatsApp buttons */
    .btn-whatsapp {
        font-size: 14px;
        padding: 10px 20px;
        gap: 8px;
    }

    .btn-whatsapp i {
        font-size: 16px;
    }

    /* Sticky buttons - CRITICAL: must remain fully visible */
    .sticky-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .sticky-btn {
        padding: 10px 3px;
        font-size: 11px;
        gap: 4px;
        text-align: center;
    }

    .sticky-btn i {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 70px;
    }

    .footer-logo {
        height: 35px;
        margin-bottom: 20px;
    }

    .footer-social {
        gap: 8px;
        margin-bottom: 20px;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .footer-contact {
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-contact p {
        margin: 3px 0;
    }

    /* Rating display */
    .rating-display {
        padding: 8px 12px;
        gap: 6px;
    }

    .rating-score {
        font-size: 14px;
    }

    .rating-stars-large i {
        font-size: 12px;
    }

    .review-count {
        font-size: 11px;
    }

    .google-logo {
        height: 14px;
    }
}

/* Extra touch-friendly improvements for all mobile */
@media (max-width: 768px) {

    /* Ensure tap targets are at least 44px for accessibility */
    .btn,
    .btn-outline,
    .btn-primary,
    .btn-whatsapp {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Better text wrapping for hero */
    .hero-title {
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* Prevent horizontal scroll */
    .hero,
    .hero-content,
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* High DPI / Retina adjustments */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .btn,
    .btn-outline {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}