/* ===== RESPONSIVE DESIGN ===== */

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

/* Medium screens (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .content-grid.has-both {
        grid-template-columns: 250px 1fr 250px;
    }
    
    .content-grid.has-left,
    .content-grid.has-right {
        grid-template-columns: 250px 1fr;
    }
}

/* Small screens (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-navigation {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .mobile-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu {
        padding: 1rem;
    }
    
    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu a {
        display: block;
        padding: 1rem 0;
        font-weight: 500;
        transition: var(--transition);
    }
    
    .mobile-menu a:hover {
        color: var(--primary-color);
        text-decoration: none;
    }
    
    /* Content Grid */
    .content-grid,
    .content-grid.has-left,
    .content-grid.has-right,
    .content-grid.has-both {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        order: 2;
    }
    
    .content-center {
        order: 1;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    /* Spacing */
    .main-content {
        padding: 1.5rem 0;
    }
    
    .page-header {
        padding: 1.5rem 0;
    }
}

/* Extra small screens (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Header */
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    /* Spacing */
    .main-content {
        padding: 1rem 0;
    }
    
    .page-header {
        padding: 1rem 0;
    }
    
    .module {
        margin-bottom: 1rem;
    }
    
    .module-content {
        padding: 1rem;
    }
    
    .welcome-section {
        padding: 2rem 1rem;
    }
    
    /* Footer */
    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Cookie Info */
    .cookie-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
    }

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

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

    .contact-form {
        padding: 1.5rem;
    }

    .contact-info-section {
        padding: 1.5rem;
    }
}

/* Very small screens (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Typography */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    /* Logo */
    .logo h1 {
        font-size: 1.25rem;
    }
    
    /* Spacing */
    .content-grid {
        gap: 1rem;
    }
    
    .module h3 {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .module-content {
        padding: 0.75rem;
    }
    
    .welcome-section {
        padding: 1.5rem 0.75rem;
    }
    
    .welcome-section p {
        font-size: 1rem;
    }

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

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-section {
        padding: 1.5rem;
    }

    /* Contact Info */
    .contact-info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Mobile menu animation */
.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, -6px);
}

/* Print styles */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .mobile-navigation,
    .cookie-info {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .module {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}
