/*
 * Tệp CSS tùy chỉnh cho dự án Sweet Spa
 * Version: 1.0
 */

/* --- Định nghĩa biến màu và font chữ --- */
:root {
    --primary-color: #b0d8e8; /* Màu xanh nhạt sang trọng */
    --dark-bg: #232020;       /* Màu nền tối chính */
    --secondary-bg: #2d2c2c; /* Màu nền phụ cho card, section */
    --text-color: #f8f6f4;    /* Màu chữ chính */
    --text-muted: #a9a9a9;  /* Màu chữ phụ, mờ hơn */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Work Sans', sans-serif;
}

/* --- Thiết lập cơ bản --- */
body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    scroll-behavior: smooth; /* Hiệu ứng cuộn mượt */
}

h1, h2, h3, h4, h5, h6, .display-3, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

/* --- Tùy chỉnh các thành phần Bootstrap --- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #000;
    transform: translateY(-2px);
}

.btn-outline-light {
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bg-dark {
    background-color: var(--dark-bg) !important;
}

.bg-secondary {
    background-color: var(--secondary-bg) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}


/* --- Header --- */
#main-header {
    background-color: rgba(35, 32, 32, 0.8);
    backdrop-filter: blur(10px); /* Hiệu ứng làm mờ nền */
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid #393737;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}
/* Tạo lớp phủ màu đen mờ để làm nổi bật chữ */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
/* Đảm bảo nội dung nằm trên lớp phủ */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* --- Sections Styling --- */
section {
    scroll-margin-top: 80px; /* Bù trừ cho sticky header khi cuộn */
}

/* --- Card (Dịch vụ, Blog) --- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: var(--primary-color);
}


/* --- Gallery --- */
#gallery .row > div {
    overflow: hidden; /* Ẩn phần ảnh bị tràn ra khi scale */
}

#gallery img {
    transition: transform 0.4s ease, filter 0.4s ease;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

#gallery a:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}


/* --- Form Styling --- */
.form-control, .form-select {
    background-color: #3f3f3f;
    border: 1px solid #555;
    color: white;
    padding: 12px;
}

.form-control:focus, .form-select:focus {
    background-color: #3f3f3f;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(176, 216, 232, 0.25);
    color: white;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* --- Footer --- */
footer a {
    text-decoration: none;
}
footer.bg-black {
    background-color: #000 !important;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-section {
        height: 60vh;
    }
    .display-3 {
        font-size: 2.8rem;
    }
    .display-5 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    #main-header nav {
        display: none; /* Tạm thời ẩn menu trên mobile, sẽ làm menu hamburger sau */
    }

    .hero-section {
        height: 50vh;
    }

    h1.display-3 {
        font-size: 2.5rem;
    }
    
    section {
        scroll-margin-top: 70px;
    }
    /* --- Animation cho Section khi cuộn --- */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- Gallery Page Styling --- */
.gallery-card {
    overflow: hidden;
}

.gallery-card img {
    transition: transform 0.4s ease;
    height: 280px;
    object-fit: cover;
}

.gallery-card a:hover img {
    transform: scale(1.05);
}

#imageModal .modal-content {
    background-color: rgba(35, 32, 32, 0.9) !important;
    backdrop-filter: blur(5px);
}
/* --- Blog Page Styling --- */
.blog-post-image {
    height: 250px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.card:hover .blog-post-image {
    filter: brightness(0.9);
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}
/* --- Single Blog Post Styling --- */
.post-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: #f0f0f0;
    margin: 2rem 0;
}
}