/**
 * Responsive Styles
 * Mobile-first responsive design
 */

/* ==========================================================================
   Tablet Styles (768px - 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widget-area {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Mobile Styles (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    /* Header */
    .header-top {
        padding: 8px 0;
    }

    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }

    .header-contact {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }

    .header-social {
        display: none;
    }

    .header-main {
        padding: 10px 0;
    }

    .custom-logo-link {
        width: 110px;
    }

    .header-cta {
        display: none;
    }

    /* Hero Section */
    .hero-section {
        min-height: 500px;
        padding: 60px 20px;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Services Section */
    .services-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 3rem;
    }

    .service-title {
        font-size: 1.3rem;
    }

    /* Features Section */
    .features-section {
        padding: 60px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1.1rem;
    }

    .cta-phone {
        font-size: 2rem;
    }

    /* Content Area */
    .has-sidebar .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 40px 0;
    }

    /* Articles */
    .article-card {
        margin-bottom: 30px;
    }

    .article-thumbnail {
        height: 250px;
    }

    .article-content {
        padding: 20px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-widgets {
        padding: 40px 0;
    }

    .footer-widget-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-menu ul,
    .footer-legal-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    /* Back to Top */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 100px;
        right: 20px;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

/* ==========================================================================
   Small Mobile Styles (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* Header */
    .custom-logo-link {
        width: 90px;
    }

    .site-title {
        font-size: 1.3rem;
    }

    /* Hero Section */
    .hero-section {
        min-height: 450px;
        padding: 50px 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Services */
    .section-title {
        font-size: 1.75rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    /* CTA */
    .cta-title {
        font-size: 1.75rem;
    }

    .cta-phone {
        font-size: 1.75rem;
    }

    /* Articles */
    .article-thumbnail {
        height: 200px;
    }

    .article-title {
        font-size: 1.3rem;
    }

    /* Mobile Emergency Button */
    .mobile-emergency-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        bottom: 20px;
        left: 20px;
    }

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.15rem; }
}

/* ==========================================================================
   Landscape Orientation
   ========================================================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .back-to-top,
    .mobile-emergency-btn,
    .cookie-consent,
    .menu-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    :root {
        --color-primary: #FF0000;
        --color-secondary: #000000;
        --color-text: #000000;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
}
