/* ==========================================================================
   VIT HR — portal landing page
   --------------------------------------------------------------------------
   Layout and component anatomy follow the VNPF One portal (vnpf.one), which
   is entirely token-driven; the brand ramp is swapped for VIT's navy and
   signal yellow. Yellow is a non-text accent only: #f6c515 on white is
   ~1.6:1, so every text/interactive colour is navy.

   Contrast (WCAG 2.1):
     --brand       #082b55 on #fff  13.9:1   AAA
     --brand-dark  #051d38 on #fff  16.6:1   AAA
     --ink         on --brand-light 12.8:1
   ========================================================================== */

@font-face{font-family:Montserrat;src:url('/assets/fonts/montserrat-400.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/assets/fonts/montserrat-500.ttf') format('truetype');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/assets/fonts/montserrat-600.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/assets/fonts/montserrat-700.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:'Varela Round';src:url('/assets/fonts/varela-round-400.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}

:root {
  /* ---- Brand ramp ---- */
  --brand: #082b55;          /* VIT navy — primary */
  --brand-dark: #051d38;     /* hover */
  --brand-light: #e9eff7;    /* tint */
  --brand-accent: #f6c515;   /* VIT signal yellow — marks, dots, bullets only */

  /* ---- Secondary accents (environment marks) ---- */
  --amber: #f8991c;
  --amber-tint: #fdf1e0;
  --amber-ink: #96570a;
  --gold-tint: #fdf5d0;
  --gold-ink: #6f5a00;

  /* ---- Neutrals ---- */
  --bg: #f7f7f8;
  --card: #fff;
  --border: #e5e7eb;
  --ink: #1f2430;
  --muted: #64748b;

  /* ---- Shape + type ---- */
  --radius-card: 12px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px #08182c0d;
  --shadow-soft: 0 12px 32px rgba(8, 43, 85, 0.08);
  --shadow-pop: 0 8px 24px rgba(31, 36, 48, 0.12);

  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Varela Round", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --content-max: 1200px;
}

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

.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;
}
.sr-only:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 1000;
  width: auto; height: auto; margin: 0; padding: .75rem 1rem;
  clip: auto; white-space: normal;
  background: var(--brand-accent); color: var(--brand);
  font-weight: 700; text-decoration: none;
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   Buttons + badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-control);
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand-light); }

.badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-active { background: var(--brand-light); color: var(--brand-dark); }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand img { width: 52px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name strong { color: var(--brand); }
.brand-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links > a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
}
.nav-links > a:not(.btn):hover { color: var(--brand); }

.env-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-pill);
  padding: 4px 11px 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.env-dot {
  width: 7px; height: 7px; border-radius: 999px;
  /* Fixed status color, not the brand accent — this dot means
     "operational", independent of whatever hue --brand-accent is. */
  background: #22c55e;
  box-shadow: 0 0 0 3px #dcfce7;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 7px 9px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 18px; height: 18px; display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 380px at 12% -10%, var(--brand-light) 0%, transparent 65%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  column-gap: clamp(1.75rem, 4vw, 3.25rem);
  row-gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: center;
}
.hero-copy { grid-column: 1; min-width: 0; }
.hero-photo { grid-column: 2; min-width: 0; }
.hero-meta { grid-column: 1 / -1; }

.eyebrow {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px 6px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0;
}
.eyebrow b {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 3px 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: .5em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  color: var(--ink);
  opacity: .82;
  max-width: 54ch;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 3px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-photo {
  position: relative;
  margin: 0;
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: left 42%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.hero-photo figcaption {
  margin-top: .85rem;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

/* ==========================================================================
   Section furniture
   ========================================================================== */

.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); margin-bottom: .45em; }
.section-head p { color: var(--muted); margin: 0; }

.kicker {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .75rem;
}

/* ==========================================================================
   Module cards
   ========================================================================== */

.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.module {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.module:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.module-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-icon svg { width: 22px; height: 22px; }

.module-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}

.module h3 { font-size: 1.2rem; margin-bottom: .4em; }
.module > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.module-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.module-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.5;
}
.module-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--brand-accent);
}

.module-foot {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.module-foot .badge { margin-left: auto; }

/* ==========================================================================
   Environment / resource cards
   ========================================================================== */

.envs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.env-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, background-color .2s ease;
}
.env-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); color: var(--ink); }
.env-card-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.env-prd { background: var(--brand-light); color: var(--brand-dark); }
.env-uat { background: var(--amber-tint); color: var(--amber-ink); }
.env-trn { background: var(--gold-tint); color: var(--gold-ink); }
.env-card strong { display: block; font-size: 14px; font-family: var(--font-display); }
.env-card small { display: block; font-size: 12px; color: var(--muted); }
.env-card-arrow { margin-left: auto; color: var(--muted); }
.env-card-arrow svg { width: 16px; height: 16px; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 2.5rem 0 2rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-grid p { font-size: 13px; color: var(--muted); margin: .5rem 0 0; max-width: 42ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.footer-bar {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.footer-bar a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border); }
.footer-bar a:hover { color: var(--brand); border-bottom-color: currentColor; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy, .hero-photo { grid-column: 1; }
  .hero-photo img { aspect-ratio: 2 / 1; }
  .modules { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 84px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
    box-shadow: var(--shadow-pop);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
  .env-chip { align-self: flex-start; }
}

@media (max-width: 620px) {
  .eyebrow { font-size: 14px; padding: 5px 13px 5px 7px; gap: 8px; }
  .eyebrow b { font-size: 13px; padding: 3px 10px; }
}

@media (max-width: 480px) {
  .nav .brand-sub { display: none; }
  .nav .brand img { width: 38px; }
  .hero-meta { gap: 1.25rem 1.75rem; }
}
