/* ===========================================================
   PERFORMA HR — Design System
   Source: Figma UI Kit (tokens, type scale, components)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Instrument+Serif:ital@1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Backgrounds */
  --bg: #2A2A2A;
  --bg-card: #1F1F1F;
  --bg-card-alt: #1A1A1A;

  /* Text */
  --ink: #F5F5F2;
  --ink-mute: #9A9A95;
  --ink-quiet: #5C5C58;
  --on-lime: #1A1A1A;

  /* Borders */
  --border: #3A3A3A;
  --border-strong: #4A4A4A;

  /* Brand accents */
  --lime: #BFDE3C;
  --pink: #F89EF0;
  --blue: #0737FD;
  --light-blue: #8AA0FF;

  /* Functional */
  --whatsapp: #25D366;
  --telegram: #2CA5E0;
  --error: #E5484D;
  --success: #30A46C;

  /* Radius */
  --r-0: 0px;
  --r-1: 4px;
  --r-3: 8px;
  --r-full: 999px;

  /* Type */
  --font-body: 'Montserrat', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1344px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
}

.section {
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

@media (max-width: 700px) {
  .section { padding: 48px 0; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--lime);
}
.eyebrow.muted { color: var(--ink-quiet); }
.eyebrow.muted::before { background: var(--ink-quiet); }
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
}

h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}

p { margin: 0; color: var(--ink-mute); }

.lede {
  font-size: 1.15rem;
  color: var(--ink-mute);
  max-width: 640px;
  line-height: 1.4;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--lime);
  color: var(--on-lime);
}
.btn-primary:hover { background: #cbe95c; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--lime); color: var(--lime); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--ink);
  padding: 8px 0;
  border-radius: 0;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--lime); }
.btn-ghost:hover { transform: none; }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-telegram { background: var(--telegram); color: #fff; }

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-card-alt);
  font-size: 13px;
  color: var(--ink);
}
.pill .icon { width: 15px; height: 15px; color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo span { color: var(--lime); }

.main-nav {
  display: flex;
  gap: 36px;
}
.main-nav a {
  font-size: 14px;
  color: var(--ink-mute);
  transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-1);
  overflow: hidden;
}
.lang-switch button,
.lang-switch a {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 9px;
  background: transparent;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.lang-switch button.active,
.lang-switch a.active { background: #fff; color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-1);
  color: var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .header-inner.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
}
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Numbered feature blocks ---------- */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.numbered-grid > div {
  padding: 32px 12px;
  border-right: 1px solid var(--border);
}
.numbered-grid > div:last-child { border-right: none; }
.numbered-grid .num {
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 16px;
}
.numbered-grid h3 { font-size: 15px; margin-bottom: 8px; }
.numbered-grid p { font-size: 13px; }

@media (max-width: 900px) {
  .numbered-grid { grid-template-columns: 1fr; }
  .numbered-grid > div { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 33px;
}

.quote-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 33px;
  display: flex;
  flex-direction: column;
}
.quote-card .mark { font-family: var(--font-serif); font-style: italic; font-size: 40px; color: var(--lime); line-height: 1; margin-bottom: 24px; }
.quote-card p.quote { color: var(--ink); font-size: 1.15rem; margin-bottom: 24px; flex-grow: 1; }
.quote-card .meta { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 20px; }
.quote-card .meta .who { font-size: 13px; font-weight: 500; color: var(--ink); }
.quote-card .meta .role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
.quote-card .meta .loc { font-family: var(--font-mono); font-size: 11px; color: var(--ink-quiet); text-transform: uppercase; }

/* ---------- List rows (services / jobs) ---------- */
.row-list { border-top: 1px solid var(--border); }
.row-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.row-item .idx { font-family: var(--font-mono); font-size: 11px; color: var(--ink-quiet); width: 24px; }
.row-item .title { font-size: 20px; font-weight: 500; color: var(--ink); flex: 1 1 220px; }
.row-item .desc { color: var(--ink-mute); font-size: 14px; flex: 2 1 280px; }
.row-item .go {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.row-item.featured .go { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }

/* ---------- FAQ / accordion ---------- */
.faq { border-top: 1px solid var(--border); max-width: 1000px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 26px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .toggle {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.faq details[open] summary .toggle { background: var(--lime); border-color: var(--lime); color: var(--on-lime); transform: rotate(45deg); }
.faq details[open] summary { color: var(--lime); }
.faq .faq-a { color: var(--ink-mute); font-size: 15px; padding-top: 16px; line-height: 1.55; max-width: 940px; }

/* ---------- Contact channels ---------- */
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.channel-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: 41px 33px;
  text-align: center;
}
.channel-card .badge { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.channel-card.whatsapp .badge { background: var(--whatsapp); }
.channel-card.telegram .badge { background: var(--telegram); }
.channel-card h3 { margin-bottom: 10px; }
.channel-card p { margin-bottom: 28px; font-size: 14px; }

@media (max-width: 700px) { .channel-grid { grid-template-columns: 1fr; } }

/* ---------- Industry tags ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: center; }
.tag-cloud .tag { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--ink); }
.tag-cloud .tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { padding: 80px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 64px;
}
.footer-brand p { font-size: 13px; max-width: 260px; margin: 16px 0 24px; }
.footer-col h4 { margin-bottom: 20px; }
.footer-col a { display: block; font-size: 13px; color: var(--ink); padding: 6px 0; }
.footer-col a:hover { color: var(--lime); }
.social-row { display: flex; gap: 8px; }
.social-row a {
  width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: var(--r-1);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-quiet);
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lede { margin: 0 auto 40px; text-align: center; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-56 { margin-top: 56px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }
.hidden { display: none; }
