/* Responsive Styles */

/* Large screens */
@media (max-width: 1200px) {
    .hero-slide {
        background-size: 95% auto;
    }
}

/* Tablets and smaller desktops */
@media (max-width: 992px) {
    .process-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .transformation-item {
        flex-direction: column;
    }
    
    .transformation-images {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }
    
    .before-image, .after-image {
        height: 450px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 0;
        transition: right 0.3s ease;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main-menu.active {
        right: 0;
    }

    .main-menu li {
        width: 100%;
        display: block;
        margin: 15px 0;
        text-align: center;
    }

    .main-menu li a {
        display: block;
        padding: 15px 0;
        font-size: 1.5rem;
        color: var(--white);
        text-align: center;
    }

    .close-menu {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        margin-top: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-menu li {
        padding-left: 0;
    }

    .dropdown-menu a {
        color: var(--white);
        opacity: 0.8;
        font-size: 1.2rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Layout */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
        box-sizing: border-box;
    }

    .page-content {
        padding: 40px 0;
    }

    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Hero */
    .hero {
        width: 100%;
        margin: 0;
        padding: 0;
        height: 85vh !important;
        height: calc(var(--vh, 1vh) * 85) !important;
        min-height: 600px !important;
        min-height: calc(var(--vh, 1vh) * 85) !important;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-slide {
        background-size: cover;
    }

    /* Services */
    .services-feature-list {
        grid-template-columns: 1fr;
    }
    
    .transformations h2 {
        font-size: 2rem;
        padding: 0 10px;
        letter-spacing: 0.02em;
    }
    
    .section-intro {
        padding: 0 10px;
        margin-bottom: 40px;
    }

    .transformation-item {
        flex-direction: column;
        gap: 20px;
    }

    .transformation-images {
        width: 100%;
        max-width: none;
    }

    .before-image, .after-image {
        height: 250px;
    }

    .transformation-content {
        padding: 20px;
    }

    .transformation-content h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-list li {
        padding: 15px;
    }

    .cta-container {
        flex-direction: column;
        gap: 15px;
    }

    .cta-container .btn,
    .cta-container .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-info address {
        margin-bottom: 20px;
    }

    .contact-info p {
        margin-bottom: 10px;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 16px;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    /* Footer */
    footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .company-info,
    .business-hours {
        width: 100%;
    }

    .business-hours p {
        margin-bottom: 8px;
    }

    .copyright {
        margin-top: 20px;
        padding-top: 15px;
    }

    /* Team */
    .team-member,
    .team-member:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
    
    .member-image {
        margin: 0 auto;
    }
    
    .values-list {
        grid-template-columns: 1fr;
    }

    /* Tour */
    .tour-container iframe {
        height: 400px;
    }

    /* Carousel */
    .carousel-container {
        max-width: 100%;
        margin: 0 10px;
    }

    .carousel-inner {
        height: 450px;
    }

    .project-image {
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h4 {
        font-size: 1.3rem;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    /* Recent Projects Responsive */
    .projects-carousel {
        margin: 0 10px;
    }
    
    .carousel-wrapper {
        height: 420px;
    }
    
    .project-images {
        height: 220px;
        padding: 15px;
    }
    
    .image-pair {
        gap: 10px;
    }
    
    /* Scale down floorplan images specifically on mobile */
    .floor-plan img {
        object-fit: contain !important;
        width: 100%;
        height: 100%;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h4 {
        font-size: 1.3rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    /* Full width container for small mobile */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Ensure sections extend full width */
    section {
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Full width body */
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero {
        width: 100%;
        margin: 0;
        padding: 0;
        height: 80vh !important;
        height: calc(var(--vh, 1vh) * 80) !important;
        min-height: 550px !important;
        min-height: calc(var(--vh, 1vh) * 80) !important;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
        max-width: 95%;
    }
    
    .hero-slide {
        background-size: 180% auto;
    }

    .tour-container iframe {
        height: 300px;
    }

    /* Carousel Mobile */
    .carousel-inner {
        height: 400px;
    }

    .project-image {
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project-content {
        padding: 15px;
    }

    .project-content h4 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .project-content .date {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .project-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Products Offer Mobile Fix for Index Page */
    .products-offer-scaled {
        transform: scale(1) !important;
        max-width: 350px !important;
        margin: 20px auto !important;
        padding: 20px 16px !important;
    }

    .products-offer-container {
        max-width: 100% !important;
        margin: 20px auto !important;
        padding: 20px 16px !important;
    }

    .products-offer-container h2 {
        font-size: 1.3rem !important;
    }

    .products-offer-container ul li {
        font-size: 0.95rem !important;
    }

    .promo-title {
        font-size: 1rem !important;
    }

    .promo-offer {
        font-size: 0.95rem !important;
    }

    /* Recent Projects Responsive */
    .carousel-wrapper {
        height: 380px;
    }
    
    .project-images {
        height: 180px;
        padding: 10px;
    }
    
    /* Scale down floorplan images specifically on mobile */
    .floor-plan img {
        object-fit: contain !important;
        width: 100%;
        height: 100%;
    }
    
    .project-info {
        padding: 15px;
    }
    
    .project-info h4 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .project-date {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .project-info p:last-child {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Full width container for very small mobile */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Ensure sections extend full width */
    section {
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Full width body */
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .contact-info address p {
        font-size: 0.9rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    .footer-content {
        gap: 20px;
    }

    .company-info h3,
    .business-hours h3 {
        font-size: 1.3rem;
    }

    .transformations h2 {
        font-size: 1.7rem;
        padding: 0 5px;
        margin-bottom: 15px;
    }
    
    .section-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    .before-image, .after-image {
        height: 200px;
    }

    .feature-list li {
        padding: 12px;
    }

    .member-image {
        width: 120px;
        height: 120px;
    }

    .transformation-feature-list li {
        padding: 12px;
    }
    
    .transformation-feature-list i {
        font-size: 1.8rem;
    }
}

/* About page specific responsive centering */
.page-content.about-page-centered {
    min-height: calc(100vh - 140px); /* Adjust for smaller header on mobile */
}

/* Full width hero section */
.hero {
    width: 100%;
    margin: 0;
    padding: 0;
}

