/* ============================================================
   Bản Quyền Nhật Hướng — Rights & Licensing
   Direction: light-luxury legal / editorial. Single family: Roboto,
   hierarchy carried by weight + scale contrast.
   ============================================================ */

:root {
  /* palette */
  --ink:        oklch(24% 0.03 260);
  --ink-900:    oklch(18% 0.035 265);
  --ink-800:    oklch(28% 0.035 262);
  --paper:      oklch(98.5% 0.006 85);
  --paper-2:    oklch(96.5% 0.012 85);
  --surface:    oklch(100% 0 0);
  --line:       oklch(89% 0.01 265);
  --muted:      oklch(45% 0.02 265);
  --gold:       oklch(72% 0.13 78);
  --gold-deep:  oklch(62% 0.14 66);
  --gold-soft:  oklch(92% 0.05 85);

  /* type */
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.075rem);
  --text-lead: clamp(1.075rem, 1rem + 0.4vw, 1.25rem);
  --text-h2:   clamp(1.7rem, 1.2rem + 2vw, 2.75rem);
  --text-hero: clamp(2.3rem, 1.1rem + 5vw, 4.4rem);

  /* space */
  --space-section: clamp(3.5rem, 2.5rem + 5vw, 7.5rem);
  --wrap: 1180px;

  /* motion */
  --dur: 320ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --radius: 14px;
  --shadow-sm: 0 1px 2px oklch(20% 0.03 265 / 0.06), 0 4px 14px oklch(20% 0.03 265 / 0.05);
  --shadow-lg: 0 20px 50px oklch(20% 0.04 265 / 0.14);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- reveal animation ---------- */
/* Gated on .js: without JS the content is always visible (no silent hide). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 500; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer;
  background: var(--bg); color: var(--fg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-900); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-block { width: 100%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.76rem; font-weight: 700;
  color: var(--gold-deep); margin: 0 0 0.9rem;
}
.eyebrow-light { color: var(--gold); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(98.5% 0.006 85 / 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header[data-scrolled] { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(150deg, var(--ink-800), var(--ink-900));
  color: var(--gold); font-weight: 900; font-size: 1rem; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px oklch(72% 0.13 78 / 0.35);
}
.brand-logo {
  width: 46px; height: 46px; border-radius: 11px; object-fit: contain;
  background: #fff; padding: 3px; flex: none;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.brand-logo-footer { box-shadow: inset 0 0 0 1px oklch(72% 0.13 78 / 0.35); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 700; font-size: 1.02rem; }
.brand-text em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-800); position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--gold-deep);
  transition: width var(--dur) var(--ease);
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.site-nav a.nav-cta { padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--ink); color: #fff; }
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--ink-900); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--paper), var(--paper-2)); }
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(60% 50% at 82% 12%, oklch(72% 0.13 78 / 0.12), transparent 70%),
    radial-gradient(50% 45% at 8% 90%, oklch(28% 0.035 262 / 0.06), transparent 70%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(3.5rem, 4vw + 2rem, 7rem);
}
.hero-title { font-size: var(--text-hero); font-weight: 900; letter-spacing: -0.035em; margin-bottom: 1.3rem; }
.hero-title .accent { color: var(--gold-deep); position: relative; white-space: nowrap; }
.hero-lead { font-size: var(--text-lead); color: var(--muted); font-weight: 400; max-width: 42ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.9rem 0 2.4rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.hero-stats dt { font-weight: 900; font-size: 1.05rem; color: var(--ink); }
.hero-stats dd { margin: 0.2rem 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-lg); position: relative;
}
.hero-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(160deg, oklch(72% 0.13 78 / 0.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-card-label { display: block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 1rem; }
.hero-card-list { display: grid; gap: 0.85rem; }
.hero-card-list li { position: relative; padding-left: 1.7rem; font-size: 0.96rem; color: var(--ink-800); line-height: 1.45; }
.hero-card-list li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 3px;
  background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.hero-card-cta { display: inline-block; margin-top: 1.3rem; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--gold); padding-bottom: 2px; transition: gap var(--dur); }
.hero-card-cta:hover { color: var(--gold-deep); }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 2rem; padding-block: 1.15rem; }
.trust-label { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.trust-list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.trust-list li { font-weight: 500; color: var(--ink-800); font-size: 0.95rem; position: relative; }
.trust-list li + li::before { content: '·'; position: absolute; left: -0.9rem; color: var(--gold-deep); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding-block: var(--space-section); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.section-title { font-size: var(--text-h2); font-weight: 900; letter-spacing: -0.03em; }
.section-sub { margin-top: 1rem; color: var(--muted); font-size: var(--text-lead); font-weight: 300; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.card::after {
  content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transition: width 420ms var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { width: 100%; }
.card-num { font-weight: 900; font-size: 0.85rem; color: var(--gold-deep); letter-spacing: 0.1em; }
.card h3 { font-size: 1.18rem; font-weight: 700; margin: 0.7rem 0 0.55rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card-feature { background: linear-gradient(165deg, var(--ink-900), var(--ink-800)); border-color: transparent; color: oklch(94% 0.01 265); }
.card-feature .card-num { color: var(--gold); }
.card-feature h3 { color: #fff; }
.card-feature p { color: oklch(82% 0.015 265); }

/* ---------- service 10: khối nổi bật full-width ---------- */
.service-feature {
  margin-top: 1.2rem; position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  background: linear-gradient(150deg, var(--ink-900), var(--ink-800));
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.service-feature::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 90% at 88% 15%, oklch(72% 0.13 78 / 0.20), transparent 70%);
}
.sf-badge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding-right: clamp(1rem, 2vw, 2rem); }
.sf-num { font-size: clamp(3.2rem, 6vw, 5.2rem); font-weight: 900; line-height: 0.9; color: var(--gold); }
.sf-tag { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: oklch(80% 0.02 265); white-space: nowrap; }
.sf-body { position: relative; }
.sf-body h3 { font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem); font-weight: 900; letter-spacing: -0.02em; color: #fff; margin-bottom: 0.6rem; }
.sf-body p { color: oklch(83% 0.015 265); font-size: 1rem; max-width: 64ch; }
.sf-cta { position: relative; white-space: nowrap; }
.sf-cta.btn-primary { background: var(--gold-deep); color: var(--ink-900); }
.sf-cta.btn-primary:hover { background: var(--gold); color: var(--ink-900); }
@media (max-width: 860px) {
  .service-feature { grid-template-columns: 1fr; }
  .sf-badge { flex-direction: row; align-items: baseline; gap: 0.8rem; padding-right: 0; }
  .sf-cta { justify-self: start; }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step-index {
  position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px; font-weight: 900; font-size: 1.15rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step::before {
  content: ''; position: absolute; top: 23px; left: 46px; right: -1.2rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step:last-child::before { display: none; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- linh vuc ---------- */
.linhvuc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.linhvuc-copy .btn { margin-top: 1.7rem; }
.markets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.markets li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem;
  font-weight: 500; font-size: 1rem; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.markets li:hover { transform: translateX(4px); border-color: var(--gold); }

/* ---------- why (dark) ---------- */
.section-dark { background: linear-gradient(165deg, var(--ink-900), var(--ink)); color: oklch(92% 0.01 265); }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: oklch(78% 0.02 265); }
.why-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.6rem; }
.why-item { padding-left: 1.1rem; border-left: 2px solid oklch(72% 0.13 78 / 0.5); }
.why-item h3 { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.why-item p { color: oklch(78% 0.02 265); font-size: 0.95rem; }

/* ============================================================
   Contact
   ============================================================ */
.section-contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { margin: 2rem 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 92px 1fr; gap: 0.8rem; align-items: baseline; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ci-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.ci-value { font-size: 1rem; color: var(--ink); }
.ci-strong { font-weight: 900; font-size: 1.25rem; color: var(--gold-deep); }
.contact-direct { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink-800); }
.field label span { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 0.98rem; color: var(--ink);
  padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px var(--gold-soft); background: var(--surface);
}
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); text-align: center; }
.form-note.err { color: oklch(55% 0.2 25); font-weight: 600; }
.form-note.ok { color: oklch(52% 0.14 150); font-weight: 600; }

/* ============================================================
   Footer + float call
   ============================================================ */
.site-footer { background: var(--ink-900); color: oklch(80% 0.02 265); padding-block: 2.6rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.6rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand strong { color: #fff; font-weight: 700; display: block; }
.footer-brand p { font-size: 0.85rem; color: oklch(68% 0.02 265); margin-top: 0.2rem; }
.footer-meta { display: flex; flex-direction: column; gap: 0.3rem; text-align: right; font-size: 0.88rem; }
.footer-meta a { color: var(--gold); font-weight: 700; }

.float-call {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-deep); color: #fff; box-shadow: var(--shadow-lg);
  animation: pulse 2.6s var(--ease) infinite;
}
.float-call:hover { transform: scale(1.06); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 oklch(62% 0.14 66 / 0.5), var(--shadow-lg); } 50% { box-shadow: 0 0 0 14px oklch(62% 0.14 66 / 0), var(--shadow-lg); } }
@media (prefers-reduced-motion: reduce) { .float-call { animation: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::before { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
    position: absolute; top: 74px; left: 0; right: 0; background: var(--surface);
    padding: 1.4rem clamp(1.1rem, 4vw, 2.2rem); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .linhvuc-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 0.9rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::before { display: none; }
  .markets { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}
