/* ========================================
   Rhythmwalker - Responsive Styles
   Breakpoints: 768px (Mobile), 1200px (Tablet)
   ======================================== */

/* ========================================
   Tablet (768px - 1199px)
   ======================================== */
@media (max-width: 1199px) and (min-width: 768px) {
    :root {
        --left-column-width: 200px;
        --right-column-width: 200px;
    }

    .nav-title {
        font-size: var(--font-size-50);
    }

    .nav-link {
        font-size: var(--font-size-30);
    }

    .logo {
        width: 100px;
    }

    .logo-small {
        width: 60px;
    }

    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* ========================================
   Mobile (Max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
    /* Override 3-column layout to single column */
    .container {
        display: block;
        grid-template-columns: none;
    }

    /* Hide left and right columns on mobile */
    .left-column {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1001;
    }

    .left-column.active {
        left: 0;
    }

    .right-column {
        display: none;
    }

    /* Center column takes full width */
    .center-column {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
    }

    /* Show mobile header */
    .site-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--color-white);
        gap: var(--spacing-md);
    }

    .header-tagline {
        font-size: 14px;
    }

    .header-subtitle {
        font-size: 11px;
    }

    .left-column .footer-logo {
        display: none;
    }

    /* Mobile section content text size */
    .section-content {
        font-size: 14px;
    }

    /* Mobile service details text size */
    .service-details {
        font-size: 14px;
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1002;
        width: 40px;
        height: 40px;
        background-color: var(--color-text-main);
        border-radius: 4px;
        padding: 8px;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-text-light);
        margin-bottom: 6px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle span:last-child {
        margin-bottom: 0;
    }

    /* Hamburger animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

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

    /* Overlay for mobile menu - REMOVED */
    /* .mobile-menu-toggle.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        width: calc(100% - 280px);
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    } */

    /* Adjust sections for mobile */
    .section {
        padding: var(--spacing-lg) var(--spacing-md);
        min-height: auto;
    }

    .hero-section {
        padding: 0;
        min-height: 50vh;
    }

    .hero-image {
        max-width: 100%;
    }

    /* Typography adjustments */
    .section-title {
        font-size: var(--font-size-30);
        margin-bottom: var(--spacing-md);
    }

    /* Form adjustments */
    .contact-form {
        padding: 0;
    }

    .form-group {
        margin-bottom: var(--spacing-md);
    }

    .submit-btn {
        max-width: 100%;
    }

    /* Service items */
    .service-item {
        margin-bottom: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }

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

/* ========================================
   Small Mobile (Max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .section {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .hero-section {
        padding: 0;
    }

    .service-icon img {
        max-width: 60px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }

    .left-column {
        width: 250px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .left-column,
    .right-column,
    .mobile-menu-toggle,
    .modal {
        display: none !important;
    }

    .container {
        display: block;
    }

    .center-column {
        margin: 0;
        width: 100%;
        overflow: visible;
    }

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

/* ========================================
   Accessibility - 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;
    }
}
