/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Header */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 120px;
    }
    
    /* Services Grid */
    #services .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Team Section */
    #team .col-md-2 {
        margin-bottom: 1.5rem;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Section */
    .process-step {
        padding: 1rem 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    /* Footer */
    footer .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Gallery */
    #gallery .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    /* FAQ */
    #faq .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Small Devices (Landscape Phones) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 140px;
    }
    
    /* Team Images */
    #team img {
        width: 110px;
        height: 110px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
}

/* Medium Devices (Tablets) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 160px;
    }
    
    /* Team Images */
    #team img {
        width: 120px;
        height: 120px;
    }
    
    /* Services Grid - 2 columns */
    #services .col-md-4:nth-child(3n) {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    /* Contact Layout */
    .contact-form {
        margin-bottom: 2rem;
    }
}

/* Large Devices (Desktops) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Team Images */
    #team img {
        width: 130px;
        height: 130px;
    }
    
    /* Process Steps */
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

/* Extra Large Devices (Large Desktops) */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    #team img {
        width: 140px;
        height: 140px;
    }
    
    /* Process Steps */
    .step-number {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }
    
    /* Container Max Width */
    .container {
        max-width: 1140px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .min-vh-100 {
        min-height: auto;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .btn,
    .contact-form,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    img {
        max-width: 100% !important;
    }
    
    @page {
        margin: 0.5in;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../SOR_images/hero-bg@2x.webp');
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn {
        transition: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    #team img {
        transition: none;
    }
    
    #team img:hover {
        transform: none;
    }
    
    #gallery img {
        transition: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .step-number {
        transition: none;
    }
    
    .navbar-nav .nav-link {
        transition: none;
    }
    
    footer a {
        transition: none;
    }
}

/* Dark Theme Support */

/* Specific Breakpoints for Content */
@media (max-width: 480px) {
    .hero-section .col-lg-6 {
        text-align: center;
    }
    
    .hero-section img {
        max-width: 80%;
        margin: 1rem auto;
    }
    
    .about-feature {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .pricing-card {
        margin-bottom: 1rem;
    }
    
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Hover Effects for Touch Devices */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .btn:hover {
        transform: none;
    }
    
    #team img:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .pricing-card:hover {
        transform: none;
    }
}

/* Focus Styles for Keyboard Navigation */
@media (any-hover: none) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Ultra-wide Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        font-size: 1.3rem;
    }
} 