:root{
  --bg:#ffffff;
  --bg2:#f6f7f9;
  --panel:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e5e7eb;

  --accent:#16a34a;
  --accent2:#22c55e;

  --shadow:0 18px 45px rgba(2,6,23,.10);
  --shadow2:0 10px 25px rgba(2,6,23,.08);

  --radius:18px;
  --radius2:14px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
[hidden]{ display:none !important; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:
    radial-gradient(900px 380px at 15% 0%, rgba(34,197,94,.20), transparent 55%),
    radial-gradient(900px 380px at 85% 0%, rgba(59,130,246,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}

.container{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}

/* ====== HEADER ====== */
.topo{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.7);
}

.header-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 0;
}

.logo{
  display:flex;
  align-items:baseline;
  gap:8px;
  font-weight:800;
  letter-spacing:.2px;
}

.logo-mv{ color:#a08a5a; }
.logo-auto{ color: var(--text); opacity:.8; font-weight:700; }

/* botão wpp */
.btn-wpp{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(22,163,74,.35);
  color:var(--text);
  background: rgba(255,255,255,.7);
  box-shadow:0 8px 18px rgba(2,6,23,.06);
  font-weight:800;
  font-size:14px;
}
.btn-wpp:hover{
  border-color: rgba(22,163,74,.55);
  transform: translateY(-1px);
}

/* menu desktop (padrão) */
.menu{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
}
.menu a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
}
.menu a:hover{ color:var(--text); }

/* toggle (hamburger) - escondido no desktop */
.menu-toggle{
  display:none;
  margin-left:auto;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  box-shadow:0 8px 18px rgba(2,6,23,.06);
  cursor:pointer;
}
.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  background:#0f172a;
  margin:4px auto;
  border-radius:2px;
}

/* overlay (fica escondido até abrir menu) */
.menu-overlay{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(2px);
  z-index:60;
}

body.menu-open{ overflow:hidden; }

/* utilitários */
.desktop-only{ display:inline-flex; }
.mobile-only{ display:none; }

/* ====== MOBILE (drawer) ====== */
@media (max-width: 820px){

  /* mostra hamburger */
  .menu-toggle{ display:inline-flex; }

  /* controle correto: no mobile some o botão do topo e aparece o do menu */
  .desktop-only{ display:none !important; }
  .mobile-only{ display:inline-flex !important; }

  /* menu vira drawer */
  .menu{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(320px, 86vw);
    background:#fff;
    border-left:1px solid rgba(229,231,235,.9);
    box-shadow:-20px 0 60px rgba(2,6,23,.18);
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:12px;
    transform: translateX(110%);
    transition: transform .22s ease;
    z-index:70;
    margin-left:0;
  }

  body.menu-open .menu{ transform: translateX(0); }

  .menu a{
    padding:12px 12px;
    border-radius:14px;
    border:1px solid rgba(229,231,235,.9);
    background: rgba(246,247,249,.9);
    font-weight:850;
    color: var(--text);
  }

  .menu-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:10px;
    border-bottom:1px solid rgba(229,231,235,.9);
    margin-bottom:6px;
  }

  .menu-brand{ font-weight:900; }

  .menu-close{
    width:44px;
    height:44px;
    border-radius:12px;
    border:1px solid rgba(229,231,235,.9);
    background:#fff;
    cursor:pointer;
  }
}

/* no desktop o cabeçalho do drawer não aparece */
@media (min-width: 821px){
  .menu-head{ display:none; }
  .mobile-only{ display:none !important; }
  .desktop-only{ display:inline-flex !important; }
}

/* ====== HERO ====== */
.hero{ padding:26px 0 14px; }

.hero-trust{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 14px;
  color: rgba(71,85,105,.95); /* var(--muted) com mais presença */
  font-weight: 800;
  font-size: 13.5px;
}

.hero-trust span:first-child{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.hero-trust .dot{
  opacity:.45;
  font-weight:900;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.25fr .95fr;
  gap:26px;
  align-items:start;
}

.hero-texto{
  background:rgba(255,255,255,.65);
  border:1px solid rgba(229,231,235,.75);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow2);
}

.tag{
  display:inline-flex;
  padding:8px 12px;
  border:1px solid rgba(229,231,235,.8);
  background:rgba(255,255,255,.7);
  border-radius:999px;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
  margin:0 0 12px;
}

.hero h1{
  margin:0 0 10px;
  font-size:44px;
  line-height:1.05;
}

.social-proof{
  display:grid;
  gap:8px;
  margin:10px 0 14px;
  color:var(--muted);
  font-weight:600;
}
.sp-item::before{
  content:"•";
  color:var(--accent);
  margin-right:10px;
  font-weight:900;
}

.botoes{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn-principal{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  background:linear-gradient(180deg, var(--accent2), var(--accent));
  color:#052e16;
  font-weight:900;
  border:1px solid rgba(22,163,74,.35);
  box-shadow:0 16px 32px rgba(22,163,74,.18);
}
.btn-principal:hover{ transform:translateY(-1px); }

.btn-sec{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(229,231,235,.9);
  color:var(--text);
  font-weight:800;
}
.btn-sec:hover{ transform:translateY(-1px); }

.btn-full{ width:100%; }

.infos{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  margin-top:16px;
}

.info{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px 16px;
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}
.info strong{ display:block; font-size:14px; color:#111827; }
.info span{ font-size:13px; color:#6b7280; }

/* card direita */
.hero-proof{
  background:rgba(255,255,255,.70);
  border:1px solid rgba(229,231,235,.75);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.proof-top{
  text-align:center;
  padding:10px 10px 2px;
}

.stars{
  color:var(--accent);
  letter-spacing:2px;
  font-size:16px;
  font-weight:900;
}
.rating{
  font-size:26px;
  font-weight:900;
  margin-top:4px;
}
.based{
  color:var(--muted);
  font-weight:650;
  font-size:12px;
  margin-top:2px;
}

.proof-list{
  display:grid;
  gap:10px;
  margin:14px 0 16px;
}
.proof-item{
  background:rgba(255,255,255,.8);
  border:1px solid rgba(229,231,235,.9);
  border-radius:14px;
  padding:10px 12px;
  color:var(--text);
  font-weight:750;
  font-size:13px;
}

/* ====== SECTIONS ====== */
.sec{ padding:34px 0; }

.sec-alt{
  background:var(--bg2);
  border-top:1px solid rgba(229,231,235,.7);
  border-bottom:1px solid rgba(229,231,235,.7);
}

h2{
  margin:0 0 8px;
  font-size:30px;
}

.sec-sub{
  margin:0 0 16px;
  color:var(--muted);
  font-weight:600;
}

/* cards serviços */
.cards{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
}
.card{
  background:rgba(255,255,255,.8);
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  padding:14px;
  box-shadow:0 12px 22px rgba(2,6,23,.06);
}
.card h3{ margin:0 0 6px; font-size:16px; }
.card p{ margin:0; color:var(--muted); font-weight:600; font-size:13px; }

/* galeria */
.galeria{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.foto{
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}

.foto img{
  transition: transform .25s ease;
}

.foto::after{
  content: "Clique para ampliar";
  position:absolute;
  left:12px;
  bottom:12px;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:#0f172a;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(229,231,235,.95);
  opacity:0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}

@media (hover:hover){
  .foto:hover{
    transform: translateY(-2px);
    box-shadow:0 18px 34px rgba(2,6,23,.12);
  }
  .foto:hover img{
    transform: scale(1.03);
  }
  .foto:hover::after{
    opacity:1;
    transform: translateY(0);
  }
}
.foto{
  padding:0;
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
  box-shadow:0 14px 24px rgba(2,6,23,.08);
}
.foto img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

/* modal */
.modal[aria-hidden="true"]{ display:none; }
.modal{ position:fixed; inset:0; z-index:80; }
.modal__bg{ position:absolute; inset:0; background:rgba(2,6,23,.55); }
.modal__box{
  position:relative;
  width:min(900px, 92vw);
  margin:6vh auto;
  background:#fff;
  border-radius:18px;
  padding:12px;
  box-shadow:0 30px 80px rgba(2,6,23,.35);
}
.modal__nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(229,231,235,.9);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-size:26px;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 12px 26px rgba(2,6,23,.14);
}

.modal__prev{ left:10px; }
.modal__next{ right:10px; }

@media (max-width: 520px){
  .modal__nav{ width:40px; height:40px; }
}

.modal__close{
  position:absolute;
  right:10px;
  top:10px;
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(229,231,235,.9);
  background:#fff;
  cursor:pointer;
}
#modalImg{
  width:100%;
  height:auto;
  border-radius:14px;
  display:block;
}

/* FAQ */
.faq{ display:grid; gap:10px; }
.faq-item{
  background:rgba(255,255,255,.85);
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  padding:12px 14px;
  box-shadow:0 12px 22px rgba(2,6,23,.06);
}
.faq-item summary{ cursor:pointer; font-weight:850; }
.faq-item p{ margin:10px 0 0; color:var(--muted); font-weight:600; }

/* avaliações */
.avaliacoes{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.av{
  background:rgba(255,255,255,.85);
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  padding:14px;
  box-shadow:0 12px 22px rgba(2,6,23,.06);
}
.av-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}
.av-nome{ font-weight:900; }
.av-stars{ color:var(--accent); letter-spacing:1px; font-weight:900; }
.av-texto{ margin:0; color:var(--muted); font-weight:650; }

/* contato */
.contact-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-bottom:14px;
}
.contact-card{
  display:flex;
  gap:12px;
  align-items:center;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  padding:14px;
  box-shadow:0 12px 22px rgba(2,6,23,.06);
  text-decoration:none;
  color:inherit;
}
.cc-ico{ font-size:22px; }
.cc-txt strong{ display:block; font-weight:900; }
.cc-txt span{ color:var(--muted); font-weight:650; font-size:13px; }

.map-wrap{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(229,231,235,.9);
  box-shadow:0 16px 30px rgba(2,6,23,.08);
}
.map-wrap iframe{
  width:100%;
  height:260px;
  border:0;
  filter:grayscale(1) contrast(1.05);
}

/* rodape */
.rodape{
  border-top:1px solid rgba(229,231,235,.7);
  padding:18px 0;
  background:rgba(255,255,255,.7);
}
.rodape small{ color:var(--muted); font-weight:650; }

/* botão flutuante */
.wpp-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:56px;
  height:56px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  background:linear-gradient(180deg, var(--accent2), var(--accent));
  color:#052e16;
  font-size:22px;
  box-shadow:0 18px 40px rgba(22,163,74,.22);
  z-index:70;
}

/* ====== RESPONSIVO GERAL ====== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .cards{ grid-template-columns:repeat(2, 1fr); }
  .avaliacoes{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width: 820px){
  .infos{ grid-template-columns:1fr; }
  .foto img{ height:180px; }
}

/* ===== FIX DUPLICAÇÃO NO DESKTOP ===== */
@media (min-width: 821px){
  .menu-toggle{ display:none !important; }     /* hamburguer some no desktop */
  .menu-overlay{ display:none !important; }    /* overlay nunca aparece no desktop */
  .menu-head{ display:none !important; }       /* some o cabeçalho do drawer */
  .menu-close{ display:none !important; }      /* some o X */
  .menu-brand{ display:none !important; }      /* some o MVAutomotiva do drawer */

  /* garante que o menu é normal no desktop */
  nav.menu{
    position:static !important;
    transform:none !important;
    height:auto !important;
    width:auto !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    flex-direction:row !important;
  }

  /* garante que o botão do topo aparece só 1 vez */
  .topo .btn-wpp.desktop-only{ display:inline-flex !important; }
}
/* placeholder quando a imagem não carrega */
.foto{
  background: linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,.00));
}

.foto img.img-missing{
  display:none;
}

.foto:has(img.img-missing)::before{
  content:"Foto em breve";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(71,85,105,.9);
  font-weight:900;
  font-size:14px;
}

.foto:has(img.img-missing)::after{
  content:"Em breve";
  opacity:1;
  transform: translateY(0);
}
/* ===== LOGO PREMIUM ===== */
/* ===== LOGO AUTOMOTIVA ===== */
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:900;
  letter-spacing:.5px;
}

/* MV grande */
.logo-mv{
  font-size:26px;
  font-weight:900;
  color:#111827;
  position:relative;
}

.logo-mv::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-4px;
  width:100%;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,#16a34a,#22c55e,#16a34a);
  opacity:.85;
}

/* texto lateral */
.logo-text{
  display:flex;
  flex-direction:column;
  line-height:1;
}

/* AUTOMOTIVA */
.logo-auto{
  font-size:12px;
  letter-spacing:3px;
  color:#334155;
  font-weight:900;
}

/* ===== COMO FUNCIONA ===== */
.how-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-top:12px;
}

.how-card{
  background:rgba(255,255,255,.85);
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  padding:14px;
  box-shadow:0 12px 22px rgba(2,6,23,.06);
}

.how-top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}

.how-badge{
  width:28px;
  height:28px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#052e16;
  background:linear-gradient(180deg, var(--accent2), var(--accent));
  border:1px solid rgba(22,163,74,.35);
}

.how-card p{
  margin:0;
  color:var(--muted);
  font-weight:650;
  font-size:13px;
  line-height:1.45;
}

.how-cta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}

.how-note{
  color:var(--muted);
  font-weight:650;
  font-size:13px;
}

/* responsivo */
@media (max-width: 980px){
  .how-grid{ grid-template-columns:1fr; }
}
/* ===== COMO FUNCIONA - UPGRADE VISUAL ===== */

.how-grid{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  margin-top:18px;
}

/* linha conectando */
.how-grid::before{
  content:"";
  position:absolute;
  top:28px;
  left:8%;
  width:84%;
  height:2px;
  background:linear-gradient(90deg,transparent,#22c55e,transparent);
  opacity:.35;
}

.how-card{
  position:relative;
  background:rgba(255,255,255,.95);
  border:1px solid rgba(229,231,235,.9);
  border-radius:16px;
  padding:18px 16px 16px;
  box-shadow:0 18px 30px rgba(2,6,23,.06);
  transition:.25s;
}

.how-card:hover{
  transform:translateY(-4px);
  box-shadow:0 22px 40px rgba(2,6,23,.10);
}

.how-badge{
  width:34px;
  height:34px;
  font-size:14px;
  margin-top:-28px;
  box-shadow:0 6px 14px rgba(34,197,94,.35);
}

/* mobile */
@media (max-width:980px){
  .how-grid{
    grid-template-columns:1fr;
  }

  .how-grid::before{
    display:none;
  }
}
/* ===== AVALIAÇÕES (UPGRADE) ===== */
.reviews-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.reviews-score{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(229,231,235,.9);
  background:rgba(255,255,255,.85);
  box-shadow:0 12px 22px rgba(2,6,23,.06);
}

.reviews-stars{
  color: var(--accent);
  letter-spacing:2px;
  font-weight:900;
  font-size:14px;
}

.reviews-note{
  display:flex;
  align-items:baseline;
  gap:4px;
  color: var(--text);
}
.reviews-note strong{
  font-size:22px;
  font-weight:950;
}
.reviews-note span{
  color: var(--muted);
  font-weight:800;
}

.avaliacoes{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}

.av{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(229,231,235,.9);
  border-radius:18px;
  padding:16px;
  box-shadow:0 16px 28px rgba(2,6,23,.06);
  transition:.22s;
  position:relative;
}

.av::before{
  content:"“";
  position:absolute;
  top:10px;
  right:14px;
  font-size:34px;
  font-weight:900;
  color: rgba(34,197,94,.18);
}

.av:hover{
  transform: translateY(-3px);
  box-shadow:0 22px 40px rgba(2,6,23,.10);
}

.av-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.av-nome{
  font-weight:950;
  color: var(--text);
}

.av-stars{
  color: var(--accent);
  letter-spacing:2px;
  font-weight:900;
  font-size:13px;
}

.av-texto{
  margin:0;
  color:var(--muted);
  font-weight:650;
  line-height:1.45;
}

.reviews-cta{
  margin-top:14px;
  display:flex;
  justify-content:flex-start;
}

/* mobile */
@media (max-width: 980px){
  .reviews-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .avaliacoes{
    grid-template-columns:1fr;
  }
}
/* ===== botão whatsapp icone (somente desktop) ===== */
.btn-wpp-icon{
    width:46px;
    height:46px;
    padding:0;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.btn-wpp-icon svg{
    width:22px;
    height:22px;
}

/* mobile volta ao normal */
@media (max-width:820px){
    .btn-wpp-icon{
        width:auto;
        height:auto;
        padding:10px 14px;
        border-radius:999px;
    }

    .btn-wpp-icon svg{
        width:18px;
        height:18px;
        margin-right:8px;
    }
}
/* ===== galeria com apenas 1 imagem ===== */
.galeria-uma{
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
}

.galeria-uma .foto img{
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #fff;
}

/* celular */
@media (max-width:820px){
    .galeria-uma{
        max-width: 100%;
    }

    .galeria-uma .foto img{
        max-height: 420px;
    }
}
