/* ================================
   EcoCamp Gear - Responsive CSS
   Mobile and Tablet Breakpoints
   Bootstrap 5 Compatible
   ================================ */

/* Mobile First Approach */
/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    
    /* Typography Mobile */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Header Mobile */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding-top: 100px;
        padding-bottom: 3rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Card Mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Feature Box Mobile */
    .feature-box {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-box i {
        font-size: 2.5rem;
    }
    
    /* Process Numbers Mobile */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Impact Numbers Mobile */
    .impact-number {
        font-size: 2.25rem;
    }
    
    /* Timeline Mobile */
    .timeline-item {
        padding: 1.5rem 1rem;
    }
    
    .timeline-year {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    /* Goal Items Mobile */
    .goal-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .goal-year {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Form Mobile */
    .form-control {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Section Padding Mobile */
    section {
        padding: 3rem 0;
    }
    
    /* Team Images Mobile */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Breadcrumbs Mobile */
    .breadcrumbs {
        padding-top: 90px;
        padding-bottom: 1rem;
    }
    
    /* Footer Mobile */
    #footer {
        text-align: center;
    }
    
    #footer .social-links {
        margin-top: 1rem;
    }
    
    #footer .social-links i {
        margin: 0.5rem;
    }
    
    /* Utility Mobile */
    .text-md-end {
        text-align: center;
    }
    
    /* Gallery Mobile */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile */
    [data-sal] {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    /* Disable hover effects */
    .card:hover,
    .feature-box:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:hover {
        background-color: var(--primary-forest);
        border-color: var(--primary-forest);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    /* Typography Small */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Hero Section Small */
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin: 0.5rem 0.25rem;
    }
    
    /* Section Padding Small */
    section {
        padding: 4rem 0;
    }
    
    /* Process Numbers Small */
    .process-number {
        width: 55px;
        height: 55px;
        font-size: 1.375rem;
    }
    
    /* Impact Numbers Small */
    .impact-number {
        font-size: 2.5rem;
    }
    
    /* Team Images Small */
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
    
    /* Disable animations on small devices */
    [data-sal] {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    /* Typography Medium */
    h1 {
        font-size: 2.1rem;
    }
    
    h2 {
        font-size: 1.85rem;
    }
    
    /* Hero Section Medium */
    .hero-section {
        padding-top: 130px;
    }
    
    /* Card Medium */
    .card-img-top {
        height: 210px;
    }
    
    /* Section Padding Medium */
    section {
        padding: 4.5rem 0;
    }
    
    /* Process Numbers Medium */
    .process-number {
        width: 58px;
        height: 58px;
        font-size: 1.4rem;
    }
    
    /* Impact Numbers Medium */
    .impact-number {
        font-size: 2.75rem;
    }
    
    /* Team Images Medium */
    .rounded-circle {
        width: 115px;
        height: 115px;
    }
    
    /* Footer Medium */
    #footer .text-md-end {
        text-align: right;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    
    /* Typography Large */
    h1 {
        font-size: 2.15rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    /* Card Large */
    .card-img-top {
        height: 215px;
    }
    
    /* Team Images Large */
    .rounded-circle {
        width: 118px;
        height: 118px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    
    /* Typography Extra Large */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Container Extra Large */
    .container {
        max-width: 1140px;
    }
    
    /* Card Extra Large */
    .card-img-top {
        height: 220px;
    }
    
    /* Feature Box Extra Large */
    .feature-box {
        padding: 2.25rem;
    }
    
    /* Team Images Extra Large */
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
}

/* iPad and Tablet Landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    
    /* Hero Section Tablet Landscape */
    .hero-section {
        padding-top: 120px;
        padding-bottom: 4rem;
    }
    
    /* Navigation Tablet */
    .navbar-nav .nav-link {
        padding: 0.75rem 0.875rem;
    }
    
    /* Card Tablet */
    .card-img-top {
        height: 200px;
    }
    
    /* Section Padding Tablet */
    section {
        padding: 4rem 0;
    }
}

/* iPad Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    
    /* Hero Section iPad Portrait */
    .hero-section {
        padding-top: 130px;
        padding-bottom: 4rem;
    }
    
    /* Typography iPad Portrait */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Card iPad Portrait */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images iPad Portrait */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Optimize for retina displays */
    .process-number,
    .principle-number {
        box-shadow: 0 2px 8px rgba(77, 124, 89, 0.25);
    }
    
    .card {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .feature-box:hover,
    .btn:hover,
    #gallery img:hover,
    .navbar-nav .nav-link:hover,
    #footer a:hover,
    #footer .social-links i:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Ensure buttons still have proper styling */
    .btn-primary:hover {
        background-color: var(--primary-forest);
        border-color: var(--primary-forest);
    }
    
    .btn-outline-primary:hover {
        background-color: var(--primary-forest);
        border-color: var(--primary-forest);
        color: var(--white);
    }
    
    /* Increase touch target sizes */
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Ensure Sal.js animations are disabled */
    [data-sal] {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .sal-animate {
        transition: none;
    }
}

/* Dark Mode Support (Optional) */

/* Print Styles */
@media print {
    
    /* Hide unnecessary elements when printing */
    .navbar,
    .hero-buttons,
    #footer .social-links,
    [data-sal] {
        display: none;
    }
    
    /* Optimize text for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Optimize images for print */
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}

/* Landscape Phone Specific */
@media (max-height: 500px) and (orientation: landscape) {
    
    /* Reduce hero padding on landscape phones */
    .hero-section {
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    /* Reduce section padding */
    section {
        padding: 2rem 0;
    }
    
    /* Smaller impact numbers */
    .impact-number {
        font-size: 2rem;
    }
}

/* Very Small Screens */
@media (max-width: 350px) {
    
    /* Extra small screen optimizations */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    .hero-buttons .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .feature-box {
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .impact-number {
        font-size: 2rem;
    }
    
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}


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