/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.5rem;
        --font-size-h4: 1.25rem;
        --font-size-h5: 1.125rem;
        --section-padding: 40px 0;
    }
    
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 70vh;
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.38rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.32rem !important;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    /* Cards */
    .feature-card, .service-card, .review-card, .case-study-card,
    .career-item, .info-item, .blog-card, .element-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Service Cards */
    .service-card img {
        height: 150px;
    }
    
    /* Team Section */
    .team-card {
        margin-bottom: 2rem;
    }
    
    .team-card img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.27rem;
    }
    
    /* Timeline */
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem !important;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .price-display {
        font-size: 2rem;
    }
    
    /* Additional Page Elements */
    .element-card {
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.97rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 75vh;
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 2.28rem;
    }
    
    /* Cards Layout */
    .service-card, .review-card {
        margin-bottom: 1.59rem;
    }
    
    /* Team Grid */
    .team-card {
        margin-bottom: 1.73rem;
    }
    
    /* Process and Timeline */
    .process-step, .timeline-item {
        margin-bottom: 1.59rem;
    }
    
    /* Contact Section */
    .contact-info {
        margin-top: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 80vh;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        margin: 0 0.25rem;
    }
    
    /* Cards */
    .feature-card, .service-card, .review-card {
        margin-bottom: 1.69rem;
    }
    
    /* Team Layout */
    .team-card {
        margin-bottom: 1rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 1rem;
    }
    
    /* Gallery Grid */
    .gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.87rem;
    }
    
    /* Team Layout */
    .team-card {
        padding: 1.5rem;
    }
    
    /* Process and Timeline */
    .process-step, .timeline-item {
        padding: 1.5rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .breadcrumbs, footer {
        display: none !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: auto;
        background: white !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        background: transparent !important;
        color: black !important;
    }
    
    .card, .feature-card, .service-card {
        border: 1px solid #c4b7b9 !important;
        box-shadow: none !important;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .card, .feature-card, .service-card, .review-card {
        border: 2px solid #000000 !important;
    }
    
    .btn {
        border: 2px solid #000000 !important;
    }
}



/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding-top: 100px;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
    
    .team-card img {
        width: 100px;
        height: 100px;
    }
}

/* Mobile Menu Improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Specific Component Responsiveness */
@media (max-width: 767.98px) {
    /* Blog Grid */
    .blog-card {
        margin-bottom: 2rem;
    }
    
    /* FAQ Accordion */
    .accordion-button {
        font-size: 1.00rem;
        padding: 0.75rem;
    }
    
    /* Contact Info */
    .contact-info {
        text-align: center;
        margin-top: 2rem;
    }
    
    /* Price Display */
    .price-display {
        font-size: 1.87rem;
    }
    
    /* Section Titles */
    section h2 {
        font-size: 1.77rem;
        margin-bottom: 1rem;
    }
    
    section h3 {
        font-size: 1.36rem;
        margin-bottom: 0.85rem;
    }
}

/* Ultra-wide Screen Support */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 120px 0;
    }
    
    section {
        padding: 100px 0;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 767.98px) {
    .btn, .nav-link, .accordion-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
} 