/**
 * Nam Việt — Base / shared shell styles (v2 industrial direction).
 *
 * Reset, typography, container, shared industrial atoms (.kicker, .num-tag,
 * .btn*, .notch, .grid-bg), section shell + accessibility primitives.
 * Design tokens (--ink, --orange, --s-*, --display, …) are printed inline by
 * inc/design-tokens.php. Source of truth: design/v2/*.html.
 *
 * Enqueued site-wide via inc/hooks-frontend.php (handle `nv-base`).
 */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body, 'Inter', system-ui, sans-serif);
  color: var(--ink, #1A1C1F);
  background: var(--paper, #F4F2EE);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display, 'Montserrat', sans-serif);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
}
::selection { background: var(--orange); color: #fff; }

/* ============ CONTAINER ============ */
.container { max-width: var(--container, 1240px); margin: 0 auto; padding: 0 28px; }

/* ============ SHARED INDUSTRIAL ATOMS ============ */
.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-700);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker--light { color: var(--orange); }
.kicker--ink { color: var(--orange); }
.num-tag { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--s-400); letter-spacing: 0.05em; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.01em;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--sh-orange); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 18px 36px rgba(217,131,42,0.4); }
.btn-ghost { background: transparent; border-color: var(--s-300); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.07); }
.btn .ar { transition: transform 0.2s ease; }
.btn:hover .ar { transform: translateX(4px); }

/* notched (engineered) corner */
.notch { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%); }

/* blueprint grid overlay (used on dark sections) */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 40%, #000 40%, transparent 100%);
}

/* ============ SECTION SHELL ============ */
section { padding: 100px 0; }
.sec-head { max-width: 640px; margin-bottom: 54px; }
.sec-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 18px 0 14px; color: var(--ink); }
.sec-head p { color: var(--s-500); font-size: 1.05rem; }

/* ============ ACCESSIBILITY ============ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; top: 8px; left: 8px;
  background: var(--ink); color: #fff;
  padding: 10px 16px;
  font-weight: 600; text-decoration: none; z-index: 1000;
  transform: translateY(-150%); transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding: 22px 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono); font-size: 0.78rem; list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--orange-700); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--s-400); }

/* ============ INNER-PAGE HERO BAND (shared across all inner pages) ============ */
/* Dark breadcrumb hero — every non-home page opens with this. Source: any
   design/v2/<inner>.html top region. The background photo is set inline per page. */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 0; }
.page-hero .ph-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.20; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,25,0.92), rgba(20,22,25,0.55)); }
.page-hero .container { position: relative; z-index: 2; padding: 62px 28px 70px; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); color: #fff; margin: 14px 0 14px; }
.page-hero p { color: var(--s-300); font-size: 1.08rem; max-width: 42em; }
/* crumb — mono, dark-hero variant of the breadcrumb */
.crumb { padding: 0; margin: 0 0 18px; border: none; list-style: none;
  font-family: var(--mono); font-size: 0.76rem; color: var(--s-400); letter-spacing: 0.03em;
  display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.crumb li { display: inline-flex; align-items: center; gap: 9px; }
.crumb a { color: var(--s-400); transition: color 0.2s; }
.crumb a:hover { color: #fff; }
.crumb .sep { color: var(--orange); }
.crumb .cur { color: #fff; }
