/* =====================================================
   369YAX – Automation & Design
   app-responsive.css
   Media queries + reduced motion
   ===================================================== */

/* ==========
   RESPONSIVE LAYOUT
   ========== */

@media (max-width: 900px) {
    .hero-inner,
    .cards-grid,
    .portfolio-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-inner {
        padding-top: 8px;
    }

    .hero-card {
        order: -1;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .top-bar-inner {
        gap: 10px;
    }

    .header-controls {
        gap: 6px;
    }

    .main-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-main);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        padding: 12px 16px 16px;
        gap: 4px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
        z-index: 40;
    }

    body.nav-open .main-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .main-nav .nav-cta {
        text-align: center;
        margin-top: 6px;
    }

    .section {
        padding: 60px 0;
    }

    .site-footer .footer-inner {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero-photos {
        max-width: 100%;
        aspect-ratio: 4 / 3;
        margin-bottom: 14px;
    }

    .hero-photo-main {
        width: 62%;
    }

    .hero-photo-workshop {
        width: 56%;
        height: 72%;
        bottom: -6px;
    }

    .chat-widget-inner {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .chat-messages {
        padding-bottom: 12px;
    }
}

/* ==========
   REDUCED MOTION
   ========== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
