/* EAS Fatiados — site institucional
   Cores e tipografia: identidade/design-guide.md */

:root {
  --vermelho: #FF2A31;
  --laranja: #FF8814;
  --amarelo: #FFF200;
  --grafite: #332D2E;

  --texto: #1F1A1B;
  --texto-suave: #5B5456;
  --fundo: #FFFFFF;
  --superficie: #F4F4F6;
  --borda: #E2E2E6;

  /* Vermelho escurecido para botões: contraste AA com texto branco */
  --acao: #C8151C;
  --acao-hover: #A51117;

  --faixa-marca: linear-gradient(90deg, var(--vermelho), var(--laranja) 55%, #FFD000);

  --fonte-texto: "Barlow", system-ui, sans-serif;
  --fonte-titulo: "Barlow Condensed", "Arial Narrow", sans-serif;

  --largura: 1160px;
  --raio: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--grafite);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--acao); }

.container {
  width: 100%;
  max-width: var(--largura);
  margin: 0 auto;
  padding: 0 24px;
}
.container--estreito { max-width: 820px; }

.sobretitulo {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acao);
  margin-bottom: .75em;
}

/* Botões */
.botao {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.4em;
  border-radius: var(--raio);
  background: var(--acao);
  color: #fff;
  font-family: var(--fonte-texto);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--acao);
  transition: background .15s, border-color .15s;
}
.botao:hover { background: var(--acao-hover); border-color: var(--acao-hover); }
.botao:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }
.botao--linha { background: transparent; color: var(--grafite); border-color: var(--grafite); }
.botao--linha:hover { background: var(--grafite); color: #fff; border-color: var(--grafite); }
.botao--pequeno { padding: .5em 1em; font-size: .95rem; }
.botao--grande { padding: 1em 1.6em; font-size: 1.125rem; width: 100%; justify-content: center; }

/* Topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--borda);
  backdrop-filter: blur(6px);
}
.topo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--faixa-marca);
}
.topo__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.topo__logo img { width: 112px; height: auto; }
.topo__nav { display: flex; gap: 28px; }
.topo__nav a {
  color: var(--grafite);
  text-decoration: none;
  font-weight: 500;
}
.topo__nav a:hover { color: var(--acao); }

/* Abertura */
.abertura {
  --abertura-fundo: #1C1819;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(calc(100vh - 72px), 860px);
  background: var(--abertura-fundo);
  color: #E9E4E2;
  overflow: hidden;
  isolation: isolate;
}
.abertura__foto {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* Assunto da foto fica no terço direito: ancorar à direita */
.abertura__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 12%;
}
/* Escurece só a área do texto; o lado do sanduíche fica com a cor original */
.abertura__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--abertura-fundo) 0%, var(--abertura-fundo) 28%, rgba(28, 24, 25, .82) 42%, rgba(28, 24, 25, .3) 56%, rgba(28, 24, 25, 0) 68%),
    linear-gradient(0deg, rgba(28, 24, 25, .85) 0%, rgba(28, 24, 25, 0) 25%);
}
.abertura__conteudo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  padding-bottom: 56px;
}
.abertura__conteudo > * { max-width: 600px; }
.abertura .sobretitulo { color: var(--laranja); }
.abertura h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.005em;
  margin-bottom: .45em;
}
.destaque {
  background: linear-gradient(90deg, var(--laranja), #FFC21A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.abertura__texto { font-size: 1.2rem; color: #CFC8C6; max-width: 34em; }
.abertura__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; margin-bottom: 32px; }
.botao--claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.botao--claro:hover { background: #fff; color: var(--grafite); border-color: #fff; }

.abertura__faixa {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(20, 17, 18, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.abertura__faixa::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%;
  height: 2px;
  background: var(--faixa-marca);
  opacity: .9;
}
.esteira {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.esteira__rotulo {
  flex: none;
  margin: 0;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #A69E9C;
}
.esteira__janela {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.esteira__trilho {
  display: flex;
  width: max-content;
  animation: esteira 32s linear infinite;
}
.esteira__janela:hover .esteira__trilho { animation-play-state: paused; }
.esteira__lista {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.esteira__marca {
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #E9E4E2;
}
.esteira__marca::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 56px;
  border-radius: 50%;
  background: var(--laranja);
  opacity: .7;
}
.esteira__marca img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
@keyframes esteira {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .esteira__trilho { animation: none; width: auto; }
  .esteira__lista { flex-wrap: wrap; row-gap: 12px; }
  .esteira__lista[aria-hidden] { display: none; }
  .esteira__janela { -webkit-mask-image: none; mask-image: none; }
}

/* Seções */
.secao { padding: 88px 0; }
.secao--cinza { background: var(--superficie); }
.secao--escura { background: var(--grafite); color: #E9E6E6; }
.secao--escura h2, .secao--escura h3 { color: #fff; }
.secao--escura .sobretitulo { color: var(--laranja); }

.secao__cabecalho { max-width: 720px; margin-bottom: 48px; }
.secao__cabecalho p:last-child { color: var(--texto-suave); font-size: 1.125rem; }
.secao--escura .secao__cabecalho p:last-child { color: #CFCACA; }

/* Processo */
.etapas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: etapa;
}
.etapa {
  position: relative;
  padding: 24px 20px 20px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: #fff;
}
.etapa::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 3px;
  border-radius: var(--raio) var(--raio) 0 0;
  background: var(--faixa-marca);
}
.etapa__numero {
  display: block;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--acao);
  line-height: 1;
  margin-bottom: 14px;
}
.etapa h3 { font-size: 1.25rem; }
.etapa p { font-size: .98rem; color: var(--texto-suave); margin: 0; }

.nota {
  margin-top: 32px;
  padding: 16px 20px;
  border-left: 3px solid var(--acao);
  background: var(--superficie);
  font-size: 1.05rem;
}

/* Comparativo */
.tabela-rolagem { overflow-x: auto; }
.comparativo {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  overflow: hidden;
}
.comparativo th, .comparativo td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--borda);
  vertical-align: top;
}
.comparativo thead th {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--grafite);
  background: #FAFAFB;
}
.comparativo thead th:last-child { color: var(--acao); }
.comparativo tbody th {
  font-weight: 600;
  color: var(--grafite);
  width: 22%;
}
.comparativo td:nth-child(2) { color: var(--texto-suave); }
.comparativo td:last-child { font-weight: 500; }
.comparativo tr:last-child th, .comparativo tr:last-child td { border-bottom: 0; }

/* Estrutura */
.setores {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.setores li {
  padding: 20px;
  border-top: 3px solid var(--grafite);
  background: var(--superficie);
}
.setores strong {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--grafite);
  margin-bottom: 6px;
}
.setores span { font-size: .98rem; color: var(--texto-suave); }

.fotos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.foto { margin: 0; }
.foto img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--raio); width: 100%; }
.foto figcaption { margin-top: 8px; font-size: .92rem; color: var(--texto-suave); }

/* Qualidade */
.qualidade {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #4A4344;
  border: 1px solid #4A4344;
  border-radius: var(--raio);
  overflow: hidden;
}
.qualidade article { background: var(--grafite); padding: 28px; }
.qualidade p { margin: 0; color: #CFCACA; }

.sigilo {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid #4A4344;
  border-left: 3px solid var(--laranja);
  border-radius: var(--raio);
}
.sigilo p { margin: 0; color: #CFCACA; max-width: 60em; }

/* Contato */
.contato {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.contato p { font-size: 1.1rem; }
.contato__cartao {
  padding: 32px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: var(--superficie);
  text-align: center;
}
.contato__numero {
  margin: 20px 0 4px;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--grafite);
}
.contato__horario { margin: 0; color: var(--texto-suave); font-size: 1rem; }

/* Perguntas */
.perguntas details {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  margin-bottom: 10px;
}
.perguntas summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 600;
  color: var(--grafite);
  list-style: none;
  position: relative;
}
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--acao);
}
.perguntas details[open] summary::after { content: "−"; }
.perguntas details p { padding: 0 22px 18px; margin: 0; color: var(--texto-suave); }

/* Rodapé */
.rodape {
  padding: 40px 0 48px;
  border-top: 1px solid var(--borda);
  font-size: .95rem;
  color: var(--texto-suave);
}
.rodape__grade { display: flex; align-items: center; gap: 32px; }
.rodape p { margin: 0 0 4px; }

/* WhatsApp flutuante (só em telas pequenas) */
.whats-flutuante {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--acao);
  color: #fff;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

/* Sobre Nós Hero */
.sobre-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../img/Gemini_Generated_Image_ffdl8tffdl8tffdl.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-top: 120px;
  padding-bottom: 80px;
}
.sobre-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 9, 0.88);
}
.sobre-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.sobre-hero__texto p {
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 1.4em;
  color: #E9E4E2;
}
.sobre-hero__texto p:last-child {
  margin-bottom: 0;
}
.sobre-hero__destaque {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #1C1819;
  display: flex;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.sobre-hero__destaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .sobre-hero {
    min-height: auto;
    padding-top: 100px;
  }
  .sobre-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Responsivo */
@media (max-width: 1024px) {
  .etapas { grid-template-columns: repeat(3, 1fr); }
  .setores { grid-template-columns: repeat(2, 1fr); }
}

/* Telas médias: foto mais à direita e escurecimento mais largo para o texto não cair sobre o sanduíche */
@media (min-width: 861px) and (max-width: 1200px) {
  .abertura__foto img { object-position: 100% 20%; }
  .abertura__foto::after {
    background:
      linear-gradient(90deg, var(--abertura-fundo) 0%, var(--abertura-fundo) 38%, rgba(28, 24, 25, .85) 52%, rgba(28, 24, 25, .35) 66%, rgba(28, 24, 25, 0) 80%),
      linear-gradient(0deg, rgba(28, 24, 25, .85) 0%, rgba(28, 24, 25, 0) 25%);
  }
  .abertura__conteudo > * { max-width: 540px; }
}

/* Trabalhe Conosco */
.trabalhe-hero {
  padding: 160px 20px 100px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.trabalhe-hero h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  color: var(--escuro);
  line-height: 1.1;
}
.trabalhe-hero p {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--escuro);
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .topo__nav { display: none; }
  .contato { grid-template-columns: 1fr; gap: 36px; }
  .secao { padding: 64px 0; }
  .etapas { grid-template-columns: 1fr 1fr; }
  .fotos { grid-template-columns: 1fr 1fr; }
  .qualidade { grid-template-columns: 1fr; }
  .whats-flutuante { display: grid; }

  /* Foto vira faixa no topo e escurece em direção ao texto */
  .abertura { min-height: 0; }
  .abertura__foto { position: relative; inset: auto; width: 100%; height: 56vh; max-height: 480px; }
  .abertura__foto img { object-position: 95% 30%; }
  .abertura__foto::after {
    background: linear-gradient(0deg, var(--abertura-fundo) 0%, rgba(28, 24, 25, .55) 30%, rgba(28, 24, 25, 0) 60%);
  }
  .abertura__conteudo { margin-top: -96px; padding-top: 0; padding-bottom: 56px; position: relative; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .esteira { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .esteira__janela { width: 100%; }
  .esteira__marca { font-size: 1.25rem; padding: 0 20px; }
  .esteira__marca::after { margin-left: 40px; }
  .etapas, .setores, .fotos { grid-template-columns: 1fr; }
  .abertura__acoes .botao { width: 100%; justify-content: center; }
  .rodape__grade { flex-direction: column; align-items: flex-start; }
  .rodape { padding-bottom: 96px; }
}

/* Comparativo empilhado no celular */
@media (max-width: 640px) {
  .comparativo { min-width: 0; border: 0; background: transparent; }
  .comparativo thead { display: none; }
  .comparativo tbody, .comparativo tr, .comparativo th, .comparativo td { display: block; width: 100%; }
  .comparativo tr {
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    margin-bottom: 12px;
  }
  .comparativo tbody th {
    width: 100%;
    font-family: var(--fonte-titulo);
    font-size: 1.2rem;
    padding: 14px 16px 6px;
    border-bottom: 0;
  }
  .comparativo td { padding: 6px 16px; border-bottom: 0; }
  .comparativo td:last-child { padding-bottom: 14px; }
  .comparativo td::before {
    content: attr(data-rotulo);
    display: block;
    font-size: .78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--texto-suave);
  }
  .comparativo td:last-child::before { color: var(--acao); }
}
