/* =========================================================
   ESTOFÁCIL — Protótipo de site
   Cores: azul (confiança/limpeza) + laranja (energia/ação),
   as mesmas dos posts do Instagram (🧡💙).
   ========================================================= */
:root {
  --azul:        #0d3a8a;
  --azul-esc:    #0a2462;
  --azul-claro:  #e8f1fb;
  --laranja:     #ff7a1a;
  --laranja-esc: #e5620a;
  --texto:       #1d2733;
  --cinza:       #5c6b7a;
  --borda:       #dbe4ee;
  --branco:      #ffffff;
  --raio: 14px;
  --sombra: 0 12px 32px rgba(11, 79, 156, .12);
  --largura: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: "Poppins", system-ui, sans-serif; color: var(--texto); line-height: 1.6; background: var(--branco); }
a { color: inherit; }
.container { width: min(100% - 2.5rem, var(--largura)); margin-inline: auto; }
.estreito { max-width: 820px; }
.centro { text-align: center; margin-top: 2.5rem; }

/* ---------- Botões ---------- */
.botao {
  display: inline-block; padding: .95rem 1.6rem; border-radius: 999px;
  background: var(--laranja); color: #fff; font-weight: 600; text-decoration: none;
  border: 2px solid var(--laranja); cursor: pointer; font-family: inherit; font-size: 1rem;
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(255, 122, 26, .3);
}
.botao:hover { background: var(--laranja-esc); border-color: var(--laranja-esc); transform: translateY(-2px); }
.botao--contorno { background: transparent; color: var(--azul); border-color: var(--azul); box-shadow: none; }
.botao--contorno:hover { background: var(--azul); color: #fff; border-color: var(--azul); }
.botao--escuro { background: var(--azul); border-color: var(--azul); box-shadow: none; }
.botao--escuro:hover { background: var(--azul-esc); border-color: var(--azul-esc); }
.botao--branco { background: #fff; color: var(--laranja-esc); border-color: #fff; }
.botao--branco:hover { background: var(--azul-claro); border-color: var(--azul-claro); }
.botao--pequeno { padding: .55rem 1.1rem; font-size: .9rem; box-shadow: none; }
.botao--largo { width: 100%; font-size: 1.05rem; }

/* ---------- Cabeçalho ---------- */
.topo { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.topo.rolado { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.topo__conteudo { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-size: 1.5rem; font-weight: 800; color: var(--azul); letter-spacing: -.02em; }
.logo b { color: var(--laranja); }
.logo__nome { display: flex; flex-direction: column; line-height: 1; }
.logo__nome small { font-size: .58rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cinza); margin-top: 3px; }
.logo__icone { width: 40px; height: 40px; display: grid; place-items: center; background: var(--azul-claro); border-radius: 12px; font-size: 1.2rem; }
.logo--claro { color: #fff; }
.logo--claro .logo__icone { background: rgba(255,255,255,.12); }
.menu { display: flex; align-items: center; gap: 1.8rem; }
.menu a:not(.botao) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--texto); transition: color .2s; }
.menu a:not(.botao):hover { color: var(--laranja); }
.menu-botao { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.menu-botao span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--azul); transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: 8.5rem 0 5rem; background: radial-gradient(circle at 85% 20%, rgba(255,122,26,.12), transparent 40%), linear-gradient(180deg, var(--azul-claro), #fff); }
.hero__grade { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.selo { display: inline-block; background: #fff; border: 1px solid var(--borda); padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--azul); margin-bottom: 1.2rem; box-shadow: var(--sombra); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12; font-weight: 800; color: var(--azul-esc); letter-spacing: -.02em; }
.destaque { color: var(--laranja); position: relative; }
.hero__sub { font-size: 1.15rem; color: var(--cinza); margin: 1.2rem 0 2rem; max-width: 34ch; }
.hero__botoes { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__provas { list-style: none; display: flex; gap: 2.5rem; margin-top: 2.8rem; }
.hero__provas b { display: block; font-size: 1.8rem; color: var(--azul); font-weight: 800; line-height: 1; }
.hero__provas span { font-size: .85rem; color: var(--cinza); }
.hero__legenda { text-align: center; font-size: .85rem; color: var(--cinza); margin-top: .8rem; }

/* Comparador antes/depois (arrastável) */
.antes-depois { position: relative; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; box-shadow: 0 25px 50px rgba(7,58,116,.25); }
.ad__lado { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem; }
.ad__lado span { background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .12em; padding: .3rem .7rem; border-radius: 999px; }
/* TROCAR: use fotos reais -> background: url("../img/antes.jpg") center/cover; */
.ad__antes { background: url("../img/hero-antes.svg") center/cover; }
.ad__depois { background: url("../img/hero-depois.svg") center/cover; clip-path: inset(0 0 0 50%); justify-content: flex-end; }
.ad__controle { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; }
.ad__linha { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.ad__linha::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border-radius: 50%; color: var(--azul); font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* ---------- Faixa de benefícios ---------- */
.faixa { background: var(--azul); color: #fff; padding: 1.4rem 0; }
.faixa__grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; font-size: .95rem; font-weight: 500; }
.faixa__grade div { display: flex; align-items: center; gap: .6rem; }

/* ---------- Seções ---------- */
.secao { padding: 6rem 0; }
.secao--compacta { padding: 3rem 0; }
.secao--clara { background: var(--azul-claro); }
.secao--azul { background: linear-gradient(135deg, var(--azul-esc), var(--azul)); color: #fff; }
.secao__cabeca { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.secao__cabeca p { color: var(--cinza); }
.secao--azul .secao__cabeca p { color: rgba(255,255,255,.8); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; margin-bottom: .8rem; }
.etiqueta { display: inline-block; color: var(--laranja); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: .6rem; }
.etiqueta--clara { color: #ffb37a; }

.placeholder {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--raio);
  background: repeating-linear-gradient(45deg, rgba(11,79,156,.05) 0 10px, transparent 10px 20px), #f2f6fb;
  border: 2px dashed #b9cbe0; color: #7d93ab; font-weight: 600; font-size: .85rem; text-align: center; padding: 1rem;
}
.placeholder--alto { aspect-ratio: 4/5; }

/* ---------- Serviços ---------- */
.servicos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.servico { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 2rem 1.5rem; transition: transform .25s, box-shadow .25s, border-color .25s; }
.servico:hover { transform: translateY(-6px); box-shadow: var(--sombra); border-color: transparent; }
.servico__icone { width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.8rem; background: var(--azul-claro); border-radius: 16px; margin-bottom: 1.2rem; }
.servico h3 { font-size: 1.2rem; color: var(--azul-esc); margin-bottom: .4rem; }
.servico p { color: var(--cinza); font-size: .93rem; margin-bottom: 1rem; }
.servico ul { list-style: none; font-size: .88rem; }
.servico li { padding-left: 1.3rem; position: relative; margin-bottom: .3rem; }
.servico li::before { content: "✓"; position: absolute; left: 0; color: var(--laranja); font-weight: 700; }
.servico__link { display: inline-block; margin-top: 1rem; color: var(--laranja); font-weight: 600; text-decoration: none; font-size: .92rem; }

/* ---------- Passos ---------- */
.passos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: passo; }
.passos li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: var(--raio); padding: 2rem 1.5rem; position: relative; }
.passos b { width: 46px; height: 46px; display: grid; place-items: center; background: var(--laranja); border-radius: 50%; font-size: 1.2rem; margin-bottom: 1rem; }
.passos h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.passos p { color: rgba(255,255,255,.8); font-size: .92rem; }

/* ---------- Trabalhos ---------- */
.filtros { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filtro { font-family: inherit; font-weight: 600; font-size: .9rem; padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--borda); background: #fff; color: var(--cinza); transition: .2s; }
.filtro:hover { border-color: var(--azul); color: var(--azul); }
.filtro.ativo { background: var(--azul); border-color: var(--azul); color: #fff; }
.trabalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.trabalho { border-radius: var(--raio); overflow: hidden; background: #fff; border: 1px solid var(--borda); }
.trabalho.escondido { display: none; }
.trabalho .placeholder { border-radius: 0; border: 0; }
.trabalho figcaption { padding: .9rem 1rem; font-size: .9rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.trabalho figcaption small { color: var(--laranja); font-weight: 600; text-transform: uppercase; font-size: .7rem; letter-spacing: .08em; }

/* ---------- Sobre ---------- */
.sobre { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; }
.sobre__imagem { position: relative; }
.sobre__imagem img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--raio); box-shadow: var(--sombra); }
.sobre__selo { position: absolute; right: -1.2rem; bottom: 2rem; background: var(--laranja); color: #fff; padding: 1.2rem 1.4rem; border-radius: var(--raio); display: flex; align-items: center; gap: .7rem; box-shadow: 0 15px 30px rgba(255,122,26,.35); }
.sobre__selo b { font-size: 2.6rem; line-height: 1; }
.sobre__selo span { font-size: .85rem; line-height: 1.25; font-weight: 500; }
.sobre__texto h2 { color: var(--azul-esc); }
.sobre__texto p { color: var(--cinza); margin-bottom: 1rem; }
.lista-check { list-style: none; margin-top: 1.4rem; }
.lista-check li { padding-left: 2rem; position: relative; margin-bottom: .6rem; font-weight: 500; }
.lista-check li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--laranja); color: #fff; border-radius: 50%; font-size: .75rem; font-weight: 700; }

/* ---------- Área atendida ---------- */
.area { text-align: center; }
.area h3 { color: var(--azul-esc); margin-bottom: 1rem; }
.area__cidades { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.area__cidades span { background: var(--azul-claro); color: var(--azul); padding: .45rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 500; }

/* ---------- Orçamento / formulário ---------- */
.orcamento { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; }
.orcamento__texto p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.orcamento__vantagens { list-style: none; display: grid; gap: .5rem; margin-bottom: 2rem; font-weight: 500; }
.orcamento__whats { display: inline-block; font-size: 1.4rem; font-weight: 700; color: #fff; text-decoration: none; border-bottom: 2px solid var(--laranja); }

.form { background: #fff; color: var(--texto); border-radius: 20px; padding: 2.2rem; box-shadow: 0 30px 60px rgba(0,0,0,.25); display: grid; gap: 1.1rem; }
.form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 600; }
.form small { font-weight: 400; color: var(--cinza); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: .95rem; padding: .8rem 1rem; border: 1.5px solid var(--borda); border-radius: 10px; background: #fbfdff; color: var(--texto); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgba(11,79,156,.12); }
.form .invalido { border-color: #d93025; }
.form__linha { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__grupo { border: 0; }
.form__grupo legend { font-size: .9rem; font-weight: 600; margin-bottom: .6rem; }
.form__itens { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.form label.item { display: flex; }
.item { border: 1.5px solid var(--borda); border-radius: 12px; padding: .7rem .8rem; display: flex; align-items: center; gap: .6rem; cursor: pointer; transition: .2s; user-select: none; }
.item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--laranja); }
.item__nome { flex: 1; font-size: .9rem; font-weight: 500; }
.item__qtd { display: none; align-items: center; gap: .3rem; }
.item__qtd button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--azul-claro); color: var(--azul); font-weight: 700; cursor: pointer; }
.item__qtd output { min-width: 18px; text-align: center; font-weight: 700; font-size: .9rem; }
.item.marcado { border-color: var(--laranja); background: #fff6ef; }
.item.marcado .item__qtd { display: flex; }
.form__erro { color: #d93025; font-size: .88rem; font-weight: 500; min-height: 1.2em; }
.form__nota { font-size: .78rem; color: var(--cinza); text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details { border: 1px solid var(--borda); border-radius: 12px; padding: 1.1rem 1.3rem; background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sombra); border-color: transparent; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--azul-esc); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--laranja); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--cinza); margin-top: .7rem; font-size: .95rem; }

/* ---------- CTA final ---------- */
.cta { background: linear-gradient(135deg, var(--laranja), var(--laranja-esc)); color: #fff; padding: 4rem 0; }
.cta__conteudo { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { margin: 0; max-width: 22ch; }

/* ---------- Rodapé ---------- */
.rodape { background: #06284f; color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.rodape__grade { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.rodape h4 { color: #fff; margin-bottom: .7rem; }
.rodape p { margin-bottom: .4rem; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--laranja); }
.rodape .logo { margin-bottom: .8rem; }
.rodape__copy { text-align: center; font-size: .8rem; opacity: .6; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; }

/* ---------- WhatsApp flutuante ---------- */
.whats-flutuante { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60; width: 60px; height: 60px; display: grid; place-items: center; background: #25d366; color: #fff; border-radius: 50%; box-shadow: 0 10px 25px rgba(37,211,102,.45); animation: pulsar 2.4s infinite; }
@keyframes pulsar { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

/* ---------- Animação de entrada ---------- */
.revelar { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visivel { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .servicos, .trabalhos, .passos { grid-template-columns: repeat(2, 1fr); }
  .faixa__grade { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__grade, .sobre, .orcamento { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: 7rem; }
  .sobre__selo { right: 1rem; }
  .menu-botao { display: block; }
  .menu { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 1.3rem; padding: 2rem; background: #fff; box-shadow: 0 15px 30px rgba(0,0,0,.08); transform: translateY(-150%); transition: transform .35s; }
  .menu.aberto { transform: none; }
  .menu-botao.ativo span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-botao.ativo span:nth-child(2) { opacity: 0; }
  .menu-botao.ativo span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .rodape__grade { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .secao { padding: 4.5rem 0; }
  .servicos, .trabalhos, .passos, .faixa__grade, .form__linha, .form__itens { grid-template-columns: 1fr; }
  .hero__provas { gap: 1.5rem; }
  .form { padding: 1.5rem; }
}
