/* STK Tech México — site styles
   Palette: jacaranda violet (Mexico City's spring trees) on a cool near-white.
   Type: Archivo (variable weight + width), self-hosted so no third-party requests. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --paper: #FBFAFD;
  --lila: #EFEBF7;
  --ink: #211A33;
  --ink-soft: #57506B;
  --jacaranda: #4B2E9A;
  --jacaranda-deep: #35206F;
  --rule: #D8D1E8;
  --highlight: #FFEB99;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(3.5rem, 8vw, 6.5rem);
  --measure: 40rem;

  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

@media (min-width: 45em) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, p, ul { margin: 0; }

::selection { background: var(--lila); color: var(--jacaranda-deep); }

a {
  color: var(--jacaranda);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--jacaranda-deep); text-decoration-thickness: 2px; }

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

.container {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 0.5rem 0.875rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 10;
}

.skip-link:focus { top: 0.75rem; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }

/* Mobile: name + language switch on the first row, section links below.
   Wider: everything on one row, language switch set off by a rule. */
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding-block: 1.125rem;
}

.brand {
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
}

.brand:hover { color: var(--jacaranda); }

.site-nav {
  order: 3;
  flex-basis: 100%;
  font-size: 0.9375rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
}

.site-nav a,
.lang-switch {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover,
.lang-switch:hover { color: var(--jacaranda); text-decoration: underline; }

.lang-switch { font-weight: 600; }

@media (min-width: 45em) {
  .site-nav {
    order: 0;
    flex-basis: auto;
  }

  .lang-switch {
    padding-left: 1.5rem;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(3.5rem, 11vw, 8.5rem);
  padding-bottom: clamp(2.75rem, 7vw, 5.5rem);
}

.hero__title { font-weight: inherit; }

.hero__name {
  display: block;
  color: var(--jacaranda);
  font-size: clamp(3rem, 13vw, 9.25rem);
  font-weight: 760;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.hero__line { display: block; }

.hero__legal {
  display: block;
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  color: var(--ink-soft);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 500;
  font-stretch: 112%;
  line-height: 1.2;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}

.section--band {
  background: var(--lila);
  border-top-color: transparent;
}

.section--band + .section { border-top-color: transparent; }

.section__grid {
  display: grid;
  row-gap: 1.5rem;
}

@media (min-width: 56em) {
  .section__grid,
  .service {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }

  .section__title {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

.section__title {
  font-size: clamp(1.625rem, 2.7vw, 2.25rem);
  font-weight: 680;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.prose { max-width: var(--measure); }

.prose > * + * { margin-top: 1.1em; }

.lede {
  font-size: clamp(1.1875rem, 1.9vw, 1.375rem);
  line-height: 1.5;
  max-width: var(--measure);
}

.subhead {
  font-size: 1.1875rem;
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.3;
}

.prose .subhead { margin-top: 2.25rem; }

strong { font-weight: 650; }

/* Mission / vision */

.principles {
  display: grid;
  gap: 1.1em 2.5rem;
}

@media (min-width: 45em) {
  .principles { grid-template-columns: 1fr 1fr; }
}

/* Values */

.values {
  list-style: none;
  padding: 0;
}

.prose .values { margin-top: 0.75rem; }

.values li {
  padding-block: 0.875rem;
  border-top: 1px solid var(--rule);
}

.values li:last-child { border-bottom: 1px solid var(--rule); }

/* Services */

.services {
  list-style: none;
  padding: 0;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.service {
  display: grid;
  row-gap: 0.5rem;
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--rule);
}

.service:last-child { border-bottom: 1px solid var(--rule); }

.service__name {
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.3;
  text-wrap: balance;
}

.service__desc { max-width: var(--measure); }

.section--band .service,
.section--band .service:last-child { border-color: #D3CAE6; }

/* Contact */

.notice {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-left: 1.25rem;
  border-left: 3px solid var(--jacaranda);
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.notice__title {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
  margin-bottom: 0.375rem;
}

/* Values STK still has to confirm (contact email, final URL). Remove with scripts/fill-pending.mjs. */
.pending {
  background: var(--highlight);
  color: var(--ink);
  padding: 0 0.2em;
  border-radius: 2px;
  outline: 1px dashed #A07A00;
  outline-offset: -1px;
}

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-space); }

.legal__title {
  color: var(--jacaranda);
  font-size: clamp(2.25rem, 4.6vw, 3.25rem);
  font-weight: 720;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.legal__updated {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 56em) {
  .legal__head {
    position: sticky;
    top: 2rem;
    align-self: start;
  }
}

.legal__body { max-width: var(--measure); }

.legal__body section + section { margin-top: 2rem; }

.legal__body h2 {
  font-size: 1.1875rem;
  font-weight: 650;
  font-stretch: 106%;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* ---------- Not found ---------- */

.not-found { padding-block: clamp(4rem, 12vw, 9rem); }

.not-found__block + .not-found__block { margin-top: 3rem; }

.not-found__title {
  color: var(--jacaranda);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 720;
  font-stretch: 118%;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.section--band + .site-footer { border-top-color: transparent; }

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
}

.site-footer a { color: var(--ink); }

.site-footer a[aria-current="page"] {
  color: var(--jacaranda);
  font-weight: 600;
}

/* ---------- Print (for KYC screenshots / PDFs) ---------- */

@media print {
  body { background: #fff; font-size: 11pt; }
  .skip-link, .site-nav { display: none; }
  .section--band { background: none; }
  .section__title, .legal__head { position: static; }
  .hero { padding-block: 1rem 2rem; }
  .hero__name { font-size: 48pt; }
}
