/* GCA Engenharia — site institucional */
:root {
  --grafite: oklch(0.2 0.01 260);
  --grafite-2: oklch(0.25 0.012 260);
  --aco: oklch(0.96 0.003 260);
  --aco-2: oklch(0.91 0.005 260);
  --linha: oklch(0.85 0.006 260);
  --texto: oklch(0.28 0.01 260);
  --suave: oklch(0.5 0.01 260);
  --vermelho: oklch(0.58 0.23 27);
  --vermelho-esc: oklch(0.5 0.21 27);
  --laranja: oklch(0.7 0.18 50);
  --raio: 14px;
  --sombra: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px -12px rgb(0 0 0 / .18);
  --fonte: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; font-family: var(--fonte); color: var(--texto); background: #fff;
  line-height: 1.65; font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border: 2px solid var(--vermelho); border-radius: 999px;
  background: var(--vermelho); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--vermelho-esc); border-color: var(--vermelho-esc); transform: translateY(-2px); }
.btn--sm { padding: .5rem 1.1rem; font-size: .92rem; }
.btn--vazado { background: transparent; border-color: rgb(255 255 255 / .55); }
.btn--vazado:hover { background: #fff; border-color: #fff; color: var(--grafite); }

/* Topo */
.topo {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: color-mix(in oklab, var(--grafite) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgb(255 255 255 / .08);
  transition: background .3s;
}
.topo.rolou { background: color-mix(in oklab, var(--grafite) 94%, transparent); }
.topo__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.marca img { width: 170px; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.menu a:not(.btn) {
  color: rgb(255 255 255 / .85); text-decoration: none; font-size: .93rem; font-weight: 500;
  padding-block: .3rem; background: linear-gradient(var(--vermelho), var(--vermelho)) 0 100% / 0 2px no-repeat;
  transition: background-size .25s, color .2s;
}
.menu a:not(.btn):hover { color: #fff; background-size: 100% 2px; }
.menu-btn { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .25s, opacity .25s; }

/* Hero */
.hero {
  position: relative; min-height: min(100svh, 52rem); display: grid; align-items: center;
  color: #fff; isolation: isolate; padding-block: 8rem 4rem; overflow: hidden;
}
.hero__fundo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, oklch(0.16 0.01 260 / .95) 0%, oklch(0.16 0.01 260 / .8) 45%, oklch(0.16 0.01 260 / .35) 100%),
    url("../img/banner01.jpg") center / cover;
  transform: scale(1.04);
}
.hero__in { display: grid; gap: 1.5rem; justify-items: start; }
.selo {
  margin: 0; padding: .35rem .9rem; border: 1px solid rgb(255 255 255 / .25); border-radius: 999px;
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .85);
  background: rgb(255 255 255 / .06);
}
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.4rem); max-width: 18ch; margin: 0; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--vermelho); }
.hero__txt { max-width: 56ch; font-size: 1.15em; color: rgb(255 255 255 / .82); margin: 0; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__nums {
  list-style: none; margin: 2rem 0 0; padding: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  border-top: 1px solid rgb(255 255 255 / .18); width: 100%;
}
.hero__nums strong { display: block; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); color: #fff; line-height: 1.1; }
.hero__nums span { color: rgb(255 255 255 / .65); font-size: .9rem; }

/* Seções */
.sec { padding-block: clamp(4rem, 8vw, 7rem); }
.sec--escura { background: var(--grafite); color: rgb(255 255 255 / .88); }
.sec--escura h2, .sec--escura h3 { color: #fff; }
.sec--cinza { background: var(--aco); }
.sec__cab { max-width: 46rem; margin-bottom: 2.5rem; }
.sec__cab p:last-child { margin-bottom: 0; }
.eyebrow {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; color: var(--vermelho);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
h2 { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.9rem); font-weight: 800; }

.duo { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: center; }
.duo__img { margin: 0; position: relative; }
.duo__img img { border-radius: var(--raio); box-shadow: var(--sombra); width: 100%; }
.duo__img::before {
  content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 2px solid var(--vermelho);
  border-radius: var(--raio); z-index: -1; opacity: .5;
}
.duo__img figcaption { margin-top: .8rem; font-size: .88rem; color: var(--suave); }
.check { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.check li { padding-left: 2rem; position: relative; font-weight: 500; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--vermelho) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Abas */
.abas { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.abas button {
  font: inherit; font-weight: 600; padding: .65rem 1.3rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(255 255 255 / .2); background: transparent; color: rgb(255 255 255 / .8);
  transition: background .2s, border-color .2s, color .2s;
}
.abas button:hover { border-color: rgb(255 255 255 / .5); color: #fff; }
.abas button[aria-selected="true"] { background: var(--vermelho); border-color: var(--vermelho); color: #fff; }
.painel { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; animation: entra .4s ease; }
.painel[hidden] { display: none; }
.painel > img { border-radius: var(--raio); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.painel__larga { aspect-ratio: 4 / 3 !important; object-position: 60% center; }
.painel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.ficha { margin: 1.5rem 0; display: grid; gap: 0; border-top: 1px solid rgb(255 255 255 / .14); }
.ficha div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgb(255 255 255 / .14); }
.ficha dt { color: rgb(255 255 255 / .55); font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .15em; }
.ficha dd { margin: 0; font-weight: 500; }
.nota { font-size: .92rem; color: rgb(255 255 255 / .6); border-left: 3px solid var(--vermelho); padding-left: 1rem; }
.comp { width: 100%; border-collapse: collapse; font-size: .92rem; }
.comp th, .comp td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
.comp th { color: rgb(255 255 255 / .55); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.comp td:first-child { font-weight: 700; color: #fff; }

/* Cards de serviços */
.grade { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra); border-color: transparent; }
.card > img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card__ico { padding: 1.8rem 1.8rem 0; }
.card__ico svg { width: 2.8rem; height: 2.8rem; padding: .6rem; border-radius: 12px; background: color-mix(in oklab, var(--vermelho) 12%, white); stroke: var(--vermelho); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; }
.card__ico svg { width: 1.6rem; height: 1.6rem; }
.card__c { padding: 1.5rem 1.8rem 1.8rem; }
.card__ico + .card__c { padding-top: 1rem; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--suave); font-size: .97rem; }
.mini { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1rem 0 0; }
.mini li { font-size: .8rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; background: var(--aco); color: var(--texto); }

/* Comparativo */
.vs { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: stretch; }
.vs__col { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 2rem; }
.vs__col h3 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.vs__col ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.vs__col li { padding-left: 1.6rem; position: relative; color: var(--suave); }
.vs__col li::before { content: "–"; position: absolute; left: .2rem; color: var(--linha); font-weight: 700; }
.vs__col--gca { background: var(--grafite); border-color: var(--grafite); color: #fff; box-shadow: var(--sombra); scale: 1.02; }
.vs__col--gca h3 { color: #fff; }
.vs__col--gca li { color: rgb(255 255 255 / .92); font-weight: 500; }
.vs__col--gca li::before { content: "✓"; color: var(--vermelho); }

/* Contato (somente WhatsApp) */
.contato { max-width: 46rem; }
.contato .eyebrow { justify-content: flex-start; }
.contato__p { font-size: 1.1em; }
.contato__zaps { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.5rem; }
.btn--zap { background: #25d366; border-color: #25d366; color: #08210f; font-size: 1.1rem; padding: 1rem 1.7rem; }
.btn--zap:hover { background: #1fb957; border-color: #1fb957; }
.btn--zap svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.contatos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); padding-top: 2rem; border-top: 1px solid rgb(255 255 255 / .12); }
.contatos li { display: grid; gap: .15rem; align-content: start; }
.contatos span { color: var(--vermelho); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contatos a { text-decoration: none; font-size: 1.1rem; font-weight: 600; color: #fff; width: fit-content; overflow-wrap: anywhere; }
.contatos a:hover { color: var(--laranja); }

/* Seletor de idioma */
.idiomas { display: flex; gap: .25rem; padding: .2rem; border: 1px solid rgb(255 255 255 / .18); border-radius: 999px; }
.idiomas a { padding: .25rem .65rem !important; border-radius: 999px; font-size: .8rem !important; font-weight: 600 !important; background-image: none !important; }
.idiomas a[aria-current="true"] { background: var(--vermelho) !important; color: #fff !important; }

/* Rodapé */
.rodape { background: oklch(0.15 0.01 260); color: rgb(255 255 255 / .6); padding-block: 2.5rem; font-size: .9rem; }
.rodape__in { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: center; }
.rodape p { margin: 0; }

/* WhatsApp flutuante */
.zap {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: 3.6rem; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; box-shadow: 0 8px 24px rgb(0 0 0 / .3);
  transition: transform .2s;
}
.zap:hover { transform: scale(1.08); }
.zap svg { width: 62%; fill: #fff; }

/* Animações */
@keyframes entra { from { opacity: 0; translate: 0 12px; } }
.reveal { opacity: 0; translate: 0 24px; transition: opacity .7s ease, translate .7s ease; }
.reveal.visivel { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: 0 0; }
}

/* Responsivo */
@media (max-width: 62rem) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--grafite); padding: .5rem 1.25rem 1.25rem; border-bottom: 1px solid rgb(255 255 255 / .1);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .3s, visibility .3s;
  }
  .menu.aberto { clip-path: inset(0); visibility: visible; }
  .menu a:not(.btn) { padding-block: .9rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .idiomas { margin-top: 1rem; width: fit-content; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .painel { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .marca img { width: 140px; }
  .ficha div { grid-template-columns: 1fr; gap: .2rem; }
  .vs__col--gca { scale: 1; }
  .duo__img::before { inset: .8rem -.5rem -.8rem .5rem; }
  .hero { padding-top: 7rem; }
}
