/* ============================================================
   ĐÔNG Y HOÀ BÌNH – Premium Landing Page Styles
   Phong cách: Cổ kính – Uy tín – Mobile-first Responsive
   ============================================================ */

/* ----- 1. DESIGN TOKENS ----- */
:root {
    /* Palette */
    --forest:       #1B4332;
    --forest-light: #2D6A4F;
    --mahogany:     #5D2E14;
    --gold:         #C5973E;
    --gold-light:   #D4A94B;
    --gold-pale:    #F5EDDC;
    --parchment:    #FAF6EE;
    --cream:        #FFF9F0;
    --white:        #FFFFFF;
    --ink:          #2B1A0E;
    --ink-light:    #5C4A3A;
    --border:       #E3D5C1;
    --red:          #B33A3A;

    /* Typography */
    --font-body:    'Be Vietnam Pro', sans-serif;
    --font-heading: 'Noto Serif', 'Georgia', serif;

    /* Spacing */
    --section-pad:  100px;
    --wrap-width:   1160px;

    /* Effects */
    --ease:         cubic-bezier(.4,0,.2,1);
    --shadow-sm:    0 2px 8px rgba(43,26,14,.06);
    --shadow-md:    0 8px 30px rgba(43,26,14,.10);
    --shadow-lg:    0 20px 60px rgba(43,26,14,.12);
    --radius:       12px;
    --radius-lg:    20px;
}

/* ----- 2. RESET & BASE ----- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--parchment);
    -webkit-font-smoothing: antialiased;
}

img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; }
ul,ol { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
strong { font-weight:600; }
em { font-style:italic; color: var(--gold); }

h1,h2,h3 { font-family: var(--font-heading); font-weight:700; line-height:1.25; }

.wrap {
    max-width: var(--wrap-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- 3. TOP BAR ----- */
.topbar {
    background: var(--forest);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    padding: 8px 0;
    position: relative;
    z-index: 100;
}

.topbar .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar-phone {
    color: var(--gold-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-pulse {
    width: 8px; height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%,100% { opacity:1; }
    50% { opacity:.3; }
}

/* ----- 4. HEADER ----- */
.header {
    background: rgba(250,246,238,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 99;
    transition: box-shadow .3s var(--ease);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

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

.logo-img {
    border-radius: 8px;
    border: 2px solid var(--gold);
}

.logo-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--forest);
    display: block;
    line-height: 1.2;
}

.logo-sub {
    font-size: .7rem;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.nav-list {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 4px 0;
    transition: color .25s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width .3s var(--ease);
}

.nav-link:hover { color: var(--forest); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
    background: var(--gold);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    transition: all .25s var(--ease);
}

.nav-cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    width: 24px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .3s var(--ease);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- 5. HERO ----- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,67,50,.88) 0%, rgba(93,46,20,.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 0 80px;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(197,151,62,.2);
    border: 1px solid rgba(197,151,62,.4);
    color: var(--gold-light);
    font-size: .85rem;
    font-weight: 600;
    border-radius: 40px;
    margin-bottom: 28px;
    letter-spacing: .5px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0,0,0,.3);
    letter-spacing: -.02em;
}

.hero-title em {
    color: var(--gold-light);
    display: block;
    font-size: .85em;
}

.hero-desc {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 40px;
    opacity: .92;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trusts {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .88rem;
    opacity: .8;
}

.hero-trusts li { white-space: nowrap; }

/* ----- 6. BUTTONS ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 10px;
    transition: all .3s var(--ease);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn--gold:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197,151,62,.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.4);
}

.btn--outline:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.7);
}

.btn--green {
    background: #0068ff;
    color: var(--white);
    border-color: #0068ff;
}

.btn--green:hover { background: #0057d9; }

.btn--blue {
    background: #0068ff;
    color: var(--white);
    border-color: #0068ff;
}

.btn--blue:hover { background: #0057d9; }

.btn--full { width: 100%; justify-content: center; }

.btn-icon { font-size: 1.1em; }

/* ----- 7. STATS ----- */
.stats {
    background: var(--forest);
    padding: 36px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    color: var(--gold-light);
    display: block;
    line-height: 1;
}

.stat-num small { font-size: .6em; }

.stat-label {
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    margin-top: 4px;
    display: block;
}

/* ----- 8. SECTIONS COMMON ----- */
.section {
    padding: var(--section-pad) 0;
}

.section-tag {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-heading {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--ink);
    margin-bottom: 20px;
}

.section-heading em { color: var(--forest); font-style: italic; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ----- 9. ABOUT ----- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.about-media {
    position: relative;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-img-small {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    border-radius: var(--radius);
    border: 5px solid var(--parchment);
    box-shadow: var(--shadow-md);
}

.about-features {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feat-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-pale);
    border-radius: 12px;
}

.about-feat p {
    font-size: .88rem;
    color: var(--ink-light);
    margin-top: 2px;
}

/* ----- 10. INGREDIENTS ----- */
.ingredients {
    background: var(--cream);
}

.ing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ing-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all .35s var(--ease);
}

.ing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.ing-icon {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.ing-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--forest);
}

.ing-card p {
    font-size: .88rem;
    color: var(--ink-light);
    line-height: 1.65;
}

/* ----- 11. PRODUCTS ----- */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    max-width: 860px;
    margin: 0 auto;
}

.prod-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .35s var(--ease);
}

.prod-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.prod-img-wrap {
    position: relative;
    overflow: hidden;
}

.prod-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.prod-card:hover .prod-img {
    transform: scale(1.05);
}

.prod-badge {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 700;
}

.prod-badge--alt { background: var(--forest); }

.prod-body {
    padding: 28px;
}

.prod-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--forest);
}

.prod-desc {
    font-size: .9rem;
    color: var(--ink-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.prod-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.prod-price small {
    font-size: .55em;
    color: var(--ink-light);
    font-family: var(--font-body);
}

/* ----- 12. GALLERY ----- */
.gallery {
    padding: 50px 0;
    background: var(--cream);
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.gallery-scroll img {
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease);
}

.gallery-scroll img:hover { transform: scale(1.03); }

/* ----- 13. USAGE ----- */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.usage-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    transition: all .3s var(--ease);
}

.usage-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.usage-num {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--gold-pale);
    font-weight: 700;
    position: absolute;
    top: 16px; right: 20px;
    line-height: 1;
}

.usage-card h3 {
    font-size: 1.15rem;
    color: var(--forest);
    margin-bottom: 16px;
}

.usage-card li {
    font-size: .9rem;
    margin-bottom: 12px;
    color: var(--ink-light);
    padding-left: 16px;
    position: relative;
}

.usage-card li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.4em;
    line-height: 1.2;
}

/* ----- 14. CAUTION ----- */
.caution {
    background: var(--cream);
}

.caution-box {
    background: var(--white);
    border: 2px solid var(--red);
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.caution-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.caution-icon { font-size: 1.8rem; }

.caution-header h2 {
    font-size: 1.6rem;
    color: var(--red);
}

.caution-box p {
    font-size: .95rem;
    color: var(--ink-light);
    margin-bottom: 12px;
    line-height: 1.7;
}

.caution-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* ----- 15. ADDRESS ----- */
.address-section {
    background: var(--forest);
    color: var(--white);
    text-align: center;
}

.address-section .section-tag { color: var(--gold-light); }
.address-section .section-heading { color: var(--white); }
.address-section em { color: var(--gold-light); }

.address-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: .9;
}

.delivery-note {
    font-size: 1rem;
    color: var(--gold-light);
    font-weight: 600;
}

/* ----- 16. FOOTER ----- */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,.5);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.footer-brand small {
    display: block;
    color: rgba(255,255,255,.4);
    font-size: .75rem;
}

.footer-logo { border-radius: 6px; }

.footer-contact a { color: var(--gold-light); }

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: .8rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* ----- 17. STICKY CTA ----- */
.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 98;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all .4s var(--ease);
    pointer-events: none;
}

.sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 50px;
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
    box-shadow: var(--shadow-md);
    transition: all .3s var(--ease);
}

.sticky-btn:hover { transform: scale(1.05); }

.sticky-btn--phone { background: var(--gold); }
.sticky-btn--zalo  { background: #0068ff; }

.sticky-icon { font-size: 1.2rem; }

/* ----- 18. RESPONSIVE: TABLET ----- */
@media (max-width: 1024px) {
    :root { --section-pad: 72px; }

    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-img-small { position: static; width: 160px; margin-top: -40px; margin-left: auto; }

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

/* ----- 19. RESPONSIVE: MOBILE ----- */
@media (max-width: 768px) {
    :root { --section-pad: 56px; }

    /* Topbar */
    .topbar-address { display: none; }
    .topbar .wrap { justify-content: center; }

    /* Header */
    .header-inner { height: 64px; }
    .logo-brand { font-size: 1.05rem; }

    .hamburger { display: flex; }

    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--parchment);
        padding: 90px 32px 40px;
        box-shadow: -8px 0 30px rgba(0,0,0,.15);
        transition: right .35s var(--ease);
        z-index: 100;
    }

    .nav.open { right: 0; }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link, .nav-cta {
        display: block;
        padding: 16px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-cta {
        margin-top: 16px;
        text-align: center;
        border-bottom: none;
        border-radius: 10px;
    }

    .nav-link::after { display: none; }

    /* Hero */
    .hero { min-height: 85vh; }
    .hero-content { padding: 100px 0 60px; }
    .hero-desc { font-size: 1rem; }
    .hero-trusts { flex-direction: column; gap: 8px; align-items: center; }

    /* Grid layouts */
    .about-grid { text-align: center; }
    .about-feat { flex-direction: column; align-items: center; text-align: center; }
    .ing-grid { grid-template-columns: 1fr 1fr; }
    .prod-grid { grid-template-columns: 1fr; max-width: 420px; }
    .usage-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    /* Caution */
    .caution-box { padding: 32px 24px; }

    /* Footer */
    .footer-inner { flex-direction: column; text-align: center; }

    /* Sticky CTA */
    .sticky-cta {
        bottom: 16px;
        left: 16px; right: 16px;
        flex-direction: row;
    }

    .sticky-btn { flex: 1; justify-content: center; padding: 14px 16px; }
    .sticky-text { font-size: .85rem; }
}

@media (max-width: 420px) {
    .hero-title { font-size: 2rem; }
    .section-heading { font-size: 1.6rem; }

    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .caution-actions { flex-direction: column; }

    .ing-grid { grid-template-columns: 1fr; }
    .gallery-scroll img { width: 260px; height: 180px; }
}

/* ----- 20. ANIMATIONS ----- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
