/* Responsive Design for Ethical Fashion Forecasting Template */

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.4rem;
    }
    
    .navbar-brand {
        font-size: 1.6rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .price-card.featured {
        transform: scale(1.02);
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .feature-card, .service-card, .price-card, .team-member, .review-card, .blog-card {
        padding: 1.5rem;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .price-card.featured {
        transform: scale(1.0);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-item {
        width: 45%;
        padding: 1rem;
    }
    
    .timeline-item:nth-child(odd) {
        margin-right: 55%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 55%;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .feature-card, .service-card, .price-card, .team-member, .review-card, .blog-card {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .team-member img {
        width: 70px;
        height: 70px;
    }
    
    .price-card.featured {
        transform: scale(1.0);
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 35px;
        padding: 0.8rem 1rem;
    }
    
    .timeline-item:nth-child(odd) {
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        margin-left: 35px;
    }
    
    .timeline-item::before {
        left: -23px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -23px;
    }
    
    .gallery img {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .feature-card, .service-card, .price-card, .team-member, .review-card, .blog-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .team-member {
        text-align: center;
    }
    
    .team-member img {
        width: 60px;
        height: 60px;
    }
    
    .price-card.featured {
        transform: scale(1.0);
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 25px;
        padding: 0.6rem 0.8rem;
    }
    
    .timeline-item:nth-child(odd) {
        margin-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
        margin-left: 25px;
    }
    
    .timeline-item::before {
        left: -18px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -18px;
        width: 10px;
        height: 10px;
    }
    
    .gallery img {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-form .form-control {
        padding: 0.6rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .accordion-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 0.8rem;
    }
    
    /* Additional Page Styles for Mobile */
    .material-card, .innovation-card, .metric-card, .strategy-card, .future-card,
    .insight-card, .driver-card, .pattern-card, .segment-card, .prediction-card,
    .case-study-card, .feature-box, .core-info-card, .career-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumb-image {
        height: 30px;
    }
    
    .fas {
        font-size: 1.5rem;
    }
    
    .innovation-card .fas,
    .driver-card .fas {
        font-size: 2rem;
    }
}

/* Landscape Orientation for Mobile Devices */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    section {
        padding: 30px 0;
    }
    
    .navbar-collapse {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-size: cover;
    }
    
    .service-card img,
    .team-member img,
    .gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .breadcrumb-nav,
    .contact-form,
    .btn,
    .accordion-button {
        display: none;
    }
    
    .hero-section,
    section {
        padding: 20px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        color: #000;
    }
    
    .feature-card, .service-card, .price-card, .team-member, .review-card, .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    .timeline::before {
        background: #000;
    }
    
    .timeline-item::before {
        background: #000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-sage: #2d5a3d;
        --primary-ocean: #1e4a66;
        --primary-coral: #b8452e;
        --dark-sage: #1a3423;
        --dark-ocean: #0f2b3d;
        --dark-coral: #8b2e1a;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .feature-card:hover, .service-card:hover, .price-card:hover,
    .team-member:hover, .review-card:hover, .blog-card:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .timeline-item {
        animation: none;
    }
}

/* Dark Mode Support */

/* Very Small Screens (320px and below) */
@media (max-width: 320px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .feature-card, .service-card, .price-card, .team-member, .review-card, .blog-card {
        padding: 0.8rem;
    }
    
    .contact-form {
        padding: 0.8rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .team-member img {
        width: 50px;
        height: 50px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .gallery img {
        height: 120px;
    }
}

/* Tablet Landscape Specific */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        padding: 50px 0;
    }
    
    .timeline-item {
        width: 48%;
    }
    
    .timeline-item:nth-child(odd) {
        margin-right: 52%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 52%;
    }
} 