/* BrandTone Pro - Responsive CSS */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 70px;
        text-align: center;
    }
    
    #hero .hero-buttons {
        margin-top: 2rem;
    }
    
    #hero .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    /* Process steps */
    .process-number,
    .implementation-step {
        width: 50px;
        height: 50px;
    }
    
    .process-number .h4,
    .implementation-step .h3 {
        font-size: 1.2rem;
    }
    
    /* Timeline */
    .timeline-date {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Team images */
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Disable animations on mobile for performance */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: none;
        }
        
        .btn:hover {
            transform: none;
        }
        
        #gallery img:hover {
            transform: none;
        }
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 80px;
    }
    
    #hero .hero-buttons .btn {
        width: auto;
        min-width: 150px;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Process steps */
    .process-number,
    .implementation-step {
        width: 55px;
        height: 55px;
    }
    
    /* Timeline */
    .timeline-date {
        font-size: 1.3rem;
    }
    
    /* Team images */
    .rounded-circle {
        width: 130px;
        height: 130px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .display-4 {
        font-size: 2.2rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 90px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Process steps */
    .process-number,
    .implementation-step {
        width: 58px;
        height: 58px;
    }
    
    /* Timeline */
    .timeline-date {
        font-size: 1.4rem;
    }
    
    /* Team images */
    .rounded-circle {
        width: 140px;
        height: 140px;
    }
    
    /* Navigation adjustments */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0 0.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    .display-4 {
        font-size: 2.4rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 100px;
    }
    
    /* Sections */
    section {
        padding: 70px 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team images */
    .rounded-circle {
        width: 150px;
        height: 150px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Typography */
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 100px;
    }
    
    /* Sections */
    section {
        padding: 80px 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Team images */
    .rounded-circle {
        width: 150px;
        height: 150px;
    }
    
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Increase section padding for better spacing */
    section {
        padding: 100px 0;
    }
    
    /* Larger cards for better proportion */
    .card-img-top {
        height: 240px;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #footer,
    .breadcrumb {
        display: none !important;
    }
    
    /* Ensure good contrast */
    body {
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    /* Remove shadows and borders */
    .card,
    .shadow-sm,
    .shadow-lg {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    /* Adjust typography for print */
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Avoid breaking content */
    .card,
    .timeline-item {
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    /* Increase border thickness */
    .card,
    .btn,
    .form-control {
        border-width: 2px !important;
    }
    
    /* Ensure sufficient contrast */
    .text-muted {
        color: #000 !important;
    }
    
    .bg-light {
        background-color: #fff !important;
        border: 1px solid #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none !important;
    }
}

/* Dark mode support (if user prefers dark color scheme) */

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    /* Reduce hero padding in landscape */
    #hero {
        padding-top: 60px;
        min-height: 70vh;
    }
    
    /* Reduce section padding */
    section {
        padding: 30px 0;
    }
    
    /* Adjust navbar for landscape */
    .navbar {
        padding: 0.25rem 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase button size for better touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 24px;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Increase form control size */
    .form-control {
        min-height: 44px;
    }
    
    /* Better spacing for touch */
    .nav-link {
        padding: 1rem 0.5rem;
    }
} 