/* ==========================================
   RESPONSIVE STYLES - SERVITECH MACHINERY
   Mobile First Approach
   ========================================== */

/* ===== TABLET (768px - 1024px) ===== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .floating-card {
        display: none;
    }
    
    .about-content,
    .why-choose-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .testimonial-card-modern {
        flex: 0 0 calc(50% - 15px);
    }
}

/* ===== MOBILE (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    /* Base */
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Header */
    .top-bar {
        display: none;
    }
    
    .main-nav {
        padding: 12px 0;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-bg);
        margin-top: 10px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Trust Logos */
    .trust-logos {
        padding: 40px 0;
    }
    
    .logo-item {
        width: 120px;
        height: 60px;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Why Choose */
    .reasons-list {
        gap: 20px;
    }
    
    .reason-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .achievement-cards {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials */
    .testimonial-card-modern {
        flex: 0 0 100%;
    }
    
    .slider-controls {
        flex-wrap: wrap;
    }
    
    /* FAQ */
    .faq-question {
        padding: 20px;
        font-size: 15px;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
    }
    
    /* CTA */
    .cta-section-final {
        padding: 60px 0;
    }
    
    .cta-buttons-final {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-benefits {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Footer */
    .footer-main {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* WhatsApp & Scroll Top */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: 80px;
        bottom: 20px;
    }
    
    /* Cookie Consent */
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-actions .btn {
        width: 100%;
    }
}

/* ===== SMALL MOBILE (max-width: 480px) ===== */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero {
        padding-top: 80px;
    }
    
    .hero-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .achievement-card {
        padding: 20px;
    }
    
    .testimonial-card-modern {
        padding: 25px;
    }
    
    .cta-trust-signals {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .whatsapp-float,
    .scroll-top,
    .cookie-consent,
    .cta-section-final {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}