/* ===== RESPONSIVE DESIGN ===== */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.2rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    section h3 {
        font-size: 1.1rem;
    }
    
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .team-card img {
        width: 120px;
        height: 120px;
    }
    
    .timeline-item {
        padding-left: 2rem !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .process-step {
        margin-bottom: 2.5rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    section h2 {
        font-size: 2.3rem;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 11px !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .process-step {
        margin-bottom: 0;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    section h2 {
        font-size: 2.8rem;
    }
    
    section h3 {
        font-size: 1.5rem;
    }
}

/* ===== MOBILE-SPECIFIC OVERRIDES ===== */
@media (max-width: 767.98px) {
    /* Disable animations on mobile for better performance */
    @media (prefers-reduced-motion: no-preference) {
        .feature-card:hover, 
        .service-card:hover, 
        .price-card:hover, 
        .team-card:hover, 
        .blog-card:hover {
            transform: none;
        }
        
        .btn-primary:hover,
        .btn-outline-primary:hover {
            transform: none;
        }
        
        #gallery img:hover {
            transform: none;
        }
        
        .info-card:hover, 
        .career-card:hover, 
        .case-card:hover, 
        .technique-card:hover, 
        .movement-card:hover, 
        .strategy-card:hover, 
        .mental-card:hover, 
        .comp-card:hover {
            transform: none;
        }
    }
    
    /* Adjust spacing for mobile */
    section {
        padding: 40px 0;
    }
    
    .feature-card, 
    .service-card, 
    .price-card, 
    .team-card, 
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form .row {
        margin-bottom: 0;
    }
    
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Navbar improvements */
    .navbar-collapse {
        background: rgba(255, 107, 53, 0.95);
        border-radius: 10px;
        margin-top: 10px;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        text-align: center;
        padding: 0.5rem 1rem;
        margin: 0.2rem 0;
        border-radius: 5px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ===== SWIPER RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767.98px) {
    .reviews-swiper {
        padding: 15px 0 40px;
    }
    
    .review-card {
        margin: 0 8px;
        padding: 2rem 1.5rem;
    }
    
    .review-quote {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .review-text {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 1.2rem;
    }
    
    .review-author {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .review-position {
        font-size: 0.85rem;
    }
    
    .review-rating i {
        font-size: 1rem;
        margin: 0 1px;
    }
    
    .swiper-pagination {
        bottom: 5px;
    }
}

@media (max-width: 575.98px) {
    .review-card {
        margin: 0 5px;
        padding: 1.8rem 1.2rem;
    }
    
    .review-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .review-quote {
        font-size: 1.3rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .breadcrumb-section,
    footer,
    .btn,
    .swiper-pagination {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .card,
    .feature-card,
    .service-card,
    .price-card,
    .team-card,
    .blog-card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #000000;
        --primary-teal: #000000;
        --primary-charcoal: #000000;
        --primary-forest: #000000;
        --primary-slate: #333333;
    }
    
    .feature-card,
    .service-card,
    .price-card,
    .team-card,
    .blog-card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        background: #000000;
        border: 2px solid #000000;
    }
    
    .btn-outline-primary {
        border: 2px solid #000000;
        color: #000000;
    }
}


/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.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;
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.form-control:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Ensure sufficient color contrast */
.text-muted {
    color: #6c757d !important;
}

/* ===== CONTAINER ADJUSTMENTS ===== */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== GALLERY RESPONSIVE ===== */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        width: 100%;
        height: auto;
    }
}

/* ===== TEAM SECTION RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .team-card {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* ===== FAQ RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .accordion-body {
  overflow-x: hidden;
        font-size: 0.9rem;
        padding: 1rem;
    }
}