@font-face {
  font-family: 'Raleway';
  src: url('fonts/raleway-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --paper: #ececec;
  --ink: #1e2024;
  --muted: #565a61;
  --green: #00a64b;
  --green-ink: #007a37;
  --line: #d8d8d8;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
  /* Largura da faixa de traços verdes à direita da abertura. */
  --band: clamp(4rem, 14vw, 13rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Raleway', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
}

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

.muted {
  color: var(--muted);
}

.narrow {
  max-width: 34rem;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* ─── Abertura ─────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  min-height: min(52rem, 100svh);
  display: flex;
  flex-direction: column;
}

/* Faixa de traços verdes desenhados à mão, como nos materiais da marca. */
.strokes {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--band);
  height: 100%;
  opacity: 0.95;
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  padding-right: calc(var(--gutter) + var(--band));
}

.brand {
  display: inline-flex;
  color: var(--white);
}

.brand svg {
  width: 6.5rem;
  height: auto;
}

.bar-links {
  display: flex;
  gap: 1.75rem;
}

.bar-links a {
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  color: #b9bcc2;
  transition: color 150ms;
}

.bar-links a:hover {
  color: var(--white);
}

.hero-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
  padding-right: calc(var(--gutter) + var(--band));
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 9vw, 7.25rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
  animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lead {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: #c9ccd1;
  animation: rise 700ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  animation: rise 700ms 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 150ms,
    border-color 150ms,
    transform 150ms;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 6px 18px -6px rgb(0 166 75 / 0.6);
}

.btn-primary:hover {
  background: #00913f;
}

.btn-ghost {
  border: 1.5px solid #3a3d42;
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
}

/* ─── Serviços ─────────────────────────────────────────────── */

.services {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--black);
}

.service-list li {
  padding: 2.25rem 2.5rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list li:nth-child(even) {
  padding: 2.25rem 0 2.5rem 2.5rem;
  border-left: 1px solid var(--line);
}

.service-list h3 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.service-list h3::after {
  content: '.';
  color: var(--green);
}

.service-list p {
  max-width: 30rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

/* ─── Sobre ────────────────────────────────────────────────── */

.about {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about h2 {
  max-width: 12ch;
}

.about-text {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
}

/* ─── Contato ──────────────────────────────────────────────── */

.contact {
  padding: clamp(4.5rem, 11vw, 8rem) 0;
}

.contact .muted {
  margin-top: 1rem;
}

.mail {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: clamp(1.25rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  word-break: break-word;
  background: linear-gradient(var(--green), var(--green)) left bottom / 100% 4px no-repeat;
  padding-bottom: 0.15em;
  transition: color 150ms;
}

.mail:hover {
  color: var(--green-ink);
}

/* ─── Rodapé ───────────────────────────────────────────────── */

.foot {
  padding: 2rem 0;
  background: var(--black);
  color: #b9bcc2;
  font-size: 0.875rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--white);
}

/* ─── Telas pequenas ───────────────────────────────────────── */

@media (max-width: 720px) {
  .bar-links {
    gap: 1.25rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-list li,
  .service-list li:nth-child(even) {
    padding: 1.75rem 0 2rem;
    border-left: 0;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --band: 2.5rem;
  }

  .bar-links a:first-child {
    display: none;
  }

  .brand svg {
    width: 5.25rem;
  }
}

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

  h1,
  .lead,
  .actions {
    animation: none;
  }
}
