/* 
   BISTRO BOARDS WEBSITE - RESPONSIVE STYLES
   Breakpoints for tablets and mobile devices
*/

/* Tablet - Max 1024px */
@media screen and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .boards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-flex {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobile - Max 768px */
@media screen and (max-width: 768px) {
    header {
        background: var(--white) !important;
        padding: 15px 0 !important;
    }

    nav {
        position: fixed;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 40px;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Burger Menu Icon */
    .burger {
        display: block;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--primary-color);
        margin: 5px;
        transition: all 0.3s ease;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .boards-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Screens */
@media screen and (max-width: 480px) {
    .logo-img {
        height: 60px;
    }

    .header-logo-text {
        font-size: 1.2rem;
    }
}

/* Contact Form Mobile Optimization */
@media screen and (max-width: 768px) {
    #contact-form {
        padding: 20px;
    }

    /* Stack side-by-side fields */
    .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents zoom on iOS */
        padding: 15px !important;
        /* Larger touch targets */
    }

    .btn {
        padding: 18px 30px;
        font-size: 18px;
        width: 100%;
    }

    label {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    #contact {
        padding: 40px 15px;
    }

    .form-group {
        margin-bottom: 25px;
    }

    /* Ensure inputs don't cause horizontal scroll */
    input,
    select,
    textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
}
