/* Responsive Design - Mobile First Approach */

/* Base Mobile Styles (320px and up) */
@media (max-width: 575.98px) {
    :root {
        --font-size-xs: 0.7rem;
        --font-size-sm: 0.8rem;
        --font-size-base: 0.9rem;
        --font-size-lg: 1rem;
        --font-size-xl: 1.1rem;
        --font-size-2xl: 1.3rem;
        --font-size-3xl: 1.6rem;
        --font-size-4xl: 1.9rem;
        --section-padding: 3rem 0;
        --card-padding: 1rem;
    }
    
    /* Container Adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: var(--font-size-base);
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-3xl);
        margin-bottom: 1rem;
    padding-top: 125px;
}
    
    .hero-section p {
        font-size: var(--font-size-base);
        margin-bottom: 1rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.70rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Process Steps */
    .process-step {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
        margin-bottom: 0.80rem;
    }
    
    /* Timeline Items */
    .timeline-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 1rem;
        font-size: var(--font-size-base);
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Forms */
    .form-control {
        padding: 1rem;
        font-size: var(--font-size-base);
    }
    
    .form-label {
        font-size: var(--font-size-sm);
    }
    
    /* Accordion */
    .accordion-button {
        padding: 1rem;
        font-size: var(--font-size-sm);
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    /* Team Cards */
    .team-card .card-img-top {
        height: 200px;
    }
    
    /* Price Display */
    .price {
        font-size: var(--font-size-xl);
        padding: 0.75rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact Info */
    #contact-info-phone,
    #contact-info-email,
    #contact-info-address {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Utility Classes */
    .text-center-mobile {
        text-align: center;
    }
    
    .mb-mobile {
        margin-bottom: 1.75rem;
    }
}

/* Small Mobile Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --font-size-xs: 0.75rem;
        --font-size-sm: 0.85rem;
        --font-size-base: 0.95rem;
        --font-size-lg: 1.05rem;
        --font-size-xl: 1.15rem;
        --font-size-2xl: 1.35rem;
        --font-size-3xl: 1.7rem;
        --font-size-4xl: 2rem;
        --section-padding: 3.5rem 0;
        --card-padding: 1.25rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 75vh;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-4xl);
    padding-top: 125px;
}
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Process Steps */
    .process-step {
        width: 55px;
        height: 55px;
        font-size: var(--font-size-xl);
    }
    
    /* Team Cards */
    .team-card .card-img-top {
        height: 220px;
    }
    
    /* Buttons */
    .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
        margin-bottom: 1rem;
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    :root {
        --font-size-xs: 0.75rem;
        --font-size-sm: 0.875rem;
        --font-size-base: 1rem;
        --font-size-lg: 1.125rem;
        --font-size-xl: 1.25rem;
        --font-size-2xl: 1.5rem;
        --font-size-3xl: 1.875rem;
        --font-size-4xl: 2.25rem;
        --section-padding: 4rem 0;
        --card-padding: 1.5rem;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 80vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Process Steps */
    .process-step {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-2xl);
    }
    
    /* Team Cards */
    .team-card .card-img-top {
        height: 230px;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: left;
    }
    
    /* Footer */
    footer {
        text-align: left;
    }
    
    footer .col-lg-3 {
        margin-bottom: 1.72rem;
    }
}

/* Large Tablets and Small Laptops (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    :root {
        --section-padding: 4.5rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Cards */
    .team-card .card-img-top {
        height: 240px;
    }
}

/* Extra Large Screens (1200px and up) */
@media (min-width: 1200px) {
    :root {
        --section-padding: 5rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team Cards */
    .team-card .card-img-top {
        height: 250px;
    }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: 0.58rem;
    padding-top: 125px;
}
    
    .hero-section p {
        font-size: var(--font-size-base);
        margin-bottom: 0.68rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.875rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.875rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.875rem 1rem;
    }
    
    .accordion-button {
        min-height: 44px;
        padding: 1rem 1.25rem;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Adjust for high DPI screens */
    .card-img-top,
    .team-card .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .card {
        transition: none;
    }
    
    .btn {
        transition: none;
    }
    
    .form-control {
        transition: none;
    }
    
    .nav-link {
        transition: none;
    }
    
    .gallery img {
        transition: none;
    }
}

/* Print Styles */
@media print {
    * {
        color: #000;
        background: #fff;
        box-shadow: none;
        text-shadow: none;
    }
    
    .navbar,
    .btn,
    .accordion-button,
    .form-control,
    .hero-section::before {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        background: none;
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #b9adad;
        break-inside: avoid;
    }
    
    section {
        padding: 1rem 0;
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* Custom Responsive Utilities */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
}

.d-tablet-none {
    display: block;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .d-tablet-none {
        display: none;
    }
}

.d-desktop-none {
    display: block;
}

@media (min-width: 992px) {
    .d-desktop-none {
        display: none;
    }
}

/* Responsive Text Sizes */
.text-responsive {
    font-size: var(--font-size-base);
}

@media (max-width: 575.98px) {
    .text-responsive {
        font-size: var(--font-size-sm);
    }
}

@media (min-width: 1200px) {
    .text-responsive {
        font-size: var(--font-size-lg);
    }
}

/* Responsive Margins and Padding */
.mb-responsive {
    margin-bottom: 1rem;
}

@media (max-width: 575.98px) {
    .mb-responsive {
        margin-bottom: 0.85rem;
    }
}

@media (min-width: 992px) {
    .mb-responsive {
        margin-bottom: 1.57rem;
    }
}

.py-responsive {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (max-width: 575.98px) {
    .py-responsive {
        padding-top: 1.56rem;
        padding-bottom: 1.55rem;
    }
}

@media (min-width: 992px) {
    .py-responsive {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
} 