/* 
   ==============================
   CƠ SỞ SẢN XUẤT GIÒ CHẢ
   NGUYỄN QUANG MINH 
   ==============================
*/

:root {
    --primary-color: #0f5b24; /* Dark green */
    --secondary-color: #1b7a33; /* Lighter green */
    --accent-color: #e32636; /* Red for brand name */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f4f6f3;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-40 { margin-top: 40px; }

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 40px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(15, 91, 36, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 20px;
}

/* ================== HEADER ================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 65px;
    width: auto;
    max-width: 300px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    line-height: 1;
}

.logo-main {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin: 2px 0;
}

.logo-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 1;
}

.nav ul {
    display: flex;
    gap: 25px;
}

.nav a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

.header-phone a {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone a:hover {
    background-color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}

/* ================== HERO ================== */
.hero {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('images/bg-01.png') center/cover;
    padding: 60px 0;
    position: relative;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 5px;
}

.hero-title {
    font-size: 80px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.hero-name {
    font-size: 40px;
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-slogan {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 40px;
}

.hero-slogan i {
    color: var(--primary-color);
    font-size: 24px;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.feature-text strong {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 800;
}

.feature-text span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-badge {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05) rotate(3deg);
        box-shadow: 0 10px 25px rgba(15,91,36,0.4);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

.hero-main-img {
    /* transparent image without background box */
    animation: float 4s ease-in-out infinite;
}

.hero-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 5px solid rgba(255,255,255,0.5);
    animation: pulse-badge 3s ease-in-out infinite;
    z-index: 2;
}

.badge-percent {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    font-weight: 700;
    margin: 5px 0;
}

.badge-subtext {
    font-size: 10px;
}

/* ================== PRODUCTS ================== */
.products {
    padding: 80px 0;
    background-color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img img {
    width: 100%;
    height: auto;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* ================== WHY CHOOSE US ================== */
.why-us {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.why-us-inner {
    display: flex;
    align-items: center;
    gap: 50px;
}

.why-us-content {
    flex: 1;
}

.reasons-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.reason-icon {
    font-size: 30px;
    color: var(--primary-color);
}

.reason-text strong {
    font-size: 18px;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.why-us-image {
    flex: 1;
}

.main-img-wrapper img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.stats-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 15px;
}

.stat-box {
    background-color: transparent;
    color: var(--primary-color);
    padding: 10px;
    text-align: center;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
}

.stat-box strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stat-box span {
    font-size: 14px;
    font-weight: 500;
}

/* ================== PROCESS ================== */
.process {
    padding: 80px 0;
}

.process-inner {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.process-images {
    flex: 1;
}

.img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.img-grid img {
    border-radius: 10px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.img-tall {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.process-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 40px;
}

.flow-step {
    text-align: center;
    flex: 1;
    padding: 0 5px;
}

.flow-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 auto 10px;
}

.flow-num {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 10px;
}

.flow-step strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.flow-step span {
    font-size: 12px;
    color: var(--text-light);
}



.commitments {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
}

.commit-title {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
}

.commit-list {
    margin-bottom: 20px;
}

.commit-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.commit-list i {
    color: var(--primary-color);
}

.certificates {
    display: flex;
    gap: 20px;
}

.cert-img {
    height: 120px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
}

/* ================== TESTIMONIALS ================== */
.testimonials {
    padding: 80px 0;
    background: url('https://www.transparenttextures.com/patterns/bamboo-texture.png'), var(--bg-light);
}

.testi-slider {
    overflow: hidden;
    margin-top: 40px;
    width: 100%;
    padding: 20px 0;
}

.testi-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testi-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    flex: 0 0 100%;
    margin: 0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .testi-card {
        flex: 0 0 calc(33.3333% - 20px);
        margin: 0 10px;
    }
}

.testi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-user strong {
    display: block;
    color: var(--primary-color);
    font-size: 18px;
}

.stars {
    color: #f1c40f;
    font-size: 14px;
}

.testi-text {
    font-style: italic;
    color: var(--text-light);
}

.testi-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* ================== FOOTER ================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.footer .logo-sub { color: #88c79a; }
.footer .logo-main, .footer .logo-name { color: var(--white); }

.footer-slogan {
    font-family: 'Dancing Script', cursive;
    font-size: 24px;
    margin: 20px 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-list i {
    margin-top: 5px;
}

.form-card {
    background-color: var(--white);
    color: var(--text-color);
    padding: 30px;
    border-radius: 20px;
}

.form-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 14px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #c01b24;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-title { font-size: 60px; }
    .hero-name { font-size: 30px; }
    .why-us-inner, .process-inner, .footer-inner { flex-direction: column; }
    .stats-boxes { grid-template-columns: repeat(2, 1fr); }
    .process-flow { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .flow-step { flex: 0 0 calc(50% - 15px); }
}

@media (max-width: 768px) {
    .hero, .about, .products, .why-us, .process, .testimonials {
        padding: 40px 0;
    }
    .hero {
        padding: 120px 0 40px;
    }
    
    .section-title {
        font-size: 26px;
    }

    .nav { display: none; }
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .nav ul {
        flex-direction: column;
        gap: 0;
    }
    .nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--bg-light);
    }
    .header-phone { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-features { justify-content: center; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-grid { grid-template-columns: 1fr; }
    
    .img-grid { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto;
    }
    .img-grid img { height: 250px; }
    .img-tall {
        grid-row: auto;
        grid-column: 1;
    }
    
    .certificates { flex-direction: column; align-items: center; gap: 20px; }
    .cert-img { max-width: 100%; width: 100%; height: auto; }
}

@media (max-width: 480px) {
    .section-title { font-size: 22px; }
    .product-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 36px; }
    .hero-name { font-size: 20px; }
    .hero-badge { width: 90px; height: 90px; }
    .badge-percent { font-size: 18px; }
    .logo-main { font-size: 20px; }
    .floating-buttons { right: 15px; bottom: 15px; transform: scale(0.85); transform-origin: bottom right; }
}

/* ================== FLOATING BUTTONS ================== */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: translateY(-5px);
}

.zalo-btn {
    background-color: #fff;
}

.zalo-icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zalo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.phone-btn {
    background-color: #d11a2a; /* Red for hotline */
    color: white;
    font-size: 24px;
}

.phone-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #d11a2a;
    animation: ring-pulse 1.5s infinite ease-out;
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
