/* ========================================
   Responsive Design - Media Queries
======================================== */

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .testimonials-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .hero-gallery {
        width: 100%;
        max-width: 500px;
        height: 300px;
        margin: 0 auto;
    }

    .hero-img-main {
        width: 220px;
        height: 160px;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .hero-img-main:hover {
        transform: translateX(-50%) scale(1.05);
    }

    .hero-img-secondary {
        width: 140px;
        height: 140px;
        bottom: 20px;
        left: 10%;
    }

    .hero-img-tertiary {
        width: 130px;
        height: 100px;
        bottom: 30px;
        right: 10%;
    }

    .hero-badge-overlay {
        top: 120px;
        left: 50%;
        transform: translateX(-50%);
        width: 70px;
        height: 70px;
    }

    .hero-badge-overlay .badge-number {
        font-size: 1.3rem;
    }

    .hero-badge-overlay .badge-text {
        font-size: 0.6rem;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-visual {
        order: 2;
    }

    .visual-stack {
        max-width: 320px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 240px);
    }

    .gallery-item-large {
        grid-column: span 1;
    }

    .gallery-item-tall {
        grid-row: span 1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-cream);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(-100%);
        transition: var(--transition-base);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-display);
        color: var(--color-forest);
    }

    .nav-menu .nav-link::after {
        background: var(--color-terracotta);
    }

    .nav-menu .nav-link.cta-btn {
        color: var(--color-white);
    }

    .nav-link.cta-btn {
        font-size: 1rem;
        font-family: var(--font-body);
    }

    .hero {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        gap: 1rem;
    }

    .trust-divider {
        display: none;
    }

    .hero-gallery {
        height: 260px;
        max-width: 100%;
    }

    .hero-img-main {
        width: 180px;
        height: 130px;
    }

    .hero-img-secondary {
        width: 120px;
        height: 120px;
        left: 5%;
        bottom: 10px;
    }

    .hero-img-tertiary {
        width: 110px;
        height: 85px;
        right: 5%;
        bottom: 20px;
    }

    .hero-badge-overlay {
        top: 100px;
        width: 60px;
        height: 60px;
    }

    .hero-badge-overlay .badge-number {
        font-size: 1.1rem;
    }

    .hero-badge-overlay .badge-text {
        font-size: 0.55rem;
    }

    .scroll-cue {
        display: none;
    }

    .visual-stack {
        height: 380px;
    }

    .stack-card {
        width: 240px;
        padding: 2rem;
    }

    .card-number {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .testimonials-wrapper {
        grid-template-columns: 1fr;
    }

    .testimonial-card.featured {
        grid-column: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    /* Mobile Performance Optimizations */
    .floating-decor {
        display: none;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .shape {
        display: none;
    }

    .testimonial-card {
        animation: none;
    }

    .service-card:hover {
        transform: translateY(-4px);
    }

    .gallery-item:hover {
        transform: none;
    }

    .stack-card:hover {
        animation: none;
    }

    /* Faster transitions on mobile */
    .service-card,
    .gallery-item,
    .testimonial-card,
    .stack-card,
    .contact-item,
    .btn {
        transition-duration: 0.2s !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .floating-decor {
        display: none;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .cursor-glow {
        display: none;
    }

    .particles {
        display: none;
    }

    /* Disable hover-only effects */
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 40%, rgba(26, 47, 35, 0.85) 100%);
    }

    .gallery-content {
        transform: translateY(0);
    }

    .service-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Simpler animations */
    .btn:hover::before {
        display: none;
    }

    .logo:hover .logo-mark .flower-petals {
        animation: none;
    }

    /* Reduced motion for battery savings */
    .services {
        animation: none;
        background: var(--color-forest);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Keep logo text visible, just smaller */
    .logo-name {
        font-size: 1.25rem;
    }

    .logo-tagline {
        font-size: 0.6rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stack-card {
        width: 200px;
        padding: 1.5rem;
    }

    .card-number {
        font-size: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .hero-gallery {
        height: 220px;
    }

    .hero-img-main {
        width: 160px;
        height: 115px;
    }

    .hero-img-secondary {
        width: 100px;
        height: 100px;
        left: 2%;
    }

    .hero-img-tertiary {
        width: 95px;
        height: 75px;
        right: 2%;
    }

    .hero-badge-overlay {
        top: 85px;
        width: 55px;
        height: 55px;
    }

    .hero-badge-overlay .badge-number {
        font-size: 1rem;
    }

    .hero-badge-overlay .badge-text {
        font-size: 0.5rem;
    }
}
