/* ===== RESPONSIVE DESIGN ===== */

/* ===== EXTRA LARGE DEVICES (Large Desktops) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-section p {
        font-size: 1.25rem;
    }
}

/* ===== LARGE DEVICES (Desktops) ===== */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
}

/* ===== MEDIUM DEVICES (Tablets) ===== */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Cards */
    .card, .service-card, .feature-card, .education-card, .workshop-card, 
    .certification-card, .resource-card, .success-story-card, .collection-card, 
    .accessory-card, .support-card, .corporate-card, .review-card, 
    .case-study-card, .info-card, .career-card, .pricing-card, .blog-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    /* Timeline adjustments */
    .timeline-item {
        width: 48%;
    }
    
    .timeline-item:nth-child(even) {
        left: 52%;
    }
    
    /* Gallery */
    .gallery-img {
        height: 200px;
    }
    
    /* Team photos */
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--spacing-xl);
    }
    
    .contact-info {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }
}

/* ===== MOBILE MENU ENHANCEMENTS ===== */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        background: transparent;
        border-radius: var(--border-radius-sm);
        transition: background-color 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(156, 175, 136, 0.25);
        outline: none;
    }
    
    .navbar-toggler:hover {
        background-color: rgba(156, 175, 136, 0.1);
    }
    
    .navbar-collapse {
        background-color: var(--primary-cream);
        border-radius: var(--border-radius-md);
        margin-top: var(--spacing-sm);
        box-shadow: var(--shadow-light);
        padding: var(--spacing-sm);
        border: 1px solid rgba(156, 175, 136, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem;
        border-radius: var(--border-radius-sm);
        transition: all 0.3s ease;
        color: var(--primary-charcoal) !important;
        font-weight: var(--font-weight-medium);
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--primary-sage);
        color: white !important;
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link.active {
        background-color: var(--primary-sage);
        color: white !important;
    }
}

/* ===== SMALL DEVICES (Landscape Phones) ===== */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    /* Navigation */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    /* Hero section */
    .hero-section {
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    /* Cards */
    .card, .service-card, .feature-card, .education-card, .workshop-card,
    .certification-card, .resource-card, .success-story-card, .collection-card,
    .accessory-card, .support-card, .corporate-card, .review-card,
    .case-study-card, .info-card, .career-card, .pricing-card, .blog-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    /* Pricing cards */
    .pricing-card.featured {
        transform: none;
        margin-top: var(--spacing-lg);
    }
    
    /* Timeline mobile layout */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        left: 60px !important;
    }
    
    .timeline-item::before {
        left: -45px !important;
        right: auto !important;
    }
    
    /* Gallery */
    .gallery-img {
        height: 180px;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Team layout */
    .team-member {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    /* Process steps */
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .contact-info {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }
    
    .contact-info i {
        width: 18px;
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.875rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding: var(--spacing-xl) 0;
    }
    
    .mb-5 {
        margin-bottom: var(--spacing-xl);
    }
}

/* ===== EXTRA SMALL DEVICES (Portrait Phones) ===== */
@media (max-width: 575.98px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    h5 {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 0.875rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar-toggler {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.375rem 0;
        text-align: center;
    }
    
    /* Hero section */
    .hero-section {
        padding: var(--spacing-lg) 0;
        text-align: center;
        min-height: 70vh;
    }
    
    /* Breadcrumb */
    .breadcrumb-nav {
        padding: var(--spacing-sm) 0;
    }
    
    .breadcrumb-icon {
        width: 20px;
        height: 20px;
    }
    
    /* Cards */
    .card, .service-card, .feature-card, .education-card, .workshop-card,
    .certification-card, .resource-card, .success-story-card, .collection-card,
    .accessory-card, .support-card, .corporate-card, .review-card,
    .case-study-card, .info-card, .career-card, .pricing-card, .blog-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        border-radius: var(--border-radius-md);
    }
    
    .card-img-top {
        height: 150px;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Pricing cards */
    .pricing-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .pricing-card.featured {
        transform: none;
        border-width: 1px;
        margin-top: 0;
    }
    
    .pricing-card .price {
        font-size: 1.5rem;
        margin: var(--spacing-md) 0;
    }
    
    /* Services */
    .service-card .price {
        font-size: 1.25rem;
    }
    
    /* Timeline mobile layout */
    .timeline {
        max-width: 100%;
    }
    
    .timeline::before {
        left: 15px;
        width: 2px;
    }
    
    .timeline-item {
        width: calc(100% - 50px);
        left: 50px !important;
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }
    
    .timeline-item::before {
        left: -35px !important;
        right: auto !important;
        width: 15px;
        height: 15px;
    }
    
    /* Gallery */
    .gallery-img {
        height: 150px;
        margin-bottom: var(--spacing-sm);
        border-radius: var(--border-radius-sm);
    }
    
    /* Team layout */
    .team-member {
        text-align: center;
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-md);
    }
    
    .team-photo {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-sm);
    }
    
    .team-member h5 {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .team-member p {
        font-size: 0.75rem;
    }
    
    /* Process steps */
    .process-step {
        margin-bottom: var(--spacing-lg);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }
    
    /* FAQ */
    .accordion-button {
        padding: var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .accordion-body {
        padding: var(--spacing-md);
        font-size: 0.875rem;
    }
    
    /* Contact form */
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    .contact-info {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }
    
    .contact-info p {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-info i {
        width: 16px;
        margin-right: var(--spacing-sm);
    }
    
    /* Forms */
    .form-control {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.875rem;
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .btn-outline-primary {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Footer */
    footer {
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    footer h5 {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }
    
    footer p {
        font-size: 0.875rem;
    }
    
    footer .list-unstyled li {
        margin-bottom: 0.25rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding: var(--spacing-lg) 0;
    }
    
    .mb-4 {
        margin-bottom: var(--spacing-lg);
    }
    
    .mb-5 {
        margin-bottom: var(--spacing-lg);
    }
    
    .pt-5 {
        padding-top: var(--spacing-lg);
    }
    
    .mt-3 {
        margin-top: var(--spacing-md);
    }
    
    .mt-4 {
        margin-top: var(--spacing-lg);
    }
    
    /* Grid adjustments */
    .row {
        margin: 0 -var(--spacing-sm);
    }
    
    .row > * {
        padding: 0 var(--spacing-sm);
    }
    
    /* Utility classes for mobile */
    .text-center-mobile {
        text-align: center;
    }
    
    .mb-mobile {
        margin-bottom: var(--spacing-md);
    }
    
    .d-none-mobile {
        display: none;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        min-height: 50vh;
        padding: var(--spacing-md) 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.875rem;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    .py-5 {
        padding: var(--spacing-md) 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .navbar,
    .breadcrumb-nav,
    footer,
    .btn,
    .form-control,
    .contact-form {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto !important;
        padding: 1rem 0 !important;
    }
    
    .hero-section::before {
        display: none !important;
    }
    
    .py-5 {
        padding: 1rem 0 !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card, .service-card, .feature-card {
        page-break-inside: avoid;
        border: 1px solid #ccc !important;
        margin-bottom: 1rem !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .card,
    .service-card,
    .feature-card,
    .btn,
    .gallery-img {
        transition: none !important;
        animation: none !important;
    }
    
    .timeline-item,
    .process-step,
    .team-member {
        animation: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-sage: #4A5D23;
        --primary-gold: #B8860B;
        --primary-terracotta: #8B4513;
        --primary-cream: #FFFEF7;
        --primary-charcoal: #000000;
    }
    
    .card, .service-card, .feature-card {
        border: 2px solid var(--primary-charcoal);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* ===== DARK MODE PREFERENCES ===== */

/* ===== FOCUS INDICATORS FOR MOBILE ===== */
@media (max-width: 767.98px) {
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 3px solid var(--primary-sage);
        outline-offset: 3px;
    }
    
    .btn:focus {
        outline: 3px solid var(--primary-gold);
        outline-offset: 2px;
    }
} 