@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4F6D4E; 
    --primary-light: #6a8c69;
    --primary-dark: #3a5239;
    --secondary-color: #2D4F2D;
    --accent-color: #D4A373;
    --bg-light: #ffffff; 
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, .navbar, .dropbtn, .dropdown-label {
    font-family: 'Merriweather', serif;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background: var(--primary-color);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.left-box {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.right-box {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.right-box a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.right-box a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.right-box a:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    transition: var(--transition);
}

.menu-icon:hover {
    color: var(--accent-color);
}

/* DROPDOWN */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: transparent;
    color: var(--white);
    border: none;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 10px 0;
    transition: var(--transition);
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.8rem 0;
    z-index: 10000;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-top: 3px solid var(--accent-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 0.8rem 1.5rem;
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color) !important;
    padding-left: 1.8rem !important;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    padding: 3rem 2rem;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -15px 0 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar i.fa-xmark {
    align-self: flex-end;
    font-size: 2rem;
    cursor: pointer;
    margin-bottom: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.sidebar i.fa-xmark:hover {
    transform: rotate(90deg);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 1.5rem;
}

.sidebar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.2rem;
    display: block;
    transition: var(--transition);
}

.sidebar a:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

/* HERO / BG SECTION */
.bg {
    width: 100%;
    height: 480px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/IMG/canhdongtraxanh.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    border-radius: 0 0 100px 100px;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.bg .logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* CONTENT BOXES */
.info {
    max-width: 1100px;
    margin: -80px auto 5rem;
    background: var(--white);
    padding: 4rem;
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    z-index: 5;
}

.h2 h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

/* INTRO & PROCESSING */
.info-inside {
    width: 100%;
    max-width: 900px;
    margin: 3rem auto 0;
}

.info-inside h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.info-inside h5 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 700;
}

.m-para p {
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.process {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
    text-align: left;
}

.process.row-reverse {
    flex-direction: row-reverse;
}

.process img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.process p {
    flex: 1;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
}

.process-divider {
    border: none;
    border-bottom: 1px dashed #eee;
    margin: 2rem 0;
}

/* PRODUCTS PAGE */
.products {
    padding: 6rem 8%;
    text-align: center;
}

.products h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    font-weight: 900;
}

.products h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.product-box {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    width: 100%;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #f8f9fa;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-item img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    transition: var(--transition);
}

.product-item h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.product-info {
    flex: 1.5;
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.8;
}

/* FOOTER */
.footer {
    background: #243523;
    color: var(--white) !important;
    padding: 5rem 8% 3rem;
    margin-top: 6rem;
    text-align: center;
}

.footer pre, .footer #contact {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    white-space: pre-wrap;
    line-height: 1.8;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .navbar {
        padding: 1rem 5%;
    }
    .process, .product-item {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .right-box {
        display: none;
    }
    .menu-icon {
        display: block;
    }
    .info {
        width: 92%;
        padding: 3rem 2rem;
    }
    .process, .product-item {
        flex-direction: column !important;
        text-align: center;
    }
    .process img, .product-item img {
        width: 100%;
        max-width: 400px;
    }
    .products h1 {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .bg {
        height: 380px;
        border-radius: 0 0 60px 60px;
    }
    .h2 h2 {
        font-size: 1.6rem;
    }
    .products h1 {
        font-size: 1.8rem;
    }
}
