/* Carezo Purple Theme Override */
:root {
    --primary: #6C3FC0;
    --secondary: #1E1B4B;
    --primary-color: #6C3FC0;
    --secondary-color: #1E1B4B;
}

/* Primary color overrides */
.bg-primary,
.butn-style02,
.navbar-toggler.bg-primary,
.top-search.bg-primary {
    background-color: #6C3FC0 !important;
}

.text-primary,
.sm-title,
.text-primary-hover:hover {
    color: #6C3FC0 !important;
}

.butn-style02:hover {
    background-color: #5A2DA8 !important;
}

/* Secondary/dark overrides */
.bg-secondary {
    background-color: #1E1B4B !important;
}

.progress-bar.bg-secondary {
    background-color: #6C3FC0 !important;
}

/* Stars */
.fa-star.text-primary {
    color: #6C3FC0 !important;
}

/* Links and accents */
a:hover {
    color: #6C3FC0;
}

.list-style05 li::before {
    color: #6C3FC0;
}

/* Gradient banner purple tint */
.gradient-banner::before {
    background: linear-gradient(135deg, rgba(108, 63, 192, 0.3), rgba(30, 27, 75, 0.8)) !important;
}

/* Footer heading color */
footer .text-primary {
    color: #8B5CF6 !important;
}

/* Scroll top styling relies on CSS variables in :root */

/* Why choose box */
.why-choose-box {
    background-color: #6C3FC0;
}

/* Card hover effects */
.card-style07 .card-content {
    width: 100%;
    transition: background-color 0.3s ease;
}

.card-style07:hover .card-content {
    background-color: transparent;
}

/* Carezo layout and typography tuning */
html {
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    line-height: 1.65;
    color: #555;
}

p {
    font-size: 1rem;
    line-height: 1.7;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.container,
.container-fluid {
    max-width: 1180px;
}

.container-fluid {
    width: 100%;
}

.navbar-brand img {
    max-height: 52px;
}


.navbar-nav > li > a {
    font-size: 15px;
    font-weight: 600;
}

body.inner-page header:not(.scrollHeader) .navbar-default,
body.inner-page header.fixedHeader .navbar-default {
    background: #ffffff !important;
    border-bottom-color: rgba(30, 27, 75, 0.12) !important;
}

body.inner-page header:not(.scrollHeader) .navbar-nav > li > a,
body.inner-page header.fixedHeader .navbar-nav > li > a,
body.inner-page header:not(.scrollHeader) .navbar > ul > li > a,
body.inner-page header.fixedHeader .navbar > ul > li > a {
    color: #1E1B4B !important;
}

body.inner-page header:not(.scrollHeader) .navbar-nav > li > a:hover,
body.inner-page header:not(.scrollHeader) .navbar-nav > li > a:focus,
body.inner-page header.fixedHeader .navbar-nav > li > a:hover,
body.inner-page header.fixedHeader .navbar-nav > li > a:focus,
body.inner-page header:not(.scrollHeader) .navbar > ul > li > a:hover,
body.inner-page header:not(.scrollHeader) .navbar > ul > li > a:focus,
body.inner-page header.fixedHeader .navbar > ul > li > a:hover,
body.inner-page header.fixedHeader .navbar > ul > li > a:focus {
    color: #6C3FC0 !important;
}

body.inner-page header.scrollHeader .navbar-default {
    background: #ffffff !important;
    border-bottom-color: rgba(30, 27, 75, 0.12) !important;
}

body.inner-page header.scrollHeader .navbar-nav > li > a {
    color: #1E1B4B !important;
}

body.inner-page header.scrollHeader .navbar-nav > li > a:hover,
body.inner-page header.scrollHeader .navbar-nav > li > a:focus {
    color: #6C3FC0 !important;
}

body.inner-page .navbar-nav > li > ul,
body.inner-page .navbar ul ul {
    background: #ffffff !important;
    box-shadow: 0 16px 40px rgba(30, 27, 75, 0.12);
}

body.inner-page .navbar-nav > li > ul li a,
body.inner-page .navbar ul ul li a,
body.inner-page header:not(.scrollHeader) .navbar-nav > li > ul li a,
body.inner-page header:not(.scrollHeader) .navbar ul ul li a,
body.inner-page header.fixedHeader .navbar-nav > li > ul li a,
body.inner-page header.fixedHeader .navbar ul ul li a,
body.inner-page header.scrollHeader .navbar-nav > li > ul li a,
body.inner-page header.scrollHeader .navbar ul ul li a {
    color: #1E1B4B !important;
}

body.inner-page .navbar-nav > li > ul li a:hover,
body.inner-page .navbar-nav > li > ul li a:focus,
body.inner-page .navbar ul ul li a:hover,
body.inner-page .navbar ul ul li a:focus,
body.inner-page header:not(.scrollHeader) .navbar-nav > li > ul li a:hover,
body.inner-page header:not(.scrollHeader) .navbar-nav > li > ul li a:focus,
body.inner-page header:not(.scrollHeader) .navbar ul ul li a:hover,
body.inner-page header:not(.scrollHeader) .navbar ul ul li a:focus,
body.inner-page header.fixedHeader .navbar-nav > li > ul li a:hover,
body.inner-page header.fixedHeader .navbar-nav > li > ul li a:focus,
body.inner-page header.fixedHeader .navbar ul ul li a:hover,
body.inner-page header.fixedHeader .navbar ul ul li a:focus,
body.inner-page header.scrollHeader .navbar-nav > li > ul li a:hover,
body.inner-page header.scrollHeader .navbar-nav > li > ul li a:focus,
body.inner-page header.scrollHeader .navbar ul ul li a:hover,
body.inner-page header.scrollHeader .navbar ul ul li a:focus {
    color: #6C3FC0 !important;
    background: rgba(108, 63, 192, 0.08) !important;
}

.attr-nav .butn-style02.sm {
    padding: 10px 22px;
    font-size: 14px;
}

.sm-title {
    font-size: 13px;
    letter-spacing: 1.5px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.title-font.display-4,
footer .display-4 {
    font-size: clamp(2rem, 3.4vw, 3.25rem) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.8px;
}

.title-style01 {
    max-width: 760px;
}

.title-style01.text-center {
    margin-left: auto;
    margin-right: auto;
}

#home.full-screen {
    min-height: 720px;
}

#home h1 {
    max-width: 760px;
    font-size: clamp(2.55rem, 5.2vw, 4.8rem);
    line-height: 1.06;
    letter-spacing: -1px;
    margin-bottom: 28px !important;
}

#home span {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

#home p {
    max-width: 660px;
    font-size: clamp(1.03rem, 1.4vw, 1.18rem);
}

.inner-page-hero {
    min-height: 250px;
    padding-top: 120px;
    padding-bottom: 40px;
}

.inner-page-hero .min-vh-50 {
    min-height: 120px;
}

.butn-style02 {
    padding: 13px 28px;
    font-size: 15px;
    line-height: 1.35;
}

.card-style07 .card-content {
    padding: 34px 28px;
}

.card-style07 h3.h1 {
    font-size: clamp(1.55rem, 2.2vw, 2.15rem);
    line-height: 1.14;
    margin-bottom: 22px !important;
}

.card-style07 p,
.card-style06 .card-body p {
    font-size: 0.96rem;
}

.service-icon {
    margin-bottom: 24px;
}

.carezo-services {
    background: #eefafa !important;
}

.carezo-services .service-position {
    margin-right: 0;
}

.carezo-services .carezo-custom-card {
    min-height: auto;
    padding-bottom: 74px;
}

.carezo-services .carezo-custom-card .card-image {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    box-shadow: none;
}

.carezo-services .carezo-custom-card .card-image img {
    width: 100%;
    height: 445px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.carezo-services .carezo-custom-card:hover .card-image img {
    transform: scale(1.06);
}

.carezo-services .carezo-custom-card .card-content {
    margin: 28px 0 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 2;
}

.carezo-services .carezo-custom-card .card-content h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.25;
    margin-bottom: 12px;
}

.carezo-services .carezo-custom-card .card-content h3 a {
    color: #1E1B4B;
}

.carezo-services .carezo-custom-card .card-content h3::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin-top: 10px;
    background: #6C3FC0;
}

.carezo-services .owl-theme .owl-nav [class*='owl-'] {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #6C3FC0 !important;
    color: #ffffff !important;
    font-size: 24px;
    transition: background-color 0.25s ease;
}

.carezo-services .owl-theme .owl-nav [class*='owl-']:hover {
    background: #5A2DA8 !important;
}

.carezo-services .owl-theme .owl-nav {
    margin-top: -48px;
    text-align: left;
}

.why-choose-box {
    max-width: 270px;
    padding: 28px;
}

.why-choose-box p {
    font-size: 0.95rem;
    line-height: 1.55;
}

.list-style05 li {
    font-size: 0.98rem;
    line-height: 1.45;
}

.testimonials-style02 .left-box h1 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1;
}

.testimonial-carousel-two p {
    font-size: 1rem;
    line-height: 1.72 !important;
}

.card-style06 h3 {
    font-size: 1.28rem;
    line-height: 1.35;
}

.about-carezo {
    background: #ffffff;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 18px 20px;
    border: 1px solid rgba(108, 63, 192, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(30, 27, 75, 0.07);
}

.about-feature i {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(108, 63, 192, 0.12);
    color: #6C3FC0;
    font-size: 18px;
}

.about-feature span {
    color: #1E1B4B;
    font-weight: 700;
    line-height: 1.35;
}

.about-info-card {
    padding: 30px 28px;
    border-radius: 8px;
    background: #1E1B4B;
    color: #ffffff;
}

.about-info-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 8px;
    background: #6C3FC0;
    font-size: 22px;
}

.about-info-card h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.about-info-card p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
}

#contact.get-in-touch {
    padding-top: 90px;
    padding-bottom: 90px;
}

#contact .contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

#contact .contact-info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.55);
    background: rgba(108, 63, 192, 0.18);
}

#contact .contact-info-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #6C3FC0;
    color: #ffffff;
    font-size: 22px;
}

#contact .contact-info-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 7px;
}

#contact .contact-info-card a,
#contact .contact-info-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 0;
    text-decoration: none;
}

#contact .contact-info-card a:hover {
    color: #ffffff;
}

.form-control {
    min-height: 52px;
    font-size: 15px;
}

textarea.form-control {
    min-height: 118px;
}

footer {
    font-size: 0.96rem;
}

footer .h3 {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.35;
}

footer .bg-img .display-4 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

@media (min-width: 1200px) {
    .container-fluid {
        max-width: 1320px;
    }
}

@media (max-width: 1199.98px) {
    section {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    #home.full-screen {
        min-height: 650px;
    }

    .title-font.display-4,
    footer .display-4 {
        font-size: clamp(1.9rem, 4vw, 2.8rem) !important;
    }
}

@media (max-width: 991.98px) {
    body {
        font-size: 15.5px;
    }

    section {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    #home.full-screen {
        min-height: auto;
    }

    #home .min-vh-100 {
        min-height: 640px !important;
    }

    #home h1 {
        font-size: clamp(2.25rem, 8vw, 3.7rem);
    }

    .card-style07 .card-content {
        min-height: 390px;
    }

}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .navbar-brand img {
        max-height: 44px;
    }

    #home .min-vh-100 {
        min-height: 600px !important;
    }

    #home h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.1;
        margin-bottom: 22px !important;
    }

    #home p {
        font-size: 1rem;
    }

    .title-font.display-4,
    footer .display-4 {
        font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.4px;
    }

    .sm-title {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .butn-style02 {
        padding: 12px 22px;
        font-size: 14px;
    }

    .card-style07 .card-content {
        min-height: 340px;
        padding: 28px 24px;
    }

    .carezo-services .carezo-custom-card .card-image img {
        height: 300px;
    }

    .carezo-services .owl-theme .owl-nav {
        margin-top: -34px;
    }

    .card-style07 h3.h1 {
        font-size: 1.55rem;
    }

    .w-90px {
        width: 70px !important;
    }

    footer .footer-logo img {
        max-width: 150px;
    }
}

@media (max-width: 575.98px) {
    #home .min-vh-100 {
        min-height: 560px !important;
    }

    #home .d-flex.gap-3 {
        gap: 12px !important;
    }

    #home .butn-style02 {
        width: 100%;
        text-align: center;
    }

    .title-style01 {
        max-width: 100%;
    }

    .card-style06 h3 {
        font-size: 1.15rem;
    }

    .bg-primary.px-3 {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    footer .list-unstyled.d-flex li a {
        margin-right: 18px !important;
        line-height: 2;
    }
}
.card-style07 .card-content .service-icon,
.card-style07.active .card-content a i,
.footer-icon,
.why-choose-style02 .why-choose-content .why-choose-box {
    background-color: #5A2DA8 !important;
}

/* Custom purple hover overlay for service cards */
.carezo-custom-card .card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(108, 63, 192, 0.65);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

.carezo-custom-card:hover .card-image::after {
    opacity: 1;
}

/* Fix navbar spacing and layout */
.navbar>.navbar-nav>li>a {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 13px !important;
    letter-spacing: 0px !important;
}

.navbar-header-custom {
    margin-right: auto !important;
}

.navbar>.navbar-nav {
    margin-left: auto !important;
    margin-right: auto !important;
}

.attr-nav {
    margin-left: 15px !important;
}

/* Nav Pills Theme Override */
.nav-pills .nav-link {
    color: #6C3FC0 !important;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #6C3FC0 !important;
    color: #ffffff !important;
}

/* Colorize template icons to Carezo Purple */
img[src*="icon-18.png"],
img[src*="icon-19.png"] {
    filter: brightness(0) saturate(100%) invert(21%) sepia(97%) saturate(1583%) hue-rotate(246deg) brightness(100%) contrast(90%);
}
