/* =====================================================
   Chép Đỏ — Shared Design System
   Folk Block Print · chepdo.com
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Be Vietnam Pro', system-ui, sans-serif; background: #F2E8D5; color: #221C14; line-height: 1.65; overflow-x: hidden; }

:root {
  --paper:  #F2E8D5;
  --red:    #B3361F;
  --yellow: #D6A024;
  --green:  #3C5A4C;
  --ink:    #221C14;
  --b:      2.5px solid #221C14;
  --bm:     2px solid #221C14;
}

h1,h2,h3,h4 { font-family: 'Paytone One', sans-serif; line-height: 1.2; }

/* ── NAV ── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: var(--b); padding: 0 clamp(1rem,5vw,3rem); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-family: 'Paytone One', sans-serif; font-size: 22px; color: var(--red); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none; transition: color 150ms; }
.nav-links a:hover, .nav-links a.active { color: var(--red); text-decoration: underline; }
.nav-btn { background: transparent; color: var(--ink); border: var(--b); padding: 8px 20px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-decoration: none; transition: background 150ms, color 150ms; display: inline-block; }
.nav-btn:hover { background: var(--ink); color: var(--paper); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--ink); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--paper); border-left: var(--b); z-index: 200; padding: 48px 32px; flex-direction: column; gap: 24px; transform: translateX(100%); transition: transform 300ms ease; display: flex; }
.drawer.open { transform: translateX(0); }
.drawer-close { align-self: flex-end; background: none; border: none; font-size: 22px; cursor: pointer; margin-bottom: 8px; color: var(--ink); }
.drawer a { font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; padding-bottom: 16px; border-bottom: 1px solid rgba(34,28,20,.15); }

/* ── BUTTONS ── */
.btn-p { background: var(--red); color: var(--paper); border: var(--b); padding: 14px 28px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: background 150ms; border-radius: 0; }
.btn-p:hover { background: var(--ink); }
.btn-s { background: transparent; color: var(--ink); border: var(--b); padding: 14px 28px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: background 150ms, color 150ms; border-radius: 0; }
.btn-s:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border: 2.5px solid var(--paper); padding: 14px 28px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: background 150ms, color 150ms, border-color 150ms; border-radius: 0; }
.btn-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); border: 2.5px solid var(--ink); padding: 14px 28px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; transition: background 150ms, color 150ms; border-radius: 0; }
.btn-ink:hover { background: var(--red); border-color: var(--red); }

/* ── LAYOUT ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: clamp(3rem,8vw,6rem) clamp(1rem,5vw,3rem); }
.wrap-sm { max-width: 800px; margin: 0 auto; padding: clamp(3rem,8vw,6rem) clamp(1rem,5vw,3rem); }
.label { font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; color: var(--green); }
.label-light { color: rgba(242,232,213,.55); }
.label-dim { color: rgba(34,28,20,.5); }
.sec-title { font-size: clamp(28px,4vw,44px); margin-bottom: 24px; }
.sec-body { font-size: clamp(15px,2vw,17px); line-height: 1.75; max-width: 640px; }

/* ── PAGE HERO (for inner pages) ── */
.page-hero { border-bottom: var(--b); padding: clamp(3.5rem,9vw,7rem) clamp(1rem,5vw,3rem); }
.page-hero .wrap { padding: 0; max-width: 1200px; }
.page-hero-title { font-size: clamp(40px,6vw,72px); }

/* ── FOOTER ── */
.footer { background: var(--ink); padding: clamp(2.5rem,5vw,4rem) clamp(1rem,5vw,3rem); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; }
.f-brand { font-family: 'Paytone One', sans-serif; font-size: 28px; color: var(--red); margin-bottom: 12px; }
.f-tagline { font-size: 13px; color: rgba(242,232,213,.5); line-height: 1.7; }
.f-col-title { font-weight: 600; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 20px; }
.f-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.f-links a { font-size: 14px; color: rgba(242,232,213,.65); text-decoration: none; transition: color 150ms; }
.f-links a:hover { color: var(--paper); }
.footer-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid rgba(242,232,213,.12); display: flex; justify-content: space-between; font-size: 12px; color: rgba(242,232,213,.32); }

/* ── ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 580ms ease-out, transform 580ms ease-out; }
.reveal.v { opacity: 1; transform: none; }

/* ── A11Y ── */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --b: var(--bm); }
  .nav-links, .nav-btn-d { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ── SHARED NAV/DRAWER JS STYLES ── */
.nav-btn-d { display: inline-block; }
