﻿/* ==========================================================
   Responsive Styles
   ========================================================== */


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 992px) {

    .hero-section {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 80px;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .hero-content h1,
    .hero-content p {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-main-image {
        width: min(78%, 360px);
        transform: none;
    }
}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {

    .navbar {
        padding: 16px var(--container-padding);
    }

    .brand {
        width: 138px;
        height: 52px;
    }

        .brand img {
            width: 132px;
            height: auto;
            padding: 0;
        }

    .site-header.scrolled .brand {
        width: 126px;
        height: 48px;
    }

        .site-header.scrolled .brand img {
            width: 120px;
        }
    .site-header.scrolled .brand img {
        height: 46px;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-pill);
        border: 1px solid var(--color-neutral);
        background: rgba(255, 255, 255, .45);
    }

        .nav-toggle span {
            width: 18px;
            height: 2px;
            background: var(--color-text);
            border-radius: var(--radius-pill);
            transition: all var(--transition-fast);
        }

        .nav-toggle.open span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .nav-toggle.open span:nth-child(2) {
            opacity: 0;
        }

        .nav-toggle.open span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

    .nav-menu {
        position: fixed;
        top: 82px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px;
        border-radius: 24px;
        background: rgba(246, 243, 238, .96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: var(--shadow-medium);
    }

        .nav-menu.open {
            display: flex;
        }

        .nav-menu a {
            padding: 14px 10px;
            text-align: center;
        }

            .nav-menu a::after {
                display: none;
            }

    .language-switch {
        margin-top: 10px;
        width: 100%;
    }

    .hero-section {
        padding-top: 130px;
    }

    .hero-content h1 {
        font-size: 40px;
        letter-spacing: -0.035em;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-main-image {
        width: min(86%, 300px);
    }
}


/* ==========================================================
   Small Mobile
   ========================================================== */

@media (max-width: 480px) {

    :root {
        --container-padding: 18px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-main-image {
        width: min(90%, 260px);
    }
}
