/*
Theme Name: ANVITAGO
Theme URI: https://anvitago.com
Author: ANVITAGO Team
Author URI: https://anvitago.com
Description: Giao diện chuyên dụng cho nhà bán lẻ đa kênh ANVITAGO. Hỗ trợ tối ưu hiển thị logo thương hiệu (Cavaillès), tích hợp sẵn menu và trang tĩnh.
Version: 1.0.0
Text Domain: anvitago
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #176B4D;
    --secondary: #4A9B72;
    --accent: #E75B3A;
    --bg-light: #F4F8F5;
    --text-dark: #17372F;
    --border-light: #D6E5DD;
    --white: #FFFFFF;
    --font-main: 'Manrope', Arial, Helvetica, sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

a { color: var(--primary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--accent); }

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

/* HEADER & LOGO BẮT BUỘC (NẰM NGANG) */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

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

.logo-icon-box {
    width: 50px;
    height: 50px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.logo-icon-box img {
    height: 80px;
    width: auto;
    max-width: none;
    margin-top: -6px;
    object-fit: cover;
    object-position: top center;
}

.logo-text {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-text-anvita { color: var(--primary); }
.logo-text-go { color: var(--accent); }

/* MENU */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a { font-weight: 600; color: var(--text-dark); font-size: 16px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--primary); }

@media (max-width: 768px) {
    .site-header { height: 75px; }
    .logo-icon-box { width: 40px; height: 40px; }
    .logo-icon-box img { height: 65px; margin-top: -4px; }
    .logo-text { font-size: 24px; }
    .menu-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 75px; left: 0; width: 100%; background: var(--white); box-shadow: 0 4px 6px rgba(0,0,0,0.05); padding: 20px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 15px; }
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-weight: 700; color: var(--text-dark); margin-top: 0; }
.hero-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.2; margin-bottom: 20px; }
.section-title { font-size: clamp(28px, 4vw, 40px); text-align: center; margin-bottom: 50px; }

/* CÁC THÀNH PHẦN UI */
.btn { display: inline-block; padding: 12px 28px; background: var(--primary); color: var(--white); font-weight: 600; border-radius: 6px; border: none; cursor: pointer; }
.btn:hover { background: var(--secondary); color: var(--white); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #d14d2e; }

/* YÊU CẦU ĐẶC BIỆT 23: CSS BẮT BUỘC CHO LOGO CAVAILLÈS VÀ THƯƠNG HIỆU */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 60px; }

.brand-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(23,107,77,0.05);
    transition: transform 0.3s;
}
.brand-card:hover { transform: translateY(-5px); }

.brand-card__logo {
    width: 100%;
    height: 170px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-light);
}

.brand-card__logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    flex: 0 1 auto;
}

/* Fix tuyệt đối cho Cavaillès */
.brand-card__logo-image--cavailles {
    width: auto !important;
    height: auto !important;
    max-width: 280px !important;
    max-height: 105px !important;
    object-fit: contain !important;
}

.brand-card__content {
    position: static;
    padding: 22px 28px 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.brand-card__title,
.brand-card__description {
    position: static;
    margin-left: 0;
    margin-right: 0;
    transform: none;
}

.brand-card__title { font-size: 22px; margin-bottom: 10px; color: var(--primary); }
.brand-card__description { font-size: 15px; color: #555; line-height: 1.5; margin: 0; font-weight: 400; }

@media (max-width: 767px) {
    .brand-card__logo { height: 140px; padding: 24px; }
    .brand-card__logo-image--cavailles { max-width: 220px !important; max-height: 84px !important; }
}

/* GIAO DIỆN TRANG CHỦ */
.hero-section { background: var(--bg-light); padding: 80px 0; text-align: center; }
.hero-slogan { font-size: 20px; color: var(--accent); font-weight: 600; margin-bottom: 20px; display: block; }
.hero-desc { font-size: 18px; max-width: 800px; margin: 0 auto 40px; color: #444; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.section-padding { padding: 80px 0; }
.about-section { text-align: center; max-width: 900px; margin: 0 auto; }
.about-section p { font-size: 18px; margin-bottom: 30px; }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.value-card { background: var(--bg-light); padding: 30px; border-radius: 12px; text-align: center; }
.value-card h3 { color: var(--primary); margin-bottom: 15px; }

.channels-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.channel-card { text-align: center; padding: 40px 30px; border: 1px solid var(--border-light); border-radius: 12px; }
.channel-card img { height: 60px; object-fit: contain; margin-bottom: 20px; }

.commit-list { max-width: 800px; margin: 0 auto; list-style: none; padding: 0; }
.commit-list li { padding: 15px 0; border-bottom: 1px solid var(--border-light); font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 15px; }
.commit-list li:before { content: '✓'; color: var(--secondary); font-weight: bold; font-size: 24px; }

.cta-section { background: var(--primary); color: var(--white); text-align: center; padding: 80px 0; }
.cta-section h2 { color: var(--white); }

/* FOOTER */
.site-footer { background: var(--bg-light); padding: 60px 0 20px; border-top: 1px solid var(--border-light); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-size: 18px; margin-bottom: 20px; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: #555; }
.footer-menu a:hover { color: var(--accent); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-light); color: #777; font-size: 14px; }

/* FORM LIÊN HỆ */
.contact-form { max-width: 600px; margin: 0 auto; background: var(--bg-light); padding: 40px; border-radius: 12px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-light); border-radius: 6px; font-family: var(--font-main); }
.alert { padding: 15px; margin-bottom: 20px; border-radius: 6px; font-weight: 600; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* CONTENT PAGE */
.page-content { max-width: 900px; margin: 0 auto; padding: 60px 20px; }
.page-content img { max-width: 100%; height: auto; border-radius: 8px; }
