/* 1. THIẾT LẬP CƠ BẢN */
:root {
    --primary-color: #0f3d3e; /* Xanh cổ vịt đậm */
    --accent-color: #c6a664;  /* Vàng đồng */
    --text-color: #333;
    --bg-light: #f4f4f4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; } /* Cuộn trang mượt mà */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* 2. MENU */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.menu { list-style: none; display: flex; gap: 30px; }
.menu a {
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
}
.btn-contact {
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    color: var(--accent-color) !important;
    border-radius: 4px;
}

/* 3. HERO SECTION (Ảnh nền) */
.hero {
    height: 90vh;
    /* ĐÂY LÀ CHỖ QUAN TRỌNG ĐỂ HIỆN ẢNH NỀN */
    background-image: url('denonghoangmuoi.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    /* Màu xanh phủ mờ nhẹ để chữ nổi bật */
    background: linear-gradient(to bottom, rgba(15, 61, 62, 0.6), rgba(15, 61, 62, 0.3));
}

.hero-frame {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(198, 166, 100, 0.5);
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    max-width: 900px;
    text-align: center;
}

.top-caption { color: var(--accent-color); letter-spacing: 3px; text-transform: uppercase; font-size: 14px; margin-bottom: 10px;}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 15px;
}
.highlight { color: var(--accent-color); font-style: italic; }
.sub-caption { color: #eee; font-style: italic; font-size: 1.1rem; }
.ornament { color: var(--accent-color); margin: 20px 0; }

.btn-group { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.btn-main {
    background-color: var(--accent-color);
    color: #0f3d3e;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}
.btn-outline {
    border: 2px solid var(--accent-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}
.btn-outline:hover { background: var(--accent-color); color: #0f3d3e; }

/* 4. INTRO & LIST */
.intro-card {
    max-width: 1000px;
    margin: -80px auto 50px auto;
    background: white;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
}
.card-content { flex: 1; padding: 40px; }
.card-content h2 { font-family: 'Playfair Display', serif; color: var(--primary-color); font-size: 1.8rem; margin-bottom: 15px; }
.service-list { list-style: none; margin-top: 20px; }
.service-list li { margin-bottom: 10px; color: #333; }
.card-image { flex: 1; background: #eee; min-height: 300px;}
.card-image img { width: 100%; height: 100%; object-fit: cover; }

/* 5. SẢN PHẨM */
.products-section { padding: 60px 20px; background-color: #f9f9f9; text-align: center; }
.section-title h3 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--primary-color); }
.product-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.product-card { background: white; width: 300px; padding-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.p-img { height: 200px; overflow: hidden; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card h4 { margin: 15px 10px 5px; color: var(--primary-color); font-family: 'Playfair Display', serif; }
.price { display: inline-block; color: #d32f2f; font-weight: bold; border: 1px dashed #d32f2f; padding: 5px 15px; border-radius: 20px; margin-top: 10px; font-size: 0.9rem;}

/* FOOTER */
footer { background: var(--primary-color); color: white; text-align: center; padding: 40px 20px; }

/* Mobile */
@media (max-width: 768px) {
    .navbar { flex-direction: column; padding: 15px; }
    .menu { display: none; } /* Tạm ẩn menu mobile cho gọn */
    .intro-card { flex-direction: column; margin: 0; }
    .hero h1 { font-size: 2rem; }
}
/* --- CODE NÚT LIÊN HỆ NỔI --- */
.floating-contact {
    position: fixed;
    bottom: 30px;  /* Cách đáy màn hình 30px */
    right: 20px;   /* Cách bên phải 20px */
    z-index: 9999; /* Luôn nổi lên trên cùng */
    display: flex;
    flex-direction: column; /* Xếp dọc */
    gap: 15px; /* Khoảng cách giữa các nút */
}

.btn-contact-float {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
    position: relative;
}

/* Hiệu ứng khi di chuột vào thì to lên xíu */
.btn-contact-float:hover {
    transform: scale(1.1);
}

/* Màu nút Zalo */
.btn-zalo {
    background-color: white;
    border: 1px solid #0068ff;
}
.btn-zalo img {
    width: 35px;
    height: auto;
}

/* Màu nút Messenger */
.btn-mess {
    background: linear-gradient(to bottom right, #00C6FF, #0078FF);
    color: white;
    font-size: 30px;
}

/* Màu nút Điện thoại (Có hiệu ứng rung) */
.btn-phone {
    background-color: #d32f2f; /* Màu đỏ nổi bật */
    color: white;
    font-size: 25px;
    animation: phone-shake 1.5s infinite; /* Rung liên tục */
}

/* Tạo hiệu ứng rung lắc cho nút gọi điện */
@keyframes phone-shake {
    0% { transform: rotate(0) scale(1) skew(1deg); }
    10% { transform: rotate(-25deg) scale(1) skew(1deg); }
    20% { transform: rotate(25deg) scale(1) skew(1deg); }
    30% { transform: rotate(-25deg) scale(1) skew(1deg); }
    40% { transform: rotate(25deg) scale(1) skew(1deg); }
    50% { transform: rotate(0) scale(1) skew(1deg); }
    100% { transform: rotate(0) scale(1) skew(1deg); }
}
/* --- PHẦN DỊCH VỤ TÂM LINH --- */
.spiritual-services {
    padding: 60px 20px;
    background-color: white;
    text-align: center;
}

.service-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 30px auto 0;
}

.service-card {
    background: white;
    width: 270px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-align: left; /* Chữ canh trái giống mẫu */
    position: relative;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.s-img {
    height: 160px;
    overflow: hidden;
}

.s-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.service-card:hover .s-img img { transform: scale(1.1); }

/* Icon tròn tròn màu hồng nhạt */
.s-icon-circle {
    width: 50px;
    height: 50px;
    background-color: #ffebee; /* Màu hồng nhạt */
    color: #d32f2f; /* Màu đỏ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-left: 20px;
    margin-top: -25px; /* Đẩy lên đè vào ảnh */
    position: relative;
    z-index: 2;
    border: 3px solid white; /* Viền trắng cho nổi */
}

.s-content {
    padding: 10px 20px 25px;
}

.s-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.s-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px; /* Để các ô đều nhau */
}

.s-link {
    text-decoration: none;
    color: #d32f2f;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

.s-link:hover {
    color: #b71c1c;
    padding-left: 5px; /* Hiệu ứng chạy sang phải */
}