/* =========================
   RESET
========================= */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family: Arial, Helvetica, sans-serif;
  color:#0f172a;
  background:#ffffff;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* =========================
   CONTAINER
========================= */
.container{
  width:min(1120px, 92%);
  margin:0 auto;
}

/* =========================
   TOPBAR
========================= */
.topbar{
  background:#fff;
  border-bottom:1px solid #e5e5e5;
  font-size:13px;
  color:#64748b;
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 0;
}
.topbar-link{
  color:#64748b;
  border-bottom:1px dashed rgba(100,116,139,.45);
}
.topbar-link:hover{ opacity:.85; }

/* =========================
   HEADER PREMIUM GLASS
========================= */

.header{
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background .3s ease, box-shadow .3s ease;
}

.header-inner{
  height: 80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

/* Logo */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-logo{
  width:52px;
  height:52px;
  object-fit:contain;
}

.brand-text strong{
  display:block;
  font-size:18px;
  font-weight:800;
  color:#111827;
}

.brand-text span{
  display:block;
  font-size:12px;
  color:#6b7280;
  margin-top:2px;
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  gap:26px;
}

.nav a{
  font-size:14px;
  font-weight:600;
  color:#111827;
  position:relative;
  transition: color .25s ease;
}

/* efeito linha animada */
.nav a::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:0;
  width:0%;
  height:2px;
  background:#1d4ed8;
  transition: width .25s ease;
}

.nav a:hover{
  color:#1d4ed8;
}

.nav a:hover::after{
  width:100%;
}

/* BOTÃO ORÇAMENTO */
.nav-cta{
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color:#fff !important;
  padding:10px 18px;
  border-radius:999px;
  font-weight:700;
  box-shadow: 0 8px 20px rgba(29,78,216,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}

.nav-cta:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29,78,216,.35);
}

/* mobile */
.nav-toggle{
  display:none;
  border:0;
  background:transparent;
  font-size:24px;
}

.nav-mobile{ display:none; }


/* =========================
   HERO (igual ao mockup)
========================= */
/* HERO FULL SCREEN IGUAL ORIGYN */

.hero{
  height: 100vh;
  width: 100%;
  background: url("img/hero.jpg") center center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

/* escurece imagem pra texto aparecer */
.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

/* conteúdo centralizado */
.hero-content{
  position: relative;
  z-index: 2;
  width: min(1100px, 90%);
  margin: 0 auto;
  color: #fff;
}

.hero-content h1{
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-content p{
  margin-top: 18px;
  font-size: 18px;
  max-width: 520px;
  color: rgba(255,255,255,.85);
}

.hero-actions{
  margin-top: 28px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* botões estilo premium */
.btn-primary{
  background: #4a89ff;
  color:#111;
}

.btn-outline{
  background: transparent;
  border:1px solid rgba(31, 156, 58, 0.4);
  color:#fff;
}

/* ===== BOTÕES DA HERO (premium + animados) ===== */
.hero-actions{
  gap: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
  will-change: transform;
  user-select: none;
}

.btn:active{
  transform: translateY(0px) scale(.98);
}

/* CTA principal (amarelo) */
.btn-primary{
  background: linear-gradient(180deg, #96b0df 0%, #0566ee 100%);
  color: #111827;
  box-shadow: 0 18px 40px rgba(60, 76, 131, 0.28);
}

.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(0, 60, 255, 0.36);
  filter: brightness(1.02);
}

/* Secundário (glass) */
.btn-outline{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.btn-outline:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 22px 54px rgba(0,0,0,.24);
}

/* acessibilidade: foco bem visível */
.btn:focus-visible{
  outline: 3px solid rgba(96,165,250,.75);
  outline-offset: 3px;
}

/* mobile: botões mais “largos” e alinhados */
@media (max-width: 520px){
  .hero-actions{ flex-direction: column; }
  .btn{ width: 100%; }
}


/* =========================
   SEÇÕES / TÍTULOS
========================= */
.section{ padding:64px 0; }
.section-muted{ background:#f6f7fb; }

.section-head h2{
  font-size:34px;
  letter-spacing:-.5px;
}
.section-head p{
  margin-top:10px;
  color:#6b7280;
  line-height:1.6;
  max-width:760px;
}

/* =========================
   GRID + CARDS (serviços)
========================= */
.grid-3{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
}
.card img{
  width:100%;
  aspect-ratio: 4/3;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #e5e5e5;
}
.card h3{
  margin-top:12px;
  font-size:18px;
  font-weight:800;
}

/* =========================
   DIFERENCIAIS / PORTFÓLIO / etc
   (mantém o que já funciona, simples e bonito)
========================= */
.grid-4{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
}
.mini{
  display:flex;
  gap:12px;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:14px;
  padding:14px;
}
.mini-ico{
  width:36px; height:36px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(29,78,216,.10);
}

.before-after{
  margin-top:16px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.ba-item{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e5e5e5;
}
.ba-item img{
  width:100%;
  aspect-ratio: 16/10;
  object-fit:cover;
}
.tag{
  position:absolute;
  top:12px; left:12px;
  background: rgba(15,23,42,.85);
  color:#fff;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.gallery{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.gallery img{
  border:1px solid #e5e5e5;
  border-radius:14px;
  aspect-ratio: 1/1;
  object-fit:cover;
}

.grid-3 .review{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:14px;
  padding:18px;
}
.stars{ letter-spacing:2px; }
.review p{ margin-top:10px; color:#6b7280; line-height:1.6; }

.contact{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
}
.form{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:14px;
  padding:18px;
}
.form label{ display:block; font-weight:800; font-size:13px; margin-bottom:10px; }
.form input, .form select, .form textarea{
  width:100%;
  margin-top:6px;
  padding:12px;
  border-radius:12px;
  border:1px solid #e5e5e5;
  outline:none;
}
.row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

.info-box, .map-placeholder{
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:14px;
  padding:18px;
}

/* Footer */
.footer{
  background:#0b1220;
  color:#cbd5e1;
  padding:26px 0;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.footer-left{ display:flex; align-items:center; gap:12px; }
.footer-logo{ width:40px; height:40px; object-fit:contain; }
.footer-mid{ display:flex; gap:14px; flex-wrap:wrap; }
.footer-mid a{ color:#cbd5e1; font-weight:700; font-size:13px; }
.footer-mid a:hover{ color:#fff; }

/* Whats float */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:56px;
  height:56px;
  border-radius:999px;
  background:#22c55e;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 16px 34px rgba(34,197,94,.35);
  z-index:99999;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 980px){
  .nav{ display:none; }
  .nav-toggle{ display:block; }

  .hero-inner{
    grid-template-columns:1fr;
    min-height:auto;
  }
  .hero-left{
    padding:34px 22px;
    background:#475569;
  }
  .hero-left h1{ font-size:40px; }
  .hero-right{ height:260px; }

  .grid-3{ grid-template-columns:1fr; }
  .grid-4{ grid-template-columns:1fr; }
  .before-after{ grid-template-columns:1fr; }
  .gallery{ grid-template-columns:1fr 1fr; }
  .contact{ grid-template-columns:1fr; }
  .row{ grid-template-columns:1fr; }
}

/* ===== MOBILE MENU FUNCIONAR ===== */
@media (max-width: 980px){
  .nav{ display:none; }
  .nav-toggle{ display:block; }

  .nav-mobile{
    display:none;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);

    position: absolute;      /* aparece logo abaixo do header */
    left: 0;
    top: 80px;               /* mesma altura do header */
    width: 100%;
    z-index: 10000;
  }

  .nav-mobile.open{ display:block; }

  .nav-mobile a{
    display:block;
    padding: 14px 5%;
    font-weight: 800;
    border-top: 1px solid rgba(0,0,0,.06);
  }

  .nav-mobile .nav-cta{
    margin: 12px 5%;
    display:block;
    text-align:center;
  }
}

/* Centralizar serviços quando tiver menos cards */
#servicos .grid-3{
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

#servicos .card{
  width: min(320px, 100%);
}

/* =========================
   AVALIAÇÕES - CARROSSEL HORIZONTAL
========================= */
.reviews-wrap{
  position: relative;
  margin-top: 18px;
}

.reviews-track{
  display: flex;
  gap: 35px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* firefox */
}
.reviews-track::-webkit-scrollbar{ display:none; } /* chrome */

.review-card{
  flex: 0 0 340px;              /* desktop: largura do card */
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

.review-card .stars{
  letter-spacing: 2px;
  font-weight: 900;
}

.review-card p{
  margin-top: 10px;
  color:#6b7280;
  line-height: 1.6;
}

.review-foot{
  margin-top: 12px;
  display:flex;
  align-items: baseline;
  gap: 10px;
}
.review-foot strong{ font-weight: 900; color:#111827; }
.review-foot span{ color:#6b7280; font-size: 13px; }

/* setas desktop */
.rev-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
  transition: transform .15s ease, opacity .15s ease;
}
.rev-arrow:hover{ transform: translateY(-50%) scale(1.04); }
.rev-arrow.left{ left: -90px; }
.rev-arrow.right{ right: -90px; }

/* dá “respiro” pro conteúdo não ficar por baixo das setas no desktop */
@media (min-width: 981px){
  .reviews-track{ padding-left: 44px; padding-right: 44px; }
}

/* MOBILE: mostra 1 card e meio + some setas */
@media (max-width: 980px){
  .rev-arrow{ display:none; }

  .review-card{
    flex-basis: 78%;  /* ~1 card e meio */
  }
}

/* deixar nome/cidade sempre alinhados (mesma linha em todos os cards) */
.review-card{
  display: flex;
  flex-direction: column;
  height: 220px;          /* ajuste fino: 200~260 conforme seu layout */
}

.review-card p{
  flex: 1;                /* ocupa o “miolo” e empurra o footer pra baixo */
  display: -webkit-box;   /* limita linhas pra ficar uniforme */
  -webkit-line-clamp: 4;  /* ajuste: 3~5 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-foot{
  margin-top: 12px;
}

/* =========================
   MODAL IMAGEM (LIGHTBOX)
========================= */
.img-modal{
  position: fixed;
  inset: 0;
  z-index: 999999; /* acima de tudo */
  display: none;
}

.img-modal.open{ display: block; }

.img-modal-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.img-modal-content{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, 92vw);
  max-height: 88vh;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.img-modal-content img{
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0,0,0,.22);
}

.img-modal-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.img-modal-caption{
  margin-top: 10px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.4;
}

/* deixa claro que dá pra clicar */
.gallery img,
.before-after img{
  cursor: zoom-in;
}

/* BOTÃO WHATSAPP CONTATO */
.btn-whatsapp{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  background:#22c55e;          /* verde WhatsApp */
  color:#fff;
  font-weight:800;
  font-size:14px;

  padding:14px 22px;
  border-radius:12px;
  text-decoration:none;

  box-shadow:0 10px 26px rgba(34,197,94,.35);
  transition:.2s;
}

.btn-whatsapp:hover{
  transform:translateY(-2px);
  background:#16a34a;
  box-shadow:0 16px 36px rgba(34,197,94,.45);
}
