/* Lotus Wellness & Spa - Custom Design System */

:root {
    --gold: #C5A880;
    --gold-dark: #A78A62;
    --gold-light: #F4EFEB;
    --charcoal: #191919;
    --charcoal-light: #242424;
    --cream: #FAF8F5;
    --white: #FFFFFF;
    --muted: #7E7C79;
    --muted-light: #C8C5C0;
    
    --serif-font: 'Cormorant Garamond', Georgia, serif;
    --sans-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Base Styles */
html, body {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100%;
}

body {
    font-family: var(--sans-font);
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--charcoal);
    font-family: var(--serif-font);
}

/* Typography */
.cormorant {
    font-family: var(--serif-font);
}

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

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

.font-italic {
    font-style: italic;
}

.tracking-wider {
    letter-spacing: 0.15em;
}

.small-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: var(--gold);
}

.max-w-600 {
    max-width: 600px;
}

.max-w-400 {
    max-width: 400px;
}

/* Custom Buttons */
.btn-gold {
    background-color: var(--gold);
    color: var(--charcoal);
    border: 1px solid var(--gold);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s ease;
}

.btn-gold:hover, .btn-gold:focus {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

.btn-outline-gold {
    color: var(--gold);
    border: 1px solid var(--gold);
    background-color: transparent;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s ease;
}

.btn-outline-gold:hover, .btn-outline-gold:focus {
    background-color: var(--gold);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s ease;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* Navigation */
.navbar-custom {
    padding: 20px 0;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.navbar-custom.navbar-scrolled {
    padding: 12px 0;
    background-color: rgba(25, 25, 25, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand .brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.navbar-brand .brand-icon {
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: var(--gold);
}

/* Underline effect for nav links */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 2px;
    left: 16px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after {
    width: calc(100% - 32px);
}

/* Hero Section */
.hero-section {
    position: relative;
}

.z-index-2 {
    z-index: 2 !important;
}

.hero-section .container {
    position: relative;
    z-index: 2 !important;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.85) 0%, rgba(25, 25, 25, 0.6) 100%);
    z-index: 1;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 10px;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 1.5px solid var(--gold);
    border-radius: 20px;
    z-index: 0;
    opacity: 0.3;
}

.image-mask {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 15px;
}

.hero-img {
    transition: transform 8s ease;
    width: 100%;
    height: auto;
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.05);
}

.bg-blur-charcoal {
    background-color: rgba(36, 36, 36, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-badge {
    bottom: 30px;
    left: -20px;
    z-index: 3;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Spacing sections */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pt-8 {
    padding-top: 8.5rem;
}

.min-vh-80 {
    min-vh: 80vh;
}

/* Backgrounds */
.bg-charcoal {
    background-color: var(--charcoal) !important;
}

.bg-light-cream {
    background-color: var(--cream) !important;
}

/* Service Cards styling */
.service-card {
    border: 1px solid rgba(197, 168, 128, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(25, 25, 25, 0.05) !important;
    border-color: var(--gold) !important;
}

.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 400px !important; /* Tăng chiều cao ảnh */
    overflow: hidden;
}

.service-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.06);
}

.service-card-body {
    padding: 1rem 1.25rem 1.25rem 1.25rem !important; /* Nhỏ gọn */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Dồn content lên trên sát nhau */
    height: auto !important;
    flex-grow: 1 !important;
}

.service-card-body h3 {
    font-size: 1.15rem !important; /* Tiêu đề tinh tế */
    margin-bottom: 0.4rem !important;
}

.service-card-body p {
    font-size: 0.82rem !important; /* Font chữ nhỏ hơn gọn gàng */
    margin-bottom: 0.75rem !important;
    line-height: 1.5;
}

.service-card-body > div:last-of-type {
    margin-top: auto !important; /* Đẩy phần giá và nút bấm xuống sát đáy để thẳng hàng */
}

.service-card-body .price-box {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
    margin-bottom: 0.6rem !important;
}

.service-icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--gold-light);
}

.service-card.bg-charcoal .service-icon-box {
    background-color: var(--charcoal-light);
}

.border-gold-premium {
    border: 1.5px solid var(--gold) !important;
}

.price-box span {
    font-size: 0.95rem;
}

/* Why choose us Feature Box */
.feature-box {
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(25, 25, 25, 0.03) !important;
    border-color: rgba(197, 168, 128, 0.2);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--cream);
    transition: all 0.4s ease;
}

.feature-box:hover .feature-icon {
    background-color: var(--gold);
}

.feature-box:hover .feature-icon i {
    color: var(--charcoal) !important;
}

/* Gallery Section styling */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(25, 25, 25, 0.8) 0%, rgba(25, 25, 25, 0.1) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover final-overlay,
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Testimonial slider */
#testimonialCarousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--muted);
}

#testimonialCarousel .carousel-indicators .active {
    background-color: var(--gold);
    width: 24px;
    border-radius: 4px;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

#testimonialCarousel:hover .carousel-control-prev,
#testimonialCarousel:hover .carousel-control-next {
    opacity: 0.8;
}

/* Contact box and Styled Map */
.cta-icon-box {
    background-color: var(--gold-light);
}

.styled-map-box {
    border: 1px solid rgba(197, 168, 128, 0.15);
}

/* Footer Section */
.footer-custom {
    background-color: var(--charcoal);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-heading {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 1px;
    background-color: var(--gold);
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--muted-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

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

.hover-gold:hover {
    color: var(--gold) !important;
}

.footer-policy-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.xx-small {
    font-size: 0.7rem;
}

/* Floating WhatsApp Button with pulse animation */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-whatsapp::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: var(--white);
}

.floating-whatsapp .tooltip-text {
    visibility: hidden;
    width: 150px;
    background-color: var(--charcoal);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1000;
    right: 75px;
    font-size: 0.8rem;
    font-family: var(--sans-font);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
}

.floating-whatsapp:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(0px);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Animations using Intersection Observer classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-reveal.fade-in-left {
    transform: translateX(-50px);
}

.scroll-reveal.fade-in-right {
    transform: translateX(50px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0) !important;
}

/* Policy Pages styling */
.policy-header {
    background-image: radial-gradient(circle at 10% 20%, rgba(36, 36, 36, 0.95) 0%, rgba(20, 20, 20, 0.98) 90%);
}

.policy-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 8px;
}

.text-dark-gold {
    color: var(--gold-dark);
}

/* Text alignment */
.text-justify {
    text-align: justify;
}

/* Responsiveness overrides */
@media (max-width: 991.98px) {
    html, body, .hero-section, section {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    .hero-image-wrapper {
        padding: 0 !important;
    }
    .hero-image-wrapper::before {
        display: none !important;
    }
    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .navbar-custom {
        background-color: var(--charcoal);
        padding: 15px 0;
    }
    .navbar-custom.navbar-scrolled {
        padding: 12px 0;
    }
    .navbar-custom .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        text-align: center;
    }
    .navbar-custom .nav-link::after {
        display: none;
    }
    .navbar-custom .btn-gold {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    .hero-section {
        text-align: center;
        padding-top: 7.5rem;
    }
    .hero-img {
        max-width: 100%;
        margin-top: 2rem;
    }
    .floating-badge {
        display: none !important;
    }
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .floating-whatsapp .tooltip-text {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .display-3 {
        font-size: 2.5rem;
    }
    .display-5 {
        font-size: 1.8rem;
    }
}

/* Base Contrast and Color Distribution Corrections */
.bg-gold {
    background-color: var(--gold) !important;
}

.bg-charcoal {
    background-color: var(--charcoal) !important;
}

/* Hero Section and Charcoal sections styling overrides */
.hero-section,
.bg-charcoal,
.footer-custom,
.policy-header {
    color: #E5E0DA !important; /* Soft white/cream for body text */
}

.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section h6,
.bg-charcoal h1, .bg-charcoal h2, .bg-charcoal h3, .bg-charcoal h4, .bg-charcoal h5, .bg-charcoal h6,
.footer-custom h1, .footer-custom h2, .footer-custom h3, .footer-custom h4, .footer-custom h5, .footer-custom h6,
.policy-header h1, .policy-header h2, .policy-header h3, .policy-header h4 {
    color: var(--white) !important; /* Pure white for headings in dark background */
}

.hero-section .text-gold,
.bg-charcoal .text-gold,
.footer-custom .text-gold {
    color: var(--gold) !important; /* Gold headings or gold text stays gold */
}

.hero-section p,
.bg-charcoal p,
.footer-custom p,
.footer-custom .text-muted {
    color: #C8C5C0 !important; /* Legible off-white for paragraphs */
}

.hero-section .text-muted-light {
    color: #C8C5C0 !important;
}

/* Specific button visibility on dark backgrounds */
.hero-section .btn-outline-light {
    color: var(--white) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.hero-section .btn-outline-light:hover {
    color: var(--charcoal) !important;
    background-color: var(--white) !important;
}

/* Gold container contrast fix */
.bg-gold,
.bg-gold h1, .bg-gold h2, .bg-gold h3, .bg-gold h4, .bg-gold h5, .bg-gold h6,
.bg-gold span, .bg-gold p {
    color: var(--charcoal) !important; /* Dark text on gold background */
}

/* Charcoal container text muted contrast fix */
.bg-charcoal .text-muted {
    color: #B5B0AA !important; /* Readable on dark background */
}

.footer-custom .footer-brand .brand-text {
    color: var(--white) !important;
}

.footer-custom .footer-menu a {
    color: #B5B0AA !important;
}

.footer-custom .footer-menu a:hover {
    color: var(--gold) !important;
}

.footer-custom .footer-contact .text-muted,
.footer-custom .footer-contact a {
    color: #B5B0AA !important;
}

.footer-custom .footer-contact a:hover {
    color: var(--gold) !important;
}

.footer-custom .small,
.footer-custom .xx-small,
.footer-custom .footer-policy-links a {
    color: #9A9590 !important;
}

.footer-custom .footer-policy-links a:hover {
    color: var(--gold) !important;
}

/* Blog List and Detail Styling */
.blog-card {
    border: 1px solid rgba(197, 168, 128, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(25, 25, 25, 0.05) !important;
}

.blog-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-date-badge {
    background-color: rgba(25, 25, 25, 0.75) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--white) !important;
    font-size: 0.75rem;
}

.blog-body-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--charcoal);
}

.blog-body-text p {
    text-align: justify;
    margin-bottom: 1.5rem;
    color: var(--charcoal) !important;
}

.blog-body-text ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.blog-body-text li {
    margin-bottom: 8px;
}

.group-hover-gold {
    transition: color 0.3s ease;
}

.group:hover .group-hover-gold {
    color: var(--gold) !important;
}

/* Therapists Section Styles - Mosaic Layout */
.therapist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.therapist-grid-col {
    flex: 1 1 calc(20% - 1.2rem);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.therapist-item-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.therapist-card {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid rgba(197, 168, 128, 0.15) !important;
}

.therapist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.therapist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    border-color: var(--gold) !important;
}

.therapist-card:hover img {
    transform: scale(1.05);
}

.therapist-card.card-tall {
    height: 520px;
}

.therapist-card.card-short {
    height: 320px;
}

.therapist-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 25, 25, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.therapist-card:hover .therapist-hover-overlay {
    opacity: 1;
}

.whatsapp-btn-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transform: translateY(15px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.therapist-card:hover .whatsapp-btn-circle {
    transform: translateY(0);
}

.hover-text {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transform: translateY(15px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.05s;
}

.therapist-card:hover .hover-text {
    transform: translateY(0);
}

