/* ===================================
   FIC-GRUP ClimaKIT - Responsive Styles
   Mobile-First Approach — v2.0
   =================================== */

/* ===================================
   Tablet Portrait (768px and up)
   =================================== */
@media (min-width: 768px) {

    /* Typography scale up */
    :root {
        --fs-4xl: 3.5rem;
        --fs-3xl: 2.75rem;
        --fs-2xl: 2rem;
        --fs-xl: 1.5rem;
    }

    /* Hero stays single column on tablet portrait */
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-video-container {
        min-height: 50vh;
    }

    .hero-content {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .climakit-logo-overlay {
        max-width: 180px;
    }

    /* Features grid - 2x2 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .feature-item {
        grid-template-columns: 1fr;
    }

    .feature-image {
        height: 220px;
    }


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

    /* Footer */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ===================================
   Tablet Landscape / Desktop (1024px+)
   =================================== */
@media (min-width: 1024px) {

    /* Show desktop navigation */
    .nav-desktop {
        display: block;
    }

    .hamburger {
        display: none;
    }

    /* Typography scale up */
    :root {
        --fs-4xl: 4.5rem;
        --fs-3xl: 3rem;
        --fs-2xl: 2.25rem;
        --fs-xl: 1.75rem;
    }

    /* Hero split - 50/50 */
    .hero-split {
        grid-template-columns: 1fr 1fr;
    }

    .hero-video-container {
        min-height: calc(100vh - 70px);
    }

    .climakit-logo-overlay {
        max-width: 200px;
        bottom: 30px;
        right: 30px;
    }

    .hero-content {
        padding: var(--spacing-xxl) var(--spacing-xl);
    }

    /* Features header - row */
    .features-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .feature-image {
        height: 260px;
    }

    /* Contact section - 2 cols */
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

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

    /* Projects - 50/50 split, text dictates height */
    .projects-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
        align-items: stretch;
    }

    .projects-text {
        max-width: none;
    }

    .projects-image {
        min-height: 0;
    }

    .projects-image img,
    .projects-image video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Models - 50/50 split, text dictates height */
    .models-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
        align-items: stretch;
    }

    .models-image {
        min-height: 0;
    }

    .models-image img,
    .models-image video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ClimaKIT - limit text width for readability */
    .climakit-content {
        max-width: 750px;
    }

    /* Parallax only on desktop */
    .climakit-section {
        background-attachment: fixed;
    }
}

/* ===================================
   Large Desktop (1440px+)
   =================================== */
@media (min-width: 1440px) {

    .container {
        max-width: 1300px;
    }

    :root {
        --fs-4xl: 5rem;
        --fs-3xl: 3.5rem;
        --fs-2xl: 2.5rem;
    }

    .hero-content {
        max-width: 1000px;
    }

    .features-grid {
        gap: var(--spacing-xl);
    }

    .feature-image {
        height: 300px;
    }

    .contact-content {
        gap: calc(var(--spacing-xl) * 1.5);
    }
}

/* ===================================
   Mobile-Specific (< 768px)
   =================================== */
@media (max-width: 767px) {

    /* Container padding */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Hero */
    .hero {
        background: var(--beige-medium);
    }

    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-video-container {
        min-height: 280px;
        order: 1;
    }

    .hero-content {
        order: 2;
        padding: var(--spacing-lg) var(--spacing-sm);
        width: 100%;
    }

    .climakit-logo-overlay {
        max-width: 100px;
        bottom: 10px;
        right: 10px;
    }

    /* Section padding */
    .climakit-section,
    .features-section,
    .projects-section,
    .models-section,
    .contact-section {
        padding: var(--spacing-xl) 0;
    }

    /* Section titles — must match specificity of section-specific selectors */
    .section-title {
        font-size: 1.4rem;
        word-wrap: break-word;
        text-align: center;
    }

    .climakit-section .section-title {
        font-size: 1.5rem;
    }

    .climakit-section .section-header {
        text-align: center;
    }

    .features-header .section-title {
        font-size: 1.4rem;
    }

    .projects-text .section-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .models-content .section-title {
        font-size: 1.4rem;
    }

    .models-content .section-title,
    .models-header {
        text-align: center;
    }

    /* Feature cards */
    .feature-content {
        padding: var(--spacing-md);
    }

    .feature-title {
        font-size: var(--fs-lg);
    }

    .feature-image {
        height: 220px;
    }

    /* Projects & Models images */
    .projects-image {
        min-height: 250px;
        max-height: 350px;
    }

    .models-image {
        height: 280px;
    }

    /* Contact form */
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }

    .locations-wrapper {
        padding: var(--spacing-md);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-content {
        text-align: center;
    }

    .footer-logo {
        align-items: center;
    }

    .footer-logos-row {
        justify-content: center;
    }

    .footer-logo p {
        max-width: none;
    }
}

/* ===================================
   Small Mobile (< 375px)
   =================================== */
@media (max-width: 374px) {

    .container {
        padding: 0 12px;
    }

    .hero-video-container {
        min-height: 220px;
    }

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

    .climakit-section .section-title {
        font-size: 1.3rem;
    }

    .features-header .section-title,
    .projects-text .section-title,
    .models-content .section-title {
        font-size: 1.25rem;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 13px;
    }

    .models-table {
        min-width: 500px;
        font-size: 14px;
    }
}

/* ===================================
   Landscape Mobile (576px-767px)
   =================================== */
@media (min-width: 576px) and (max-width: 767px) {

    .hero-video-container {
        min-height: 350px;
    }

    .feature-image {
        height: 250px;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {

    .header,
    .hamburger,
    .mobile-menu,
    .mobile-menu-overlay,
    .scroll-indicator,
    .hero-cta,
    .contact-form-wrapper {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

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

    section {
        page-break-inside: avoid;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===================================
   Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {

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

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===================================
   Accessibility - Focus Visible
   =================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* ===================================
   High Resolution Displays
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .feature-item,
    .contact-form-wrapper {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.04);
    }
}

/* ===================================
   Responsive Utility Classes
   =================================== */
.mobile-only { display: block; }
.tablet-up { display: none; }
.desktop-only { display: none; }

@media (min-width: 768px) {
    .mobile-only { display: none; }
    .tablet-up { display: block; }
}

@media (min-width: 1024px) {
    .desktop-only { display: block; }
}
