/* Responsive Design - Bootstrap 5 Compliant */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-title {
        font-size: calc(var(--font-size-4xl) + 0.5rem);
    }
    
    .section-title {
        font-size: calc(var(--font-size-3xl) + 0.25rem);
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .section {
        padding: calc(var(--section-padding) + 1rem) 0;
    }
    
    .card-img-top {
        height: 240px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-photo {
        width: 180px;
        height: 180px;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .contact-info {
        padding: 2.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-title {
        font-size: calc(var(--font-size-4xl) + 1rem);
    }
    
    .section-title {
        font-size: calc(var(--font-size-3xl) + 0.5rem);
    }
    
    .card-img-top {
        height: 260px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-card {
        margin-bottom: 2.5rem;
    }
    
    .team-photo {
        width: 200px;
        height: 200px;
    }
    
    .process-icon {
        font-size: 4rem;
    }
    
    .review-card {
        padding: 2.5rem;
    }
    
    .contact-form {
        padding: 3rem;
    }
    
    .contact-info {
        padding: 3rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: calc(var(--font-size-4xl) + 1.5rem);
    }
    
    .section-title {
        font-size: calc(var(--font-size-3xl) + 0.75rem);
    }
    
    .card-img-top {
        height: 280px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .section {
        padding: calc(var(--section-padding) + 2rem) 0;
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: calc(var(--font-size-4xl) + 2rem);
    }
    
    .section-title {
        font-size: calc(var(--font-size-3xl) + 1rem);
    }
}

/* Mobile First Responsive Adjustments */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: var(--font-size-2xl);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .section-description {
        font-size: var(--font-size-sm);
    }
    
    .card-title {
        font-size: var(--font-size-lg);
    }
    
    .card-text {
        font-size: var(--font-size-sm);
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .team-name {
        font-size: var(--font-size-lg);
    }
    
    .team-role {
        font-size: var(--font-size-sm);
    }
    
    .process-icon {
        font-size: 2.5rem;
    }
    
    .process-title {
        font-size: var(--font-size-lg);
    }
    
    .process-description {
        font-size: var(--font-size-sm);
    }
    
    .services-price {
        font-size: var(--font-size-xl);
    }
    
    .review-text {
        font-size: var(--font-size-base);
    }
    
    .review-author {
        font-size: var(--font-size-sm);
    }
    
    .faq-question {
        font-size: var(--font-size-base);
    }
    
    .faq-answer {
        font-size: var(--font-size-sm);
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: var(--font-size-sm);
    }
    
    .form-control {
        padding: 0.6rem;
        font-size: var(--font-size-sm);
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero-section {
        padding: 1rem 0;
        min-height: 80vh;
    }
    
    .decorative-blob {
        display: none;
    }
}

/* Tablet Portrait Adjustments */
@media (max-width: 767.98px) and (min-width: 576px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-title {
        font-size: calc(var(--font-size-2xl) + 0.25rem);
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
}

/* Landscape Phone Adjustments */
@media (max-width: 991.98px) and (min-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-card {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 160px;
        height: 160px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .decorative-blob {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    body {
        color: #000;
        background-color: #fff;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #800000;
        --accent-color: #008000;
        --neutral-dark: #000000;
        --neutral-light: #ffffff;
        --background-color: #ffffff;
        --background-light: #ffffff;
    }
    
    .card {
        border: 2px solid var(--neutral-dark);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid var(--neutral-dark);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .btn {
        transition: none;
    }
    
    .form-control {
        transition: none;
    }
    
    .navbar-nav .nav-link {
        transition: none;
    }
    
    .footer a {
        transition: none;
    }
} 

.hero-content {
    padding-top: 175px;
}