/* Blinglow: phong cách tối giản, nền kem, chữ có chân (học bố cục kiểu Cocoon) */
:root {
  --bg: #F8F4EC;
  --bg-2: #EFE8DB;
  --ink: #23201B;
  --muted: #6D665C;
  --line: #DDD3C2;
  --sage: #5E7154;
  --sage-dark: #3E4C37;
  --clay: #9B3B2E;
  --white: #FFFDF9;
  --serif: "Lora", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --label: "Barlow Condensed", "Be Vietnam Pro", sans-serif;
  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; overflow-wrap: break-word; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); }
h3 { font-size: 22px; }
h4 { font-size: 19px; margin-bottom: .2em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { font: 500 20px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.eyebrow-light { color: #C9D6BE; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 26px; border-radius: 4px; font: 600 20px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn span { font-family: var(--sans); font-size: 20px; transition: transform .2s; }
.btn:hover span { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--sage-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-sm { padding: 13px 18px; font-size: 17px; gap: 18px; }
.btn-full { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* Thanh trên + header */
.topbar { background: var(--ink); color: #F1EBDF; text-align: center; font-size: 14px; padding: 11px 16px; }
.topbar a { color: #fff; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--pad); background: rgba(248,244,236,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; gap: clamp(18px, 2.2vw, 32px); font-size: 16px; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--sage); }
.nav-right { justify-content: flex-end; }
.logo { text-align: center; text-decoration: none; line-height: 1; padding: 0 24px; white-space: nowrap; }
.logo-mark { display: block; font: 600 30px/1 var(--serif); letter-spacing: .14em; }
.logo-sub { display: block; margin-top: 6px; font: 500 11px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.menu-btn { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(calc(100vh - 120px), 820px); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--pad); max-width: 640px; }
.lead { font-size: 18px; color: #3B362F; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }

/* Giá trị */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.value { padding: 34px 28px; border-right: 1px solid var(--line); }
.value:last-child { border-right: 0; }
.value-ico { display: block; font-size: 26px; color: var(--sage); margin-bottom: 10px; }
.value h3 { font-size: 20px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }

/* Khối chung */
.section { max-width: var(--wrap); margin: 0 auto; padding: 110px var(--pad); }
.section-head { max-width: 640px; margin-bottom: 52px; }

/* Sản phẩm */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; max-width: 1080px; }
.product { display: flex; flex-direction: column; min-width: 0; }
/* Ảnh sản phẩm là poster có chữ: hiện trọn ảnh, không cắt mép */
.product-img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-2); margin-bottom: 18px; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s ease; }
.product:hover .product-img img { transform: scale(1.03); }
.tag { font: 500 16px/1.2 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.desc { color: var(--muted); font-size: 15px; flex: 1; }
.price { font-weight: 600; font-size: 17px; }
.price small { font-weight: 400; color: var(--muted); font-size: 14px; }
.product .btn { align-self: flex-start; }

/* Chia đôi */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); }
.split-img { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 56px); background: var(--bg-2); min-width: 0; }
.split-img img { width: 100%; height: auto; max-height: 760px; object-fit: contain; }
.split-text { padding: 96px var(--pad); align-self: center; max-width: 640px; }
.split-reverse .split-img { order: 2; }
.steps { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.steps span { font: 500 34px/1 var(--label); color: var(--clay); }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }
.note { font-style: italic; font-family: var(--serif); color: var(--sage-dark); }
blockquote { margin: 28px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--clay); font: italic 500 22px/1.45 var(--serif); }

/* So sánh */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.compare-col-dark { background: var(--ink); color: #F1EBDF; border-color: var(--ink); }
.compare-sub { font: 500 18px/1.3 var(--label); letter-spacing: .05em; text-transform: uppercase; color: var(--sage); }
.compare-col-dark .compare-sub { color: #C9D6BE; }
.compare ul { margin: 18px 0 0; padding-left: 20px; }
.compare li { margin-bottom: 8px; }
.compare-tip { margin-top: 26px; color: var(--muted); max-width: 720px; }

/* Bộ đôi */
.duo { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--sage-dark); color: #F4F0E6; }
.duo-text { padding: 100px var(--pad); align-self: center; }
.duo-text h2 { color: #fff; }
.duo-price { font-weight: 600; margin: 22px 0 28px; }
.duo-img { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 56px); min-width: 0; }
.duo-img img { width: 100%; height: auto; max-width: 620px; object-fit: contain; }

/* Kiến thức */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.post { text-decoration: none; display: flex; flex-direction: column; }
.post img { aspect-ratio: 1; object-fit: cover; width: 100%; margin-bottom: 16px; background: var(--bg-2); }
.post h3 { font-size: 19px; line-height: 1.35; }
.more { margin-top: auto; font: 500 16px/1 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.post:hover h3 { color: var(--sage-dark); }

/* Form */
.lead-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: var(--wrap); margin: 0 auto; padding: 110px var(--pad); border-top: 1px solid var(--line); }
.lead-img { margin-top: 28px; max-width: 360px; border-radius: 4px; }
.lead-form { background: var(--white); border: 1px solid var(--line); padding: 40px; border-radius: 4px; display: grid; gap: 18px; align-self: start; }
.lead-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.lead-form input, .lead-form select { font: 400 16px var(--sans); padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); width: 100%; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.lead-form label.consent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.lead-form .consent-check input { width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--ink); }
.consent { font-size: 13px; color: var(--muted); margin: 0; }
.form-msg { margin: 0; font-weight: 500; }
.form-msg.ok { color: var(--sage-dark); }
.form-msg.err { color: var(--clay); }

/* Footer */
.footer { background: var(--ink); color: #D9D1C3; padding: 64px var(--pad) 36px; display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.footer .logo-mark { color: #fff; margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid #3A352E; padding-top: 22px; margin: 0; font-size: 13px; }

/* Nút liên hệ nổi */
.float-contact { position: fixed; right: 22px; bottom: 22px; z-index: 30; background: var(--white); color: var(--sage-dark); font-weight: 600; text-decoration: none; padding: 14px 26px; border-radius: 999px; box-shadow: 0 8px 28px rgba(35,32,27,.16); }
.float-contact:hover { background: var(--sage-dark); color: #fff; }

/* Hiện dần khi cuộn */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Menu gọn: màn hình chưa đủ rộng để menu nằm 1 dòng thì gom vào nút 3 gạch */
@media (max-width: 1100px) {
  .header { grid-template-columns: 40px 1fr 40px; padding: 12px var(--pad); }
  .menu-btn { display: block; }
  .nav { display: none; }
  .nav-left.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; }
  .nav-left.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Máy tính bảng */
@media (max-width: 1024px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; }
  .value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Điện thoại */
@media (max-width: 760px) {
  .logo-mark { font-size: 24px; }
  .logo-sub { font-size: 9px; }
  .topbar { font-size: 13px; }
  .hero, .split, .duo, .lead-wrap, .compare { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-img { aspect-ratio: 4 / 3; }
  .hero-text { padding: 40px 20px 56px; }
  .hero-actions .btn { width: 100%; }
  .split-reverse .split-img { order: 0; }
  .split-img img { max-height: 560px; }
  .split-text, .duo-text { padding: 56px 20px; }
  .section, .lead-wrap { padding: 72px 20px; }
  .lead-wrap { gap: 32px; }
  .lead-img { display: none; }
  .lead-form, .compare-col { padding: 26px 20px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .product h3 { font-size: 18px; }
  .product .tag { font-size: 14px; }
  .product .desc { font-size: 14px; }
  .product .btn { padding: 14px 16px; gap: 12px; font-size: 16px; }
  .posts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .post h3 { font-size: 16px; }
  .values { grid-template-columns: 1fr 1fr; }
  .value { padding: 24px 16px; }
  .footer { grid-template-columns: 1fr; }
  .float-contact { right: 14px; bottom: 14px; padding: 12px 20px; }
}

/* Điện thoại nhỏ: mỗi hàng 1 sản phẩm, ảnh không quá to */
@media (max-width: 520px) {
  .products { grid-template-columns: 1fr; gap: 40px; }
  .product-img { max-width: 360px; width: 100%; margin-left: auto; margin-right: auto; }
}
