:root {
    --ink: #24140d;
    --brown: #5b321d;
    --clay: #8a4d2b;
    --red: #8f1f1b;
    --gold: #d9a441;
    --amber: #f2c46b;
    --cream: #fff4dc;
    --paper: #f7e6c4;
    --paper-dark: #ead0a3;
    --sea: #103f46;
    --shadow: 0 24px 70px rgba(62, 35, 17, 0.22);
    --radius: 24px;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 5%, rgba(217,164,65,.22), transparent 30%),
        linear-gradient(180deg, #fff6df 0%, #f1d7aa 48%, #fff1d1 100%);
    line-height: 1.75;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    z-index: 10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

body.sidebar-layout {
    padding-left: 300px;
}
.site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: 300px;
    min-height: 100vh;
    z-index: 20;
    background:
        linear-gradient(180deg, rgba(60, 30, 14, .96), rgba(39, 22, 13, .98)),
        radial-gradient(circle at 50% 0%, rgba(217,164,65,.22), transparent 45%);
    backdrop-filter: blur(18px);
    border-right: 1px solid rgba(255, 226, 169, .24);
    border-bottom: 0;
    box-shadow: 18px 0 60px rgba(36, 20, 13, .24);
}
.nav-wrap { min-height: 100vh; padding: 28px 22px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); font-weight: 800; line-height: 1.08; text-transform: uppercase; letter-spacing: .06em; font-size: .92rem; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 226, 169, .2); }
.brand-logo { width: 62px; height: 62px; border: 1px solid var(--gold); border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.08); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 10px; color: rgba(255, 244, 220, .9); font-weight: 700; font-size: .93rem; flex: 0; }
.main-nav a { position: relative; white-space: normal; padding: 13px 14px 13px 18px; border-radius: 16px; border: 1px solid rgba(255, 226, 169, .12); background: rgba(255,255,255,.045); transition: .25s ease; }
.main-nav a:hover { color: #fff7df; background: rgba(217,164,65,.18); border-color: rgba(217,164,65,.42); transform: translateX(5px); }
.main-nav a::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 999px; background: var(--gold); opacity: 0; transition: .25s ease; }
.main-nav a:hover::after { opacity: 1; }
.site-header .btn { margin-top: auto; width: 100%; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 800; font-family: inherit; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.btn:hover { transform: translateY(-3px); }
.btn-gold { color: #351b0d; background: linear-gradient(135deg, #ffe39a, var(--gold) 48%, #b97522); box-shadow: 0 12px 28px rgba(171, 103, 27, .28); }
.btn-ghost { color: var(--cream); border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.btn-full { width: 100%; }

.hero { position: relative; min-height: 100vh; padding: 92px 0 90px; display: grid; align-items: center; color: var(--cream); background: linear-gradient(135deg, rgba(37,19,10,.92), rgba(115,42,22,.82)), url('../assets/images/hero_bg.png') center/cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto -12% -35% -12%; height: 420px; background: radial-gradient(ellipse at center, rgba(217,164,65,.35), transparent 66%); }
.hero-grain { position: absolute; inset: 0; background: radial-gradient(circle at 72% 20%, rgba(255,211,122,.22), transparent 28%), linear-gradient(90deg, rgba(15,63,70,.2), transparent 45%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .72fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--amber); text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; font-weight: 800; margin-bottom: 14px; }
.eyebrow.dark { color: var(--red); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.08; }
h1 { font-size: clamp(3rem, 6vw, 6.9rem); max-width: 900px; text-shadow: 0 8px 30px rgba(0,0,0,.25); }
.hero-lead { max-width: 740px; margin: 28px 0 34px; font-size: 1.17rem; color: rgba(255,244,220,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.heritage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; max-width: 640px; }
.heritage-stats div { padding: 18px; border: 1px solid rgba(255,226,169,.25); background: rgba(255,255,255,.08); border-radius: 18px; backdrop-filter: blur(10px); }
.heritage-stats strong { display: block; color: var(--amber); font: 800 2rem var(--font-title); }
.heritage-stats span { color: rgba(255,244,220,.76); font-size: .9rem; }
.hero-card { position: relative; padding: 36px; border-radius: 38px; background: linear-gradient(180deg, rgba(255,244,220,.95), rgba(231,195,129,.9)); box-shadow: var(--shadow); color: var(--brown); border: 1px solid rgba(255,255,255,.55); transform: rotate(1.5deg); }
.hero-card img { width: min(340px, 100%); height: 340px; object-fit: cover; border-radius: 50%; margin: 30px auto 28px; border: 6px double rgba(143,31,27,.42); filter: drop-shadow(0 28px 30px rgba(84,42,18,.28)); background: #fff4dc; }
.sun-seal { position: absolute; right: -18px; top: 28px; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--red); color: var(--cream); border: 3px double var(--gold); font-weight: 800; line-height: 1.2; box-shadow: 0 16px 30px rgba(0,0,0,.22); }

.section { padding: 100px 0; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
h2 { font-size: clamp(2.2rem, 4vw, 4.4rem); color: var(--brown); }
.prose p { margin-bottom: 18px; font-size: 1.08rem; }
.story { background: linear-gradient(180deg, var(--paper), #fff2d6); }
.craft { background: #fff7e8; position: relative; }
.section-heading { max-width: 820px; margin: 0 auto 52px; text-align: center; }
.section-heading p:not(.eyebrow) { margin-top: 16px; color: #6f4b32; }
.section-heading.light h2, .section-heading.light p:not(.eyebrow) { color: var(--cream); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { min-height: 280px; padding: 34px 26px; border-radius: var(--radius); background: linear-gradient(180deg, #fffaf0, #efd4a7); border: 1px solid rgba(138,77,43,.16); box-shadow: 0 16px 45px rgba(91,50,29,.09); transition: .3s ease; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.feature-card span { color: var(--red); font-weight: 900; letter-spacing: .16em; }
.feature-card h3 { margin: 18px 0 14px; font-size: 1.55rem; color: var(--brown); }
.feature-card p { color: #6b452b; }

.products { background: linear-gradient(135deg, #143f42, #27160d 56%, #77251b); color: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { overflow: hidden; border-radius: 28px; background: rgba(255,244,220,.95); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.34); transition: .3s ease; }
.product-card:hover { transform: translateY(-9px); }
.product-card.featured { transform: translateY(-20px); }
.product-card.featured:hover { transform: translateY(-29px); }
.product-card img { width: 100%; height: 250px; object-fit: cover; background: #ead0a3; }
.product-card img.product-logo-img { object-fit: contain; padding: 26px; background: radial-gradient(circle, #fff8e8 0%, #ead0a3 72%); }
.product-card div { padding: 30px; }
.tag { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(143,31,27,.1); color: var(--red); font-weight: 800; font-size: .8rem; text-transform: uppercase; }
.product-card h3 { color: var(--brown); font-size: 1.7rem; margin-bottom: 12px; }
.product-card p { margin-bottom: 20px; }

.culture { background: linear-gradient(180deg, #fff2d6, var(--paper-dark)); }
.timeline-list { display: grid; gap: 18px; max-width: 900px; margin: 0 auto; }
.timeline-list article { position: relative; padding: 30px 34px 30px 76px; border-radius: 24px; background: rgba(255,250,240,.75); border: 1px solid rgba(138,77,43,.14); box-shadow: 0 12px 34px rgba(91,50,29,.08); }
.timeline-list article::before { content: ""; position: absolute; left: 30px; top: 34px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px rgba(143,31,27,.12); }
.timeline-list h3 { font-size: 1.6rem; color: var(--brown); margin-bottom: 8px; }

.closing { background: url('../assets/images/hero_bg.png') center/cover fixed; padding: 120px 0; }
.closing-card { max-width: 930px; padding: 56px; border-radius: 34px; color: var(--cream); background: linear-gradient(135deg, rgba(40,20,10,.9), rgba(121,41,23,.86)); box-shadow: var(--shadow); text-align: center; border: 1px solid rgba(255,226,169,.28); }
.closing-card h2 { color: var(--cream); margin-bottom: 20px; }
.closing-card p { margin-bottom: 24px; color: rgba(255,244,220,.88); }

.legacy-article { background: radial-gradient(circle at top left, rgba(193,126,56,.18), transparent 34%), radial-gradient(circle at bottom right, rgba(19,98,90,.12), transparent 32%), linear-gradient(180deg, #fff8e8, #f4e4c3); }
.article-shell { max-width: 1120px; }
.article-card { position: relative; overflow: hidden; counter-reset: article-section; padding: clamp(28px, 5vw, 62px); border-radius: 34px; background: rgba(255, 252, 241, .95); border: 1px solid rgba(139, 82, 35, .18); box-shadow: 0 24px 70px rgba(94, 54, 24, .13); }
.article-card::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(143,31,27,.16); border-radius: 26px; pointer-events: none; }
.article-card::after { content: "Di Sản"; position: absolute; right: -28px; top: 40%; transform: rotate(-90deg); font-family: 'Playfair Display', serif; font-size: clamp(3.5rem, 8vw, 7rem); color: rgba(143,31,27,.045); letter-spacing: .08em; pointer-events: none; }
.article-figure { position: relative; margin: 0 0 30px; padding: 12px; border-radius: 30px; background: linear-gradient(135deg, #8f1f1b, #c99738); box-shadow: 0 26px 55px rgba(70,35,13,.2); transform: rotate(-.6deg); }
.article-figure::after { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(255,244,220,.55); border-radius: 18px; pointer-events: none; }
.article-figure img { display: block; width: 100%; height: clamp(280px, 44vw, 520px); object-fit: cover; border-radius: 22px; filter: sepia(.18) contrast(1.04) saturate(.88); }
.article-figure figcaption { padding: 12px 10px 2px; color: #fff3d0; font-weight: 800; text-align: center; letter-spacing: .02em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.article-meta span { padding: 8px 14px; border-radius: 999px; background: rgba(143,31,27,.08); color: var(--red); border: 1px solid rgba(143,31,27,.14); font-weight: 800; font-size: .86rem; }
.article-card h2 { counter-increment: article-section; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin: 36px 0 16px; font-size: clamp(1.45rem, 3vw, 2.35rem); color: var(--brown); }
.article-card h2::before { content: counter(article-section, decimal-leading-zero); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--red), #c99738); color: #fff8e8; font-family: 'Be Vietnam Pro', sans-serif; font-size: 1rem; box-shadow: 0 10px 24px rgba(143,31,27,.18); }
.article-card h3 { margin: 26px 0 12px; font-size: 1.28rem; color: var(--teal); }
.article-card p { margin: 0 0 16px; color: #573b25; font-size: 1.055rem; line-height: 1.92; }
.article-card p:not(.article-intro) { text-align: justify; }
.article-card ul, .article-card ol { margin: 0 0 22px; padding: 0; color: #573b25; line-height: 1.85; list-style: none; display: grid; gap: 10px; }
.article-card li { position: relative; margin: 0; padding: 14px 16px 14px 48px; border-radius: 18px; background: rgba(255,255,255,.52); border: 1px solid rgba(139,82,35,.1); }
.article-card li::before { content: "✦"; position: absolute; left: 18px; top: 14px; color: var(--gold); font-weight: 900; }
.article-card .article-intro { font-size: 1.2rem; color: #3f2a1a; padding: 22px 24px; border-left: 5px solid var(--gold); background: linear-gradient(90deg, rgba(201,151,56,.18), rgba(255,255,255,.42)); border-radius: 0 20px 20px 0; box-shadow: inset 0 0 0 1px rgba(201,151,56,.08); }
.article-card .article-intro::first-letter { float: left; font-family: 'Playfair Display', serif; font-size: 4.2rem; line-height: .82; padding: 8px 10px 0 0; color: var(--red); }
.article-cta { position: relative; z-index: 1; margin-top: 40px; padding: 26px; border-radius: 26px; background: linear-gradient(135deg, rgba(143,31,27,.94), rgba(84,43,23,.94)); color: #fff8e8; display: flex; gap: 18px; align-items: center; justify-content: space-between; box-shadow: 0 18px 48px rgba(84,43,23,.22); }
.article-cta span { display: block; color: #f5c66f; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: 6px; }
.article-cta strong { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 3vw, 2rem); }
@media (max-width: 720px) { .article-card h2 { grid-template-columns: 1fr; } .article-cta { align-items: stretch; flex-direction: column; } }

.contact { background: #fff8e9; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.contact-list { margin-top: 24px; list-style: none; display: grid; gap: 10px; }
.order-form { padding: 36px; border-radius: 30px; background: linear-gradient(180deg, #fffdf7, #f0d8ad); box-shadow: var(--shadow); border: 1px solid rgba(138,77,43,.15); }
.order-form label { display: block; font-weight: 800; color: var(--brown); margin: 14px 0 8px; }
.order-form input, .order-form select, .order-form textarea { width: 100%; border: 1px solid rgba(91,50,29,.2); background: rgba(255,255,255,.75); border-radius: 16px; padding: 15px 16px; font: inherit; color: var(--ink); outline: none; transition: .25s ease; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(217,164,65,.18); }

.site-footer { padding: 52px 0 24px; color: rgba(255,244,220,.82); background: #2a160d; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 30px; }
.footer-grid h3 { color: var(--gold); font-size: 1.6rem; margin-bottom: 10px; }
.footer-grid div:last-child { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.copyright { text-align: center; margin-top: 22px; font-size: .9rem; color: rgba(255,244,220,.55); }

@media (max-width: 1180px) {
    body.sidebar-layout { padding-left: 0; }
    .site-header { position: sticky; inset: 0 0 auto 0; width: 100%; min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255, 226, 169, .24); }
    .nav-wrap { min-height: auto; padding: 16px 20px; flex-direction: row; align-items: center; gap: 18px; }
    .brand { border-bottom: 0; padding-bottom: 0; }
    .main-nav { display: none; }
    .site-header .btn { margin-top: 0; width: auto; }
    .hero { padding-top: 115px; }
}
@media (max-width: 980px) {
    .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
    .feature-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-card { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .container { width: min(100% - 26px, 1180px); }
    .site-header .btn { display: none; }
    .hero { padding-top: 115px; }
    .heritage-stats, .feature-grid, .product-grid { grid-template-columns: 1fr; }
    .product-card.featured { transform: none; }
    .section { padding: 72px 0; }
    .closing-card, .order-form { padding: 30px 20px; }
    .footer-grid { flex-direction: column; }
}
