/* ==========================================================================
   VÕ HẰNG · MẸ XANH LÁ — BỘ QUY CHUẨN THƯƠNG HIỆU "NẮNG SỚM XUYÊN TÁN LÁ"
   Tỷ lệ phối màu chuẩn 60 - 25 - 10 - 5 | Đại Lâm Mộc
   ========================================================================== */

:root {
  /* Surfaces (60%) */
  --vh-bg-linen: #F5F0E6;
  --vh-bg-card: #FCFBF7;
  --vh-bg-oat: #EDE6D6;

  /* Ink & Brand Primary (25%) */
  --vh-ink-main: #13221C;
  --vh-ink-muted: #4A5D52;
  --vh-brand-forest: #1B4332;
  --vh-brand-forest-hover: #143326;
  --vh-border-subtle: rgba(27, 67, 50, 0.20);
  --vh-border-soft: rgba(27, 67, 50, 0.12);

  /* Organic Accents (10%) */
  --vh-accent-sprout: #16A34A;
  --vh-accent-sprout-text: #15803D;
  --vh-accent-sprout-bg: #DCFCE7;
  --vh-highlight-sun: #FDE047;
  --vh-highlight-border: #CA8A04;

  /* Semantic Status (5%) */
  --vh-info-stream: #0284C7;
  --vh-info-bg: #E0F2FE;
  --vh-error-text: #991B1B;
  --vh-error-bg: #FEE2E2;

  /* Shadows & Radius */
  --vh-shadow-card: 0 14px 34px rgba(27, 67, 50, 0.09);
  --vh-shadow-soft: 0 6px 18px rgba(27, 67, 50, 0.06);
  --vh-radius-card: 20px;
  --vh-radius-sm: 12px;
  --vh-radius-pill: 9999px;

  /* Typography */
  --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Mali', cursive;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--vh-bg-linen);
  color: var(--vh-ink-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(253, 224, 71, 0.16) 0%, transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(22, 163, 74, 0.08) 0%, transparent 30%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography Helpers ---------- */
.font-hand {
  font-family: var(--font-hand);
}

.font-mono {
  font-family: var(--font-mono);
}

.sun-highlight {
  display: inline;
  background: linear-gradient(180deg, transparent 48%, var(--vh-highlight-sun) 48%, var(--vh-highlight-sun) 92%, transparent 92%);
  padding: 0 6px;
  color: var(--vh-ink-main);
  border-radius: 4px;
}

.sun-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--vh-highlight-sun);
  color: var(--vh-ink-main);
  border: 1.5px solid var(--vh-highlight-border);
  border-radius: var(--vh-radius-pill);
  padding: 4px 14px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 0.92rem;
}

.sprout-underline {
  position: relative;
  display: inline-block;
}

.sprout-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 10' fill='none'%3E%3Cpath d='M2 7C42 2 128 2 178 6' stroke='%2316A34A' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--vh-radius-pill);
  font-weight: 600;
  font-size: 0.96rem;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background-color: var(--vh-brand-forest);
  color: var(--vh-bg-card);
  box-shadow: 0 8px 20px rgba(27, 67, 50, 0.18);
}

.btn-primary:hover {
  background-color: var(--vh-brand-forest-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(27, 67, 50, 0.24);
}

.btn-secondary {
  background-color: var(--vh-bg-card);
  color: var(--vh-brand-forest);
  border: 1.5px solid var(--vh-brand-forest);
}

.btn-secondary:hover {
  background-color: var(--vh-bg-oat);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(245, 240, 230, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--vh-border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-leaf {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background-color: var(--vh-brand-forest);
  color: var(--vh-bg-card);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(27, 67, 50, 0.22);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--vh-brand-forest);
}

.brand-sub {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--vh-ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--vh-ink-muted);
  transition: color 0.16s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--vh-brand-forest);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--vh-border-subtle);
  background-color: var(--vh-bg-card);
  color: var(--vh-brand-forest);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 58px 0 68px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--vh-ink-main);
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--vh-ink-muted);
  max-width: 580px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  font-size: 0.92rem;
  color: var(--vh-ink-muted);
}

.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-icon {
  color: var(--vh-accent-sprout);
  font-weight: 800;
}

/* Hero Profile Card */
.hero-card {
  background-color: var(--vh-bg-card);
  border: 1.5px solid var(--vh-border-subtle);
  border-radius: var(--vh-radius-card);
  padding: 28px;
  box-shadow: var(--vh-shadow-card);
  position: relative;
}

.hero-card-badge {
  position: absolute;
  top: -15px;
  right: 22px;
  background-color: var(--vh-highlight-sun);
  color: var(--vh-ink-main);
  border: 1.5px solid var(--vh-highlight-border);
  border-radius: var(--vh-radius-pill);
  padding: 4px 14px;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 10px rgba(202, 138, 4, 0.16);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--vh-brand-forest) 0%, #2D6A4F 100%);
  color: var(--vh-bg-card);
  display: grid;
  place-items: center;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.45rem;
  flex-shrink: 0;
  border: 2px solid var(--vh-bg-oat);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--vh-ink-main);
}

.profile-role {
  font-size: 0.9rem;
  color: var(--vh-ink-muted);
}

.profile-quote {
  background-color: var(--vh-bg-oat);
  border-left: 4px solid var(--vh-accent-sprout);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-family: var(--font-hand);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--vh-ink-main);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.stat-box {
  background-color: var(--vh-bg-linen);
  border: 1px solid var(--vh-border-soft);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--vh-brand-forest);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--vh-ink-muted);
}

.domain-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--vh-border-subtle);
  font-size: 0.85rem;
  color: var(--vh-ink-muted);
}

.domain-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--vh-info-stream);
  background-color: var(--vh-info-bg);
  padding: 3px 10px;
  border-radius: var(--vh-radius-pill);
  font-weight: 500;
}

/* ---------- Section Common ---------- */
.section {
  padding: 64px 0;
}

.section-oat {
  background-color: var(--vh-bg-oat);
  border-top: 1px solid var(--vh-border-soft);
  border-bottom: 1px solid var(--vh-border-soft);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.section-kicker {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--vh-accent-sprout-text);
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--vh-ink-main);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--vh-ink-muted);
  max-width: 600px;
  margin-top: 8px;
}

/* ---------- Pillars (3 Vai trò / Giá trị) ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background-color: var(--vh-bg-card);
  border: 1.5px solid var(--vh-border-subtle);
  border-radius: var(--vh-radius-card);
  padding: 26px;
  box-shadow: var(--vh-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vh-shadow-card);
  border-color: var(--vh-brand-forest);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--vh-bg-oat);
  color: var(--vh-brand-forest);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--vh-ink-main);
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--vh-ink-muted);
}

/* ---------- Filter Pills ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--vh-radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vh-ink-muted);
  background-color: var(--vh-bg-card);
  border: 1.5px solid var(--vh-border-subtle);
  transition: all 0.16s ease;
}

.filter-btn:hover {
  border-color: var(--vh-brand-forest);
  color: var(--vh-brand-forest);
}

.filter-btn.active {
  background-color: var(--vh-brand-forest);
  color: var(--vh-bg-card);
  border-color: var(--vh-brand-forest);
}

/* ---------- Portfolio Cards ---------- */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: var(--vh-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-sprout {
  background-color: var(--vh-accent-sprout-bg);
  color: var(--vh-accent-sprout-text);
}

.tag-stream {
  background-color: var(--vh-info-bg);
  color: var(--vh-info-stream);
}

.tag-sun {
  background-color: var(--vh-highlight-sun);
  color: var(--vh-ink-main);
  border: 1px solid var(--vh-highlight-border);
}

.tag-oat {
  background-color: var(--vh-bg-oat);
  color: var(--vh-ink-muted);
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--vh-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
}

.result-metric {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--vh-accent-sprout-text);
  font-weight: 600;
}

.link-arrow {
  font-weight: 700;
  color: var(--vh-brand-forest);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.link-arrow:hover {
  color: var(--vh-info-stream);
}

/* ---------- Courses Section ---------- */
.course-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.course-card.featured {
  border: 2px solid var(--vh-brand-forest);
  box-shadow: var(--vh-shadow-card);
}

.course-points {
  list-style: none;
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.course-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--vh-ink-main);
}

.course-footer {
  padding-top: 16px;
  border-top: 1px solid var(--vh-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.course-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--vh-brand-forest);
}

.course-note {
  display: block;
  font-size: 0.78rem;
  color: var(--vh-ink-muted);
}

/* ---------- Articles / Sharing ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.article-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--vh-ink-muted);
}

/* ---------- About / Story Strip ---------- */
.story-box {
  background-color: var(--vh-bg-card);
  border: 1.5px solid var(--vh-border-subtle);
  border-radius: var(--vh-radius-card);
  padding: 36px;
  box-shadow: var(--vh-shadow-card);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.story-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-list li {
  background-color: var(--vh-bg-linen);
  border: 1px solid var(--vh-border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: var(--vh-highlight-sun);
  border: 1.5px solid var(--vh-highlight-border);
  color: var(--vh-ink-main);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ---------- Contact / Newsletter CTA ---------- */
.cta-box {
  background-color: var(--vh-brand-forest);
  color: var(--vh-bg-card);
  border-radius: 26px;
  padding: 44px 38px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 20px 44px rgba(27, 67, 50, 0.22);
}

.cta-box h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(252, 251, 247, 0.86);
  font-size: 0.98rem;
}

.contact-form {
  background-color: var(--vh-bg-card);
  color: var(--vh-ink-main);
  padding: 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--vh-ink-muted);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--vh-border-subtle);
  background-color: var(--vh-bg-linen);
  color: var(--vh-ink-main);
  font-family: var(--font-main);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.form-control:focus {
  border-color: var(--vh-brand-forest);
  background-color: var(--vh-bg-card);
}

.form-feedback {
  display: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-feedback.success {
  display: block;
  background-color: var(--vh-accent-sprout-bg);
  color: var(--vh-accent-sprout-text);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 46px 0 32px;
  border-top: 1px solid var(--vh-border-subtle);
  color: var(--vh-ink-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-title {
  font-weight: 800;
  color: var(--vh-ink-main);
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--vh-brand-forest);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px dashed var(--vh-border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(19, 34, 28, 0.56);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background-color: var(--vh-bg-card);
  border: 1.5px solid var(--vh-border-subtle);
  border-radius: 22px;
  max-width: 660px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 24px 56px rgba(19, 34, 28, 0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: var(--vh-bg-oat);
  color: var(--vh-ink-main);
  font-size: 1.2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background-color: var(--vh-brand-forest);
  color: var(--vh-bg-card);
}

.modal-body p {
  margin-bottom: 14px;
  color: var(--vh-ink-main);
}

.modal-body ul {
  margin: 0 0 16px 20px;
  color: var(--vh-ink-muted);
}

.modal-body li {
  margin-bottom: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .story-box,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background-color: var(--vh-bg-card);
    border-bottom: 1.5px solid var(--vh-border-subtle);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--vh-shadow-card);
  }

  .pillars-grid,
  .cards-grid-3,
  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .cta-box,
  .story-box {
    padding: 26px 22px;
  }
}
