/* =========================================
   1. VARIABLES & DESIGN SYSTEM
========================================= */
:root {
    --primary: #8B5A2B;
    --accent: rgb(211, 181, 141);
    --bg-main: #FFFFFF;
    --bg-light: #F9F6F0;
    --text-heading: #2C1E16;
    --text-body: #4A4A4A;
    --footer-bg: #1A120B;
    --font-main: 'Be Vietnam Pro', sans-serif;
    
}

/* =========================================
   2. RESET & TYPOGRAPHY
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Giúp khi nhấn vào link menu, trang sẽ dừng lại cách đỉnh một khoảng bằng navbar */
    scroll-padding-top: 50px; 
        
    scroll-behavior: smooth;
    
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}



h2,
h3,
h4 {
    color: var(--text-heading);
}

h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 40px;
    
}

h2.section-title {
    font-weight: 600;
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 10px;
}

h4 {
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
}

p {
    font-weight: 400;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}



/* =========================================
   3. NAVBAR (STICKY & RESPONSIVE)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: transparent;
    color: #fff;
    transition: all 0.4s ease;
    height: 80px;

    
}

.navbar.scrolled {
    background: var(--bg-main);
    color: var(--text-heading);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 40px;
}

.nav-brand a {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
   
    
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 16px;
}

.nav-menu a:hover {
    color: var(--accent);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: currentColor;
    border-radius: 3px;
    transition: 0.3s;
}

/* =========================================
   4. HERO SECTION
========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Lớp phủ đen 50% */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-overlay h1 {
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-overlay .slogan {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    background: #4CAF50;
    
    color: #fff;
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    animation: pulse-call 1s infinite;
}


.btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}


/* =========================================
   5. SERVICES & PRODUCTS
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgb(211, 181, 141);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* =========================================
   6. GALLERY
========================================= */
.gallery-grid {
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    z-index: 2;
    position: relative;
    box-shadow: 0 10px 20px rgb(255, 255, 255);
}

/* =========================================
   7. STORY & ABOUT US
========================================= */
.story-section .intro-text {
    font-size: 18px;
    font-style: italic;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.story-item {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.btn-link {
    display: table;
    margin: 40px auto 0;
    color: var(--primary);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--text-heading);
    text-decoration: underline;
}

/* =========================================
   8. WHY CHOOSE US
========================================= */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.features-list li {
    background: #fff;
    padding: 20px 20px 20px 50px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.features-list li::before {
    content: '✔️';
    position: absolute;
    left: 20px;
    top: 20px;
    color: var(--primary);
    font-size: 16px;
}

/* =========================================
   9. FOOTER
========================================= */
.site-footer {
    background: var(--footer-bg);
    color: #ccc;
    text-align: center;
    padding: 40px 20px 80px 20px;
}

.site-footer .brand-name {
    color: #fff;
    font-size: 20px;
    margin-bottom: 10px;
}

.site-footer a {
    color: var(--accent);
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-slogan {
    margin-top: 10px;
    font-style: italic;
}

/* =========================================
   10. FLOATING CTA & ANIMATIONS
========================================= */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 999;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    gap: 8px;   
    color: var(--text-heading);
    overflow: hidden;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 14px;
}
.btn-contact img {
    width: 100%;          /* Điều chỉnh kích thước ảnh so với nút (tùy ý) */
    height: 100%;         /* Giữ tỉ lệ 1:1 */
    object-fit: contain; /* Đảm bảo ảnh không bị méo */
    display: block;           /* Loại bỏ khoảng trắng dưới ảnh */
}


.btn-call {
    background: var(--primary);
    color: #fff;
    animation: pulse-call 2s infinite;
}
.btn-zalo {
    background: #0068FF;
    color: #fff;
    animation: pulse-zalo 2s infinite;
}

.btn-call:hover,
.btn-zalo:hover,
.btn-map:hover {
    
    transform: translateY(-3px);
}

@keyframes pulse-call {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}
@keyframes pulse-zalo {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 104, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 104, 255, 0);
    }
}

/* Micro-interaction: Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   11. RESPONSIVE DESIGN (MOBILE)
========================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2.section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .section {
        padding: 50px 0;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
        color: #fff;
    }

    .navbar.scrolled .hamburger span {
        background-color: var(--text-heading);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        gap: 0;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Ẩn menu bằng clip-path cho mượt */
        transition: clip-path 0.4s ease-in-out;
    }

    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-menu a {
        color: var(--text-heading);
        display: block;
    }

    /* Layouts */
    .services-grid,
    .story-grid,
    .features-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Float buttons adjustments for fat-fingers */
    .float-buttons {
        bottom: 20px;
        right: 20px;
    }

    /* .btn-contact {
        padding: 15px 20px;
        font-size: 15px;
    } */
}