/* Responsive Styles for Ethical Coffee Directory */

/* Extra Large devices (1400px and up) */
@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .hero-content {
        padding-right: 2rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .blog-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item {
        margin-bottom: 1.5rem;
    }
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .service-price {
        font-size: 1.75rem;
    }
}

/* Extra small devices (less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --h1-size: 1.75rem;
        --h2-size: 1.5rem;
        --h3-size: 1.25rem;
        --navbar-brand-size: 1.125rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
    }
    
    .feature-card,
    .service-card,
    .team-member,
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .service-price {
        font-size: 1.5rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    /* Disable animations on mobile for performance */
    .blob-1, .blob-2 {
        animation: none;
    }
    
    /* Stack hero content vertically on mobile */
    .hero-content .row {
        flex-direction: column;
    }
    
    .hero-content .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Adjust gallery for mobile */
    .gallery-image {
        height: 200px;
    }
    
    /* Mobile-specific FAQ styling */
    .faq-question {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Landscape phones and small tablets */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .service-card,
    .team-member {
        margin-bottom: 1.5rem;
    }
    
    .gallery-image {
        height: 220px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .decorative-blob,
    .swiper-pagination,
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .hero-section {
        min-height: auto;
        background: white !important;
        color: black !important;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .service-card,
    .team-member,
    .blog-card {
        border: 2px solid var(--charcoal-gray);
    }
    
    .btn-primary {
        border: 2px solid var(--charcoal-gray);
    }
    
    .form-control {
        border-width: 3px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before,
    .service-card::before,
    .decorative-blob {
        animation: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .team-member:hover,
    .blog-card:hover,
    .gallery-item:hover,
    .btn-primary:hover {
        transform: none !important;
    }
    
    .fade-in,
    .slide-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Dark theme preference (user specified no dark mode, but adding for accessibility) */
@media (prefers-color-scheme: dark) {
    /* Override disabled - user specified no dark mode styles */
}

/* Focus indicators for accessibility */
.navbar-nav .nav-link:focus,
.btn:focus,
.form-control:focus,
.footer-link:focus {
    outline: 2px solid var(--earth-orange);
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 