/********** Template CSS **********/
:root {
    --brand-primary: #e41779;
    --brand-accent: #D8A24A;
    --brand-neutral: #F4F1EC;
    --brand-soft: #EAF3EE;
    --brand-wood: #8B6B4F;
    --brand-heritage: #B24A3A;
    --brand-text: #2E2E2E;
    --brand-text-muted: #6B6B6B;
    --brand-link: #5A9E7B;
    --brand-link-hover: #D29A3E;
    --bs-primary: var(--brand-primary);
    --bs-secondary: var(--brand-accent);
    --bs-light: var(--brand-neutral);
    --bs-dark: var(--brand-text);
    --bs-body-bg: var(--brand-neutral);
    --bs-body-color: var(--brand-text);
    --bs-primary-rgb:228,23,121;

}

body {
    background-color: var(--brand-neutral);
    color: var(--brand-text);
    font-family: "Poppins", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--brand-text);
    font-family: "Merriweather", serif;
    font-weight: 700;
}

a {
    color: var(--brand-link);
}

a:hover {
    color: var(--brand-link-hover);
}

/* Bootstrap utility overrides to ensure visible palette changes */
.bg-light {
    background-color: var(--brand-neutral) !important;
}

.bg-secondary {
    background-color: var(--brand-soft) !important;
}

.bg-dark {
    background-color: var(--brand-wood) !important;
}

.text-white {
    color: #ffffff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.text-dark {
    color: var(--brand-text) !important;
}

.bg-cream {
    background-color: var(--brand-neutral);
}

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

.tagline {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.impact-card,
.cta-box,
.contact-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 24px rgba(47, 47, 47, 0.08);
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

.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);
}

.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e41779 !important;
    border-color: #e41779 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-color: var(--brand-primary) !important;

}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #ffffff !important;
    background-color: #e41779 !important;
    border-color: #e41779 !important;
}

.btn-outline-light {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: #ffffff;
    background-color: var(--brand-primary);
    border-color: rgba(178, 74, 58, 0.8);
}

.filter-btn.active {
    background-color: var(--brand-primary);
    color: #ffffff;
}

.text-muted {
    color: var(--brand-text-muted) !important;
}

.badge.bg-secondary {
    background-color: var(--brand-accent) !important;
    color: var(--brand-text) !important;
}

/* Accordion (FAQ) */
.accordion-button {
    background-color: var(--brand-neutral);
    color: var(--brand-text);
}

.accordion-button:not(.collapsed) {
    background-color: var(--brand-primary);
    color: #ffffff;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(111, 175, 142, 0.4);
    box-shadow: 0 0 0 0.2rem rgba(111, 175, 142, 0.2);
}

.card,
.accordion-item,
.list-group-item {
    background-color: #ffffff;
}

.input-group .form-control,
.form-control {
    border-color: rgba(111, 175, 142, 0.4);
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(111, 175, 142, 0.25);
}

.back-to-top {
    background-color: var(--brand-primary);
    color: #ffffff;
    border-color: #ffffff !important;
}


/*** Navbar ***/
.navbar {
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9;
    transition: .5s;
    background: rgba(244, 241, 236, 0.92) !important;
    backdrop-filter: blur(8px);
}

.navbar .navbar-nav .nav-link {
    margin-right: 25px;
    padding: 22px 0;
    color: var(--brand-text);
    font-size: 17px;
    text-transform: uppercase;
    outline: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color:  var(--brand-primary);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--brand-text);
}

.navbar.navbar-scrolled {
    background: rgba(244, 241, 236, 0.98) !important;
    box-shadow: 0 10px 30px rgba(46, 46, 46, 0.12);
}

@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 6 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 0;
    background: rgba(46, 46, 46, .5) !important;
    z-index: 1;
}

#header-carousel .carousel-caption .title,
#header-carousel .carousel-caption p,
#header-carousel .carousel-caption .d-flex {
    transform: translateY(0);
}

#header-carousel .carousel-caption {
    padding-top: 0;
    padding-top: 40px;
    padding-bottom: 80px;
    justify-content: flex-start !important;
}

.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: 160px;
    padding-bottom: 160px;
    min-height: 60vh;
    background: linear-gradient(rgba(46, 46, 46, .55), rgba(46, 46, 46, .55)), url(../assets/img/page-header.jpg) top center no-repeat !important;
    background-size: cover;
    background-position: center center !important;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6,
.page-header .breadcrumb-item a {
    color: #ffffff !important;
}

.page-header .breadcrumb-item.active {
    color: var(--bs-primary) !important;
}


/*** 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: 1px solid var(--brand-accent);
}

.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: 1px solid var(--bs-white);
}


/*** Service ***/
.service-item {
    position: relative;
    margin-top: 2.5rem;
    overflow: hidden;
}

.service-item .service-img {
    position: relative;
    display: inline-block;
}

.service-item .service-img::before {
    position: absolute;
    content: "";
    width: calc(100% - 12rem);
    height: calc(100% - 12rem);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3rem solid rgba(0, 0, 0, .5);
    border-radius: 300px;
    z-index: 1;
}

.service-item.service-item-left {
    border-radius: 500px 0 0 500px;
    background: linear-gradient(to right, var(--bs-secondary), var(--bs-dark));
}

.service-item.service-item-right {
    border-radius: 0 500px 500px 0;
    background: linear-gradient(to left, var(--bs-secondary), var(--bs-dark));
}

@media (max-width: 767.98px) {
    .service-item.service-item-left,
    .service-item.service-item-right {
        border-radius: 500px 500px 0 0;
        background: linear-gradient(to bottom, var(--bs-secondary), var(--bs-dark));
        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(0, 0, 0, .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(0, 0, 0, .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: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dots .owl-dot {
    width: 60px;
    height: 60px;
    margin: 0 5px;
    padding: 10px;
    background: var(--brand-soft);
    border-radius: 100px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .1;
    transition: .5s;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}


/*** Footer ***/
@keyframes footerAnimatedBg {
	0% {
        background-position: 0 0;
    }

	100% {
        background-position: -1000px 0;
    }
}

.footer {
    background: var(--brand-primary);
}
