/* Archivo is one variable family with a width axis: the expanded cut
   (font-stretch above 100%) sets the headings and echoes the wing strokes of
   the eagle; the normal width sets everything else. Self-hosted, so the site
   makes no third-party requests. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* Colours live here and nowhere else. Ink is the logo's navy; lapacho is the
   pink of Asunción's lapacho trees, the page's only accent. */
:root {
  --ink: #131c2c;
  --paper: #ffffff;
  --mist: #eef1f5;
  --slate: #4b5667;
  --line: #d6dce4;
  --lapacho: #b8336c;
  --on-ink: #ffffff;
  --on-ink-muted: #b9c1ce;

  --wide: 125%;
  --semi-wide: 112%;

  --max-width: 1120px;
  --gutter: 20px;
  --measure: 62ch;
  --header-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  /* In-page links land below the sticky header rather than under it. */
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-stretch: var(--wide);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.3125rem;
  font-stretch: var(--semi-wide);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--lapacho);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--lapacho);
}

:focus-visible {
  outline: 3px solid var(--lapacho);
  outline-offset: 3px;
}

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

.lead {
  max-width: var(--measure);
  font-size: 1.3125rem;
  line-height: 1.5;
  color: var(--slate);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-height);
}

/* The logo, laid out horizontally: the eagle faces right, into the name. */
.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.brand .eagle {
  width: auto;
  height: 30px;
}

.brand .wordmark {
  width: 216px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 1rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav .lang {
  color: var(--slate);
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.button.solid {
  background: var(--ink);
  color: var(--on-ink);
}

.button.solid:hover {
  background: var(--lapacho);
  border-color: var(--lapacho);
  color: var(--on-ink);
}

.button.outline:hover {
  border-color: var(--lapacho);
}

.site-nav .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
}

.site-nav .short {
  display: none;
}

/* On a phone only the language switch and WhatsApp stay in the header; the
   page is one scroll, so the section links step aside. */
@media (max-width: 960px) {
  .site-nav .section-link {
    display: none;
  }
}

/* Below this the logo needs the room: the language switch shortens to its
   code and the WhatsApp button to its icon. */
@media (max-width: 520px) {
  .header-inner {
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand .eagle {
    height: 20px;
  }

  .brand .wordmark {
    width: 164px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav .long {
    display: none;
  }

  .site-nav .short {
    display: inline;
  }

  .site-nav .button {
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }
}

@media (max-width: 360px) {
  :root {
    --gutter: 16px;
  }

  .brand .eagle {
    height: 15px;
  }

  .brand .wordmark {
    width: 124px;
  }
}

/* Hero */

.hero {
  padding: 112px 0 96px;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 8.5vw, 6rem);
  font-stretch: var(--wide);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin-top: 28px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Sections */

.section {
  padding: 96px 0;
}

.section.mist {
  background: var(--mist);
}

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

/* Paraguay statement */

.statement {
  padding: 0 0 96px;
}

.statement p {
  max-width: 34ch;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-stretch: var(--semi-wide);
  line-height: 1.35;
}

/* Services: one row per service, title beside text. */

.services {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.services li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.services p {
  max-width: var(--measure);
  color: var(--slate);
}

.services p + p {
  margin-top: 12px;
}

.services .more {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 760px) {
  .services li {
    grid-template-columns: 1fr;
  }
}

/* Consultants: the steps are a real sequence, so they are numbered. */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 12px;
  font-size: 3rem;
  font-stretch: var(--wide);
  font-weight: 750;
  line-height: 1;
  color: var(--lapacho);
}

.steps h3 {
  margin-bottom: 10px;
}

.steps p {
  color: var(--slate);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.terms {
  display: grid;
  gap: 24px 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.terms ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.terms li {
  position: relative;
  padding-left: 28px;
}

.terms li + li {
  margin-top: 10px;
}

.terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 16px;
  height: 3px;
  background: var(--lapacho);
}

.terms .note {
  grid-column: 2;
  max-width: var(--measure);
  font-size: 1rem;
  color: var(--slate);
}

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

  .terms .note {
    grid-column: auto;
  }
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}

.portrait {
  margin: 0;
  /* The frame: an ink block offset behind the photo. */
  box-shadow: 16px 16px 0 var(--ink);
  max-width: 440px;
}

.about h2 {
  margin-bottom: 8px;
}

.about .role {
  margin-bottom: 28px;
  color: var(--slate);
}

.about p + p {
  margin-top: 16px;
}

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

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .portrait {
    max-width: 360px;
  }
}

/* Clients and partner */

.clients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.3125rem;
  font-stretch: var(--semi-wide);
  font-weight: 600;
  color: var(--slate);
}

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

.partner {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.partner p {
  margin-top: 8px;
  max-width: var(--measure);
  color: var(--slate);
}

/* Contact and footer share the ink ground that closes the page. */

.contact {
  background: var(--ink);
  color: var(--on-ink);
}

.contact .lead {
  color: var(--on-ink-muted);
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
}

.contact-list dt {
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--on-ink-muted);
}

.contact-list dd {
  margin: 0;
  font-size: 1.3125rem;
  font-stretch: var(--semi-wide);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact a:hover {
  color: var(--on-ink);
  text-decoration-color: var(--on-ink);
}

@media (max-width: 860px) {
  .contact-list {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  padding: 32px 0 40px;
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

/* 404 page */

.not-found {
  display: grid;
  place-items: center;
  min-height: 80vh;
  text-align: center;
}

.not-found .eagle {
  width: 200px;
  margin: 0 auto 48px;
}

.not-found h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-stretch: var(--wide);
}

.not-found p {
  margin-top: 16px;
  color: var(--slate);
}

.not-found .actions {
  justify-content: center;
}
