:root {
    --primary-color: #0006d3;
    --primary-light: #EEF4FF;
    --primary-dark: #012A7A;
    --secondary-color: #012A7A;
    --accent-color: #EEF4FF;
    --text-dark: #1B1E28;
    --text-light: #6D7588;
    --bg-light: #F5F7FA;
    --surface-warm: #ffffff;
    --line-warm: #E5EAF2;
    --white: #ffffff;
    --whatsapp-color: #25D366;
    --promo-color: #FF8A00;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

main {
    flex: 1;
    padding-top: 102px;
    /* Offset for fixed navbar */
}

/* Home page specific fix */
/* Home page specific fix */
body.home-page main {
    padding-top: 102px;
}

@media (max-width: 991px) {
    body.home-page main {
        padding-top: 82px;
        /* Restore padding on mobile to avoid cutting off top */
    }
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 44, 237, 0.15);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.navbar.navbar-scrolled {
    background-color: var(--primary-color);
    padding: 12px 0;
    box-shadow: 0 6px 25px rgba(0, 44, 237, 0.25);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.site-logo {
    display: block;
    height: 78px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

body.home-page .site-logo {
    height: 78px;
    max-width: 260px;
}

.nav-link {
    font-weight: 600;
    color: var(--white) !important;
    margin: 0 12px;
    position: relative;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-link.active {
    color: var(--white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background-color: var(--white);
    transition: width 0.25s ease;
    border-radius: 99px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border-color: rgba(0, 44, 237, 0.3) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 44, 237, 0.25) !important;
}

@media (max-width: 991px) {
    main {
        padding-top: 82px;
    }

    .navbar-collapse {
        background: var(--primary-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        padding: 10px 0 14px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
    }

    .navbar-nav {
        align-items: center !important;
        text-align: center;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .nav-link {
        display: inline-flex;
        justify-content: center;
        margin: 0 auto;
        padding: 10px 6px !important;
        text-align: center;
    }

    .navbar-nav .nav-item.d-flex {
        justify-content: center;
    }

    .nav-social-icon {
        margin: 0 8px;
    }

    .nav-link::after {
        display: none;
    }
}

.btn-schedule {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color), var(--secondary-color));
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-schedule:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 66, 22, 0.24);
}

.btn-premium {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: 1px solid var(--primary-color) !important;
    transition: all 0.3s ease;
}

.btn-premium:hover,
.btn-premium:focus,
.btn-premium:active {
    background-color: var(--primary-dark) !important;
    color: white !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 4px 8px rgba(0, 44, 237, 0.22) !important;
}

/* Heros / Carousel */
#heroCarousel .carousel-item {
    height: 600px;
    min-height: 400px;
    background-color: #333;
    /* Fallback */
}

#heroCarousel img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    /* filter: brightness(0.7); Removed as per user request */
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    width: 60%;
    left: 10%;
    right: auto;
    padding-bottom: 0;
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s;
}

.carousel-caption p {
    font-size: 1.2rem;
    animation: fadeInUp 1s;
}

/* Section Generals */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.appointment-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    /* margin-top: -50px; Optional overlap if desired */
}

.appointment-datetime-row {
    --bs-gutter-x: 1rem;
}

.appointment-date-field,
.appointment-time-field {
    min-width: 0;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .appointment-card {
        padding: 24px 22px;
    }

    .appointment-datetime-row {
        --bs-gutter-x: .75rem;
    }

    .appointment-datetime-row > [class*="col-"] {
        min-width: 0;
    }

    .appointment-date-field,
    .appointment-time-field {
        height: 56px;
        min-height: 56px;
        padding: .65rem .75rem;
        font-size: 1rem;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: clip;
    }

    .appointment-date-field::-webkit-date-and-time-value,
    .appointment-time-field::-webkit-date-and-time-value {
        text-align: left;
        min-height: 1.2em;
    }

    .appointment-date-field::-webkit-calendar-picker-indicator,
    .appointment-time-field::-webkit-calendar-picker-indicator {
        margin-left: 2px;
        padding: 0;
    }
}

/* Highlights */
.highlight-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s;
}

.highlight-item:hover {
    transform: translateY(-10px);
}

.highlight-icon {
    width: 80px;
    height: 80px;
    background: rgba(185, 134, 61, 0.12);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* Services */
.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
    object-fit: cover;
}

.service-body {
    padding: 25px;
    text-align: center;
}

.service-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    margin: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonials-carousel {
    padding: 0 48px 42px;
}

.testimonials-carousel .carousel-indicators {
    bottom: 0;
    margin-bottom: 0;
}

.testimonials-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
}

.testimonials-control {
    width: 38px;
    opacity: 1;
}

.testimonials-control .carousel-control-prev-icon,
.testimonials-control .carousel-control-next-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary);
    background-size: 55%;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-light);
    position: absolute;
    top: 20px;
    left: 20px;
}

@media (max-width: 767.98px) {
    .testimonials-carousel {
        padding: 0 0 42px;
    }

    .testimonials-control {
        display: none;
    }
}

/* Footer */
footer {
    position: relative;
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 60px;
    margin-top: auto;
    border-top: none;
    box-shadow: 0 -10px 30px rgba(0, 44, 237, 0.15);
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-99%);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave .shape-fill {
    fill: var(--primary-color);
}

@media (max-width: 768px) {
    .footer-wave svg {
        height: 30px;
    }
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo-container .footer-title {
    margin-bottom: 0;
}

.footer-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 260px);
    max-height: 100px;
    margin-inline: auto;
    object-fit: contain;
}

.footer-heading {
    color: var(--white);
    font-weight: 600;
}

.footer-description,
.footer-contact {
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact a,
.footer-contact a:visited,
.footer-contact a:hover,
.footer-contact a:active,
footer a[href^="tel"] {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-contact-icon {
    color: var(--white);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.08);
}

.footer-brand {
    color: var(--white);
    font-weight: 700;
}

/* Nav Social Icons */
.nav-social-icon {
    color: var(--white);
    margin-left: 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.nav-social-icon:hover {
    color: var(--accent-color);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    html,
    body {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    main,
    header,
    section,
    footer,
    .navbar,
    .carousel,
    .carousel-inner,
    .carousel-item {
        max-width: 100%;
        overflow-x: clip;
    }

    @supports not (overflow-x: clip) {
        main,
        header,
        section,
        footer,
        .navbar,
        .carousel,
        .carousel-inner,
        .carousel-item {
            overflow-x: hidden;
        }
    }

    .container,
    .container-fluid {
        max-width: 100%;
    }

    .card,
    .alert,
    .btn,
    .footer-contact,
    .footer-description,
    .nav-link,
    .section-title,
    .intro-text {
        overflow-wrap: anywhere;
    }

    .site-logo,
    body.home-page .site-logo {
        height: 56px;
        max-width: 180px;
    }

    #heroCarousel .carousel-item {
        height: 500px;
        /* Increased height for better mobile display */
    }

    .carousel-caption {
        width: 90%;
        /* Wider on mobile */
        left: 5%;
        text-align: center;
        /* Center text on mobile */
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 50px;
    position: fixed;
    display: none;
    right: 30px;
    bottom: 100px;
    z-index: 99;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(111, 66, 22, 0.24);
    border: none;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    color: white;
}

.back-to-top i {
    font-size: 1.5rem;
}

/* Floating WhatsApp */
.floating-whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.floating-whatsapp {
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color, #25D366);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

.floating-whatsapp:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: scale(1.1);
}

.whatsapp-tooltip {
    background-color: #fff;
    color: var(--primary-dark);
    padding: 10px 15px;
    border-radius: 12px;
    border-bottom-right-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-right: 15px;
    position: relative;
    opacity: 0;
    visibility: hidden;
    animation: fade-in-tooltip 0.5s ease 3s forwards;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 12px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #fff;
}

@keyframes fade-in-tooltip {
    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(-2px);
    }
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 767px) {
    .floating-whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        font-size: 30px;
    }
    .whatsapp-tooltip {
        display: none;
    }
    .back-to-top {
        bottom: 90px;
        right: 20px;
    }
}

/* Contact page Kalbir alignment */
.contact-page {
    background: #ffffff;
}

.contact-card {
    border: 1px solid rgba(0, 6, 211, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 6, 211, 0.05) !important;
    border-radius: 16px;
}

.contact-page .text-primary {
    color: var(--primary-color) !important;
}

.contact-page .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-page .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.contact-page .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 6, 211, 0.15);
}

.contact-map-card {
    border: 1px solid rgba(0, 6, 211, 0.05) !important;
}

@media (max-width: 767px) {
    section {
        padding: 48px 0;
    }

    .section-title {
        margin-bottom: 30px;
    }
}
