/**
 * Responsive styles for domain.com - Financial Audit Website
 */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Header & Navigation */
    .mobile-toggle {
        display: block;
    }
    
    .menu-toggle {
        width: 30px;
        height: 22px;
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .menu-toggle .bar {
        display: block;
        height: 3px;
        width: 100%;
        background: var(--accent);
        border-radius: 3px;
        transition: var(--transition);
    }
    
    .menu-toggle.menu-open .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    
    .menu-toggle.menu-open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.menu-open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.menu-open {
        max-height: 400px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    /* Sections */
    .about-content, 
    .services-grid,
    .audit-cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hero Section */
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-wrapper {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-image {
        width: 80%;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-items {
        animation: none;
        flex-direction: column;
        width: 100%;
    }
    
    .testimonial-item {
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-info, 
    .footer-contact, 
    .footer-links, 
    .footer-legal {
        text-align: center;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .policy-container {
        padding: 30px 20px;
    }
    
    /* Cookie banner */
    #cookie-banner {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}
