/* Galpão Labs: identidade do Grupo Galpão em versão clara.
   Claro = superfície desert com tinta navy; escuro = o navy da marca. */

@font-face {
  font-family: "Ubuntu";
  src: url("/fonts/ubuntu-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --navy: #00131d;
  --aqua: #003f61;
  --aqua-light: #0d6da0;
  --cyan: #45bdfe;
  --gold: #e6c364;
  --desert: #fffaf3;

  --bg: var(--desert);
  --surface: #ffffff;
  --ink: var(--navy);
  --ink-soft: #3d5566;
  --mark: var(--aqua);
  --link: var(--aqua-light);
  --line: rgb(0 63 97 / 0.14);
  --accent: var(--gold);

  --display: "Ubuntu", ui-sans-serif, system-ui, sans-serif;
  --text: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy);
    --surface: #001a29;
    --ink: var(--desert);
    --ink-soft: #9db4c4;
    --mark: var(--cyan);
    --link: #89d5fe;
    --line: rgb(137 213 254 / 0.16);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line) var(--bg);
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .wrap {
    padding-inline: 32px;
  }
}

/* ---------- Topo ---------- */

.top {
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 26px;
  height: auto;
  color: var(--mark);
}
.top nav {
  display: flex;
  gap: 4px;
}
.top nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.top nav a:hover {
  background: var(--line);
  color: var(--ink);
}
.top nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0;
}

/* ---------- Conteúdo ---------- */

main {
  flex: 1;
  padding-block: clamp(48px, 9vw, 112px) clamp(56px, 8vw, 96px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
}
.hero .sub {
  margin: 0.5em 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  color: var(--mark);
}
.hero .rule {
  width: 56px;
  height: 3px;
  margin: 32px 0;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
}
.hero p {
  max-width: 34rem;
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.dados {
  max-width: 34rem;
  margin: 40px 0 0;
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
}
.dados dt,
.dados dd {
  margin: 0;
  padding: 12px 0;
}
.dados dt {
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.dados dd {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.dados dt:not(:last-of-type),
.dados dd:not(:last-of-type) {
  border-bottom: 1px solid var(--line);
}
.dados dd {
  font-variant-numeric: tabular-nums;
}

/* ---------- Início ---------- */

main.home {
  padding: 0;
}
.intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 10vw, 128px) clamp(56px, 9vw, 112px);
}
/* Símbolo do Grupo Galpão em grande escala, como marca d'água. */
.intro::after {
  content: "";
  position: absolute;
  top: 50%;
  right: max(-120px, calc((100vw - 1040px) / 2 - 40px));
  width: clamp(260px, 32vw, 420px);
  aspect-ratio: 469 / 542;
  transform: translateY(-50%);
  background: var(--mark);
  opacity: 0.1;
  -webkit-mask: url("/icons/simbolo.svg") center / contain no-repeat;
  mask: url("/icons/simbolo.svg") center / contain no-repeat;
  pointer-events: none;
}
.intro .wrap {
  position: relative;
  z-index: 1;
}
.intro h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.025em;
}
.intro .sub {
  margin: 0.45em 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  line-height: 1.3;
  color: var(--mark);
}
.intro .rule {
  width: 56px;
  height: 3px;
  margin: 32px 0;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
}
.intro .lead {
  max-width: 36rem;
  margin: 0;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  line-height: 1.55;
}
.intro .btn {
  margin-top: 32px;
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

.capacidades {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.capacidades li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.capacidades li:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}
.icone {
  width: 64px;
  height: 44px;
  margin-top: 2px;
  background: var(--mark);
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.capacidades h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.3;
}
.capacidades p {
  margin: 0;
  color: var(--ink-soft);
}

/* Faixa navy da marca com os dados da empresa. */
.empresa {
  background: var(--navy);
  color: var(--desert);
  --ink-soft: #9db4c4;
  --line: rgb(137 213 254 / 0.16);
  --link: #89d5fe;
  --surface: #001a29;
}
.empresa .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.empresa h2 {
  margin-bottom: 16px;
}
.empresa p {
  margin: 0 0 1em;
  max-width: 28rem;
  color: var(--ink-soft);
}
.empresa a:hover {
  color: var(--desert);
}
.empresa .dados {
  margin: 0;
  max-width: none;
}
@media (prefers-color-scheme: dark) {
  .empresa {
    background: #001a29;
    --surface: var(--navy);
  }
}

@media (max-width: 760px) {
  .capacidades,
  .empresa .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .capacidades li:nth-child(2) {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .intro::after {
    top: auto;
    bottom: -40px;
    right: -90px;
    transform: none;
    opacity: 0.07;
  }
}

/* ---------- Textos legais ---------- */

.doc > * {
  max-width: 44rem;
}
.doc h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}
.doc .updated {
  margin: 0.75em 0 2.25em;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.doc .lead {
  font-size: 1.1875rem;
}
.doc h2 {
  margin: 2.2em 0 0.6em;
  font-size: 1.375rem;
}
.doc h2 .n {
  color: var(--mark);
  margin-right: 0.35em;
}
.doc p,
.doc ul {
  margin: 0 0 1em;
}
.doc ul {
  padding-left: 1.25em;
}
.doc li {
  margin-bottom: 0.45em;
}
.doc li::marker {
  color: var(--gold);
}
.doc strong {
  font-weight: 700;
}
.doc code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--line);
}

/* ---------- 404 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 6px 16px -8px rgb(0 19 29 / 0.35);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.btn:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgb(0 19 29 / 0.45);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Rodapé ---------- */

.foot {
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-block: 28px;
}
.foot p {
  margin: 0;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot a {
  color: var(--ink-soft);
}
.foot a:hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .top .wrap {
    min-height: 64px;
  }
  .brand span {
    font-size: 1.0625rem;
  }
  .top nav a {
    padding: 8px 10px;
    font-size: 0.875rem;
  }
  .dados {
    grid-template-columns: 1fr;
    padding: 8px 20px;
  }
  .dados dt {
    padding-bottom: 0;
    border-bottom: 0 !important;
  }
  .dados dd {
    padding-top: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover {
    transition: none;
    transform: none;
  }
}
