/* Mobile First Responsive Design */

/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

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

    .logo {
        justify-content: center;
    }

    .logo-text h1 {
        font-size: 1.25rem;
        text-align: center;
    }

    .logo-text p {
        text-align: center;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

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

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

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

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Page Header */
    .page-header h1 {
        font-size: 2.5rem;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .col-md-6,
    .col-md-4,
    .col-md-8 {
        min-width: auto;
    }

    .row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Header */
    .logo-img {
        width: 50px;
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.125rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

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

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Services */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    /* Stats */
    .stats {
        padding: 3rem 0;
    }

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

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

    /* News */
    .news-image {
        height: 150px;
    }

    .news-content {
        padding: 1rem;
    }

    /* CTA */
    .cta {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

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

    .social-links a {
        width: 35px;
        height: 35px;
    }

    /* Page Header */
    .page-header {
        padding: 3rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.875rem;
    }
}

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

    .hero-content h1 {
        font-size: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero,
    .cta {
        display: none;
    }

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

    .container {
        max-width: none;
        padding: 0;
    }

    .page-header {
        background: none;
        color: black;
        padding: 1rem 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800000;
        --text-muted: #000000;
        --border-color: #000000;
    }

    .service-card,
    .news-card {
        border: 2px solid #000000;
    }
}

/* 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) {
    :root {
        --light-color: #1f2937;
        --border-color: #374151;
        --text-muted: #9ca3af;
    }

    body {
        background-color: #111827;
        color: #f9fafb;
    }

    .service-card,
    .news-card {
        background: #1f2937;
        color: #f9fafb;
    }

    .header {
        background: #1f2937;
        border-bottom: 1px solid #374151;
    }

    .nav-menu a {
        color: #f9fafb;
    }
}