/* luquilabs.pt - tokens follow marketing/identidade-visual/README.md */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinta: #1B1F2A;
  --jade: #14A06F;
  --jade-escuro: #0D6B4A;
  --fundo: #FFFFFF;
  --painel: #F3F4F6;
  --texto: #1B1F2A;
  --texto-secundario: #5B6170;
  --linha: #E2E4E9;
  --contacto-fundo: #1B1F2A;
  --contacto-texto: #F4F5F7;
  --contacto-secundario: #A3A8B4;
  --largura: 1080px;
  --margem: 24px;
  --entre-secoes: 88px;
  --raio: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #121419;
    --painel: #1B1F2A;
    --texto: #F4F5F7;
    --texto-secundario: #A3A8B4;
    --linha: #2C3140;
    --jade-escuro: #8FE0BE;
    --contacto-fundo: #1B1F2A;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.envelope {
  width: 100%;
  max-width: calc(var(--largura) + 2 * var(--margem));
  margin-inline: auto;
  padding-inline: var(--margem);
}

.saltar {
  position: absolute;
  left: var(--margem);
  top: -60px;
  padding: 8px 14px;
  background: var(--tinta);
  color: #F4F5F7;
  border-radius: var(--raio);
  z-index: 10;
}

.saltar:focus {
  top: 12px;
}

/* Header */

.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.topo__marca {
  display: block;
  line-height: 0;
}

.marca {
  height: 34px;
  width: auto;
}

.marca--escuro {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .marca--claro {
    display: none;
  }

  .marca--escuro {
    display: block;
  }
}

.topo__nav {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}

.topo__nav a {
  text-decoration: none;
  color: var(--texto-secundario);
}

.topo__nav a:hover {
  color: var(--texto);
}

/* Opening */

.abertura {
  padding-top: 72px;
}

.abertura h1 {
  max-width: 17ch;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.abertura__lead {
  max-width: 34em;
  margin-top: 28px;
  font-size: 20px;
  color: var(--texto-secundario);
}

.abertura__acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.botao {
  display: inline-block;
  padding: 14px 22px;
  border-radius: var(--raio);
  background: var(--texto);
  color: var(--fundo);
  font-weight: 600;
  text-decoration: none;
}

.botao:hover {
  background: var(--jade-escuro);
}

.botao--claro {
  background: #F4F5F7;
  color: var(--tinta);
}

.botao--claro:hover {
  background: var(--jade);
  color: var(--tinta);
}

.ligacao {
  font-weight: 600;
  color: var(--jade-escuro);
  text-underline-offset: 4px;
}

/* The path: the single brand moment - a line that travels and lands on the jade dot */

.caminho {
  margin-top: 64px;
}

.caminho svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.caminho__traco {
  fill: none;
  stroke: var(--texto);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.caminho__ponto {
  fill: var(--jade);
  transform-box: fill-box;
  transform-origin: center;
}

.caminho__legendas {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 15px;
  color: var(--texto-secundario);
}

@media (prefers-reduced-motion: no-preference) {
  .caminho__traco {
    stroke-dashoffset: 1;
    animation: desenhar 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
  }

  .caminho__ponto {
    transform: scale(0);
    animation: chegar 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.85s forwards;
  }

  html {
    scroll-behavior: smooth;
  }
}

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

@keyframes desenhar {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes chegar {
  to {
    transform: scale(1);
  }
}

/* Sections */

.secao {
  padding-top: var(--entre-secoes);
}

.grelha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 48px;
  /* rule only as wide as the content, not the padded box */
  background: linear-gradient(var(--linha), var(--linha)) var(--margem) 0 / calc(100% - 2 * var(--margem)) 1px no-repeat;
  padding-top: 28px;
}

.secao .grelha {
  max-width: calc(var(--largura) + 2 * var(--margem));
}

h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.texto {
  max-width: 38em;
}

.texto p + p {
  margin-top: 14px;
}

/* Services: three side-by-side blocks across the full width */
.grelha--larga {
  grid-template-columns: minmax(0, 1fr);
}

.ofertas {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.ofertas li {
  padding: 28px 26px 30px;
  border-radius: var(--raio);
  background: var(--painel);
}

/* Line icons from Lucide (ISC licence) */
.ofertas__icone {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--jade);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ofertas h3 {
  max-width: 15ch;
  min-height: 2.4em;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ofertas li p {
  margin-top: 16px;
}

.ofertas p {
  margin-top: 6px;
  max-width: 38em;
  color: var(--texto-secundario);
}

.fundadores {
  list-style: none;
  padding: 0;
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}

.fundadores__papel {
  margin-top: 2px;
  font-size: 15px;
  color: var(--texto-secundario);
}

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

@media (max-width: 760px) {
  .fundadores {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Contact */

.contacto {
  margin-top: var(--entre-secoes);
  padding-block: 80px;
  background: var(--contacto-fundo);
  color: var(--contacto-texto);
}

.contacto h2 {
  max-width: 20ch;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.contacto p {
  max-width: 34em;
  margin-top: 18px;
  color: var(--contacto-secundario);
}

.contacto .botao {
  margin-top: 32px;
}

/* Footer */

.rodape {
  background: var(--contacto-fundo);
  color: var(--contacto-secundario);
  font-size: 14px;
}

.rodape a {
  color: inherit;
  text-underline-offset: 3px;
}

.rodape a:hover {
  color: #FFFFFF;
}

.rodape__linha {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid #2C3140;
}

/* Small screens */

@media (max-width: 760px) {
  :root {
    --margem: 22px;
    --entre-secoes: 64px;
  }

  .topo__linha {
    padding-block: 20px;
  }

  .marca {
    height: 28px;
  }

  .opcional {
    display: none;
  }

  .abertura {
    padding-top: 40px;
  }

  .abertura__lead {
    font-size: 18px;
  }

  .caminho {
    margin-top: 44px;
  }

  .caminho__traco {
    stroke-width: 20;
  }

  .grelha {
    grid-template-columns: minmax(0, 1fr);
  }

  .ofertas {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacto {
    padding-block: 56px;
  }
}
