/* ===================================
   Responsive Styles
   =================================== */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-image {
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --spacing-3xl: 4rem;
    }

    /* Header */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg) 0;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero */
    .hero {
        min-height: 100svh;
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.4;
        margin-bottom: var(--spacing-md);
    }

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

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

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

    /* Typography */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    .section-description {
        font-size: 0.95rem;
        line-height: 2;
        padding: 0 var(--spacing-md);
    }
    
    /* Container */
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    /* About */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    /* News */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Company */
    .company-table {
        font-size: 0.9rem;
    }
    
    .company-label {
        min-width: 80px;
        font-size: 0.85rem;
    }
    
    .company-value {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Contact */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    /* Back to Top */
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile: < 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

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

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

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .service-card,
    .news-card {
        padding: var(--spacing-md);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .btn-large {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-base);
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .back-to-top,
    .hero-buttons,
    .scroll-indicator {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

    a {
        text-decoration: underline;
    }

    section {
        page-break-inside: avoid;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --bg-white: #1e293b;
        --bg-light: #0f172a;
        --border-color: #334155;
    }

    .header {
        background-color: rgba(15, 23, 42, 0.95);
    }

    .service-card,
    .news-card,
    .contact-item {
        background-color: #1e293b;
    }
    */
}

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

    .btn-primary {
        border: 2px solid #000000;
    }

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

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-3xl) 0;
    }

    .scroll-indicator {
        display: none;
    }
}
