/* ============================================================
   Cầu Nối Nghĩa Ô — sourcing agency, Yiwu ⇄ Việt Nam
   Design language: warm editorial paper + deep jade + terracotta
   Display: Lora · Body: Be Vietnam Pro
   ============================================================ */

:root {
  /* palette */
  --paper: #f8f3ea;
  --paper-2: #efe6d6;
  --card: #fffdf8;
  --ink: #15120d;
  --ink-2: #2b261e;
  --muted: #6d6355;
  --muted-2: #948975;
  --jade: #12332c;
  --jade-2: #1b4a3e;
  --jade-3: #245c4d;
  --clay: #c2542b;
  --clay-2: #a8431f;
  --clay-soft: #f6e3d9;
  --gold: #b98a3e;
  --line: rgba(21, 18, 13, 0.13);
  --line-2: rgba(21, 18, 13, 0.07);
  --line-light: rgba(255, 255, 255, 0.16);

  /* type */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;

  --text-hero: clamp(2.35rem, 1.15rem + 4.3vw, 4.4rem);
  --text-h2: clamp(1.75rem, 1.15rem + 2.2vw, 2.9rem);
  --text-h3: clamp(1.08rem, 0.99rem + 0.35vw, 1.28rem);
  --text-lead: clamp(1rem, 0.95rem + 0.3vw, 1.14rem);
  --text-sm: 0.875rem;
  --text-xs: 0.775rem;

  /* layout */
  --container: 1180px;
  --header-h: 76px;
  --gutter: clamp(1.15rem, 0.4rem + 3vw, 2.5rem);
  --section-y: clamp(4rem, 2.4rem + 6vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 24px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(21, 18, 13, 0.05), 0 4px 14px -8px rgba(21, 18, 13, 0.18);
  --shadow-md: 0 2px 4px rgba(21, 18, 13, 0.04), 0 18px 40px -22px rgba(21, 18, 13, 0.32);
  --shadow-lg: 0 30px 70px -40px rgba(18, 51, 44, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--clay); color: #fff; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.1rem; border-radius: 8px; font-size: var(--text-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
body.nav-open { overflow: hidden; }

/* ---------- helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }
.section { padding-block: var(--section-y); }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--jade); color: #f2efe6; }
.section--dark .lead { color: rgba(242, 239, 230, 0.72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.1rem;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(194, 84, 43, 0.14);
}
.eyebrow--light { color: #e8b48f; }

.section__head { max-width: 780px; margin-bottom: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); }
.section__head h2 { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.12; }
.section__head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.section__head--split .lead { margin-bottom: 0.35rem; }

.lead { font-size: var(--text-lead); color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--clay); --btn-fg: #fff; box-shadow: 0 10px 24px -14px rgba(194, 84, 43, 0.85); }
.btn--primary:hover { --btn-bg: var(--clay-2); }

.btn--ghost { background: transparent; color: inherit; border-color: var(--line-light); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.4); }

.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: rgba(21, 18, 13, 0.03); }

.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.85rem; }
.btn--lg { padding: 1.02rem 1.75rem; font-size: 0.975rem; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 243, 234, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-2);
  box-shadow: 0 8px 24px -20px rgba(21, 18, 13, 0.5);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border-radius: 11px;
  background: var(--jade);
  color: #e9c9a8;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 0.975rem; font-weight: 700; letter-spacing: -0.02em; }
.brand__text small {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2);
}

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.7vw, 1.7rem); }
.nav > a:not(.btn) {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: 0.35rem;
}
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--clay);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { margin-left: 0.35rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer;
  padding: 11px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 1.8px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--jade);
  color: #f4f1e8;
  padding-top: clamp(3rem, 1.5rem + 5vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 82% 8%, rgba(194, 84, 43, 0.28), transparent 60%),
    radial-gradient(50% 60% at 8% 95%, rgba(185, 138, 62, 0.16), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; right: -10%; top: -20%;
  width: 62vw; height: 62vw; max-width: 780px; max-height: 780px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__copy h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: 1.35rem;
}
.hero__copy h1 em {
  font-style: italic;
  color: #eab894;
  white-space: nowrap;
}
.hero__lead {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.62;
  color: rgba(244, 241, 232, 0.76);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.4rem; }

.hero__proof { display: flex; align-items: center; gap: 0.85rem; }
.hero__proof p { font-size: var(--text-sm); color: rgba(244, 241, 232, 0.62); }
.hero__proof strong { color: #f4f1e8; }
.avatars { display: flex; }
.avatars span {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  margin-left: -9px;
  border-radius: 50%;
  border: 2px solid var(--jade);
  background: var(--jade-3);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.02em;
  color: #d9e8e1;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:last-child { background: var(--clay); color: #fff; }

/* --- hero visual: floating cards --- */
.hero__visual {
  position: relative;
  min-height: 470px;
  display: flex; align-items: center; justify-content: center;
}
.float-card {
  position: absolute;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.6);
}
.float-card--quote {
  width: min(100%, 335px);
  top: 0.5rem; left: 0;
  transform: rotate(-2.2deg);
  z-index: 2;
}
.float-card--market {
  width: 218px;
  right: 0; bottom: 0.5rem;
  transform: rotate(3.4deg);
  z-index: 3;
  background: #fdf8ee;
}
.fc__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.95rem; }
.fc__label {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2);
}
.pill {
  font-size: 0.66rem; font-weight: 600;
  padding: 0.2rem 0.55rem; border-radius: 100px;
  background: rgba(21, 18, 13, 0.07); color: var(--ink-2);
  white-space: nowrap;
}
.pill--live { background: #e6f0e9; color: #1d6b4e; }
.pill--live::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: #2f9c72; margin-right: 5px; vertical-align: middle;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.fc__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.82rem;
}
.fc__row span { color: var(--muted-2); }
.fc__row strong { font-weight: 600; text-align: right; }
.fc__bar {
  height: 4px; border-radius: 100px;
  background: rgba(21, 18, 13, 0.08);
  margin: 0.95rem 0 0.6rem;
  overflow: hidden;
}
.fc__bar i { display: block; height: 100%; background: var(--clay); border-radius: 100px; }
.fc__foot { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted-2); }
.fc__mono { font-family: var(--font-mono); }

.map {
  position: relative;
  height: 86px; border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(18, 51, 44, 0.09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(0deg, rgba(18, 51, 44, 0.09) 1px, transparent 1px) 0 0 / 22px 22px,
    #eee7d8;
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.map__pin {
  position: absolute; top: 42%; left: 38%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 5px rgba(194, 84, 43, 0.2);
}
.map__pin--2 { top: 26%; left: 64%; width: 7px; height: 7px; background: var(--jade-2); box-shadow: 0 0 0 4px rgba(27, 74, 62, 0.16); }
.map__pin--3 { top: 66%; left: 22%; width: 7px; height: 7px; background: var(--jade-2); box-shadow: 0 0 0 4px rgba(27, 74, 62, 0.16); }
.fc__meta { font-size: 0.76rem; font-weight: 600; line-height: 1.4; }
.fc__meta span { font-weight: 400; color: var(--muted-2); font-size: 0.72rem; }

.badge-float {
  position: absolute;
  top: 45%; right: 18%;
  z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 14px;
  background: #f0e0c4;
  color: #5a4118;
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
  text-align: center;
}
.badge-float strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.badge-float span { font-size: 0.63rem; letter-spacing: 0.02em; }

/* --- stats --- */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-top: 1px solid var(--line-light);
  padding-top: 1.75rem;
}
.stat { padding-right: 1.5rem; }
.stat + .stat { padding-left: 1.75rem; border-left: 1px solid var(--line-light); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  color: #f4f1e8;
}
.stat span { font-size: 0.8rem; line-height: 1.45; color: rgba(244, 241, 232, 0.6); display: block; max-width: 18ch; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-band {
  background: var(--ink);
  color: rgba(248, 243, 234, 0.55);
  padding-block: 0.9rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex; align-items: center; gap: 1.4rem;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee__track i { color: var(--clay); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   PROBLEMS
   ============================================================ */
.problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.problem {
  background: var(--paper);
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  position: relative;
  transition: background 0.3s var(--ease);
}
.problem:hover { background: #fffdf8; }
.problem__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--clay);
  display: block;
  margin-bottom: 1.1rem;
}
.problem h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.42rem);
  margin-bottom: 0.7rem;
  max-width: 24ch;
}
.problem p { font-size: 0.925rem; color: var(--muted); max-width: 42ch; }
.problem__fix {
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-2) !important;
  font-size: 0.88rem !important;
}
.problem__fix strong { color: var(--jade); font-weight: 600; }

/* ============================================================
   CARDS (services)
   ============================================================ */
.cards { display: grid; gap: 1.15rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 1rem + 1.2vw, 1.9rem);
  display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #eaf1ec;
  color: var(--jade);
  margin-bottom: 1.15rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--text-h3); font-weight: 600; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.card > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }

.ticks { display: grid; gap: 0.5rem; margin-top: auto; }
.ticks li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.83rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 11px; height: 6px;
  border-left: 1.6px solid var(--jade-2);
  border-bottom: 1.6px solid var(--jade-2);
  transform: rotate(-45deg);
}
.ticks--muted li { color: var(--muted); }
.ticks--muted li::before { border-color: var(--muted-2); }

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  gap: 0;
  max-width: 900px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: clamp(1rem, 2vw, 2rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-2);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line-2); }
.step__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
  background: var(--jade);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.step:hover .step__num { background: var(--clay); transform: scale(1.06); }
.step__top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 0.4rem; flex-wrap: wrap;
}
.step__top h3 { font-family: var(--font-display); font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem); }
.chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  background: rgba(21, 18, 13, 0.055);
  color: var(--ink-2);
  white-space: nowrap;
}
.step__body p { font-size: 0.93rem; color: var(--muted); max-width: 62ch; }

.steps__note {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-top: 2rem;
  max-width: 900px;
  padding: 1rem 1.15rem;
  background: #fdf8ee;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.steps__note svg { width: 18px; height: 18px; flex: none; margin-top: 0.22rem; color: var(--gold); }
.steps__note strong { color: var(--ink); }

/* ============================================================
   DISTRICTS
   ============================================================ */
.districts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.district {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.district:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-3px); }
.district--wide { grid-column: span 2; }
.district header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.15rem; }
.district__no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(233, 201, 168, 0.35);
  border-radius: 6px;
  color: #e9c9a8;
}
.district__year { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(242, 239, 230, 0.4); }
.district h3 { font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 0.55rem; color: #f6f2e9; }
.district p { font-size: 0.87rem; color: rgba(242, 239, 230, 0.62); }
.district__note {
  margin-top: 1rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line-light);
  color: #dcc7a8 !important;
  font-size: 0.8rem !important;
}

.market-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.25rem, 1.5rem + 2vw, 3.25rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-light);
}
.market-facts strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e9c9a8;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.market-facts span { font-size: 0.85rem; color: rgba(242, 239, 230, 0.68); line-height: 1.5; display: block; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  background: var(--jade);
  color: #f4f1e8;
  border-color: var(--jade);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.plan--featured:hover { transform: translateY(-10px); }
.plan__tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--clay); color: #fff;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  white-space: nowrap;
}
.plan header h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.4rem; }
.plan header p { font-size: 0.86rem; color: var(--muted); min-height: 2.9em; }
.plan--featured header p { color: rgba(244, 241, 232, 0.65); }
.plan__price {
  display: flex; align-items: baseline; gap: 0.5rem;
  padding-block: 1.3rem;
  margin-block: 1.15rem;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.plan--featured .plan__price { border-color: var(--line-light); }
.plan__price strong { font-family: var(--font-display); font-size: clamp(2.2rem, 1.7rem + 1.6vw, 2.9rem); line-height: 1; font-weight: 500; }
.plan__price span { font-size: 0.8rem; color: var(--muted-2); }
.plan--featured .plan__price span { color: rgba(244, 241, 232, 0.6); }
.plan .ticks { margin-bottom: 1.6rem; }
.plan--featured .ticks li { color: rgba(244, 241, 232, 0.88); }
.plan--featured .ticks li::before { border-color: #8fc7a8; }
.plan .btn { margin-top: auto; }
.plan--featured .btn--primary { --btn-bg: var(--clay); }

.pricing__note {
  margin-top: 1.75rem;
  font-size: 0.83rem;
  color: var(--muted);
  max-width: 78ch;
}

/* ============================================================
   GUARANTEES
   ============================================================ */
.guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.guarantee__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--jade);
  margin-bottom: 1rem;
}
.guarantee__icon svg { width: 19px; height: 19px; }
.guarantee h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.guarantee p { font-size: 0.9rem; color: var(--muted); }

/* ============================================================
   QUOTES
   ============================================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.quote {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1vw, 1.9rem);
  position: relative;
  display: flex; flex-direction: column;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.7;
  color: var(--clay);
  opacity: 0.25;
  display: block;
  margin-bottom: 0.4rem;
  height: 0.55em;
}
.quote blockquote { font-size: 0.925rem; color: var(--ink-2); line-height: 1.65; margin-bottom: 1.35rem; }
.quote figcaption { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 0.15rem; }
.quote figcaption strong { font-size: 0.875rem; font-weight: 600; }
.quote figcaption span { font-size: 0.78rem; color: var(--muted-2); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 0;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq__q:hover { color: var(--clay); }
.faq__q svg {
  width: 18px; height: 18px; flex: none;
  color: var(--muted-2);
  transition: transform 0.35s var(--ease), color 0.2s var(--ease);
}
.faq__item.is-open .faq__q svg { transform: rotate(180deg); color: var(--clay); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
.faq__a > p {
  overflow: hidden;
  min-height: 0;
  font-size: 0.925rem;
  color: var(--muted);
  max-width: 68ch;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > p { padding-bottom: 1.35rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact {
  background: var(--jade);
  color: #f4f1e8;
  position: relative;
  overflow: hidden;
}
.section--contact::before {
  content: "";
  position: absolute; left: -15%; bottom: -35%;
  width: 55vw; height: 55vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 84, 43, 0.22), transparent 62%);
  pointer-events: none;
}
.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact__info h2 { font-family: var(--font-display); font-size: var(--text-h2); line-height: 1.1; margin-bottom: 1rem; }
.contact__info .lead { color: rgba(244, 241, 232, 0.7); margin-bottom: 2.25rem; }

.contact__list { display: grid; gap: 1.15rem; }
.contact__list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.ci {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-light);
  color: #e9c9a8;
}
.ci svg { width: 17px; height: 17px; }
.contact__list div { font-size: 0.9rem; line-height: 1.5; color: rgba(244, 241, 232, 0.85); }
.contact__list div > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(233, 201, 168, 0.7);
  margin-bottom: 0.2rem;
}
.contact__list a { border-bottom: 1px solid rgba(233, 201, 168, 0.3); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.contact__list a:hover { color: #e9c9a8; border-color: #e9c9a8; }

/* --- form --- */
.form {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem);
  box-shadow: var(--shadow-lg);
}
.form__title { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 0.3rem; }
.form__sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.6rem; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}
.field label span { color: var(--clay); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236d6355' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--jade-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 51, 44, 0.1);
}
.field.has-error input, .field.has-error textarea { border-color: var(--clay); background: #fdf3ee; }
.field__err {
  display: block;
  font-size: 0.74rem;
  color: var(--clay-2);
  margin-top: 0.3rem;
  min-height: 0;
}

.checkbox {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.8rem; color: var(--muted);
  margin-block: 0.35rem 0.9rem;
  cursor: pointer;
  line-height: 1.5;
}
.checkbox input {
  width: 16px; height: 16px; flex: none;
  margin-top: 0.2rem;
  accent-color: var(--jade);
  cursor: pointer;
}
.form__foot { font-size: 0.74rem; color: var(--muted-2); text-align: center; margin-top: 0.85rem; }

.form__success {
  display: flex; gap: 0.8rem; align-items: flex-start;
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #e9f2ec;
  border: 1px solid #c4ddcd;
  color: #1d5b44;
  font-size: 0.86rem;
}
.form__success[hidden] { display: none; }
.form__success svg { width: 22px; height: 22px; flex: none; margin-top: 0.1rem; }
.form__success strong { display: block; margin-bottom: 0.2rem; }
.form__success p { margin: 0; font-size: 0.84rem; }
.form.is-sent .field, .form.is-sent .checkbox, .form.is-sent .btn[type="submit"], .form.is-sent .form__foot { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(248, 243, 234, 0.66);
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-size: 0.87rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}
.brand--footer { margin-bottom: 1.15rem; color: #f4f1e8; }
.brand--footer .brand__mark { background: rgba(255, 255, 255, 0.09); color: #e9c9a8; }
.brand--footer .brand__text small { color: rgba(248, 243, 234, 0.4); }
.footer__brand p { max-width: 34ch; }
.footer__addr { margin-top: 0.9rem; color: rgba(248, 243, 234, 0.42); font-size: 0.8rem; line-height: 1.6; }

.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 243, 234, 0.95);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.footer__col a { transition: color 0.2s var(--ease); width: fit-content; }
.footer__col a:hover { color: #e9c9a8; }
.footer__muted { color: rgba(248, 243, 234, 0.38); font-size: 0.8rem; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: rgba(248, 243, 234, 0.38);
}
.footer__legal { display: flex; gap: 1.25rem; }
.footer__legal a:hover { color: #e9c9a8; }

/* ============================================================
   FAB
   ============================================================ */
.zalo-fab {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem 0.7rem 0.8rem;
  border-radius: 100px;
  background: #1a7cf5;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(26, 124, 245, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.zalo-fab svg { width: 22px; height: 22px; }
.zalo-fab:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 38px -12px rgba(26, 124, 245, 0.8); }

/* --- bottom action bar (mobile only) --- */
.mobile-bar { display: none; }
.mobile-bar__btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 46px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mobile-bar__btn svg { width: 19px; height: 19px; flex: none; }
.mobile-bar__btn--zalo { background: #1a7cf5; color: #fff; }
.mobile-bar__btn--primary { background: var(--clay); color: #fff; }
.mobile-bar__btn:active { opacity: 0.85; }

/* ============================================================
   REVEAL
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-4px); }
  .districts { grid-template-columns: repeat(2, 1fr); }
  .district--wide { grid-column: span 2; }
  .market-facts { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2rem; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual {
    display: flex;
    min-height: 0;
    margin-top: 0.35rem;
  }
  .float-card {
    position: static;
    transform: none;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }
  .float-card--market,
  .badge-float { display: none; }
  .hero__copy h1 { max-width: 22ch; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .contact { grid-template-columns: 1fr; }
  .guarantees { grid-template-columns: 1fr; gap: 1.75rem; }
  .quotes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .problems { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(21, 18, 13, 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav--open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav > a:not(.btn) {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 1rem;
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
}

@media (max-width: 720px) {
  .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .zalo-fab { display: none; }
  .mobile-bar {
    display: flex;
    gap: 0.6rem;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 95;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(248, 243, 234, 0.94);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -12px 30px -22px rgba(21, 18, 13, 0.6);
  }
  /* 16px để iOS không tự zoom khi focus vào input */
  .field input, .field select, .field textarea { font-size: 16px; }
  .footer__col a { padding-block: 0.3rem; }
  .footer__legal a { padding-block: 0.3rem; }
  .hero__proof { flex-wrap: wrap; }
  .hero__proof p { font-size: 0.82rem; }
  .step__top { flex-direction: column; gap: 0.35rem; }
  .steps__note { font-size: 0.83rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-right: 1rem; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { padding-left: 1.25rem; }
  .cards--3 { grid-template-columns: 1fr; }
  .districts { grid-template-columns: 1fr; }
  .district--wide { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .step { grid-template-columns: 48px 1fr; gap: 1rem; }
  .step__num { width: 40px; height: 40px; font-size: 0.95rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .market-facts { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  :root { --text-hero: 2.05rem; }
  .hero__actions .btn { width: 100%; }
  .hero__copy h1 em { white-space: normal; }
  .brand__text small { display: none; }
  .marquee__track { font-size: 0.7rem; gap: 1rem; }
  .float-card { max-width: 100%; }
  .contact__list div { font-size: 0.86rem; }
}

/* thiết bị cảm ứng: bỏ hiệu ứng hover bị "dính" */
@media (hover: none) {
  .card:hover, .plan:hover, .district:hover, .problem:hover, .guarantee:hover { transform: none; box-shadow: none; }
  .btn:hover { transform: none; box-shadow: none; }
  .btn:hover svg { transform: none; }
  .zalo-fab:hover { transform: none; }
  .faq__q:hover { color: inherit; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .zalo-fab, .hero__visual, .marquee-band { display: none; }
  body { background: #fff; }
  .section, .hero { padding-block: 1.5rem; }
}
