/* ========================================
   SillaArtif - Responsive Stylesheet
   Mobile-first responsive design
   ======================================== */

/* Mobile First Approach */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Header */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav a {
        display: block;
        padding: 0.75rem;
        border-radius: 5px;
        background: #f8f9fa;
    }

    .header-phone {
        order: -1;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 250px;
    }

    /* Services */
    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* About */
    .about {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat {
        padding: 1.5rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    /* Reviews */
    .reviews {
        padding: 3rem 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Newsletter */
    .newsletter {
        padding: 3rem 0;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .form-group {
        flex-direction: column;
    }

    .newsletter-form {
        max-width: 100%;
    }

    /* Contact */
    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-item {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-newsletter-form {
        flex-direction: column;
    }

    /* Article */
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .summary-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Cookie Management */
    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .cookie-modal-buttons {
        flex-direction: column;
    }

    /* Tables */
    .cookie-table {
        font-size: 0.9rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-buttons .btn {
        width: auto;
        min-width: 200px;
    }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    /* Header */
    .nav ul {
        gap: 1.5rem;
    }

    /* Hero */
    .hero-content {
        gap: 2rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* About */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Newsletter */
    .newsletter-content {
        gap: 2rem;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    /* Related articles */
    .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Large screens */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    /* Hero */
    .hero-text h1 {
        font-size: 3rem;
    }

    /* Services */
    .services h2 {
        font-size: 3rem;
    }

    /* About */
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat h3 {
        font-size: 3rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .cookie-modal,
    .newsletter,
    .cta-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    h1, h2, h3 {
        page-break-after: avoid;
    }

    .article-content {
        max-width: 100%;
    }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-secondary {
        border-width: 3px;
    }

    .service-card,
    .review-card,
    .blog-post {
        border: 2px solid #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This would be implemented if dark mode was required */
    /* Currently maintaining light theme for professional appearance */
}

/* Focus improvements for keyboard navigation */
.btn:focus,
.nav a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #e74c3c;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #e74c3c;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}
