/* ===================================
   RESPONSIVE DESIGN - LM RENOVE
   Mobile-First Approach
   =================================== */

/* ===================================
   LARGE TABLETS & SMALL DESKTOPS
   =================================== */
@media (max-width: 1200px) {
    .about-grid {
        gap: var(--space-10);
    }

    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: var(--space-8);
    }
}

/* ===================================
   TABLETS
   =================================== */
@media (max-width: 992px) {

    /* Typography */
    h1 {
        font-size: clamp(2rem, 5vw, var(--text-5xl));
    }

    h2 {
        font-size: clamp(1.75rem, 4vw, var(--text-4xl));
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-6);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: var(--z-modal);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        font-size: var(--text-xl);
        color: var(--text-inverse);
        padding: var(--space-4) var(--space-8);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span {
        background: var(--text-inverse);
    }

    /* Hero */
    .hero-content {
        max-width: 100%;
    }

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

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

    .about-image {
        order: -1;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16/9;
    }

    /* Process */
    .process-timeline {
        flex-direction: column;
        gap: var(--space-8);
    }

    .process-timeline::before {
        top: 0;
        bottom: 0;
        left: 32px;
        right: auto;
        width: 4px;
        height: auto;
        transform: none;
    }

    .process-step {
        display: flex;
        align-items: flex-start;
        gap: var(--space-6);
        text-align: left;
    }

    .process-step-number {
        margin: 0;
        flex-shrink: 0;
    }

    .process-step-text {
        margin: 0;
        max-width: none;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: var(--space-8);
    }
}

/* ===================================
   MOBILE LANDSCAPE & LARGE PHONES
   =================================== */
@media (max-width: 768px) {

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

    /* Sections */
    .section {
        padding: var(--space-16) 0;
    }

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

    .section-header {
        margin-bottom: var(--space-10);
    }

    /* Hero */
    .hero {
        min-height: 100svh;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, var(--text-5xl));
    }

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

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

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

    .hero-scroll {
        display: none;
    }

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

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

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .gallery-item:nth-child(1) {
        grid-column: span 1;
    }

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

    /* Zones */
    .zones-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .zone-card {
        padding: var(--space-4);
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

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

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

    /* Contact Page */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: var(--space-6);
    }

    /* Page Header */
    .page-header {
        min-height: 40vh;
    }

    .page-header-content {
        padding-top: var(--space-24);
    }
}

/* ===================================
   SMALL PHONES
   =================================== */
@media (max-width: 480px) {

    /* Typography */
    h1 {
        font-size: var(--text-3xl);
    }

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

    h3 {
        font-size: var(--text-xl);
    }

    /* Logo */
    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 44px;
        height: 44px;
    }

    /* Hero */
    .hero-tag {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }

    .hero-features {
        gap: var(--space-3);
    }

    .hero-feature {
        font-size: var(--text-xs);
    }

    .hero-feature-icon {
        width: 32px;
        height: 32px;
    }

    .hero-feature-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Buttons */
    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }

    /* Services */
    .service-icon {
        width: 56px;
        height: 56px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    /* About */
    .about-badge {
        padding: var(--space-3) var(--space-4);
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .about-badge-number {
        font-size: var(--text-2xl);
    }

    .about-feature {
        gap: var(--space-3);
    }

    .about-feature-icon {
        width: 40px;
        height: 40px;
    }

    /* Process */
    .process-step-number {
        width: 48px;
        height: 48px;
        font-size: var(--text-base);
    }

    /* Zones */
    .zones-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .zone-card {
        padding: var(--space-3);
    }

    .zone-icon {
        width: 32px;
        height: 32px;
    }

    .zone-name {
        font-size: var(--text-xs);
    }

    /* Footer */
    .footer-logo img {
        width: 40px;
        height: 40px;
    }

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

    /* Contact Form */
    .contact-info-card {
        padding: var(--space-4);
    }

    .contact-info-icon {
        width: 36px;
        height: 36px;
    }
}

/* ===================================
   HOVER STATES (Desktop only)
   =================================== */
@media (hover: hover) and (pointer: fine) {
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .btn:hover {
        transform: translateY(-2px);
    }

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

    .gallery-item:hover img {
        transform: scale(1.1);
    }

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

/* ===================================
   REDUCED MOTION
   =================================== */
@media (prefers-reduced-motion: reduce) {

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

    .hero-scroll-icon::before {
        animation: none;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ===================================
   DARK MODE PREFERENCE
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
}

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

    .header,
    .hero-scroll,
    .mobile-toggle,
    .btn,
    .footer-wave {
        display: none !important;
    }

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

    .section {
        padding: 1.5rem 0;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: inherit;
    }

    .gallery-item-overlay {
        opacity: 1;
        background: transparent;
    }
}

/* ===================================
   HIGH CONTRAST MODE
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --shadow-card: 0 0 0 2px var(--text-primary);
        --shadow-card-hover: 0 0 0 3px var(--primary-500);
    }

    .btn {
        border: 2px solid currentColor;
    }

    .nav-link::after {
        height: 3px;
    }
}

/* ===================================
   LANDSCAPE ORIENTATION FIXES
   =================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-20) 0;
    }

    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        padding: var(--space-20);
    }

    .nav-menu .nav-link {
        font-size: var(--text-base);
    }
}