/* 
 * Cali Home Build - Responsive Stylesheet
 * Responsive styles for different screen sizes
 */

/* Large Screens (1200px and below) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 4rem;
    }
}

/* Medium Screens (992px and below) */
@media screen and (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .hero-content h2 {
        font-size: 4.5rem;
    }
    
    .areas-content,
    .service-content,
    .overview-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-content.reverse {
        direction: ltr;
    }
    
    .areas-map,
    .service-image,
    .overview-image {
        min-height: 250px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Small Screens (768px and below) */
@media screen and (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-content h2 {
        font-size: 3.8rem;
    }
    
    .hero-content p {
        font-size: 1.8rem;
    }
    
    /* Logo and company name */
    .logo h1 {
        font-size: 2rem;
    }
    
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 7.5rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 7.5rem);
        background-color: var(--white-color);
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Grids */
    .services-grid,
    .features-grid,
    .values-grid,
    .team-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .areas-list,
    .service-areas-list {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra Small Screens (576px and below) */
@media screen and (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-content h2 {
        font-size: 3.2rem;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }
    
    /* Logo and company name for very small screens */
    .logo a {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo img {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .page-banner {
        min-height: 200px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    /* Forms */
    .form-container,
    .map-container {
        padding: 2rem 1.5rem;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 1rem;
    }
    
    /* FAQ */
    .faq-question h3 {
        font-size: 1.6rem;
    }
}

/* Height-based media queries for hero section */
@media screen and (max-height: 700px) {
    .hero {
        height: 500px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cta-section,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background-color: #fff;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .hero,
    .page-banner {
        height: auto;
        min-height: auto;
        margin-top: 0;
    }
    
    .hero-content,
    .banner-content {
        color: #000;
    }
    
    .hero-content h2,
    .banner-content h1 {
        color: #000;
        text-shadow: none;
    }
}
