/* TasteVie site — giấy dó, đỏ son, hồi văn, trống đồng. Colours match the app. */
:root {
  --paper: #FFF8EE;
  --paper-deep: #F6EAD3;
  --ink: #23352D;
  --muted: #5F6B63;
  --forest: #245C45;
  --forest-dark: #1B4634;
  --leaf: #78A879;
  --saffron: #E9A23B;
  --son: #A8322A;          /* đỏ son — lacquer red */
  --gold: #C99A45;
  --line: #E4D6BC;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Be Vietnam Pro", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font: 17px/1.7 var(--body);
  color: var(--ink);
  background: var(--paper) url("paper.jpg") repeat;
  background-size: 520px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--son); }

/* ---------- Hồi văn (meander) border ---------- */
.hoivan {
  height: 22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 20h8V6h14v10h-8v-4h4' fill='none' stroke='%23A8322A' stroke-width='2.4'/%3E%3Cpath d='M22 20h8V6h14' fill='none' stroke='%23A8322A' stroke-width='2.4'/%3E%3Cpath d='M30 20h14' fill='none' stroke='%23A8322A' stroke-width='2.4'/%3E%3C/svg%3E") repeat-x center;
  opacity: .85;
}
.hoivan.gold { filter: hue-rotate(25deg) saturate(.8) brightness(1.25); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 248, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font: 600 26px/1 var(--display); }
nav a { margin-left: 22px; text-decoration: none; font-weight: 600; color: var(--ink); font-size: 15px; }
nav a.active, nav a:hover { color: var(--son); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 640px; display: flex; align-items: center;
  background: #1d3b2f url("halong.jpg") center 35% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,36,28,.15) 0%, rgba(20,36,28,.35) 45%, rgba(20,36,28,.85) 100%);
}
.hero .drum {   /* trống đồng sun */
  position: absolute; right: -140px; top: -120px; width: 560px; height: 560px; opacity: .22;
  animation: spin 160s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 70px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  color: var(--saffron);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero h1 { font: 600 clamp(44px, 7vw, 80px)/1.02 var(--display); margin: 14px 0 16px; max-width: 760px; }
.hero p.lead { font-size: 20px; max-width: 580px; opacity: .95; margin: 0 0 30px; }
.badges { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px;
  font-weight: 700; text-decoration: none; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--son); color: #fff; box-shadow: 0 8px 22px rgba(168,50,42,.35); }
.btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.btn.primary:hover { color: #fff; }

/* Lanterns */
.lanterns { position: absolute; top: 0; left: 6%; display: flex; gap: 42px; pointer-events: none; }
.lantern { width: 34px; animation: sway 4s ease-in-out infinite; transform-origin: top center; }
.lantern:nth-child(2) { animation-delay: -1.3s; width: 28px; }
.lantern:nth-child(3) { animation-delay: -2.6s; }
@keyframes sway { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font: 600 clamp(32px, 4.4vw, 46px)/1.1 var(--display); margin: 10px 0 10px; color: var(--ink); }
.section-title p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.section-title .eyebrow { color: var(--son); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: 22px; padding: 26px;
  position: relative; box-shadow: 0 10px 30px rgba(35,53,45,.06);
}
.feature::after {   /* corner seal */
  content: ""; position: absolute; top: 16px; right: 16px; width: 12px; height: 12px;
  border: 2px solid var(--son); transform: rotate(45deg); opacity: .5;
}
.feature .icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  background: var(--paper-deep); border: 2px solid var(--gold); margin-bottom: 14px;
}
.feature h3 { font: 600 22px/1.25 var(--display); margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Regions */
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.region { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 12px 30px rgba(35,53,45,.15); }
.region img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.region:hover img { transform: scale(1.05); }
.region div {
  position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.region b { font: 600 26px/1.1 var(--display); display: block; }
.region small { opacity: .9; }

/* Screens strip */
.band { background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%); color: #fff; position: relative; }
.band .section-title h2 { color: #fff; }
.band .section-title p { color: rgba(255,255,255,.8); }
.band .section-title .eyebrow { color: var(--saffron); }
.screens { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; }
.screens img {
  width: 240px; flex: none; border-radius: 34px; border: 8px solid #12271e; scroll-snap-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stat { padding: 24px 10px; border-top: 3px double var(--son); border-bottom: 3px double var(--son); }
.stat b { font: 600 46px/1 var(--display); color: var(--son); display: block; }
.stat span { color: var(--muted); font-size: 14px; letter-spacing: .04em; }

/* CTA */
.cta {
  display: flex; align-items: center; gap: 28px; padding: 34px; border-radius: 28px;
  background: var(--paper-deep) url("street.jpg") right center / 46% auto no-repeat;
  border: 1px solid var(--line); overflow: hidden;
}
.cta .text { max-width: 52%; }
.cta h2 { font: 600 34px/1.15 var(--display); margin: 0 0 10px; }
.cta img.mascot { width: 110px; }

/* ---------- Document pages (privacy / support) ---------- */
.page-hero {
  position: relative; color: #fff; text-align: center; padding: 90px 20px 70px;
  background: #1d3b2f url("street.jpg") center / cover;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 36, 28, .72); }
.page-hero > * { position: relative; }
.page-hero h1 { font: 600 clamp(38px, 6vw, 58px)/1.05 var(--display); margin: 12px 0 8px; }
.page-hero p { margin: 0; opacity: .85; }

.doc {
  max-width: 780px; margin: -40px auto 60px; position: relative;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 26px;
  padding: 44px clamp(22px, 5vw, 56px); box-shadow: 0 20px 50px rgba(35,53,45,.12);
}
.doc::before, .doc::after {   /* corner ornaments */
  content: ""; position: absolute; width: 46px; height: 46px; border: 3px solid var(--son); opacity: .55;
}
.doc::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.doc::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.doc h2 {
  font: 600 25px/1.25 var(--display); margin: 34px 0 10px; color: var(--forest);
  display: flex; align-items: center; gap: 12px;
}
.doc h2::before { content: ""; width: 10px; height: 10px; background: var(--son); transform: rotate(45deg); flex: none; }
.doc h2:first-of-type { margin-top: 6px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 8px 0; }
.doc .note {
  background: var(--paper-deep); border-left: 4px solid var(--saffron); padding: 14px 18px; border-radius: 0 14px 14px 0;
  font-size: 15.5px;
}
.faq details {
  border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 12px 0; background: #fff;
}
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--son); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.lang-switch { text-align: right; font-size: 14px; margin-bottom: -10px; }
.lang-switch a { margin-left: 10px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 40px 0 34px; font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: #fff; margin-right: 18px; }
footer .cloud { height: 26px; opacity: .5; }

@media (max-width: 860px) {
  .features, .regions { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; background-image: none; text-align: center; }
  .cta .text { max-width: none; }
  nav a { margin-left: 14px; }
  .hero { min-height: 560px; }
  .lanterns { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lantern, .hero .drum { animation: none; } }

/* Fixes: readable hero eyebrow, CTA image column, small screens */
.hero .eyebrow {
  color: #FBE3A6; background: rgba(20, 36, 28, .45); padding: 6px 14px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.hero .eyebrow::before, .hero .eyebrow::after { display: none; }
.hero h1, .hero p.lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.cta { background: var(--paper-deep); padding: 0; display: grid; grid-template-columns: 130px 1fr 42%; align-items: center; }
.cta img.mascot { margin: 24px 0 24px 28px; }
.cta .text { max-width: none; padding: 30px 10px; }
.cta .photo { height: 100%; min-height: 220px; background: url("street.jpg") center / cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
@media (max-width: 860px) {
  .topbar .wrap { padding: 10px 14px; }
  .brand span { font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  nav a { margin-left: 12px; font-size: 14px; }
  .doc { margin: -30px 12px 40px; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta img.mascot { margin: 24px auto 0; }
  .cta .photo { min-height: 180px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
  .hero .drum { width: 380px; height: 380px; right: -160px; }
  .page-hero { padding: 70px 18px 60px; }
}
