/* Carvalho Vidros — azul do logo, vidro e alumínio */
:root {
  --navy: #09103c;
  --navy-2: #141d5c;
  --tinta: #0d1230;
  --texto: #3b4160;
  --fundo: #f5f8f9;
  --vidro: #e6f0f3;
  --vidro-2: #cfe2e9;
  --agua: #4fa9bd;
  --alu: #b7bfc9;
  --branco: #fff;
  --wa: #25d366;
  --wa-2: #1fbf5b;
  --raio: 4px;
  --sombra: 0 18px 50px -20px rgba(9, 16, 60, .35);
  --f-tit: "Sora", system-ui, sans-serif;
  --f-txt: "Inter", system-ui, sans-serif;
  --larg: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 1rem/1.65 var(--f-txt);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-tit); color: var(--navy); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 300; }
h1 em { font-style: normal; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--agua); outline-offset: 3px; }

.wrap { width: min(var(--larg), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.sobre {
  font: 600 .74rem/1.5 var(--f-tit);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--agua);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .7rem;
}
.sobre::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.35rem;
  border-radius: var(--raio);
  font: 600 .95rem/1.1 var(--f-tit);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: var(--navy); box-shadow: 0 10px 26px -12px rgba(31, 191, 91, .9); }
.btn--wa:hover { background: var(--wa-2); }
.btn--linha { border-color: var(--navy); color: var(--navy); }
.btn--linha:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn--lg { padding: 1.05rem 1.6rem; font-size: 1rem; }
.btn--xl { padding: 1.25rem 2.2rem; font-size: clamp(1.2rem, 3vw, 1.7rem); }
.btn--bloco { width: 100%; }

/* Topo: transparente sobre o hero, branco ao rolar */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(6, 10, 41, .55), transparent);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.topo__in { display: flex; align-items: center; gap: 1.5rem; height: 96px; transition: height .35s; }
.marca img { height: 74px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(6, 10, 41, .5)); transition: height .35s, filter .35s; }
.menu { display: none; gap: 1.8rem; margin-left: auto; }
.menu a { font: 500 .92rem var(--f-tit); text-decoration: none; color: #fff; position: relative; padding: .4rem 0; transition: color .35s; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--agua); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.menu a:hover::after { transform: scaleX(1); }
.topo .btn { margin-left: auto; }
.topo.rolou, .topo--solido {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-color: rgba(9, 16, 60, .1);
  box-shadow: 0 8px 30px -22px rgba(9, 16, 60, .6);
}
.topo.rolou .topo__in, .topo--solido .topo__in { height: 72px; }
.topo.rolou .marca img, .topo--solido .marca img { height: 56px; filter: none; }
.topo.rolou .menu a, .topo--solido .menu a { color: var(--navy); }
.topo--solido { position: sticky; }
@media (min-width: 1000px) {
  .menu { display: flex; }
  .topo .btn { margin-left: 0; }
}
@media (max-width: 700px) {
  .topo__in { height: 84px; }
  .marca img { height: 64px; }
}

/* Hero */
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(100svh, 900px); padding: calc(96px + 1.5rem) 0 clamp(2.5rem, 7vh, 5rem); overflow: hidden; background: var(--navy); color: #dfe5f7; }
.hero__foto { position: absolute; inset: 0; z-index: -2; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: aproximar 24s ease-out both; }
@keyframes aproximar { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__veu {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .13) 48%, transparent 54%) 0 0 / 250% 100% no-repeat,
    linear-gradient(90deg, rgba(6, 10, 41, .93) 0%, rgba(6, 10, 41, .8) 45%, rgba(6, 10, 41, .3) 82%, rgba(6, 10, 41, .15)),
    linear-gradient(0deg, rgba(6, 10, 41, .85), transparent 45%);
  animation: reflexo 9s ease-in-out 1.2s infinite;
}
@keyframes reflexo { 0%, 55% { background-position: 130% 0, 0 0, 0 0; } 100% { background-position: -80% 0, 0 0, 0 0; } }
.hero__in { position: relative; }
.hero__in > * { animation: subir .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__in > :nth-child(2) { animation-delay: .12s; }
.hero__in > :nth-child(3) { animation-delay: .24s; }
.hero__in > :nth-child(4) { animation-delay: .36s; }
.hero__in > :nth-child(5) { animation-delay: .5s; }
@keyframes subir { from { opacity: 0; transform: translateY(26px); } }
.hero .sobre { color: #8fd6e6; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 4.9vw, 4.1rem); line-height: 1.08; max-width: 24ch; text-shadow: 0 2px 30px rgba(6, 10, 41, .5); }
.hero h1 em { color: #9fe3f1; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); margin-top: 1.5rem; max-width: 58ch; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.btn--vidro { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--vidro:hover { background: #fff; color: var(--navy); }
@media (max-width: 700px) {
  .hero__veu { background: linear-gradient(0deg, rgba(6, 10, 41, .96) 30%, rgba(6, 10, 41, .55) 62%, rgba(6, 10, 41, .15)); animation: none; }
  .hero__foto img { object-position: 50% 30%; }
  .hero__acoes .btn { width: 100%; }
}

/* Quem somos */
.quem__grid { display: grid; gap: 4.5rem; align-items: center; }
.quem__txt p:not(.sobre) { margin-top: 1rem; max-width: 50ch; }
.quem__txt .btn { margin-top: 1.8rem; }
@media (min-width: 900px) {
  .quem__grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
}

/* Porta (logo vivo) */
.porta {
  position: relative;
  width: min(330px, 68vw);
  aspect-ratio: 361 / 600;
  margin: 0 auto 2.2rem;
  perspective: 1300px;
}
.porta__vao {
  position: absolute; inset: 0;
  border: 9px solid var(--navy);
  background: var(--navy);
  overflow: hidden;
  box-shadow: var(--sombra);
}
.porta__vao img { width: 100%; height: 100%; object-fit: cover; }
.porta__etiqueta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(9, 16, 60, .88));
  color: #fff; font: 500 .8rem/1.3 var(--f-tit);
}
.porta__folha {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: var(--navy);
  display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(3, 1fr);
  gap: 9px; padding: 22px 12px;
  transition: transform 1.5s cubic-bezier(.65, 0, .2, 1);
  box-shadow: 0 20px 40px -20px rgba(9, 16, 60, .6);
  will-change: transform;
}
.porta__folha i {
  background: linear-gradient(135deg, rgba(230, 240, 243, .95), rgba(160, 205, 218, .8) 55%, rgba(230, 240, 243, .92));
}
.porta__folha b { position: absolute; top: 38%; height: 24%; width: 5px; background: var(--alu); border-radius: 3px; }
.porta__folha--esq { left: 0; transform-origin: left center; }
.porta__folha--esq b { right: 5px; }
.porta__folha--dir { right: 0; transform-origin: right center; grid-template-columns: 1fr 1.4fr; }
.porta__folha--dir b { left: 5px; }
.porta.aberta .porta__folha--esq { transform: rotateY(-112deg); }
.porta.aberta .porta__folha--dir { transform: rotateY(112deg); }
.porta__botao {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, .8rem);
  background: none; border: 0; padding: .4rem .6rem; cursor: pointer;
  font: 500 .8rem var(--f-tit); color: var(--navy);
  text-decoration: underline; text-underline-offset: 4px; white-space: nowrap;
}

/* Faixa */
.faixa { background: var(--navy); color: #fff; overflow: hidden; padding: 1rem 0; }
.faixa__trilho { display: flex; width: max-content; animation: correr 38s linear infinite; }
.faixa__trilho span { font: 400 .95rem var(--f-tit); letter-spacing: .04em; padding: 0 1.6rem; display: flex; align-items: center; gap: 3.2rem; white-space: nowrap; }
.faixa__trilho span::after { content: ""; width: 12px; height: 12px; background: var(--agua); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes correr { to { transform: translateX(-50%); } }

/* Seções */
.secao { padding: clamp(4rem, 9vw, 7rem) 0; }
.cab { max-width: 680px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.cab p:not(.sobre) { margin-top: 1rem; }
.cab--lado { max-width: none; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; }

/* Produtos */
.produtos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.produtos li { display: block; }
.prod {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 1.6rem 1.4rem 1.4rem;
  background: linear-gradient(150deg, #fff 30%, var(--vidro));
  border: 1px solid rgba(9, 16, 60, .1);
  border-radius: var(--raio);
  text-decoration: none; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.prod::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .9) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .7s;
}
.prod:hover { transform: translateY(-5px); box-shadow: var(--sombra); border-color: var(--navy); }
.prod:hover::before { transform: translateX(120%); }
.prod > * { position: relative; }
.prod__ico { width: 46px; height: 46px; fill: rgba(79, 169, 189, .16); stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.3rem; }
.prod__ico--fume { fill: rgba(9, 16, 60, .45); }
.prod p { font-size: .93rem; margin: .5rem 0 1.3rem; }
.prod__cta { margin-top: auto; display: inline-flex; align-items: center; gap: .45rem; font: 600 .85rem var(--f-tit); color: var(--navy); }
.prod__cta .ico { transition: transform .25s; }
.prod:hover .prod__cta .ico { transform: translateX(5px); }

/* Orçamento */
.secao--escura { background: var(--navy); color: #c9d0ea; position: relative; overflow: hidden; }
.secao--escura::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .05) 40%, transparent 50%), radial-gradient(60% 80% at 100% 0, var(--navy-2), transparent 70%);
}
.secao--escura h2 { color: #fff; }
.orc { position: relative; display: grid; gap: 2.5rem; }
.orc__txt p:last-child { margin-top: 1.1rem; max-width: 46ch; }
.orc__form {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--raio);
  padding: clamp(1.2rem, 3vw, 2rem);
}
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { font: 600 .98rem var(--f-tit); color: #fff; padding: 0; margin-bottom: .8rem; display: flex; align-items: center; gap: .6rem; }
legend b { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--agua); color: var(--agua); font-size: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: block; padding: .6rem .95rem;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--raio);
  font: 500 .88rem var(--f-tit); color: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: #fff; }
.chips input:checked + span { background: #fff; color: var(--navy); border-color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--agua); outline-offset: 2px; }
.balao {
  background: #dcf8c6; color: #10221a;
  padding: .9rem 1rem 1rem; margin-bottom: 1rem;
  border-radius: 10px 10px 0 10px;
  font-size: .95rem; line-height: 1.5;
}
.balao__rot { display: block; font: 600 .68rem var(--f-tit); letter-spacing: .14em; text-transform: uppercase; color: #3b7a55; margin-bottom: .35rem; }
@media (min-width: 900px) {
  .orc { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
}

/* Galeria */
.galeria {
  display: flex; gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem max(1.25rem, calc((100vw - var(--larg)) / 2)) 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--navy) transparent;
}
.obra { flex: 0 0 min(72vw, 270px); scroll-snap-align: center; }
.obra a { position: relative; display: block; overflow: hidden; border-radius: var(--raio); background: var(--navy); text-decoration: none; }
.obra img { width: 100%; aspect-ratio: 9 / 15; object-fit: cover; transition: transform .6s, opacity .3s; }
.obra a:hover img { transform: scale(1.05); opacity: .85; }
.obra figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(9, 16, 60, .92));
  color: #fff; display: grid; gap: .3rem;
}
.obra figcaption b { font: 600 .95rem/1.25 var(--f-tit); }
.obra figcaption span { font: 600 .78rem var(--f-tit); color: var(--wa); }
.obra figcaption span::after { content: " →"; }

/* Passos */
.secao--vidro { background: linear-gradient(180deg, var(--vidro), var(--fundo)); }
.passos { display: grid; gap: 1px; background: rgba(9, 16, 60, .14); border: 1px solid rgba(9, 16, 60, .14); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.passos li { background: var(--fundo); padding: 1.8rem 1.5rem 2rem; }
.passos__n { display: block; font: 300 2.6rem/1 var(--f-tit); color: transparent; -webkit-text-stroke: 1.2px var(--navy); margin-bottom: 1.4rem; }
.passos p { font-size: .93rem; margin-top: .5rem; }

/* Perguntas frequentes */
.faq { max-width: 860px; }
.faq .cab a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.faq__lista { border-top: 1px solid rgba(9, 16, 60, .16); }
.faq details { border-bottom: 1px solid rgba(9, 16, 60, .16); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.05rem; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .25s; margin-right: .3rem; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2rem 1.3rem 0; max-width: 68ch; }

/* Final */
.final { background: var(--navy); color: #c9d0ea; text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .06) 45%, transparent 55%), radial-gradient(70% 90% at 50% 120%, var(--navy-2), transparent 70%); }
.final__in { position: relative; display: grid; justify-items: center; gap: 1.2rem; }
.final h2 { color: #fff; font-weight: 300; font-size: clamp(2rem, 6vw, 3.6rem); }
.final .btn { margin-top: 1rem; }

/* Rodapé */
.rodape { background: #060a29; color: #8d95b8; padding: 1.4rem 0 6rem; font-size: .8rem; }
.rodape__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem 1.5rem; text-align: center; }
.rodape__marca img { width: 62px; filter: brightness(0) invert(1); opacity: .75; }
.rodape p a { color: inherit; text-underline-offset: 3px; }
.rodape p a:hover { color: #fff; }
.redes { display: flex; gap: .4rem; }
.redes a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #8e97bd; transition: background .2s, color .2s; }
.redes a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.redes .ico { width: 18px; height: 18px; }
.rodape__work { text-decoration: none; flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: .2rem; font-size: .7rem; letter-spacing: .06em; opacity: .55; transition: opacity .2s; }
.rodape__work:hover { opacity: 1; }
.rodape__work img { height: 18px; width: auto; }
@media (min-width: 760px) {
  .rodape { padding-bottom: 1.4rem; }
  .rodape__in { justify-content: space-between; text-align: left; }
  .rodape p { margin-right: auto; }
  .rodape .redes { margin-right: 15rem; }
}
.legal ~ .rodape .redes { margin-right: 0; }

/* Botão fixo */
.flutua {
  position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: .75rem;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem; border-radius: var(--raio);
  background: var(--wa); color: var(--navy);
  font: 700 1rem var(--f-tit); text-decoration: none;
  box-shadow: 0 12px 34px -10px rgba(9, 16, 60, .55);
}
.flutua .ico { width: 1.5em; height: 1.5em; }
@media (min-width: 760px) {
  .flutua { left: auto; right: 1.5rem; bottom: 1.5rem; padding: .95rem 1.3rem; border-radius: 999px; transition: transform .2s; }
  .flutua:hover { transform: translateY(-3px) scale(1.03); }
}

/* Aceite de privacidade */
.aceite {
  position: fixed; z-index: 55; left: .75rem; right: .75rem; bottom: 4.6rem;
  display: flex; align-items: center; gap: .8rem;
  padding: .45rem .5rem .45rem .8rem;
  background: rgba(6, 10, 41, .94); color: #c9d0ea;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--raio);
  font-size: .76rem; line-height: 1.4;
}
.legal ~ .aceite { bottom: .75rem; }
.aceite p { flex: 1; }
.aceite a { color: #fff; text-underline-offset: 3px; }
.aceite button {
  flex: none; padding: .4rem .8rem; cursor: pointer;
  background: none; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--raio);
  font: 600 .76rem var(--f-tit);
}
.aceite button:hover { background: #fff; color: var(--navy); }
@media (min-width: 760px) {
  .aceite { left: 1.5rem; right: auto; bottom: 1.5rem; max-width: 420px; }
}

/* Página de texto (política) */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 600; }
.legal__data { margin-top: .8rem; font-size: .88rem; }
.legal h2 { font-size: 1.25rem; margin: 2.4rem 0 .7rem; }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; display: grid; gap: .4rem; margin-top: .6rem; }
.legal a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.voltar { margin-left: auto; font: 500 .9rem var(--f-tit); color: var(--navy); text-underline-offset: 4px; }

/* Revelar */
.rev { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.rev.visivel { opacity: 1; transform: none; }
.produtos li:nth-child(4n+2), .passos li:nth-child(2) { transition-delay: .08s; }
.produtos li:nth-child(4n+3), .passos li:nth-child(3) { transition-delay: .16s; }
.produtos li:nth-child(4n+4), .passos li:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rev { opacity: 1; transform: none; }
}
