/*
* Domain - Psychological Services Website
* Responsive Stylesheet
*/

/* ===== TABLET STYLES (max-width: 992px) ===== */
@media screen and (max-width: 992px) {
    /* Header */
    .menu li {
        margin: 0 var(--spacing-xs);
    }
    
    /* Grid Layouts */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Spacing adjustments */
    section {
        padding: var(--spacing-lg) 0;
    }
}

/* ===== MOBILE STYLES (max-width: 768px) ===== */
@media screen and (max-width: 768px) {
    /* Header & Navigation */
    .header-inner {
        justify-content: space-between;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--ivory);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        transition: right var(--transition-normal);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    #menu-toggle:checked ~ .main-navigation {
        right: 0;
    }
    
    .menu {
        flex-direction: column;
        align-items: center;
    }
    
    .menu li {
        margin: var(--spacing-xs) 0;
    }
    
    .header-contact {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    #menu-toggle:checked ~ label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    #menu-toggle:checked ~ label span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Typography */
    h1 {
        font-size: clamp(2rem, 1.5rem + 2vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    }
    
    /* Layout adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Forms */
    .form-container {
        padding: var(--spacing-md);
    }
}

/* ===== SMALL MOBILE STYLES (max-width: 576px) ===== */
@media screen and (max-width: 576px) {
    /* Layout */
    .container {
        width: 95%;
        padding: 0 var(--spacing-xs);
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
    
    /* Hero section */
    .hero {
        padding-top: 60px;
    }
    
    /* Grid adjustments */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    /* Form elements */
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 10px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: var(--spacing-sm);
    }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg);
    }
    
    .main-navigation {
        padding: var(--spacing-lg) 0;
    }
    
    .menu li {
        margin: var(--spacing-xs) 0;
    }
}
