/* =================================
   SERVIPLAST NELLA E.I.R.L. - Responsive CSS
   ================================= */

/* Large Desktop and up (1440px+) */
@media (min-width: 90rem) {
    .hero-title {
        font-size: 4rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 89.9375rem) and (min-width: 64rem) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 63.9375rem) and (min-width: 48rem) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-overlay {
        position: static;
        margin-top: var(--spacing-lg);
    }
}

/* Mobile Large (480px to 767px) */
@media (max-width: 47.9375rem) and (min-width: 30rem) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .nav-toggle {
        display: flex;
    }
    

    
    .hero {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .btn-large {
        width: 100%;
        max-width: 20rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Cookie Modal Responsive */
    .cookie-modal {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    
    .cookie-consent.show .cookie-modal {
        transform: translateY(0);
    }
    
    .cookie-header {
        padding: var(--spacing-md) var(--spacing-lg) 0;
    }
    
    .cookie-content {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .cookie-benefits {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }
    
    .benefit-item {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .cookie-links {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
}

/* Mobile Small (320px to 479px) */
@media (max-width: 29.9375rem) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        min-height: 60vh;
        padding: var(--spacing-2xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
    }
    
    .hero-buttons {
        gap: var(--spacing-sm);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .btn-large {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    .feature-card {
        padding: var(--spacing-xl);
    }
    
    .feature-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: var(--spacing-md);
    }
    
    .feature-icon {
        font-size: var(--font-size-2xl);
    }
    
    .advantage-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .advantage-icon {
        font-size: var(--font-size-lg);
    }
    
    .stats-overlay {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .case-image {
        height: 10rem;
    }
    
    .case-content {
        padding: var(--spacing-md);
    }
    
    .case-results {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .contact-form-container {
        padding: var(--spacing-lg);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .contact-item:first-child {
        margin-top: 0;
    }
    
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }
    
    /* Cookie Modal - Small Mobile */
    .cookie-modal {
        border-radius: 16px 16px 0 0;
    }
    
    .cookie-header {
        padding: var(--spacing-sm) var(--spacing-md) 0;
    }
    
    .cookie-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    
    .cookie-img {
        width: 24px;
        height: 24px;
    }
    
    .cookie-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .cookie-content {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .cookie-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
    }
    
    .cookie-description {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-md);
    }
    
    .cookie-benefits {
        margin-bottom: var(--spacing-md);
    }
    
    .benefit-icon {
        width: 16px;
        height: 16px;
    }
    
    .cookie-actions {
        padding: 0 var(--spacing-md) var(--spacing-md);
    }
    
    .cookie-buttons .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

}

/* Navigation Toggle Animation */
.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Dropdown Menu Responsive */
@media (max-width: 47.9375rem) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--background-color);
        margin-top: var(--spacing-sm);
        margin-left: var(--spacing-lg);
    }
    
    .dropdown-menu a {
        padding: var(--spacing-sm);
        color: #666;
    }
}

/* Form Responsive Adjustments */
@media (max-width: 47.9375rem) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

/* Text Size Adjustments for Small Screens */
@media (max-width: 29.9375rem) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    h4 { font-size: var(--font-size-lg); }
    h5 { font-size: var(--font-size-base); }
    h6 { font-size: var(--font-size-sm); }
}

/* Loading States and Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .feature-card:nth-child(1) { animation-delay: 0.1s; }
    .feature-card:nth-child(2) { animation-delay: 0.2s; }
    .feature-card:nth-child(3) { animation-delay: 0.3s; }
    
    .case-card {
        animation: fadeInUp 0.6s ease-out forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .case-card:nth-child(1) { animation-delay: 0.1s; }
    .case-card:nth-child(2) { animation-delay: 0.2s; }
    .case-card:nth-child(3) { animation-delay: 0.3s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .case-image img,
    .advantages-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cookie-consent,
    .back-to-top,
    .nav-toggle {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
        background: #fff !important;
        color: #000 !important;
    }
    
    .btn {
        border: 1px solid #000;
        background: #fff !important;
        color: #000 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Visible for Better Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Dark Mode Support (if needed in the future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here if needed */
}

/* Icon Responsive Adjustments */
@media (max-width: 47.9375rem) {
    .feature-icon .icon-img {
        width: 48px;
        height: 48px;
    }
    
    .advantage-icon .icon-img {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .check-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
    
    .arrow-icon {
        width: 12px;
        height: 12px;
    }
    
    .result-icon {
        width: 14px;
        height: 14px;
        margin-right: 4px;
    }
}

@media (max-width: 29.9375rem) {
    .feature-icon .icon-img {
        width: 40px;
        height: 40px;
    }
    
    .advantage-icon .icon-img {
        width: 36px;
        height: 36px;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .btn-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .footer-icon {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
    
    .arrow-up-icon {
        width: 18px;
        height: 18px;
    }
} 