/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --spacing-3xl: 3rem;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-slider__title {
        font-size: var(--font-size-4xl);
    }

    .nav__list {
        gap: var(--spacing-md);
    }

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

/* Mobile (768px and below) */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --spacing-2xl: 2rem;
        --spacing-3xl: 2.5rem;
    }

    .top-bar__inner {
        justify-content: center;
    }

    .top-bar__left {
        width: 100%;
        justify-content: center;
    }

    .top-bar__right {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-xl);
        padding: var(--spacing-2xl) var(--spacing-lg);
        transition: left var(--transition-base);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
    }

    .nav__item {
        width: 100%;
        border-bottom: 1px solid var(--color-gray-200);
    }

    .nav__link {
        padding: var(--spacing-md) 0;
        justify-content: space-between;
    }

    .nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding-left: var(--spacing-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .nav__item.active .nav__dropdown {
        max-height: 500px;
    }

    .hero-slider {
        height: 400px;
    }

    .hero-slider__content {
        padding: 0 var(--spacing-lg);
    }

    .hero-slider__title {
        font-size: var(--font-size-3xl);
    }

    .hero-slider__subtitle {
        font-size: var(--font-size-base);
    }

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

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

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

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

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

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
        --font-size-5xl: 1.75rem;
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.25rem;
        --spacing-3xl: 2rem;
    }

    .hero-slider {
        height: 300px;
    }

    .hero-slider__button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    .logo__image {
        height: 40px;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    :root {
        --container-max-width: 1320px;
    }

    .hero-slider {
        height: 700px;
    }
}
