/* ============================================
   Base Layout
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

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

    .section__title {
        font-size: 1.75rem;
    }
}

/* ============================================
   Navigation Section
   ============================================ */
@media (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        right: 0;
        width: min(300px, 85vw);
        height: calc(100vh - 70px);
        background-color: var(--color-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s ease;
    }

    .nav__menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav__item {
        width: 100%;
        margin-left: 0;
        margin-bottom: var(--spacing-sm);
    }

    .nav__link {
        display: block;
        padding: var(--spacing-sm) 0;
        width: 100%;
        color: var(--color-accent);
    }

    .nav__cta-btn {
        display: none;
    }

    .nav__item--mobile-cta {
        display: block;
        width: 100%;
        margin-top: var(--spacing-md);
    }

    .nav__cta-btn-mobile {
        width: 100%;
        text-align: center;
    }

    .nav__toggle {
        display: flex;
    }

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

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

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

/* ============================================
   Hero Section
   ============================================ */
@media (max-width: 968px) {
    .hero__text {
        padding-top: 0.6rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .hero__text {
        padding-top: 0.9rem;
    }

    .hero {
        padding-top: 100px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero__text {
        padding-top: 1.1rem;
    }

    .hero {
        padding-top: 80px;
        padding-bottom: 0;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 1.125rem;
    }
}

/* ============================================
   Services Section
   ============================================ */
@media (max-width: 968px) {
    .services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   How It Works Section
   ============================================ */
@media (max-width: 968px) {
    .how-it-works__steps {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .step-item__line {
        display: none;
    }

    .step-item__number {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
}

/* ============================================
   Projects Section
   ============================================ */
@media (max-width: 768px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */
@media (max-width: 768px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Stats Section
   ============================================ */
@media (max-width: 768px) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Contact Section
   ============================================ */
@media (max-width: 968px) {
    .contact__content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Footer Section
   ============================================ */
@media (max-width: 768px) {
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Case Study
   ============================================ */
@media (max-width: 768px) {
    .case-study__features {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study__results {
        grid-template-columns: 1fr;
    }

    .case-study__glass {
        padding: var(--spacing-md);
    }

    .case-study__hero-glass .project-card__placeholder {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

@media (max-width: 480px) {
    .case-study__hero-glass .project-card__placeholder {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

@media (max-width: 420px) {
    .case-study__features {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Blog
   ============================================ */
@media (max-width: 900px) {
    .blog-list__item {
        grid-template-columns: 1fr;
    }

    .blog-list__media {
        min-height: 160px;
    }
}

@media (max-width: 640px) {
    .blog-article {
        padding: 1rem;
        border-radius: 14px;
    }

    .blog-article__hero {
        margin: 0 0 1rem;
        border-radius: 12px;
    }

    .blog-article__body {
        font-size: 1rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal--up,
    .reveal--left,
    .reveal--right,
    .reveal--zoom {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}