/* =========================================================================
   Pharbaco Design System  —  v2 (Brand Guideline, 41pp ebook)
   Source of truth: uploads/PHARBACO-compressed-ebook.pdf
   This file supersedes every earlier rule (sky-gradient canvas, watermark
   haze, Be Vietnam Pro / Bricolage). The brand book is now authoritative.
   ========================================================================= */

/* --- Type ---------------------------------------------------------------
   Brand book fonts, supplied as real files (uploads → /fonts):
     UTM Avo                  → geometric primary (body + headlines)
     NVN Motherland Signature → handwritten accent (taglines / quotes / highlights)
   Both ship as a single Regular (400) weight only; headline "Bold" is
   synthesised by the browser (font-synthesis: weight). If you obtain the
   real Light & Bold cuts, add @font-face entries at 300 / 700.            */
@font-face {
  font-family: 'UTM Avo';
  src: url('fonts/UTMAvo.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NVN Motherland Signature';
  src: url('fonts/NVN-Motherland-Signature.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* ---------- Brand palette (Brand Guideline p.11, hexes sampled from book) ---------- */
  --pb-future:      #1850B0;   /* FUTURE BLUE — primary. Headlines, CTA, links, signage */
  --pb-future-deep: #123E8A;   /* primary pressed / hover */
  --pb-navy:        #285BA3;   /* DEEP TECH NAVY — wordmark, footer, accent, depth */
  --pb-navy-deep:   #14305C;   /* deepest navy — rare, maximum depth */
  --pb-ice:         #CCEDFF;   /* ICE SKY BLUE — secondary, soft fills, tints */
  --pb-ice-soft:    #EAF6FF;   /* lightest ice — alternating section background */

  /* Future Blue tint ramp (book shows 100/80/60/40/20/10) */
  --pb-future-80: #4673C0;
  --pb-future-60: #7497D0;
  --pb-future-40: #A3BBE0;
  --pb-future-20: #D1DDEF;
  --pb-future-10: #E8EEF7;

  /* ---------- Neutrals ---------- */
  --pb-ink:        #15233D;   /* body text */
  --pb-gray:       #5A6B82;   /* secondary text, captions */
  --pb-gray-light: #9AA8BE;
  --pb-hairline:   #DCE6F4;   /* dividers, borders */
  --pb-white:      #FFFFFF;

  /* ---------- Semantic ---------- */
  --fg-1: var(--pb-ink);
  --fg-2: var(--pb-gray);
  --fg-3: var(--pb-gray-light);
  --fg-brand:   var(--pb-future);
  --fg-display: var(--pb-future);
  --fg-accent:  var(--pb-navy);
  --fg-link:    var(--pb-future);
  --fg-link-hover: var(--pb-future-deep);
  --fg-inverse: var(--pb-white);

  --bg-page:  var(--pb-white);
  --bg-soft:  var(--pb-ice-soft);
  --bg-ice:   var(--pb-ice);
  --bg-card:  var(--pb-white);
  --bg-navy:  var(--pb-navy);

  /* ---------- Borders & radii ---------- */
  --border-hairline: 1px solid var(--pb-hairline);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* ---------- Shadows (soft, blue-tinted) ---------- */
  --shadow-sm: 0 4px 14px rgba(21, 51, 94, 0.06);
  --shadow-md: 0 14px 40px rgba(21, 51, 94, 0.10);
  --shadow-lg: 0 30px 80px rgba(21, 51, 94, 0.14);

  /* ---------- Spacing & layout ---------- */
  --container-max: 1240px;
  --container-padding: 56px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-14: 56px; --space-16: 64px; --space-20: 80px;
  --space-24: 96px; --space-32: 128px;

  /* ---------- Type families ---------- */
  --font-body:   'UTM Avo', system-ui, -apple-system, sans-serif;
  --font-script: 'NVN Motherland Signature', cursive;

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1); /* @kind other */
  --duration-fast: 150ms; /* @kind other */
  --duration-base: 300ms; /* @kind other */
}

/* =========================================================================
   PAGE  —  white-led, per the brand book. No gradient canvas, no watermark
   haze. Sections may opt into a soft Ice-Sky-Blue fill via .pb-section--soft.
   A faint tonal hexagon graphic (the stationery motif) is available as
   .pb-hexmotif — opt-in, never global.
   ========================================================================= */

html, body {
  font-family: var(--font-body);
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  font-synthesis: weight style;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { margin: 0; background: var(--bg-page); min-height: 100vh; }

/* Optional soft section + the tonal hexagon brand motif (light, never blurred) */
.pb-section--soft { background: var(--bg-soft); }
.pb-section--ice  { background: var(--bg-ice); }
.pb-hexmotif { position: relative; overflow: hidden; }
.pb-hexmotif::after {
  content: "";
  position: absolute;
  right: -6%; bottom: -22%;
  width: 46%; max-width: 560px; aspect-ratio: 1;
  background: url("assets/logo-mark.png") center / contain no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

/* =========================================================================
   Type  —  geometric (UTM Avo → Montserrat) with handwritten accents.
   ========================================================================= */

/* Big upright display — geometric, uppercase, tight. */
.pb-display {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(60px, 9vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--fg-display);
  text-transform: uppercase;
  margin: 0;
}

h1, .h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--fg-display);
  text-transform: uppercase;
  margin: 0 0 var(--space-5);
}

h2, .h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--fg-display);
  text-transform: uppercase;
  margin: 0 0 var(--space-6);
}

h3, .h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--fg-1);
  margin: 0 0 var(--space-3);
}

/* The handwritten accent — NVN Motherland Signature → Dancing Script.
   ONLY for taglines, quotes, and highlight words. Never body, never long copy. */
.pb-script {
  font-family: var(--font-script);
  font-weight: 700;
  font-style: normal;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  color: var(--fg-brand);
  letter-spacing: 0;
}
.pb-script--navy { color: var(--fg-accent); }

/* Eyebrow — geometric, wide-tracked uppercase, brand blue. */
.pb-eyebrow,
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-brand);
  margin: 0 0 var(--space-4);
}

/* Quiet chrome / label text (topbar/footer secondary). */
.pb-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}

p, .body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--fg-2);
  margin: 0 0 var(--space-4);
}
.body--ink { color: var(--fg-1); }
.lead { font-size: 18px; line-height: 1.7; color: var(--fg-1); font-weight: 400; }

a, .link {
  color: var(--fg-link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
a:hover, .link:hover { color: var(--fg-link-hover); }

/* =========================================================================
   Buttons — Future Blue pill, white text; hover → deeper blue + lift.
   ========================================================================= */

.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--fg-inverse);
  background: var(--pb-future);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
              transform var(--duration-fast) var(--ease-standard);
}
.pb-btn:hover { background: var(--pb-future-deep); transform: translateY(-1px); color: var(--fg-inverse); }

.pb-btn-ghost {
  background: transparent;
  color: var(--pb-future);
  border: 1.5px solid var(--pb-future);
  padding: 12.5px 28px;
}
.pb-btn-ghost:hover {
  background: var(--pb-future); color: var(--fg-inverse); border-color: var(--pb-future);
  transform: translateY(-1px);
}

/* =========================================================================
   Chrome — topbar & footer.
   Footer per brand book p.7: minimal, bottom-right, brand-blue company block.
   ========================================================================= */

.pb-topbar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-6) var(--container-padding);
}
.pb-topbar .pb-logo { display: block; }
.pb-topbar .pb-logo img { height: 112px; display: block; }
.pb-nav { display: flex; gap: var(--space-8); align-items: center; }
.pb-nav a {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  letter-spacing: 0.02em; color: var(--fg-1);
}
.pb-nav a:hover { color: var(--pb-future); }

.pb-footer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-10) var(--container-padding) var(--space-12);
  border-top: var(--border-hairline);
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-8);
}
.pb-footer .pb-logo img { height: 80px; display: block; }
.pb-footer-info {
  text-align: right;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--pb-navy);
}
.pb-footer-info b { font-weight: 700; display: block; margin-bottom: 4px; letter-spacing: 0.01em; font-size: 25px; line-height: 1.25; }

/* =========================================================================
   Stat band — "Năng lực của PHARBACO".
   ========================================================================= */

.pb-stats-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  color: var(--fg-2);
  text-align: center;
  margin: 0 0 var(--space-10);
}
.pb-stats-title b {
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fg-display);
  letter-spacing: 0;
}
.pb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--border-hairline);
  border-bottom: var(--border-hairline);
  padding: var(--space-10) 0;
}
.pb-stat { text-align: center; }
.pb-stat-v {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pb-future);
}
.pb-stat-l {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  margin-top: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================================
   Card / image utilities
   ========================================================================= */
.pb-card {
  background: var(--bg-card);
  border: var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.pb-imgcard {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pb-imgcard img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Chip / tag */
.pb-chip {
  display: inline-flex; align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--pb-ice-soft);
  color: var(--pb-navy);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em;
}
