/* Landscape Mode Responsive Styles for Mobile Devices */
/* Conservative approach - only fix critical landscape issues */

/* Primary landscape optimizations for mobile devices */
@media screen and (max-height: 600px) and (orientation: landscape) {
    /* Hero Section - Critical landscape fix */
    .hero {
        height: 100vh !important;
        height: calc(var(--vh, 1vh) * 100) !important;
        min-height: 100vh !important;
        min-height: calc(var(--vh, 1vh) * 100) !important;
    }
    
    .hero-content h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
        max-width: 600px;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .hero .btn {
        padding: 10px 30px;
        font-size: 1rem;
    }
    
    /* Hide scroll indicator in landscape to save space */
    .hero-scroll {
        display: none;
    }
    
    /* Header adjustments for landscape */
    header {
        height: 60px;
    }
    
    header .container {
        padding: 10px 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo .subtitle {
        font-size: 0.7rem;
    }
    
    /* Mobile Menu adjustments */
    .main-menu {
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        padding-top: 60px;
    }
    
    .main-menu li {
        margin: 8px 0;
    }
    
    .main-menu li a {
        padding: 8px 0;
        font-size: 1.2rem;
    }
}

/* Landscape optimizations for smaller mobile devices */
@media screen and (max-height: 480px) and (orientation: landscape) {
    /* More compact hero for very small landscape screens */
    .hero-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        max-width: 500px;
        line-height: 1.3;
    }
    
    .hero .btn {
        padding: 8px 25px;
        font-size: 0.9rem;
    }
    
    /* Compact header */
    header {
        height: 50px;
    }
    
    header .container {
        padding: 5px 15px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo .subtitle {
        font-size: 0.6rem;
        margin-top: -3px;
    }
    
    /* Compact carousel for small landscape */
    .carousel-wrapper {
        height: 280px;
    }
    
    .project-images {
        height: 140px;
        padding: 10px;
    }
    
    .project-info {
        padding: 10px 15px;
    }
    
    .project-info h4 {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .nav-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* Compact tour */
    .tour-container iframe {
        height: 220px;
    }
    
    /* Reduce section padding for small landscape */
    .showcase, .about, .recent-projects, .transformations, .values {
        padding: 25px 0;
    }
}

/* Very small landscape devices */
@media screen and (max-height: 400px) and (orientation: landscape) {
    /* Minimal hero for very small screens */
    .hero-content h2 {
        font-size: 1.4rem;
        margin-bottom: 0.2rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        max-width: 400px;
        line-height: 1.2;
    }
    
    .hero .btn {
        padding: 6px 20px;
        font-size: 0.8rem;
    }
    
    /* Ultra-compact carousel */
    .carousel-wrapper {
        height: 220px;
    }
    
    .project-images {
        height: 110px;
        padding: 8px;
    }
    
    .project-info {
        padding: 8px 12px;
    }
    
    .project-info h4 {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    /* Ultra-compact tour */
    .tour-container iframe {
        height: 180px;
    }
    
    /* Minimal section padding */
    .showcase, .about, .recent-projects, .transformations, .values {
        padding: 20px 0;
    }
    
    /* Compact text sizes */
    .showcase h2, .about h2, .recent-projects h2, .transformations h2, .values h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
}

/* Tablet landscape optimizations */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        height: 90vh !important;
        height: calc(var(--vh, 1vh) * 90) !important;
        min-height: 650px !important;
        min-height: calc(var(--vh, 1vh) * 90) !important;
    }
    
    .hero-content h2 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .carousel-wrapper {
        height: 450px;
    }
    
    .project-images {
        height: 250px;
        padding: 20px;
    }
    
    .tour-container iframe {
        height: 450px;
    }
}

/* Image fixes for landscape mode */
@media screen and (orientation: landscape) {
    .floor-plan img {
        object-fit: contain !important;
        width: 100%;
        height: 100%;
        max-height: 100%;
    }
    
    .dollhouse img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .image-label {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    /* Hero background scaling */
    .hero-slide {
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* Background scaling for smaller landscape screens */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-slide {
        background-size: 120% auto !important;
    }
}

/* Navigation adjustments for landscape mobile */
@media screen and (orientation: landscape) and (max-width: 768px) {
    .dropdown-menu {
        margin-top: 0.5rem;
    }
    
    .dropdown-menu a {
        font-size: 1rem;
        padding: 8px 0;
    }
    
    .main-menu.active {
        padding-top: 80px;
    }
} 