/* Image Wrapper - Portrait Orientation */
.image-wrapper {
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    width: 100%;
    max-width: 450px;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive Breakpoints */

/* Tablet and smaller (≤991px) */
@media (max-width: 991px) {
    /* Hero Section */
    #hero-section .display-1 {
        font-size: 3rem;
    }

    #hero-section .lead {
        font-size: 1.1rem;
    }

    /* Section Headings */
    .display-4 {
        font-size: 2.5rem;
    }

    /* Image Wrapper */
    .image-wrapper {
        max-width: 400px;
        height: 530px;
        margin: 0 auto;
    }

    /* What We Believe Section */
    #section-4 .d-flex.justify-content-between {
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 2rem !important;
    }

    #section-4 > .container > .row > .col-md-12 > .d-flex > div {
        width: 20rem !important;
    }

    /* Who We Serve Section */
    .w-50 {
        width: 70% !important;
    }
}

/* Mobile devices (≤768px) */
@media (max-width: 768px) {
    /* Hero Section */
    #hero-section {
        min-height: 60vh !important;
    }

    #hero-section .display-1 {
        font-size: 2.5rem;
    }

    #hero-section .lead {
        font-size: 1rem;
    }

    #hero-section .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    #hero-section .gap-3 {
        gap: 1rem !important;
        flex-direction: column;
        width: 100%;
    }

    #hero-section .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Section Headings */
    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Section 2 & 3 */
    #section-2 .lead,
    #section-3 .lead {
        font-size: 0.95rem;
    }

    #section-2 .w-75,
    #section-3 .w-75 {
        width: 100% !important;
    }

    /* Image Wrapper */
    .image-wrapper {
        max-width: 100%;
        height: 500px;
        margin: 0 auto;
    }

    /* What We Believe Section */
    #section-4 > .container > .row > .col-md-12 > .d-flex > div {
        width: 100% !important;
        max-width: 22rem;
        height: auto !important;
        padding: 1.5rem;
    }

    /* Who We Serve Section */
    .w-50 {
        width: 90% !important;
    }

    /* CTA Section */
    #cta-section .display-4 {
        font-size: 2rem;
    }

    #cta-section .lead {
        font-size: 1rem;
    }

    #cta-section .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    #cta-section .gap-4 {
        gap: 1rem !important;
    }
}

/* Small mobile devices (≤576px) */
@media (max-width: 576px) {
    /* Hero Section */
    #hero-section .display-1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    #hero-section .lead {
        font-size: 0.95rem;
    }

    #hero-section .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Section Headings */
    .display-4 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .lead {
        font-size: 0.9rem;
    }

    /* Image Wrapper */
    .image-wrapper {
        height: 450px;
    }

    /* What We Believe Section */
    #section-4 .fs-5 {
        font-size: 1.1rem !important;
    }

    #section-4 .fs-2 {
        font-size: 1.75rem !important;
    }

    #section-4 > .container > .row > .col-md-12 > .d-flex > div {
        padding: 1rem;
    }

    /* Who We Serve Section */
    .w-50 {
        width: 100% !important;
    }

    .p-3 {
        padding: 0.75rem !important;
    }

    /* CTA Section */
    #cta-section .display-4 {
        font-size: 1.75rem;
    }

    #cta-section .btn-lg {
        width: 100%;
    }

    #cta-section .flex-wrap {
        flex-direction: column;
        align-items: center;
    }

    #cta-section .btn {
        width: 100%;
        max-width: 350px;
    }
}

/* Extra small devices (≤375px) */
@media (max-width: 375px) {
    /* Hero Section */
    #hero-section .display-1 {
        font-size: 1.75rem;
    }

    #hero-section .lead {
        font-size: 0.875rem;
    }

    /* Section Headings */
    .display-4 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 0.875rem;
    }

    /* Image Wrapper */
    .image-wrapper {
        height: 400px;
    }

    .image-wrapper img {
        max-width: 100%;
    }

    /* What We Believe Section */
    #section-4 .fs-5 {
        font-size: 1rem !important;
    }

    #section-4 .fs-2 {
        font-size: 1.5rem !important;
    }

    /* Icon Sizes */
    #section-4 [style*="width: 64px"] {
        width: 56px !important;
        height: 56px !important;
    }

    /* CTA Section */
    #cta-section .display-4 {
        font-size: 1.5rem;
    }

    #cta-section .lead {
        font-size: 0.875rem;
    }
}
