/* =========================================
   MEADOWFRESH DAIRY
   Responsive Stylesheet
========================================= */

/* Tablets and smaller laptops */

@media (max-width: 1100px) {

    .header-container {
        flex-wrap: wrap;
        padding: 16px 0;
    }

    .main-navigation ul {
        gap: 14px;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.3rem;
    }

    .main-navigation a {
        font-size: 0.85rem;
    }

}


/* Tablets */

@media (max-width: 768px) {

    .header-container {
        justify-content: center;
        text-align: center;
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation ul {
        justify-content: center;
        gap: 12px 18px;
    }

    .hero-section {
        min-height: 450px;
        padding: 70px 0;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .product-categories {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }


    /* Hero layout for tablets and mobile */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        min-height: 360px;
    }

    .hero-image img {
        min-height: 360px;
    }


    /* Brand cards on tablets and mobile */
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .brand-card-image {
        height: 300px;
    }

    /* Product categories on tablets */
    .product-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Product cards on tablets */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Why Choose Us cards on tablets */
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Contact information cards on tablets */
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* About page on tablets */
    .about-story-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-story-image {
        height: 320px;
    }

    .about-range-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-commitment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Why Choose Us page on tablets */
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* FAQ page on tablets */
    .faq-category {
        margin-bottom: 45px;
    }

    /* Customer IT Support page on tablets */
    .support-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .support-form-container {
        padding: 32px;
    }

}


/* Mobile phones */

@media (max-width: 480px) {

    .container {
        width: 90%;
    }

    .header-container {
        gap: 14px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .main-navigation ul {
        gap: 10px 14px;
    }

    .main-navigation a {
        font-size: 0.8rem;
    }

    .btn-support {
        width: 100%;
        text-align: center;
    }

    .hero-section {
        min-height: 400px;
        padding: 55px 0;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section p:not(.hero-label) {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
        width: 100%;
    }

    .brand-section,
    .products-section,
    .why-us-section,
    .contact-section {
        padding: 60px 0;
    }

    .brand-section h2,
    .section-heading h2,
    .why-us-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }

    .category-card {
        padding: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }


    /* Hero layout for smaller mobile screens */
    .hero-section {
        padding: 55px 0;
    }

    .hero-image {
        min-height: 260px;
    }

    .hero-image img {
        min-height: 260px;
    }


    /* Brand cards on smaller mobile screens */
    .brand-section {
        padding: 60px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .brand-card-image {
        height: 230px;
    }

    .brand-card-content {
        padding: 22px;
    }

    /* Product categories on smaller mobile screens */
    .product-categories {
        grid-template-columns: 1fr;
    }

    /* Product cards on smaller mobile screens */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* Why Choose Us cards on smaller mobile screens */
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    /* Contact buttons on smaller mobile screens */
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn {
        text-align: center;
    }

    /* Contact page on mobile */
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

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

    .inquiry-form-container {
        padding: 24px 18px;
    }

    #generalInquiryForm button {
        width: 100%;
        text-align: center;
    }

    /* About page on mobile */
    .about-story-section,
    .about-range-section,
    .about-commitment-section {
        padding: 60px 0;
    }

    .about-story-text h2 {
        font-size: 1.8rem;
    }

    .about-story-image {
        height: 250px;
    }

    .about-range-card img {
        height: 230px;
    }

    .about-range-content {
        padding: 22px;
    }

    .about-commitment-grid {
        grid-template-columns: 1fr;
    }

    /* Why Choose Us page on mobile */
    .reasons-section {
        padding: 60px 0;
    }

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

    .reason-card {
        padding: 26px 22px;
    }

    .reasons-cta-section {
        padding: 60px 20px;
    }

    .reasons-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .reasons-cta-actions .btn {
        text-align: center;
    }

    /* FAQ page on mobile */
    .faq-section {
        padding: 55px 0 60px;
    }

    .faq-category {
        margin-bottom: 40px;
    }

    .faq-category h2 {
        font-size: 1.45rem;
    }

    .faq-item {
        padding: 20px 18px;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    .faq-cta-section {
        padding: 60px 20px;
    }

    .faq-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .faq-cta-actions .btn {
        text-align: center;
    }

    /* Customer IT Support page on mobile */
    .support-info-section,
    .support-form-section {
        padding: 60px 0;
    }

    .support-benefits {
        grid-template-columns: 1fr;
    }

    .support-benefit {
        padding: 24px 20px;
    }

    .support-info-content h2 {
        font-size: 1.7rem;
    }

    .support-form-container {
        padding: 24px 18px;
    }

    #supportRequestForm button {
        width: 100%;
        text-align: center;
    }

}