/* Responsive Styles - Mobile First */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .benefits-grid,
    .price-grid,
    .process-steps {
        gap: 20px;
    }
}

/* Tablet Landscape */
@media (max-width: 992px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    h3 { font-size: 1.35rem; }
    
    /* Header - styles moved to header.css */
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .trust-markers {
        justify-content: center;
    }
    
    /* Services Tabs */
    .services-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 300px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.25rem; }
    
    /* Spacing */
    section {
        padding: var(--spacing-xl) 0;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-form {
        padding: 25px 20px;
    }
    
    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-card {
        padding: 25px 20px;
    }
    
    /* Services */
    .service-content {
        padding: 30px 20px;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    /* Prices */
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .price-range {
        font-size: 1.5rem;
        white-space: nowrap;
    }
    
    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Brands carousel on mobile */
    .brand-item {
        flex: 0 0 180px;
        height: 100px;
        margin: 0 15px;
        padding: 20px;
    }
    
    .brand-item img {
        max-height: 60px;
    }
    
    /* Zones consultation form center */
    .zones-consultation {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .consultation-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .consultation-form .form-group {
        width: 100%;
        max-width: 350px;
    }
    
    .consultation-form button {
        width: 100%;
        max-width: 350px;
        justify-content: center;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 250px;
    }
    
    /* Testimonials */
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    /* Guarantees */
    .guarantee-grid {
        grid-template-columns: 1fr;
    }
    
    /* Zones */
    .zones-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .zones-features {
        grid-template-columns: 1fr;
    }
    
    /* CTA Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Callback Form */
    .callback-box {
        padding: 25px 20px;
    }
    
    .callback-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .callback-input {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }
    
    .callback-form .btn {
        width: 100%;
    }
    
    /* Calculator Modal */
    #calculatorModal .modal-dialog {
    }
    
    #calculatorModal .modal-body {
        padding: 1rem 0.75rem;
    }
    
    #calculatorModal .modal-header {
        padding: 0.75rem 1rem;
    }
    
    #calculatorModal .modal-title {
        font-size: 1.1rem !important;
    }
    
    #calculatorModal .modal-footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    #calculatorModal .modal-footer .btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .calculator-step h3 {
        font-size: 1.1rem !important;
        text-align: center;
        margin-bottom: 1rem !important;
    }
    
    .calc-options {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .calc-option .option-card {
        padding: 15px 12px !important;
        min-height: auto !important;
    }
    
    .calc-option .option-card i {
        font-size: 1.8rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .calc-option .option-card span {
        font-size: 0.95rem !important;
        margin-bottom: 0.2rem !important;
    }
    
    .calc-option .option-card small {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    .calc-option .option-card .stars-container {
        min-height: 1.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .calc-option .option-card .stars-container i {
        font-size: 1.3rem !important;
    }
    
    /* Calculator result */
    .calc-result .price-estimate {
        font-size: 1.8rem !important;
    }
    
    .calc-result h4 {
        font-size: 1.1rem !important;
    }
    
    .success-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .success-icon-wrapper i {
        font-size: 2.5rem;
    }
    
    .form-success h3 {
        font-size: 1.5rem;
    }
    
    .success-subtitle {
        font-size: 1rem;
    }
    
    .success-content p {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    /* Error Message */
    .form-error-message {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* Mobile Large */
@media (max-width: 576px) {
    /* Typography */
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Services list alignment */
    .services div[style*="justify-content: center"] {
        justify-content: flex-end !important;
        padding: 0 15px;
    }
    
    .services div[style*="justify-content: center"] > div {
        width: 100%;
    }
    
    /* Header */
    .header-container {
        padding: 12px 15px;
    }
    
    .header-logo img,
    .header-logo svg {
        height: 40px;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .trust-markers {
        flex-direction: row !important;
        gap: 5px !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
    }
    
    .trust-marker {
        padding: 5px 8px !important;
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }
    
    .trust-marker i {
        font-size: 0.9rem !important;
    }
    
    .trust-marker-text {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
    
    /* Benefits - compact layout for mobile */
    .benefit-card {
        text-align: left !important;
        padding: 18px !important;
    }
    
    .benefit-card h4 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 10px !important;
        font-size: 1.1rem !important;
    }
    
    .benefit-icon {
        font-size: 1.8rem !important;
        flex-shrink: 0 !important;
    }
    
    .benefit-card p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    /* Prices - horizontal scroll */
    .price-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 15px !important;
        padding: 10px 5px 20px 5px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }
    
    .price-card {
        flex: 0 0 280px !important;
        min-width: 280px !important;
        scroll-snap-align: center !important;
        padding: 20px 15px !important;
    }
    
    .price-card h3 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        font-size: 1.05rem !important;
        margin-bottom: 12px !important;
    }
    
    .price-card h3 i {
        font-size: 1.5rem !important;
    }
    
    .price-range {
        font-size: 1.3rem !important;
    }
    
    /* Guarantees - mobile layout */
    .guarantee-item {
        text-align: left !important;
        padding: 20px !important;
    }
    
    .guarantee-item h4 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 15px !important;
        font-size: 1.05rem !important;
    }
    
    .guarantee-icon {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.8rem !important;
        margin: 0 !important;
    }
    
    .guarantee-icon i {
        margin: 0 !important;
    }
    
    .guarantee-item p {
        font-size: 0.9rem !important;
        margin-left: 0 !important;
    }
    
    /* Testimonials - horizontal scroll */
    .testimonial-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 15px !important;
        padding: 10px 5px 20px 5px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }
    
    .testimonial-card {
        flex: 0 0 300px !important;
        min-width: 300px !important;
        scroll-snap-align: center !important;
        padding: 20px !important;
    }
    
    /* Scrollbar styling for testimonials */
    .testimonial-grid::-webkit-scrollbar {
        height: 6px !important;
    }
    
    .testimonial-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 10px !important;
    }
    
    .testimonial-grid::-webkit-scrollbar-thumb {
        background: var(--turquoise-deep) !important;
        border-radius: 10px !important;
    }
    
    /* Scrollbar styling */
    .price-grid::-webkit-scrollbar {
        height: 6px !important;
    }
    
    .price-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 10px !important;
    }
    
    .price-grid::-webkit-scrollbar-thumb {
        background: var(--turquoise-deep) !important;
        border-radius: 10px !important;
    }
    
    /* Forms - hide on mobile, show button */
    .contact-form-section .contact-form {
        display: none !important;
    }
    
    .contact-form-section .mobile-form-trigger {
        display: block !important;
        width: 100%;
        padding: 18px 24px;
        background: var(--turquoise-deep);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 1.2rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(71, 144, 146, 0.3);
        margin-top: 20px;
    }
    
    .contact-form-section .mobile-form-trigger:hover {
        background: var(--turquoise-mid);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(71, 144, 146, 0.4);
    }
    
    .contact-form-section .mobile-form-trigger i {
        margin-right: 10px;
    }
    
    /* Mobile Form Modal */
    .mobile-form-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-form-modal.active {
        display: flex !important;
        align-items: flex-start;
        justify-content: center;
        padding: 20px 0;
        animation: fadeIn 0.3s ease-out;
    }
    
    .mobile-form-modal-content {
        background: white;
        border-radius: 16px;
        width: 100%;
        max-width: 500px;
        margin: 20px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        animation: slideInUp 0.4s ease-out;
    }
    
    .mobile-form-modal-header {
        padding: 20px;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-radius: 16px 16px 0 0;
    }
    
    .mobile-form-modal-header h3 {
        margin: 0;
        color: var(--turquoise-deep);
        font-size: 1.3rem;
    }
    
    .mobile-form-modal-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #666;
        cursor: pointer;
        padding: 5px 10px;
        line-height: 1;
    }
    
    .mobile-form-modal-body {
        padding: 0 !important;
    }
    
    .mobile-form-modal-body .contact-form {
        display: block !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    .mobile-form-modal-body .form-step {
        padding: 20px !important;
    }
    
    .mobile-form-modal .btn-submit,
    .mobile-form-modal .btn-next {
        background: var(--turquoise-deep) !important;
        color: white !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
        padding: 16px 30px !important;
        box-shadow: 0 4px 12px rgba(71, 144, 146, 0.3) !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    .mobile-form-modal .btn-submit:hover,
    .mobile-form-modal .btn-next:hover {
        background: var(--turquoise-mid) !important;
        box-shadow: 0 6px 16px rgba(71, 144, 146, 0.4) !important;
    }
    
    .mobile-form-modal .form-buttons {
        display: block !important;
        width: 100% !important;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes slideOutDown {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(50px);
        }
    }
    
    @keyframes fadeOut {
        from {
            opacity: 1;
        }
        to {
            opacity: 0;
        }
    }
    
    .mobile-form-modal.closing {
        animation: fadeOut 0.3s ease-out;
    }
    
    .mobile-form-modal.closing .mobile-form-modal-content {
        animation: slideOutDown 0.3s ease-out;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-row {
        gap: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .form-label {
        margin-bottom: 6px !important;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Cards */
    .benefit-card,
    .price-card,
    .testimonial-card {
        padding: 20px 15px;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 200px;
    }
    
    /* Process - mobile layout */
    .process-step {
        text-align: left !important;
        padding: 20px !important;
        min-height: auto !important;
    }
    
    .process-step h4 {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 12px !important;
        font-size: 1.1rem !important;
    }
    
    .step-number {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        font-size: 1.5rem !important;
    }
    
    .process-step p {
        font-size: 0.9rem !important;
        margin-left: 0 !important;
    }
    
    /* Zones Features - mobile layout */
    .zones-features .feature-card {
        text-align: left !important;
        padding: 20px !important;
    }
    
    .zones-features .feature-card h5 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 10px !important;
        font-size: 1.05rem !important;
    }
    
    .zones-features .feature-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        flex-shrink: 0 !important;
        background: rgba(71, 144, 146, 0.15) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    .zones-features .feature-icon i {
        font-size: 1.5rem !important;
        color: var(--turquoise-deep) !important;
        margin: 0 !important;
    }
    
    .zones-features .feature-card p {
        font-size: 0.95rem !important;
        margin-left: 0 !important;
        line-height: 1.5 !important;
        color: #666 !important;
    }
    
    /* Zones - horizontal scroll */
    .zones-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 10px !important;
        padding: 10px 5px 20px 5px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }
    
    .zone-item {
        flex: 0 0 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
        width: 120px !important;
        height: 120px !important;
        scroll-snap-align: start !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 10px !important;
        font-size: 0.85rem !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Scrollbar styling for zones */
    .zones-grid::-webkit-scrollbar {
        height: 6px !important;
    }
    
    .zones-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1) !important;
        border-radius: 10px !important;
    }
    
    .zones-grid::-webkit-scrollbar-thumb {
        background: var(--turquoise-deep) !important;
        border-radius: 10px !important;
    }
    
    /* FAQ */
    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
}

/* Mobile Small */
@media (max-width: 380px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.35rem; }
    
    .hero h1 {
        font-size: 1.35rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .benefit-icon,
    .guarantee-icon {
        font-size: 2.5rem;
    }
    
    .price-range {
        font-size: 1.3rem;
        white-space: nowrap;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .trust-markers {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
        justify-content: center;
    }
    
    .trust-marker {
        padding: 5px 8px;
    }
    
    .trust-marker i {
        font-size: 0.9rem;
    }
    
    .trust-marker-text {
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-toggle,
    .btn,
    .form,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary-custom,
    .btn-coral {
        border: 2px solid currentColor;
    }
    
    .form-input:focus,
    .form-select:focus,
    .form-textarea:focus {
        outline: 3px solid;
    }
}
