/* 
 * Family Travel Destinations in Canada
 * Responsive Stylesheet
 * 
 * Contents:
 * 1. General Responsive Adjustments
 * 2. Navigation and Header
 * 3. Banner Section
 * 4. Grid Layouts
 * 5. About Section
 * 6. Destinations and Services
 * 7. Testimonials
 * 8. Blog Sections
 * 9. Contact Section
 * 10. Cookie Consent
 * 11. Footer 
 * 12. Legal Pages
 */

/* ====================================
   1. General Responsive Adjustments
   ==================================== */
@media (max-width: 1200px) {
    :root {
        /* Adjust spacing for medium screens */
        --spacing-xl: 4rem;
        --spacing-lg: 2.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    :root {
        /* Further adjust spacing for smaller screens */
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
    }
    
    .btn {
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ====================================
   2. Navigation and Header
   ==================================== */
@media (max-width: 992px) {
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform var(--transition-medium);
        z-index: 1000;
    }
    
    .nav-list.active {
        transform: translateY(0);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .logo span {
        font-size: 1rem;
    }
    
    .logo img {
        height: 30px;
    }
}

/* ====================================
   3. Banner Section
   ==================================== */
@media (max-width: 992px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-text {
        order: 1;
    }
    
    .banner-image {
        order: 0;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .banner {
        padding: var(--spacing-lg) 0;
    }
}

/* ====================================
   4. Grid Layouts
   ==================================== */
@media (max-width: 1200px) {
    .destinations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .blog-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .destinations-grid,
    .blog-preview-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   5. About Section
   ==================================== */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image {
        margin-bottom: var(--spacing-md);
    }
}

/* ====================================
   6. Destinations and Services
   ==================================== */
@media (max-width: 768px) {
    .destination-features {
        justify-content: center;
    }
}

/* ====================================
   7. Testimonials
   ==================================== */
@media (max-width: 768px) {
    .testimonial-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .testimonial-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .testimonial-dots {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: var(--spacing-xs);
    }
}

/* ====================================
   8. Blog Sections
   ==================================== */
@media (max-width: 768px) {
    .blog-article-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-share {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .blog-tags {
        justify-content: center;
    }
}

/* ====================================
   9. Contact Section
   ==================================== */
@media (max-width: 768px) {
    .subscription-form {
        padding: var(--spacing-md);
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* ====================================
   10. Cookie Consent
   ==================================== */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

/* ====================================
   11. Footer
   ==================================== */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-links {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ====================================
   12. Legal Pages
   ==================================== */
@media (max-width: 768px) {
    .cookie-table {
        display: block;
        overflow-x: auto;
    }
    
    .legal-content {
        padding: 0 var(--spacing-sm);
    }
}
