/* ============================================
   RESPONSIVE STYLES - Mobile First
   ============================================ */

/* ============================================
   TABLET (768px and up)
   ============================================ */
@media (min-width: 768px) {
    :root {
        --text-5xl: 3rem;
        --text-6xl: 4rem;
    }

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

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

    .about__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__content {
        max-width: 100%;
    }

    .about__visual {
        order: -1;
    }

    .about__symbol {
        width: 200px;
        height: 200px;
    }
}

/* ============================================
   DESKTOP (992px and up)
   ============================================ */
@media (min-width: 992px) {
    :root {
        --text-5xl: 3.5rem;
        --text-6xl: 4.5rem;
    }

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

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

    .about__inner {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .about__visual {
        order: 0;
    }

    .about__symbol {
        width: 300px;
        height: 300px;
    }
}

/* ============================================
   MOBILE (below 768px)
   ============================================ */
@media (max-width: 767px) {

    /* Typography adjustments */
    :root {
        --text-4xl: 2rem;
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
        --space-24: 4rem;
        --space-16: 3rem;
    }

    /* Navigation */
    .nav__inner {
        height: 60px;
    }

    .nav__links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-8);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav__links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        font-size: var(--text-lg);
    }

    .nav__toggle {
        display: flex;
    }

    .nav__actions {
        position: absolute;
        right: 60px;
    }

    /* Mobile menu toggle animation */
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Hero */
    .hero {
        padding-top: 60px;
        min-height: calc(100vh - 60px);
    }

    .hero__title {
        font-size: var(--text-5xl);
    }

    .hero__tagline {
        font-size: var(--text-base);
        letter-spacing: 0.05em;
    }

    .hero__scroll {
        display: none;
    }

    /* Services */
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .service-card__image {
        aspect-ratio: 16/9;
    }

    /* Products */
    .products__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    /* About */
    .about__inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
        text-align: center;
    }

    .about__visual {
        order: -1;
    }

    .about__symbol {
        width: 180px;
        height: 180px;
    }

    /* Contact */
    .contact-form .btn {
        width: 100%;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .footer__brand {
        max-width: 100%;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
    }

    .footer__bottom .lang-switcher {
        justify-content: center;
    }
}

/* ============================================
   SMALL MOBILE (below 480px)
   ============================================ */
@media (max-width: 479px) {
    :root {
        --text-5xl: 2rem;
        --text-6xl: 2.5rem;
        --space-6: 1rem;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .btn {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-xs);
    }

    .section-header__title {
        font-size: var(--text-3xl);
    }

    .service-card__content {
        padding: var(--space-5);
    }

    .product-card {
        padding: var(--space-6);
    }
}

/* ============================================
   LARGE DESKTOP (1400px and up)
   ============================================ */
@media (min-width: 1400px) {
    :root {
        --text-6xl: 5rem;
    }

    .hero__tagline {
        font-size: var(--text-2xl);
    }
}

/* ============================================
   ACCESSIBILITY - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__title,
    .hero__tagline,
    .hero__cta,
    .hero__scroll {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .nav,
    .hero__scroll,
    .lang-switcher,
    .footer__social,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    .service-card,
    .product-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
