/* 
   GCP Law Offices - Responsive Stylesheet
   Mobile-first approach for optimal viewing on all devices
*/

/* Base Mobile Styles (Small devices) */
@media (max-width: 767px) {
    html {
        font-size: 56.25%; /* 9px */
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    /* Header & Navigation */
    .header-content {
        height: 7rem;
    }
    
    .logo-img {
        height: 30px;
        max-width: 30px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo {
        gap: 0.8rem;
    }
    
    .nav-menu {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        z-index: 101;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 2rem 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 12rem 0 8rem;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.6rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* About Preview */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
    }
    
    /* Practice Areas */
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    /* Attorneys */
    .attorneys-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Medium devices */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Header & Navigation */
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 2rem 0;
    }
    
    /* About Preview */
    .about-grid {
        gap: 3rem;
    }
    
    /* Practice Areas */
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Attorneys */
    .attorneys-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        gap: 3rem;
    }
}

/* Large devices */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Practice Areas */
    .practice-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large devices */
@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}

/* Touch Screen Devices */
@media (hover: none) {
    .btn:active {
        transform: scale(0.98);
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-links {
        padding: 2rem 0;
        overflow-y: auto;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero {
        padding: 10rem 0 6rem;
    }
}

/* Print Styles */
@media print {
    .header, 
    .hero, 
    .cta-section, 
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
}
