@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* =====================================================================
   Design tokens — GIỮ NGUYÊN 100% từ bản Horizons gốc (index.css)
   Sửa màu ở đây sẽ áp dụng cho toàn bộ trang.
   ===================================================================== */
:root {
  --background: 34 53% 89%;         /* Nude beige #F5E6D3 */
  --foreground: 25 30% 15%;

  --primary: 25 76% 31%;            /* Burnt red/brown #8B4513 */
  --primary-foreground: 34 53% 95%;

  --secondary: 34 40% 82%;
  --secondary-foreground: 25 30% 15%;

  --accent: 31 53% 64%;             /* Golden orange #D4A574 */
  --accent-foreground: 25 76% 15%;

  --muted: 34 30% 80%;
  --muted-foreground: 25 20% 40%;

  --card: 34 60% 94%;
  --card-foreground: 25 30% 15%;

  --border: 34 30% 75%;
  --input: 34 30% 75%;

  --ring: 31 53% 64%;
  --destructive: 0 65% 50%;
  --destructive-foreground: 0 0% 98%;
  --radius: 0.5rem;
}

/* Utility color classes mirroring the original Tailwind theme so markup stays familiar */
.bg-background { background-color: hsl(var(--background)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-secondary-30 { background-color: hsl(var(--secondary) / 0.3); }
.bg-accent-10 { background-color: hsl(var(--accent) / 0.10); }
.bg-accent-15 { background-color: hsl(var(--accent) / 0.15); }
.bg-accent-20 { background-color: hsl(var(--accent) / 0.20); }
.bg-primary-10 { background-color: hsl(var(--primary) / 0.10); }

.text-background { color: hsl(var(--background)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-foreground-70 { color: hsl(var(--foreground) / 0.70); }
.text-foreground-80 { color: hsl(var(--foreground) / 0.80); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-accent { color: hsl(var(--accent)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-destructive { color: hsl(var(--destructive)); }

.border-border { border-color: hsl(var(--border)); }
.border-primary-20 { border-color: hsl(var(--primary) / 0.20); }
.border-accent-30 { border-color: hsl(var(--accent) / 0.30); }

/* =====================================================================
   Base
   ===================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
p { line-height: 1.7; margin: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

@media (min-width: 768px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.875rem; }
  h4 { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
  h2 { font-size: 3rem; }
}

/* =====================================================================
   Layout helpers
   ===================================================================== */
.container-custom { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px)  { .container-custom { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-custom { padding: 0 2rem; } }

.section-spacing { padding: 4rem 0; }
@media (min-width: 768px)  { .section-spacing { padding: 5rem 0; } }
@media (min-width: 1024px) { .section-spacing { padding: 6rem 0; } }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.accent-glow { box-shadow: 0 0 20px hsl(var(--accent) / 0.15); }
.shadow-md { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.shadow-2xl { box-shadow: 0 20px 50px rgba(0,0,0,.25); }

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: filter .2s, transform .1s, box-shadow .2s;
}
.btn:active { transform: scale(0.98); }
.btn-accent {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}
.btn-accent:hover { filter: brightness(1.1); }

/* Fade-up reveal on scroll (replaces framer-motion) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid hsl(var(--border));
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.site-header .brand { display: flex; align-items: center; gap: .75rem; }
.site-header .brand img { height: 3rem; width: auto; border-radius: .375rem; }
.site-header .brand span { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.25rem; color: hsl(var(--primary)); }
.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop button.nav-link { background: none; border: none; font-size: .875rem; font-weight: 500; color: hsl(var(--foreground)); }
.nav-desktop button.nav-link:hover { color: hsl(var(--accent)); }
.nav-cta { padding: .625rem 1.5rem; }

.menu-toggle { display: inline-flex; background: none; border: none; padding: .5rem; color: hsl(var(--primary)); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: 280px; max-width: 85vw; height: 100%;
  background: hsl(var(--card)); z-index: 60; transform: translateX(100%);
  transition: transform .25s ease; padding: 2rem 1.5rem; box-shadow: -10px 0 30px rgba(0,0,0,.15);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.mobile-drawer button { background: none; border: none; text-align: left; font-size: 1rem; font-weight: 500; color: hsl(var(--foreground)); }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg .overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,.5) 50%, rgba(0,0,0,.7)); }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 1rem; }
.hero-content h1 { color: #fff; margin-bottom: 1.5rem; }
.hero-content h2 { color: hsl(var(--accent)); font-size: 1.875rem; margin-bottom: 2rem; }
.hero-content p { color: rgba(255,255,255,.9); font-size: 1.125rem; max-width: 48rem; margin: 0 auto 3rem; }
@media (min-width: 768px) { .hero-content h2 { font-size: 2.5rem; } .hero-content p { font-size: 1.25rem; } }
@media (min-width: 1024px) { .hero-content h2 { font-size: 3rem; } }

/* =====================================================================
   Cards
   ===================================================================== */
.card { background: hsl(var(--card)); border-radius: 1rem; padding: 2rem; }
.card-bordered { border: 2px solid hsl(var(--primary) / 0.2); transition: border-color .3s; }
.card-bordered:hover { border-color: hsl(var(--primary) / 0.4); }
.icon-box { width: 3.5rem; height: 3.5rem; border-radius: .75rem; background: hsl(var(--accent) / 0.2); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.icon-box svg { width: 1.75rem; height: 1.75rem; color: hsl(var(--accent)); }

/* Form fields */
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.field label { font-size: .875rem; font-weight: 500; color: hsl(var(--foreground)); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem 1rem; background: hsl(var(--background));
  border: 1px solid hsl(var(--input)); border-radius: .5rem; color: hsl(var(--foreground));
  font-family: inherit; font-size: 1rem; transition: box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: 0 0 0 2px hsl(var(--primary));
}
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .checkbox-grid { grid-template-columns: repeat(4, 1fr); } }
.checkbox-item { display: flex; align-items: center; gap: .5rem; }
.checkbox-item input { width: auto; accent-color: hsl(var(--primary)); }

/* FAQ accordion */
.faq-item { border-bottom: 1px solid hsl(var(--border)); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: none; padding: 1.25rem 0; text-align: left; }
.faq-question span { font-size: 1.125rem; font-weight: 600; color: hsl(var(--primary)); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { color: hsl(var(--foreground) / .8); padding-bottom: 1.5rem; padding-top: .5rem; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-chevron { transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* Footer */
.site-footer { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.site-footer a:hover { color: hsl(var(--accent)); }
.social-icon { width: 2.25rem; height: 2.25rem; border-radius: 9999px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.social-icon:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); }

/* Floating chat widget */
.chat-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 9999px; border: none;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: filter .2s, transform .15s;
}
.chat-fab:hover { filter: brightness(1.1); }
.chat-panel {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 50;
  width: min(400px, calc(100vw - 3rem)); height: min(600px, 80vh);
  background: hsl(var(--card)); border: 1px solid hsl(var(--primary) / .2);
  border-radius: 1rem; box-shadow: 0 20px 50px rgba(0,0,0,.25);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-panel-header { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: .75rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.chat-panel-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; background: hsl(var(--background)); }
.chat-bubble { max-width: 80%; border-radius: .5rem; padding: .5rem 1rem; font-size: .9rem; line-height: 1.5; }
.chat-bubble.user { align-self: flex-end; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.chat-bubble.assistant { align-self: flex-start; background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.chat-panel-input { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid hsl(var(--border)); }
.chat-panel-input input { flex: 1; padding: .6rem .9rem; border-radius: .5rem; border: 1px solid hsl(var(--border)); font-family: inherit; }
.chat-panel-input button { padding: .6rem 1rem; border-radius: .5rem; border: none; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* =====================================================================
   Trang chi tiết sản phẩm "Vườn Sâm 1m² HQ-Phú Định"
   ===================================================================== */
.page-hero-band { background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(25 70% 22%) 100%); color: #fff; padding: 3.5rem 0 3rem; }
.page-hero-band h1 { color: #fff; font-size: 2.25rem; margin-bottom: .5rem; }
.page-hero-band .tagline { color: hsl(var(--accent)); font-size: 1.125rem; font-weight: 500; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .page-hero-band h1 { font-size: 3rem; } }

.model-badge {
  display: flex; gap: 1rem; align-items: flex-start; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); border-radius: 1rem; padding: 1.25rem 1.5rem; max-width: 40rem;
}
.model-badge .icon-circle { width: 3rem; height: 3rem; border-radius: 9999px; background: hsl(var(--accent)/.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.model-badge h4 { color: hsl(var(--accent)); font-size: 1rem; margin-bottom: .35rem; }
.model-badge p { color: rgba(255,255,255,.85); font-size: .9rem; }

.stat-box { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.5rem; text-align: center; }
.stat-box .stat-icon { width: 2.5rem; height: 2.5rem; margin: 0 auto .75rem; display: flex; align-items: center; justify-content: center; }
.stat-box .stat-value { font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 700; color: hsl(var(--primary)); line-height: 1; }
.stat-box .stat-label { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-top: .5rem; }

.section-header-band { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-radius: .75rem .75rem 0 0; padding: .75rem 1.25rem; font-weight: 600; letter-spacing: .02em; }
.section-body-band { border: 1px solid hsl(var(--border)); border-top: none; border-radius: 0 0 .75rem .75rem; padding: 1.5rem; background: hsl(var(--card)); height: 100%; }

.ingredient-circle { width: 6rem; height: 6rem; border-radius: 9999px; margin: 0 auto .75rem; display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 3px solid hsl(var(--accent)/.4); background: hsl(var(--secondary)/.4); }

.benefit-line { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; }
.benefit-line .dot { width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: hsl(var(--accent)/.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem; }

.care-step { display: flex; align-items: flex-start; gap: .875rem; padding: .875rem 0; border-bottom: 1px dashed hsl(var(--border)); }
.care-step:last-child { border-bottom: none; }
.care-step .num { width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

.invest-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid hsl(var(--border)); }
.invest-row:last-child { border-bottom: none; }
.invest-row .invest-amount { font-weight: 700; color: hsl(var(--primary)); font-size: 1.125rem; white-space: nowrap; }

.scenario-card { border-radius: .75rem; padding: 1.25rem; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); position: relative; }
.scenario-card.featured { border: 2px solid hsl(var(--accent)); background: hsl(var(--accent)/.08); }
.scenario-num { position: absolute; top: -.75rem; left: 1rem; width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.scenario-yearly { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: hsl(var(--primary)); }
.roi-pill { display: inline-block; margin-top: .5rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-size: .75rem; font-weight: 600; padding: .25rem .75rem; border-radius: 9999px; }

.warranty-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; padding: 1.25rem 1rem; }
.warranty-item .w-icon { width: 3.25rem; height: 3.25rem; border-radius: 9999px; background: hsl(var(--accent)/.15); display: flex; align-items: center; justify-content: center; }

.crosssell-card { display: flex; gap: 1.5rem; align-items: center; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; padding: 1.5rem; }
.crosssell-bottle { flex-shrink: 0; width: 5rem; height: 5rem; border-radius: 9999px; background: linear-gradient(160deg, hsl(31 53% 64%), hsl(25 76% 31%)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .7rem; text-align: center; }
.crosssell-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.crosssell-tags span { font-size: .75rem; font-weight: 600; background: hsl(var(--secondary)); padding: .25rem .75rem; border-radius: 9999px; }

.footer-tagline-band { background: hsl(var(--secondary)/.5); text-align: center; padding: 1.25rem 1rem; font-weight: 600; color: hsl(var(--primary)); font-size: .95rem; letter-spacing: .02em; }
