:root {
    --bs-primary: #ff8da1;
    --bs-secondary: #ffb6c1;
    --bs-light: #fff0f3;
    --bs-dark: #b66e6e;
    /* Higher contrast for all ages */
    --deep-pink: #c2185b;
    /* Darker pink for better readability */
    --soft-pink-bg: #fff0f3;
    /* Softer background */
    --maroon: #FF8FA3;
    /* Maroon color for About page */
}

.bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.bg-light {
    background-color: var(--bs-light) !important;
}

.bg-dark {
    background-color: var(--bs-dark) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

.text-dark {
    color: var(--bs-dark) !important;
}

.text-muted {
    color: #555 !important;
    /* Slightly darker for readability */
}

.text-maroon {
    color: var(--maroon) !important;
}

.theme-pink-maroon {
    background-color: var(--soft-pink-bg) !important;
    color: var(--maroon) !important;
}

.theme-pink-maroon h1,
.theme-pink-maroon h2,
.theme-pink-maroon h3,
.theme-pink-maroon h4,
.theme-pink-maroon h5,
.theme-pink-maroon h6,
.theme-pink-maroon p,
.theme-pink-maroon span,
.theme-pink-maroon li,
.theme-pink-maroon small,
.theme-pink-maroon strong,
.theme-pink-maroon label,
.theme-pink-maroon a:not(.btn),
.theme-pink-maroon .text-primary,
.theme-pink-maroon .text-dark,
.theme-pink-maroon .text-muted,
.theme-pink-maroon .text-secondary,
.theme-pink-maroon [style*="color"] {
    color: var(--maroon) !important;
}

/********** Template CSS **********/

body {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.15rem;
    color: var(--maroon);
}

body.page-about {
    background-color: var(--soft-pink-bg);
    color: var(--maroon);
}

/* Ensure headings and common text classes on About page follow maroon color */
body.page-about,
body.page-about h1,
body.page-about h2,
body.page-about h3,
body.page-about h4,
body.page-about h5,
body.page-about h6,
body.page-about .text-dark,
body.page-about .text-muted {
    color: var(--maroon) !important;
}

body.page-about .page-header h1 {
    color: var(--bs-secondary) !important;
}



.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
    border-radius: 50px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: inherit;
}

.btn-primary {
    color: var(--bs-white);
}


/*** Navbar ***/
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 40px 0;
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
    color: var(--bs-secondary);
    font-weight: 700;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {

    .navbar .navbar-nav .nav-link,
    .navbar.bg-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 8px;
        border-top: 1px solid var(--bs-light);
    }
}

@media (min-width: 992px) {
    .navbar.bg-dark .navbar-nav .nav-link {
        padding: 20px 0;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 100px;
    background: rgba(45, 45, 45, .6);
    /* Darker overlay for better text contrast */
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 550px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 240px;
    padding-bottom: 40px;
    background: linear-gradient(rgba(45, 45, 45, .6), rgba(45, 45, 45, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header h1 {
    font-size: 4rem;
    letter-spacing: 3px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
}


.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}


/*** Title ***/
.title {
    margin-bottom: 2rem;
}

.title .title-left,
.title .title-center,
.title .title-right {
    display: inline-block;
    text-transform: uppercase;
    overflow: hidden;
}

.title .title-center {
    text-align: center;
}

.title .title-right {
    text-align: right;
}

.title .title-left h5,
.title .title-center h5,
.title .title-right h5 {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 300;
}

.title .title-left h5::after,
.title .title-center h5::before,
.title .title-center h5::after,
.title .title-right h5::before {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    top: 9px;
    border-bottom: 2px solid var(--bs-primary);
}

.title .title-left h5::after,
.title .title-center h5::after {
    left: calc(100% + 15px);
}

.title .title-right h5::before,
.title .title-center h5::before {
    right: calc(100% + 15px);
}

.title .title-left h1,
.title .title-center h1,
.title .title-right h1 {
    border-bottom: 2px solid var(--bs-primary);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 1rem;
    min-height: 140px;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 6rem);
    height: calc(100% - 6rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5rem solid rgba(233, 30, 99, 0.15);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 300px 0 0 300px;
    background: linear-gradient(to right, rgba(233, 30, 99, 0.18), rgba(255, 200, 215, 0.35));
}

.service-item.service-item-right {
    border-radius: 0 300px 300px 0;
    background: linear-gradient(to left, rgba(233, 30, 99, 0.18), rgba(255, 200, 215, 0.35));
}

.service-item .service-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.service-item .service-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {

    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 300px 300px 0 0;
        background: linear-gradient(to bottom, rgba(233, 30, 99, 0.18), rgba(255, 200, 215, 0.35));
        text-align: center;
    }
}


/*** Team ***/
.team-item {
    position: relative;
}

.team-item .team-name {
    position: absolute;
    width: 100%;
    height: 60px;
    left: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 74, 74, .7);
}

.team-item .team-body {
    position: relative;
    overflow: hidden;
}

.team-item .team-body .team-before,
.team-item .team-body .team-after {
    position: absolute;
    content: "";
    width: 0;
    height: calc(100% - 60px);
    top: 0;
    left: 0;
    background: rgba(74, 74, 74, .7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .5s;
}

.team-item .team-body .team-after {
    left: auto;
    right: 0;
}

.team-item .team-body .team-before {
    text-align: right;
}

.team-item:hover .team-body .team-before,
.team-item:hover .team-body .team-after {
    width: 50%;
}

.team-item .team-body .team-before span,
.team-item .team-body .team-after span {
    margin: 5px;
    color: var(--bs-white);
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-body .team-before span,
.team-item:hover .team-body .team-after span {
    opacity: 1;
    transition-delay: .2s;
}


/*** Testimonial ***/
.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    height: 100px;
    display: none;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--bs-dark);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 0px;
    height: 0px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 0;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -1000px 0;
    }
}

.footer {
    background-image: url(../img/footer-bg.png);
    background-position: 0px 0px;
    background-repeat: repeat-x;
    animation: footerAnimatedBg 50s linear infinite;
}


/*** Premium Utilities ***/
.transition-hover {
    transition: all 0.3s ease;
}

.transition-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.transition-up {
    transition: all 0.3s ease;
}

.transition-up:hover {
    transform: translateY(-5px);
}

.rotate-3 {
    transform: rotate(3deg);
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 4s ease-in-out infinite;
}

/*** Responsive Layout Overrides ***/

/* Responsive Brand Typography & Logo */
.navbar-brand h2 {
    font-size: 1.15rem !important;
    transition: all 0.3s ease;
}
.navbar-brand img {
    height: 50px !important;
    width: auto !important;
    margin-right: 5px !important;
    transition: all 0.3s ease;
}
@media (min-width: 576px) {
    .navbar-brand h2 {
        font-size: 1.4rem !important;
    }
    .navbar-brand img {
        height: 65px !important;
    }
}
@media (min-width: 992px) {
    .navbar-brand h2 {
        font-size: 1.85rem !important;
    }
    .navbar-brand img {
        height: 85px !important;
    }
}

/* Mobile Navbar Styles */
@media (max-width: 991.98px) {
    .navbar {
        background-color: rgba(45, 45, 45, 0.95) !important;
        position: sticky !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    .navbar-collapse {
        background-color: transparent !important;
        padding: 10px 15px;
        border-radius: 8px;
    }
    .navbar-nav {
        margin-top: 10px;
    }
}

/* Carousel Caption Responsive Corrections */
@media (max-width: 767.98px) {
    .carousel-caption {
        padding-top: 50px !important;
    }
    .carousel-caption .title {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .carousel-caption h1.display-1 {
        font-size: 2.0rem !important;
    }
    .carousel-caption h5 {
        font-size: 1.0rem !important;
    }
    .carousel-caption p {
        font-size: 0.9rem !important;
        margin-bottom: 2rem !important;
        padding: 0 10px !important;
        line-height: 1.5 !important;
    }
    .carousel-caption .btn {
        padding: 10px 30px !important;
        font-size: 0.95rem !important;
    }
}

/* Service Image Circle Overlay Correction */
@media (max-width: 767.98px) {
    .service-item .service-img {
        display: inline-block;
        max-width: 200px;
        margin: 15px auto;
        position: relative;
    }
    .service-item .service-img::before {
        width: 100% !important;
        height: 100% !important;
        border-width: 1rem !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* General touch friendly element improvements */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem !important;
    }
}