/* Responsive Styles */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }

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

    .section-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: var(--spacing-lg);
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about-visual {
        height: 400px;
    }

    .visual-card.card-1 {
        width: 220px;
    }

    .visual-card.card-2 {
        width: 220px;
    }

    .visual-card.card-3 {
        width: 220px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Navigation */
    .nav-wrapper {
        height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-sm);
        box-shadow: var(--shadow-xl);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: var(--z-fixed);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero-content {
        padding: var(--spacing-xl) 0;
    }

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

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

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

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

    .hero-scroll-indicator {
        display: none;
    }

    /* Sections */
    section {
        padding: var(--spacing-xl) 0;
    }

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

    .section-description {
        font-size: 0.9375rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    /* Rates */
    .rates-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .rates-filters {
        flex-wrap: wrap;
    }

    .filter-btn {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }

    .rates-search {
        width: 100%;
    }

    .rates-table-wrapper {
        overflow-x: auto;
    }

    .rates-table {
        min-width: 600px;
    }

    .rates-table th,
    .rates-table td {
        padding: 1rem;
    }

    /* About */
    .about-visual {
        display: none;
    }

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

    /* CTA */
    .cta {
        padding: var(--spacing-xl) 0;
    }

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

    .cta-description {
        font-size: 1rem;
    }

    /* Contact */
    .contact-form {
        padding: var(--spacing-lg);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .footer-col:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .company-info {
        font-size: 0.75rem;
    }

    .footer-copyright {
        text-align: left;
        font-size: 0.75rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }

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

    .stat-label {
        font-size: 0.75rem;
    }

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

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

    .service-icon svg {
        width: 36px;
        height: 36px;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .card-logo {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .rate-value {
        font-size: 1.125rem;
    }

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

    .cta-description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: var(--spacing-lg);
    }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: var(--spacing-xl) 0;
    }

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

    .hero-stats {
        flex-direction: row;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll-indicator,
    .back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

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

    section {
        page-break-inside: avoid;
    }

    .btn {
        border: 1px solid #000;
    }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    /* Can be implemented later if needed */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000;
        --text-secondary: #000;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

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

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

    .section-title {
        font-size: 3.5rem;
    }

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

/* Extra Large Desktop (min-width: 1920px) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

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

    section {
        padding: var(--spacing-3xl) 0 calc(var(--spacing-3xl) * 1.5);
    }
}
