/* Responsive Styles for Observateur Ltd Website */

/* Large Devices (Desktops) */
@media only screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Medium Devices (Tablets) */
@media only screen and (max-width: 1400px) {
    .services-grid,
    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .about-container,
    .services-grid,
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Landscape Phones) */
@media only screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .header-container {
        padding: 0.8rem 1rem;
    }
    
    .logo img {
        height: auto;
        width: 85%;
        max-width: 160px;
    }
    
    .logo {
        flex: 0 0 60%;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        display: none;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: block;
        font-size: 30px;
        color: var(--primary-color);
        z-index: 1000;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-md);
        box-shadow: 5px 0 10px rgba(0,0,0,0.1);
        transition: left var(--transition-speed) var(--transition-timing);
        z-index: 999;
        display: flex;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero {
        height: 80vh;
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-md) 0;
    }
    
    h2, .section-title h2, .about-content h2, .service-detail-content h2 {
        font-size: 1.2rem !important;
    }
    
    h2 span {
        font-size: inherit;
    }
    
    .about-container,
    .services-grid,
    .why-us-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Hide Quick Links in footer on mobile */
    .footer-links:nth-of-type(1) {
        display: none;
    }
    
    .footer-logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: var(--spacing-md);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media only screen and (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    h2, .section-title h2, .about-content h2, .service-detail-content h2 {
        font-size: 1.8rem !important;
    }
    
    h2 span {
        font-size: inherit;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .service-card,
    .why-us-card {
        margin-bottom: var(--spacing-sm);
    }
}

/* Landscape Orientation for Mobile Devices */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 120vh;
    }
}
