/* 
======================
RESPONSIVE STYLES
======================
Using a mobile-first approach
======================
*/

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header & Navigation */
    .menu-toggle {
        display: none;
    }
    
    .menu-icon {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
    }
    
    .menu-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--ivory-mist);
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: all 0.3s ease;
    }
    
    .menu-icon span:nth-child(1) {
        top: 0px;
    }
    
    .menu-icon span:nth-child(2) {
        top: 10px;
    }
    
    .menu-icon span:nth-child(3) {
        top: 20px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--raven-purple);
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    
    .menu-toggle:checked ~ .nav-list {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Grid Layouts */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: 1 0 100%;
    }
    
    /* Features */
    .features {
        grid-template-columns: 1fr;
    }
    
    /* Services */
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .service-image img {
        height: 180px;
    }
    
    /* Approach */
    .approach-steps::before {
        left: 30px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Testimonials */
    .slides {
        width: 100%;
        flex-direction: column;
    }
    
    .slide {
        width: 100%;
        padding: var(--spacing-md) 0;
    }
    
    .slider-controls {
        display: none;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Cookie Banner */
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner p {
        margin-bottom: var(--spacing-sm);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 577px) and (max-width: 768px) {
    /* Grid Layouts */
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
    }
    
    /* Features */
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services */
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Header & Navigation */
    .menu-toggle {
        display: none;
    }
    
    .menu-icon {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
    }
    
    .menu-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--ivory-mist);
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: all 0.3s ease;
    }
    
    .menu-icon span:nth-child(1) {
        top: 0px;
    }
    
    .menu-icon span:nth-child(2) {
        top: 10px;
    }
    
    .menu-icon span:nth-child(3) {
        top: 20px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--raven-purple);
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    
    .menu-toggle:checked ~ .nav-list {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 769px) and (max-width: 992px) {
    .menu-icon {
        display: none;
    }
    
    /* Services */
    .service-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 993px) {
    .menu-icon {
        display: none;
    }
    
    /* Hero Section */
    .hero-content {
        max-width: 600px;
    }
} 