/* ==========================================================================
   RESET & THIẾT LẬP LAYOUT PHẲNG
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fdfcf9;
    color: #3e2723;
    line-height: 1.6;
}

/* ==========================================================================
   LAYOUT THANH HEADER (FLEXBOX)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: #2b160e; /* Màu nâu tối từ Figma của bạn */
    display: flex;
    justify-content: space-between; /* Đẩy logo sang trái, menu sang phải */
    align-items: center; /* Căn giữa theo chiều dọc */
    padding: 0 10%; /* Khoảng cách thụt lề hai bên thành */
    z-index: 1000;
}

.logo {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 35px; /* Khoảng cách đều giữa các chữ menu */
}

.nav-item {
    text-decoration: none;
    color: #d7ccc8;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item:hover, .nav-item.active {
    color: #ffffff;
}

/* ==========================================================================
   LAYOUT HERO BANNER CĂN GIỮA TUYỆT ĐỐI
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('../assets/images/banner.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center; /* Căn giữa nội dung nằm ngang */
    align-items: center;     /* Căn giữa nội dung nằm dọc */
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Làm tối ảnh nền nhẹ để nổi bật text */
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #f5f5f5;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* NÚT BẤM */
.btn {
    text-decoration: none;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-filled {
    background-color: #5d4037;
    color: #ffffff;
    border: 1px solid #5d4037;
}

.btn-filled:hover {
    background-color: #4e342e;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #2b160e;
}

/* ==========================================================================
   LAYOUT KHỐI TÍNH NĂNG (CSS GRID 4 CỘT)
   ========================================================================== */
.why-choose-us {
    padding: 100px 10%;
    text-align: center;
    background-color: #ffffff;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #2b160e;
}

.section-title p {
    color: #795548;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    /* Tự động chia làm 4 cột bằng nhau, tự co giãn khi màn hình nhỏ */
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px; /* Khoảng hở giữa các ô card */
}

.feature-card {
    padding: 28px 24px;
    background-color: #ffffff;
    border: 1px solid #f1ece6;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.feature-card h3 {
    font-size: 1.2rem;
    color: #2b160e;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.feature-card p {
    font-size: 0.95rem;
    color: #5d4037;
    margin: 0;
    opacity: 0.9;
}

.feature-card .feat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3efec;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .feat-icon img { width: 32px; height: 32px; }

/* ==========================================================================
   LAYOUT GIỚI THIỆU KHÔNG GIAN (CHIA 2 BÊN)
   ========================================================================== */
.about-section {
    padding: 100px 10%;
    background-color: #f7f3eb;
}

.about-container {
    display: flex;
    align-items: center; /* Giúp ảnh và khối chữ cân bằng ở giữa */
    gap: 60px; /* Khoảng cách giữa phần chữ và phần ảnh */
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    flex: 1; /* Chiếm chính xác 50% chiều ngang bố cục */
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: #2b160e;
}

.about-content p {
    margin-bottom: 20px;
    color: #4e342e;
    text-align: justify;
}

.about-action {
    margin-top: 30px;
}

.about-image {
    flex: 1; /* Chiếm 50% chiều ngang còn lại */
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* ==========================================================================
   LAYOUT BANNER KÊU GỌI (CTA)
   ========================================================================== */
.cta-section {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    color: #ffffff;
    background-image: url('https://images.unsplash.com/photo-1447933601403-0c6688de566e?q=80&w=1920');
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(43, 22, 14, 0.75);
}

.cta-content {
    position: relative; z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #d7ccc8;
}

/* ==========================================================================
   LAYOUT FOOTER CHÂN TRANG (MẠNG LƯỚI CỘT)
   ========================================================================== */
.footer {
    background-color: #1a0c07;
    color: #bcaaa4;
    padding: 70px 10% 25px;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between; /* Tự động dãn khoảng cách đều giữa các cột */
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
    min-width: 250px; /* Độ rộng tối thiểu của mỗi cột */
}

.footer-col h3, .footer-col h4 {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-col h3 { font-size: 1.35rem; }
.footer-col h4 { font-size: 1.1rem; }
.footer-col p { margin-bottom: 10px; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 25px;
    font-size: 0.8rem;
}

/* ==========================================================================
   TỰ ĐỘNG CHUYỂN ĐỔI LAYOUT TRÊN ĐIỆN THOẠI (RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column; /* Chuyển từ hàng ngang thành hàng dọc */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 0 5%; }
    .nav-menu { display: none; } /* Ẩn bớt thanh điều hướng trên mobile */
    .hero-title { font-size: 2.3rem; }
    .hero-cta { flex-direction: column; gap: 15px; }
    .footer-container { flex-direction: column; gap: 40px; }
}ner { flex-direction: column; gap: 40px; }
}