/* Variables */
:root {
    --purple: #593e82;
    --purple-light: #695d8e;
    --orange: #fb8c00;
    --orange-light: #ffb458;
    --white: #ffffff;
    --light-bg: rgba(255, 255, 255, 0.2);
    --light-bg-hover: rgba(255, 255, 255, 0.4);
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
}

.section {
    padding-top: 5rem;
}

/* Backgrounds */
.bg-purple {
    background-color: var(--purple);
}

.bg-purple-light {
    background-color: var(--purple-light);
}

.bg-orange {
    background-color: var(--orange);
}

.bg-orange-light {
    background-color: var(--orange-light);
}

/* Custom Button Styles */
.btn-orange {
    background-color: var(--orange);
    color: white;
    border: none;
}

body .btn-orange:hover {
    background-color: var(--orange-light);
    color: white;
}

.btn-purple {
    background-color: var(--purple);
    color: white;
    border: none;
}

body .btn-purple:hover {
    background-color: var(--purple-light);
    color: white;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Hero Section */
#hero-image {
    -o-object-position: bottom center;
    object-position: bottom center;
}

/* Services Section */
.services-section .card {
    margin-bottom: 1.5rem;
    background-color: var(--purple);
}

.services-section .card .card-img-top {
    height: 200px;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: top;
    object-position: top;
}

/* About Us */
#team-section .card-img-top {
    height: 250px;
    -o-object-fit: cover;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: var(--purple);
    color: white;
    padding: 30px 20px;
    margin-top: auto;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

.social-icon {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-bg);
    color: white;
    border-radius: 50%;
    margin-left: 15px;
    -webkit-transition: background-color 0.3s ease;
    -o-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--light-bg-hover);
}

/* Mobile breakpoint: keep hero image at a fixed height on small phones */
@media screen and (min-width: 375px) {
    .hero-section {
        /* reduce large vertical padding on small screens */
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Make the hero image a fixed height and preserve its cover behavior
       Anchor the visible image area to the bottom using object-position */
    #hero-image {
        height: 280px; /* fixed height on phones */
        width: 100%;
        -o-object-fit: contain;
        object-fit: contain; /* fill the area while preserving aspect ratio */
        display: block;
    }
}

/* Mobile phones, styles removed at md style */
@media screen and (max-width: 768px) {
    /* Lock the height of the images on the conditions cards on mobile view. */
    /* Only apply when image is at the top of the card (when on mobile) */
    .card .jumbo-card-image {
        height: 250px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {
    .services-section .card {
        min-height: 455px;
    }
}

/* Large devices (small laptops, 992px and up) */
@media screen and (min-width: 992px) {
    /* Increase the min height of service cards on larger screens */
    .services-section .card {
        min-height: 425px;
    }
}

/* Extra large devices (large laptops, 1200px and up) */
@media screen and (min-width: 1200px) {
    /* Increase the min height of service cards on larger screens */
    .services-section .card {
        min-height: 496px;
    }
}

/* XXL large devices (large laptops, 1400px and up) */
@media screen and (min-width: 1400px) {
    /* Increase the min height of service cards on larger screens */
    .services-section .card {
        min-height: 472px;
    }
}
