/* 
   Theme: Softblur, Hồng nhạt pha tím nhạt
   Vibe: Nhẹ nhàng, nữ tính, chuyên nghiệp, thoáng đãng
*/

:root {
    --primary-color: #d195c6; /* Tone màu tím hồng theo mockup */
    --secondary-color: #a87ba6; 
    --bg-base: #fcf6f9;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 1);
    --glass-shadow: 0 10px 30px 0 rgba(136, 96, 208, 0.08);
    --text-dark: #504456;
    --text-light: #7a7a7a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; color: #4a3652; margin-bottom: 0.5rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mt-3 { margin-top: 1rem; } .mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.section-padding { padding: 4rem 0; }
.flex-row { display: flex; flex-wrap: wrap; }
.align-center { align-items: center; } .gap-2 { gap: 2rem; }

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 3rem;
}

.glass-card-small {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #f0e6f2;
    box-shadow: 0 4px 15px 0 rgba(136, 96, 208, 0.05);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px 0 rgba(136, 96, 208, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.glass-btn {
    background: #ffffff;
    border: 1px solid #eee;
    color: var(--text-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.white-btn {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.white-btn:hover {
    background: #fcfcfc;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(209, 149, 198, 0.4);
}

.primary-btn:hover {
    background: #c283b6;
    box-shadow: 0 6px 20px rgba(209, 149, 198, 0.6);
}

/* Header */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { margin: 0; font-size: 1.8rem; color: #6a4c73; }
.logo span { color: var(--primary-color); }
.main-nav ul { list-style: none; display: flex; gap: 2rem; }
.main-nav a { font-weight: 500; font-size: 1.05rem; color: #555; }
.main-nav a:hover { color: var(--primary-color); }

/* Main Content */
.main-content { flex: 1; }

/* HERO SECTION - FIXED EXACTLY TO MATCH IMAGE */
.hero-section {
    position: relative;
    min-height: 90vh; /* Chiều cao ảnh */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; 
}

/* LỚP BACKGROUND ẢNH */
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* CHÚ Ý SỬA DÒNG DƯỚI NÀY - Dùng %20 thay vì dấu cách, và lùi 1 thư mục ../ */
    background-image: url('/images/background_main.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* LỚP GRADIENT LÀM MỜ CHÂN ẢNH ĐỂ KHỚP VỚI NỀN Trắng Hồng */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 350px;
    background: linear-gradient(to top, var(--bg-base) 0%, rgba(252, 246, 249, 0) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    border: none; /* Bỏ viền cho giống mockup */
    background: transparent; /* Trắng đục hơn */
}

.hero-title { font-size: 3.2rem; color: #5a4261; margin-bottom: 1.2rem; }
.hero-subtitle { font-size: 1.15rem; margin-bottom: 2.5rem; color: #666; font-weight: 400; }
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; }

/* Intro Section */
.intro-overlap {
    position: relative;
    z-index: 5;
    margin-top: -80px; /* Kéo hộp này lẹm lên trên phần chân ảnh một chút */
    background: rgba(255, 255, 255, 0.95); /* Trắng gần như đặc */
}

.intro-text { flex: 1.2; min-width: 350px; }
.intro-text p { margin-bottom: 1rem; color: #666; }
.section-title { font-size: 2.2rem; color: #5a4261; margin-bottom: 1.5rem; }

.intro-features { flex: 1; display: flex; flex-direction: column; gap: 1.2rem; min-width: 350px; }
.feature-icon { font-size: 1.8rem; color: var(--secondary-color); margin-top: 5px;}
.feature-item h4 { color: #5a4261; margin-bottom: 5px; font-size: 1.05rem; font-family: 'Montserrat', sans-serif; font-weight: 600;}
.feature-item p { font-size: 0.9rem; color: #777;}

/* Services */
.category-title { font-size: 1.5rem; color: #8a5a99; margin-bottom: 1.5rem; border-bottom: 2px dashed rgba(205, 168, 230, 0.5); padding-bottom: 10px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.service-item h4 { font-size: 1.1rem; color: #5d4066; margin-bottom: 10px; }

/* Footer */
.glass-footer { background: #ffffff; border-top: 1px solid #f0e6f2; padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-info { text-align: center; margin-bottom: 2rem; }
.footer-info h3 { font-size: 1.8rem; color: #5a4261; margin-bottom: 1rem; }
.footer-info p { color: #666; margin-bottom: 8px;}
.footer-copyright { text-align: center; font-size: 0.9rem; color: #999; border-top: 1px solid #f0e6f2; padding-top: 1.5rem; margin-top: 2rem; }

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 1rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-section { min-height: 70vh; padding-top: 120px; }
    .intro-overlap { margin-top: 0; }
}

/* =========================================
   BỐ CỤC DỊCH VỤ: ẢNH BÊN TRÁI - NỘI DUNG BÊN PHẢI
   ========================================= */
.service-category-row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 2.5rem;
}

/* Khung bọc ảnh bên trái */
.category-media {
    flex: 0 0 380px;
    position: sticky;
    top: 100px;
    border-radius: 30px; /* Bo góc tròn mềm mại */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(209, 149, 198, 0.25); /* Đổ bóng hồng tím mềm */
}

.category-media img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 30px;
    transition: transform 0.5s ease;
}

.category-media:hover img {
    transform: scale(1.04);
}

/* Khu vực nội dung bên phải */
.category-details {
    flex: 1;
}

.category-heading {
    font-size: 1.7rem;
    color: #5a4261;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-heading i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.category-intro {
    font-size: 1.05rem;
    color: #777;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

/* Danh sách các dịch vụ con bên phải */
.service-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.service-item-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #f2e6f2;
    border-radius: 18px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.service-item-box:hover {
    transform: translateX(6px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(209, 149, 198, 0.15);
    background: #ffffff;
}

.service-item-box h4 {
    font-size: 1.15rem;
    color: #4a3652;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.service-item-box h4 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.service-item-box p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding-left: 26px; /* Canh lề chữ thẳng hàng với tiêu đề */
}

/* Tương thích màn hình Tablet và Mobile */
@media (max-width: 992px) {
    .service-category-row {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .category-media {
        flex: auto;
        width: 100%;
        position: static;
    }
    
    .category-media img {
        height: 280px;
    }
}