/* Tea Spa UI Upgrade — Design System & Components */

:root {
    --color-primary-900: #152a63;
    --color-primary-700: #1E3B8B;
    --color-accent-gold: #D4B069;
    --color-accent-gold-dark: #c4a25f;
    --color-accent-tea: #6B8F71;
    --color-surface-cream: #FAF7F2;
    --color-text-primary: #2C2C2C;
    --color-text-muted: #6B7280;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(30, 59, 139, 0.06);
    --shadow-md: 0 8px 24px rgba(30, 59, 139, 0.1);
    --shadow-lg: 0 16px 40px rgba(30, 59, 139, 0.12);
    --section-py: 96px;
    --section-py-sm: 64px;
}

body {
    color: var(--color-text-primary);
    background-color: #fff;
}

/* Buttons */
.btn-tea-primary {
    background: linear-gradient(135deg, var(--color-primary-700), var(--color-primary-900));
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-tea-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-tea-gold {
    background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-gold-dark));
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-tea-gold:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 176, 105, 0.35);
}

.btn-tea-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-tea-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

/* Navbar CTA */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

.navbar-book-btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 8px 20px !important;
}

@media (max-width: 991.98px) {
    .navbar-actions {
        margin: 16px 0 0;
        width: 100%;
    }

    .navbar-book-btn {
        width: 100%;
        text-align: center;
    }
}

/* Hero Upgrade */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(21, 42, 99, 0.88) 0%, rgba(30, 59, 139, 0.75) 50%, rgba(107, 143, 113, 0.4) 100%),
                url('../images/spa-hero.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 176, 105, 0.2);
    border: 1px solid rgba(212, 176, 105, 0.5);
    color: var(--color-accent-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.92;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.hero-trust-item i {
    color: var(--color-accent-gold);
    font-size: 1.1rem;
}

.hero-trust-item strong {
    color: #fff;
}

/* Services section upgrade */
.services-section {
    background: var(--color-surface-cream);
    padding: var(--section-py) 0;
}

.service-card-v2 {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(30, 59, 139, 0.06);
}

.service-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card-v2 .service-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-v2 .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-v2:hover .service-image img {
    transform: scale(1.05);
}

.service-card-v2 .service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 42, 99, 0.5), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
}

.service-card-v2:hover .service-image-overlay {
    opacity: 1;
}

.service-card-v2 .card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-v2 .service-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(212, 176, 105, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card-v2 .card-title {
    font-size: 1.15rem;
    color: var(--color-primary-700);
    margin-bottom: 8px;
}

.service-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 59, 139, 0.08);
    color: var(--color-primary-700);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.service-price-badge .duration {
    color: var(--color-text-muted);
    font-weight: 400;
}

.service-card-v2 .card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.service-card-v2 .card-actions .btn {
    flex: 1;
    border-radius: 50px;
    font-size: 0.875rem;
    padding: 8px 12px;
}

/* Promo banner */
.promo-banner-section {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--color-primary-900), var(--color-primary-700));
}

.promo-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 176, 105, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.promo-card .promo-discount {
    background: var(--color-accent-gold);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.promo-card h3 {
    color: #fff;
    margin: 0 0 4px;
    font-size: 1.35rem;
}

.promo-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-section {
    padding: var(--section-py) 0;
    background: #fff;
}

.testimonial-card {
    background: var(--color-surface-cream);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    border: 1px solid rgba(30, 59, 139, 0.06);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--color-accent-gold);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-700);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-author-info strong {
    display: block;
    color: var(--color-primary-700);
    font-size: 0.95rem;
}

.testimonial-author-info span {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Multi-step booking form */
.booking-form-v2 .booking-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    position: relative;
}

.booking-form-v2 .booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
    position: relative;
    z-index: 1;
}

.booking-form-v2 .booking-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.booking-form-v2 .booking-step.active .booking-step-number,
.booking-form-v2 .booking-step.completed .booking-step-number {
    background: var(--color-primary-700);
    color: #fff;
}

.booking-form-v2 .booking-step.completed .booking-step-number {
    background: var(--color-accent-tea);
}

.booking-form-v2 .booking-step-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

.booking-form-v2 .booking-step.active .booking-step-label {
    color: var(--color-primary-700);
    font-weight: 600;
}

.booking-form-v2 .form-step {
    display: none;
}

.booking-form-v2 .form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.booking-form-v2 .form-label {
    font-weight: 600;
    color: var(--color-primary-700);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.booking-form-v2 .form-control,
.booking-form-v2 .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    min-height: 48px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-form-v2 .form-control:focus,
.booking-form-v2 .form-select:focus {
    border-color: var(--color-primary-700);
    box-shadow: 0 0 0 3px rgba(30, 59, 139, 0.12);
}

.booking-form-v2 .form-control.is-invalid {
    border-color: #dc3545;
}

.booking-form-v2 .invalid-feedback {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
}

.booking-form-v2 .form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

.booking-form-v2 .booking-summary {
    background: var(--color-surface-cream);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.booking-form-v2 .booking-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}

.booking-form-v2 .booking-summary-item:last-child {
    border-bottom: none;
}

.booking-form-v2 .booking-summary-item span:first-child {
    color: var(--color-text-muted);
}

.booking-form-v2 .booking-summary-item span:last-child {
    font-weight: 600;
    color: var(--color-primary-700);
    text-align: right;
}

/* Mobile sticky bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-sticky-bar-inner {
    display: flex;
    gap: 8px;
}

.mobile-sticky-bar .sticky-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    transition: background 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mobile-sticky-bar .sticky-action i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-sticky-bar .sticky-action.call {
    color: #2ecc71;
}

.mobile-sticky-bar .sticky-action.zalo {
    color: #0068ff;
}

.mobile-sticky-bar .sticky-action.book {
    background: var(--color-accent-gold);
    color: #fff;
    border-radius: var(--radius-md);
    flex: 1.4;
}

.mobile-sticky-bar .sticky-action.book i {
    color: #fff;
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: block;
    }

    body {
        padding-bottom: 72px;
    }

    .floating-social {
        bottom: 80px !important;
    }
}

/* FAB floating social */
.floating-social.fab-mode .social-button:not(.fab-toggle) {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5) translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-social.fab-mode.open .social-button:not(.fab-toggle) {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.floating-social.fab-mode .fab-toggle {
    background: var(--color-primary-700);
    font-size: 20px;
}

.floating-social.fab-mode.open .fab-toggle i {
    transform: rotate(45deg);
}

.floating-social.fab-mode .fab-toggle i {
    transition: transform 0.3s ease;
}

@media (min-width: 769px) {
    .floating-social.fab-mode .fab-toggle {
        display: none;
    }

    .floating-social.fab-mode .social-button:not(.fab-toggle) {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section spacing override */
.about-section {
    padding: var(--section-py) 0;
}

.news-section {
    padding: var(--section-py-sm) 0;
}

#booking {
    padding: var(--section-py) 0;
    background: var(--color-surface-cream);
}

.booking-form-container {
    border-radius: var(--radius-xl) !important;
    border: 1px solid rgba(30, 59, 139, 0.06);
    box-shadow: var(--shadow-md) !important;
}

/* Branch card call button */
.branch-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent-tea);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: 12px;
    transition: color 0.2s ease;
}

.branch-call-btn:hover {
    color: var(--color-primary-700);
}

.branch-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.booking-page {
    background: var(--color-surface-cream);
    padding-top: var(--section-py-sm);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-py: 64px;
        --section-py-sm: 48px;
    }

    .hero-section {
        min-height: 70vh;
        padding: 100px 0 60px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .promo-card {
        flex-direction: column;
        text-align: center;
    }

    .service-card-v2 .card-actions {
        flex-direction: column;
    }
}
