/* =========================
   Identidade visual
========================= */
:root {
  --marinho: #030721;
  --marinho-claro: #101640;
  --azul: #1066d5;
  --ciano: #08d2fb;
  --branco: #fbfbfb;
  --fundo: #f3f6fb;
  --texto: #0b1028;
  --texto-claro: #d7def4;
  --texto-suave: #5a657a;
  --linha-clara: #dbe2ee;
  --linha-escura: rgba(251, 251, 251, 0.16);
  --fonte: "Manrope", Arial, sans-serif;
}

/* =========================
   Base
========================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-width: 320px;
  overflow-x: hidden;

  background-color: var(--branco);
  color: var(--texto);

  font-family: var(--fonte);
  font-size: 16px;
  line-height: 1.65;
}

body.menu-aberto {
  overflow: hidden;
}

::selection {
  background-color: var(--ciano);
  color: var(--marinho);
}

* {
  scrollbar-color: var(--azul) var(--marinho);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background-color: var(--marinho);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--azul);
  border: 2px solid var(--marinho);
}

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

a,
button,
summary {
  font: inherit;
}

a {
  color: inherit;
}

button,
summary {
  cursor: pointer;
}

section[id] {
  scroll-margin-top: 82px;
}

.container {
  width: min(90%, 1120px);
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;

  padding: 10px 14px;

  background-color: var(--branco);
  color: var(--marinho);

  font-weight: 800;
  text-decoration: none;

  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* =========================
   Cabeçalho
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background-color: var(--marinho);
  border-bottom: 1px solid var(--linha-escura);

  transition: box-shadow 180ms ease;
}

.site-header.com-sombra {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.header-content {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  flex: 0 0 auto;
  width: 184px;
}

.logo img,
.footer-logo img {
  width: 100%;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  position: relative;

  padding: 10px 0;

  color: rgba(251, 251, 251, 0.78);

  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  transition: color 180ms ease;
}

.menu a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;

  height: 1px;
  background-color: var(--ciano);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.ativo {
  color: var(--branco);
}

.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.ativo::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-whatsapp {
  min-height: 44px;
  padding: 10px 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: var(--azul);
  color: var(--branco);

  border-radius: 6px;

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition: background-color 180ms ease, color 180ms ease;
}

.header-whatsapp:hover,
.header-whatsapp:focus-visible {
  background-color: var(--ciano);
  color: var(--marinho);
}

.menu-toggle {
  width: 44px;
  height: 44px;

  display: none;
  place-items: center;

  background-color: transparent;
  border: 1px solid var(--linha-escura);
  border-radius: 6px;
}

.menu-toggle span {
  grid-area: 1 / 1;

  width: 20px;
  height: 2px;

  background-color: var(--branco);

  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-6px);
}

.menu-toggle span:last-child {
  transform: translateY(6px);
}

.menu-toggle.ativo span:first-child {
  transform: rotate(45deg);
}

.menu-toggle.ativo span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.ativo span:last-child {
  transform: rotate(-45deg);
}

/* =========================
   Elementos compartilhados
========================= */
.btn-principal {
  min-height: 50px;
  padding: 13px 21px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: var(--azul);
  color: var(--branco);

  border-radius: 6px;

  font-weight: 700;
  text-align: center;
  text-decoration: none;

  transition: background-color 180ms ease, color 180ms ease;
}

.btn-principal:hover,
.btn-principal:focus-visible {
  background-color: var(--ciano);
  color: var(--marinho);
}

.link-seta {
  width: fit-content;

  color: var(--branco);

  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: rgba(251, 251, 251, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.link-seta::after {
  content: " →";
}

.link-seta:hover,
.link-seta:focus-visible {
  color: var(--ciano);
}

.link-escuro {
  color: var(--azul);
  text-decoration-color: rgba(16, 102, 213, 0.35);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 62px;
}

.section-heading h2,
.servicos-intro h2,
.processo > h2,
.sobre h2,
.faq h2,
.contato h2 {
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-heading h2,
.servicos-intro h2,
.sobre h2,
.faq h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.15;
}

.section-heading p,
.servicos-intro > p,
.faq-intro > p {
  max-width: 680px;

  color: var(--texto-suave);

  font-size: 17px;
  line-height: 1.75;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  isolation: isolate;

  min-height: min(650px, calc(100svh - 110px));
  padding: 96px 0 78px;

  display: flex;
  align-items: center;
  overflow: hidden;

  background-color: var(--marinho);
  color: var(--branco);
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -2;

  background-image: url("imagens/logo-inicio-arcelinotech.webp");
  background-repeat: no-repeat;
  background-position: 70% center;
  background-size: cover;

  opacity: 0.4;
  filter: saturate(0.72) contrast(1.08);
}

.hero::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  background-color: rgba(3, 7, 33, 0.68);
}

.hero-content {
  animation: apresentar-hero 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes apresentar-hero {
  from {
    opacity: 0.76;
    filter: blur(3px);
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 26px;

  font-size: 62px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: var(--ciano);
}

.hero-content > p {
  max-width: 650px;
  margin-bottom: 34px;

  color: var(--texto-claro);

  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

/* =========================
   Portfólio
========================= */
.portfolio {
  padding: 104px 0;
  background-color: var(--branco);
}

.cases {
  display: grid;
  gap: 96px;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 64px;
}

.case:nth-child(even) .case-media {
  order: 2;
}

.case-media {
  overflow: hidden;

  aspect-ratio: 16 / 10;
  background-color: var(--fundo);
  border-radius: 6px;
  box-shadow: 0 24px 54px rgba(3, 7, 33, 0.14);
}

.case-media img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: top;
}

.case-content h3 {
  margin-bottom: 7px;

  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.case-meta {
  margin-bottom: 20px;

  color: var(--azul);

  font-size: 13px;
  font-weight: 700;
}

.case-content > p:not(.case-meta) {
  max-width: 46ch;
  margin-bottom: 24px;

  color: var(--texto-suave);
  line-height: 1.75;
}

/* =========================
   Serviços e processo
========================= */
.servicos {
  padding: 96px 0;
  background-color: var(--fundo);
}

.servicos-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: end;
  gap: 72px;
}

.servicos-intro h2 {
  margin-bottom: 0;
}

.servicos-lista {
  margin-top: 58px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  border-top: 1px solid var(--linha-clara);
  border-bottom: 1px solid var(--linha-clara);
}

.servicos-lista article {
  padding: 30px 28px 32px 0;
}

.servicos-lista article + article {
  padding-left: 28px;
  border-left: 1px solid var(--linha-clara);
}

.servicos-lista h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.servicos-lista p {
  color: var(--texto-suave);
  line-height: 1.7;
}

.processo {
  margin-top: 86px;
}

.processo > h2 {
  max-width: 640px;
  margin-bottom: 38px;

  font-size: 32px;
  line-height: 1.2;
}

.processo-lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  list-style: none;
  border-top: 1px solid var(--linha-clara);
}

.processo-lista li {
  padding: 26px 28px 0 0;
}

.processo-lista li + li {
  padding-left: 28px;
  border-left: 1px solid var(--linha-clara);
}

.processo-lista span {
  display: block;
  margin-bottom: 32px;

  color: var(--azul);

  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.processo-lista h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.processo-lista p {
  color: var(--texto-suave);
}

/* =========================
   Sobre
========================= */
.sobre {
  padding: 96px 0;

  background-color: var(--marinho-claro);
  color: var(--branco);
}

.sobre-content {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 84px;
}

.sobre h2 {
  margin-bottom: 0;
}

.sobre h2 span {
  display: block;
  color: var(--ciano);
}

.sobre-texto > p {
  max-width: 62ch;
  margin-bottom: 18px;

  color: var(--texto-claro);
  font-size: 17px;
  line-height: 1.78;
}

.sobre-texto ul {
  margin-top: 34px;

  display: flex;
  flex-wrap: wrap;
  gap: 0;

  color: var(--branco);

  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.sobre-texto li + li::before {
  content: "/";
  margin: 0 14px;
  color: var(--ciano);
}

/* =========================
   FAQ
========================= */
.faq {
  padding: 96px 0;
  background-color: var(--branco);
}

.faq-content {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 84px;
}

.faq-intro h2 {
  margin-bottom: 16px;
}

.faq-lista {
  border-top: 1px solid var(--linha-clara);
}

.faq-lista details {
  border-bottom: 1px solid var(--linha-clara);
}

.faq-lista summary {
  position: relative;

  padding: 22px 44px 22px 0;

  color: var(--texto);

  font-weight: 700;
  list-style: none;
}

.faq-lista summary::-webkit-details-marker {
  display: none;
}

.faq-lista summary::after {
  content: "+";

  position: absolute;
  top: 17px;
  right: 0;

  color: var(--azul);
  font-size: 24px;
  font-weight: 500;
}

.faq-lista details[open] summary::after {
  content: "−";
}

.faq-lista details p {
  max-width: 66ch;
  padding: 0 44px 22px 0;

  color: var(--texto-suave);
  line-height: 1.75;
}

/* =========================
   Contato
========================= */
.contato {
  padding: 86px 0;

  background-color: var(--azul);
  color: var(--branco);
}

.contato-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 80px;
}

.contato h2 {
  max-width: 760px;

  font-size: 42px;
  line-height: 1.14;
}

.contato-content > div p {
  max-width: 42ch;
  margin-bottom: 24px;

  color: rgba(251, 251, 251, 0.86);
}

.contato .btn-principal {
  background-color: var(--branco);
  color: var(--marinho);
}

.contato .btn-principal:hover,
.contato .btn-principal:focus-visible {
  background-color: var(--ciano);
}

/* =========================
   Rodapé
========================= */
.footer {
  padding: 50px 0 24px;

  background-color: #020518;
  color: var(--branco);
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
}

.footer-logo {
  width: 164px;
  display: block;
  margin-bottom: 16px;
}

.footer-marca p {
  max-width: 360px;

  color: rgba(215, 222, 244, 0.7);
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
}

.footer-nav a {
  color: rgba(215, 222, 244, 0.76);

  font-size: 14px;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ciano);
}

.footer-final {
  margin-top: 38px;
  padding-top: 20px;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid var(--linha-escura);
}

.footer-final p {
  color: rgba(215, 222, 244, 0.54);
  font-size: 12px;
}

/* =========================
   Tablet e celular
========================= */
@media (max-width: 900px) {
  .header-content {
    min-height: 72px;
  }

  .logo {
    width: 158px;
  }

  .menu-toggle {
    display: grid;
  }

  .menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;

    display: grid;
    gap: 0;

    padding: 12px 5% 18px;

    background-color: var(--marinho);
    border-bottom: 1px solid var(--linha-escura);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.2);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 180ms ease;
  }

  .menu.ativo {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(251, 251, 251, 0.08);
  }

  .menu a::after {
    display: none;
  }

  .hero h1 {
    font-size: 50px;
  }

  .case {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .case:nth-child(even) .case-media {
    order: 0;
  }

  .case-content {
    max-width: 620px;
  }

  .servicos-intro,
  .sobre-content,
  .faq-content,
  .contato-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .servicos-lista,
  .processo-lista {
    grid-template-columns: 1fr;
  }

  .servicos-lista article,
  .servicos-lista article + article,
  .processo-lista li,
  .processo-lista li + li {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--linha-clara);
  }

  .servicos-lista article:last-child,
  .processo-lista li:last-child {
    border-bottom: 0;
  }

  .processo-lista span {
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 74px;
  }

  section[id] {
    scroll-margin-top: 74px;
  }

  .container {
    width: min(90%, 520px);
  }

  .logo {
    width: 142px;
  }

  .header-whatsapp {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 62px;
  }

  .hero::before {
    background-position: center;
    opacity: 0.32;
  }

  .hero::after {
    background-color: rgba(3, 7, 33, 0.76);
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .hero h1 span {
    display: inline;
  }

  .hero-content > p {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .btn-principal {
    width: 100%;
  }

  .portfolio,
  .servicos,
  .sobre,
  .faq {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2,
  .servicos-intro h2,
  .sobre h2,
  .faq h2,
  .contato h2 {
    font-size: 31px;
  }

  .section-heading p,
  .servicos-intro > p,
  .sobre-texto > p,
  .faq-intro > p {
    font-size: 16px;
  }

  .cases {
    gap: 68px;
  }

  .case-content h3 {
    font-size: 24px;
  }

  .servicos-lista {
    margin-top: 38px;
  }

  .processo {
    margin-top: 64px;
  }

  .processo > h2 {
    font-size: 27px;
  }

  .sobre-texto ul {
    display: grid;
    gap: 8px;
  }

  .sobre-texto li + li::before {
    content: none;
  }

  .sobre-texto li::before {
    content: "/ ";
    color: var(--ciano);
  }

  .faq-lista summary {
    padding-right: 36px;
  }

  .faq-lista details p {
    padding-right: 20px;
  }

  .contato {
    padding: 68px 0;
  }

  .footer-content,
  .footer-final {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .logo {
    width: 128px;
  }

  .header-whatsapp {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .header-actions {
    gap: 6px;
  }

  .hero h1 {
    font-size: 35px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
