/********** Template CSS **********/
:root {
    --primary: #4CC9A6;
    --secondary: #3B82F6;
    --light: #F5FAFF;
    --dark: #16304A;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.healthify-navbar-wrapper {
    transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}

.healthify-navbar-wrapper.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(22, 48, 74, 0.08);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

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

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.healthify-logo-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #A5F3FC, #6EE7B7);
    color: var(--dark);
    box-shadow: 0 12px 25px rgba(148, 163, 184, 0.45);
    font-size: 18px;
}

.healthify-logo-title {
    display: block;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 18px;
}

.healthify-logo-tagline {
    display: block;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.7);
}

.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
    position: relative;
}

.hero-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(76, 201, 166, 0.9), rgba(59, 130, 246, 0.7));
}

.hero-header > .container {
    position: relative;
    z-index: 1;
}

.hero-heading {
    line-height: 1.05;
}

.hero-kicker {
    letter-spacing: .3em;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.healthify-soft-card {
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.healthify-stats-row .healthify-soft-card {
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.healthify-counter {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/* Healthify Forms & Buttons */
.healthify-submit-btn {
    position: relative;
    overflow: hidden;
}

.healthify-submit-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.healthify-submit-spinner::before {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #ffffff;
    animation: healthify-spin .75s linear infinite;
}

.healthify-submit-btn.is-loading .healthify-submit-label {
    opacity: 0;
}

.healthify-submit-btn.is-loading .healthify-submit-spinner {
    opacity: 1;
}

@keyframes healthify-spin {
    to {
        transform: rotate(360deg);
    }
}


/* Healthify Toasts */
.healthify-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.healthify-toast {
    min-width: 260px;
    max-width: 360px;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    font-size: 14px;
}

.healthify-toast--success {
    background: #ecfdf5;
    color: #14532d;
}

.healthify-toast--error {
    background: #fef2f2;
    color: #7f1d1d;
}

.healthify-toast__icon {
    font-size: 18px;
}

.healthify-toast__message {
    flex: 1;
}

.healthify-toast__close {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
}

/* Form Validation Styles */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(76, 201, 166, 0.25);
    outline: none;
}

/* Accessibility improvements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Focus visible improvements */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}
