/* Responsive CSS for Remote Workshop Facilitation Toolkit */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography Adjustments */
    .navbar-brand {
        font-size: 1.22rem !important;
    }
    
    h1, .display-4 {
        font-size: 1.90rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.54rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.36rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Navigation Mobile */
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    /* Card Adjustments */
    .card-body {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Form Adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Section Spacing */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Grid Adjustments */
    .col-lg-2, .col-md-6 {
        margin-bottom: 1.67rem;
    }
    
    /* Team Member Images */
    .rounded-circle {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Icon Sizes */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-2x {
        font-size: 1.51rem !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.79rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Team Grid Adjustments */
    .col-lg-2 {
        flex: 0 0 auto;
        width: 20%;
    }
    
    /* Process Steps */
    .process-step::after {
        width: 80%;
        right: -40%;
    }
    
    .timeline-item::after {
        width: 80%;
        right: -40%;
    }
}

/* Large Devices (desktops, 993px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    
    /* Team Member Grid */
    #team .col-lg-2 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 568px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 2px 4px -4px rgba(0, 0, 0, 0.2), 0 1px 2px -1px rgba(0, 0, 0, 0.12);
    }
    
    .navbar {
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .fa-3x:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card {
        transition: none;
    }
    
    .fa-3x {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */

/* Print Media Responsive */
@media print {
    /* Force single column layout */
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-lg-2,
    .col-md-6,
    .col-md-4 {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Adjust font sizes for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, .display-4 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    /* Remove unnecessary spacing */
    section {
        padding: 1rem 0;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Ensure images fit */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Container Responsive Adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Team Section Responsive Grid */
@media (max-width: 991.98px) {
    #team .col-lg-2 {
        width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    #team .col-lg-2 {
        width: 100%;
        margin-bottom: 1.72rem;
    }
}

/* Services Grid Responsive */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Features Grid Responsive */
@media (max-width: 991.98px) {
    #fbecb6tures .col-lg-3 {
        width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    #ece189tures .col-lg-3 {
        width: 100%;
    }
}

/* Price Plan Responsive */
@media (max-width: 767.98px) {
    #priceplan .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        order: -1;
    }
}

/* FAQ Responsive */
@media (max-width: 767.98px) {
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Gallery Responsive */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
    #blog_grid .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Contact Form Responsive */
@media (max-width: 767.98px) {
    #contact .row.mb-3 .col-md-6 {
        margin-bottom: 1rem;
    }
    
    #contact .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Additional Page Elements Responsive */
@media (max-width: 991.98px) {
    .col-lg-2.mb-4 {
        width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2.mb-4 {
        width: 100%;
    }
} 

.hero-section h1 {
    padding-top: 100px;
}