/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.375rem;
        --card-padding: 1.5rem;
    }
    
    body {
        padding-top: 70px;
    overflow-x: hidden;
}
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    padding-top: 275px;
}
    
    .hero-content h1 {
        font-size: var(--font-size-h1);
        margin-bottom: 0.75rem;
    }
    
    .hero-content h2 {
        font-size: var(--font-size-h4);
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: var(--font-size-base);
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .guide-card:hover,
    .seasonal-card:hover,
    .story-card:hover,
    .interview-card:hover,
    .resource-card:hover,
    .material-card:hover,
    .impact-card:hover,
    .program-card:hover,
    .innovation-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .feature-icon,
    .guide-icon,
    .resource-icon,
    .innovation-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .team-photo img {
        width: 100px;
        height: 100px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .interview-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .price-card.featured {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-content {
        text-align: center;
    padding-top: 275px;
}
    
    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    /* Disable animations on small screens */
    @media (max-width: 767.98px) {
        * {
            animation: none !important;
            transition: none !important;
        }
        
        .feature-card:hover,
        .service-card:hover,
        .price-card:hover,
        .case-study-card:hover,
        .blog-card:hover,
        .guide-card:hover,
        .seasonal-card:hover,
        .story-card:hover,
        .interview-card:hover,
        .resource-card:hover,
        .material-card:hover,
        .impact-card:hover,
        .program-card:hover,
        .innovation-card:hover {
            transform: none;
        }
        
        #gallery img:hover {
            transform: none;
        }
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 2rem 0;
    padding-top: 275px;
}
    
    .hero-buttons {
        display: flex;
        gap: 1rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .interview-card {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        text-align: left;
        padding: 3rem 0;
    padding-top: 275px;
}
    
    .hero-buttons {
        display: flex;
        gap: 1rem;
    }
    
    .team-member {
        margin-bottom: 1rem;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
}

/* Extra Extra Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem 0;
    padding-top: 275px;
}
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: var(--font-size-base);
        margin-bottom: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .btn,
    #footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .hero-section {
        min-height: auto;
        background: none;
        color: #000;
    }
    
    .hero-section::before {
        display: none;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .card,
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .faq-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .row {
        margin: 0;
    }
    
    .col-lg-4,
    .col-lg-6,
    .col-lg-8,
    .col-lg-12,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-12 {
        width: 100%;
        padding: 0;
        margin-bottom: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #2d4a35;
        --primary-green-light: #4a7c59;
        --primary-green-dark: #1a2b20;
        
        --secondary-blue: #3d5f7a;
        --secondary-blue-light: #5b8db3;
        --secondary-blue-dark: #2a4354;
        
        --accent-yellow: #8a7a3f;
        --accent-yellow-light: #b8a65c;
        --accent-yellow-dark: #5d5129;
        
        --neutral-beige: #7a6b5a;
        --neutral-beige-light: #a89584;
        --neutral-beige-dark: #5a4d3f;
        
        --earth-brown: #5d4a30;
        --earth-brown-light: #8b6f47;
        --earth-brown-dark: #3f3220;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        color: #000;
        border-color: #000;
        border-width: 2px;
    }
    
    .card,
    .feature-card,
    .service-card,
    .price-card,
    .review-card,
    .case-study-card,
    .faq-card {
        border: 2px solid #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section::before {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .price-card:hover,
    .case-study-card:hover,
    .blog-card:hover,
    .guide-card:hover,
    .seasonal-card:hover,
    .story-card:hover,
    .interview-card:hover,
    .resource-card:hover,
    .material-card:hover,
    .impact-card:hover,
    .program-card:hover,
    .innovation-card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Custom scrollbar for webkit browsers */
@media (min-width: 992px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--neutral-beige-light);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--primary-green);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-green-dark);
    }
} 