/* =========================
   Design System / Tokens
   ========================= */
:root{
  --bg:#f7f4ef;
  --bg-alt:#ffffff;
  --text:#2e2e2e;
  --muted:#666;
  --brand:#b48a60;        /* tom madeira premium */
  --brand-dark:#9c7550;
  --accent:#25D366;       /* WhatsApp */
  --shadow:0 12px 30px rgba(0,0,0,.10);
  --radius:12px;
  --radius-sm:8px;
  --max:1160px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  overflow-x:hidden;
  padding-top:64px; /* Compensa altura do header fixo */
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.container{width:100%;max-width:var(--max);margin:0 auto;padding:0 20px}
.center{text-align:center}
.mt-16{margin-top:16px}.mt-24{margin-top:24px}

/* Acessibilidade */
.skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip-link:focus{position:static;width:auto;height:auto;background:#000;color:#fff;padding:8px}

/* =========================
   Header
   ========================= */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:9999;
  background:rgba(255,255,255,.95);backdrop-filter:blur(8px);
  border-bottom:1px solid #eee;
}
.header-inner{display:flex;align-items:center;gap:16px;padding:12px 0}
.brand{display:flex;align-items:center;gap:10px;font-weight:600}
.brand .logo{font-size:22px;color:var(--brand)}
.brand .brand-text{font-family:'Montserrat',sans-serif;font-weight:700}
.main-nav{display:flex;gap:16px;margin-left:auto}
.main-nav a{padding:8px 10px;border-radius:8px;text-decoration:none;color:#333}
.main-nav a:hover{background:#f0e9e0}
.btn{background:var(--brand);color:#fff;padding:12px 20px;border-radius:8px;text-decoration:none;display:inline-block;font-weight:700;box-shadow:var(--shadow);transition:.2s}
.btn:hover{background:var(--brand-dark);transform:translateY(-1px)}
.btn-outline{background:transparent;border:2px solid var(--brand);color:var(--brand)}
.btn-outline:hover{background:var(--brand);color:#fff}
.btn-small{padding:8px 14px}
.btn-lg{padding:14px 26px;font-size:1.05rem}
.menu-toggle{display:none;margin-left:auto;font-size:22px;background:none;border:0;cursor:pointer}
.whats-header{display:none} /* aparece em telas menores */

/* =========================
   Hero
   ========================= */
.hero{position:relative;min-height:82vh;display:flex;align-items:center}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center}
.overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.35))}
.hero-inner{position:relative;color:#fff;padding:80px 0}
.hero h1{font-family:'Montserrat',sans-serif;font-size:clamp(28px,4.2vw,44px);line-height:1.2;margin:0 0 14px}
.hero .accent{color:#fff;background:linear-gradient(90deg,var(--brand),#d3b08a);padding:0 6px;border-radius:6px}
.hero .sub{font-size:clamp(16px,2.2vw,20px);max-width:880px}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px}
.trust-strip{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;list-style:none;padding:0}
.trust-strip li{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:8px 12px;border-radius:999px;font-size:14px}

/* =========================
   Sections / Cards
   ========================= */
.section{padding:70px 0;background:var(--bg)}
.section.alt{background:var(--bg-alt)}
h2{font-family:'Montserrat',sans-serif;font-size:clamp(24px,3vw,34px);margin:0 0 18px}
h3{font-family:'Montserrat',sans-serif;margin:0 0 10px}
p{margin:0 0 10px}
.muted{color:var(--muted);font-size:.95rem}
.grid-2{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:start}
.card{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}
.kpis .kpi{display:flex;align-items:baseline;gap:10px;border-bottom:1px dashed #eee;padding:12px 0}
.kpis .kpi:last-child{border-bottom:0}
.kpis .kpi span{font-family:'Montserrat',sans-serif;font-weight:700;font-size:28px;color:var(--brand)}
.bullets{list-style:disc;padding-left:18px;margin:10px 0 0}
.bullets li{margin:6px 0}

.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.service{min-height:100%}
.check{list-style:none;padding:0;margin:8px 0 0}
.check li{padding-left:24px;position:relative;margin:8px 0}
.check li:before{content:"✔";position:absolute;left:0;top:0;color:var(--brand);font-weight:700}
.tech-note{margin-top:18px;color:#4a4a4a;font-size:.95rem;background:#fff;border-left:4px solid var(--brand);padding:14px;border-radius:8px}

/* =========================
   FOTOS QUADRADAS PERFEITAS
   ========================= */

/* Fotos nas seções principais - QUADRADAS */
.section-photo {
  margin: 30px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.section-photo img {
  width: 100%;
  aspect-ratio: 1 / 1; /* FORÇA QUADRADO PERFEITO */
  object-fit: cover; /* CORTA MAS MANTÉM PROPORÇÃO */
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.section-photo:hover img {
  transform: scale(1.05);
}

/* Fotos dentro dos cards de serviço - QUADRADAS */
.service-photo {
  margin: 25px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.service-photo img {
  width: 100%;
  aspect-ratio: 1 / 1; /* QUADRADO PERFEITO */
  object-fit: cover; /* CORTA MAS É BONITO */
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.service-photo:hover img {
  transform: scale(1.05);
}

/* Ajuste específico para fotos na grid-2 */
.grid-2 .section-photo img {
  aspect-ratio: 1 / 1; /* QUADRADO NA GRID TAMBÉM */
  object-fit: cover;
}

/* Método / Processo */
.steps-verbose{list-style:decimal;padding-left:18px}
.process{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:8px}
.p-step{background:#fff;border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.p-num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:999px;background:var(--brand);color:#fff;font-weight:700;margin-bottom:6px}

/* Galeria */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.gallery figure{margin:0;border-radius:var(--radius-sm);overflow:hidden;box-shadow:var(--shadow);cursor:zoom-in}
.gallery img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3;transition:transform .3s}
.gallery img:hover{transform:scale(1.04)}

/* Lightbox CORRIGIDA */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  place-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  display: grid;
  opacity: 1;
}

.lb-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lb-content {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 1200px);
  max-height: 84vh;
}

.lb-image {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  display: block;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,.3);
  transform: scale(1.1);
}

.lb-close {
  top: -60px;
  right: 0;
}

.lb-prev {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .lb-close {
    top: 10px;
    right: 10px;
  }
  
  .lb-prev {
    left: 10px;
    top: 50%;
  }
  
  .lb-next {
    right: 10px;
    top: 50%;
  }
}

/* Depoimentos */
.testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.t-card{background:#fff;border-left:5px solid var(--brand);border-radius:var(--radius-sm);padding:18px;box-shadow:var(--shadow);font-style:italic}

/* Áreas / Formulário */
.cta-box{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}
.quote-form .form-row{display:flex;flex-direction:column;margin-bottom:12px;text-align:left}
.quote-form label{font-weight:600;margin-bottom:4px}
.quote-form input,.quote-form select,.quote-form textarea{
  padding:12px;border:1px solid #ddd;border-radius:8px;background:#fff;font-size:1rem
}
.quote-form button{width:100%}
.micro{font-size:.85rem;color:var(--muted)}

/* FAQ */
.accordion details{background:#fff;border-radius:var(--radius-sm);box-shadow:var(--shadow);margin:10px 0;padding:10px}
.accordion summary{cursor:pointer;font-weight:600}
.accordion .panel{padding-top:8px;color:#444}

/* CTA final */
.final-cta{background:linear-gradient(180deg,#fff,#f1ebe3)}
.final-cta .hero-ctas{justify-content:center}

/* BOTÕES FLUTUANTES */
.float-buttons {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
}
.float-btn:hover {
  transform: scale(1.08);
  opacity: 0.9;
}
.float-whats { background:#25D366; }
.float-call  { background:#007AFF; }
.float-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Footer */
.site-footer{background:#222;color:#ddd;padding:28px 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}
.brand-footer .logo{color:var(--brand)}
.brand-footer .brand-text{font-family:'Montserrat',sans-serif;font-weight:700}

/* Animações de entrada */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .6s, transform .6s}
.reveal.in{opacity:1;transform:none}

/* Responsivo */
@media (max-width:1024px){
  .grid-2{grid-template-columns:1fr}
  .cards-3{grid-template-columns:repeat(2,1fr)}
  .process{grid-template-columns:repeat(2,1fr)}
  .gallery{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:720px){
  .main-nav{display:none}
  .menu-toggle{display:none}
  .whats-header{display:inline-block}
  .cards-3{grid-template-columns:1fr}
  .testimonials{grid-template-columns:1fr}
  .gallery{grid-template-columns:repeat(2,1fr)}

  /* Centralização header */
  .header-inner {
    justify-content: center;
    text-align: center;
  }
  .brand {
    justify-content: center;
  }
  .whats-header {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width:420px){
  .gallery{grid-template-columns:1fr}
}

/* HERO MOBILE */
@media (max-width: 720px) {
  .hero-inner {
    text-align: center;
    padding: 60px 20px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
 
/* =========================
   Mobile Header - apenas logo + botão WhatsApp
   ========================= */
@media (max-width: 720px) {
  .header-inner {
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    margin-left: 30px;
  }

  .whats-header {
    margin-right: 20px;
  }
} 

/* =========================
   CORREÇÃO BUG MARGEM BRANCA MOBILE
   ========================= */
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-bg {
    width: 100%;
    left: 0;
    right: 0;
}

.section {
    width: 100%;
    margin: 0;
    padding: 70px 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 720px) {
    .container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .hero-inner {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
} 

/* =========================
   HEADER MOBILE - MAIS ESPAÇOSO
   ========================= */

@media (max-width: 720px) {
  .header-inner {
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    min-height: 70px;
  }

  .brand {
    margin-left: 0;
    flex: 1;
  }

  .whats-header {
    margin-right: 0;
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
  }

  .brand .brand-text {
    font-size: 18px;
  }

  .header-inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding: 12px 15px;
    min-height: 65px;
  }

  .whats-header {
    padding: 8px 12px;
    font-size: 13px;
  }

  .brand .brand-text {
    font-size: 16px;
  }

  .brand .logo {
    font-size: 20px;
  }
}

@media (min-width: 401px) and (max-width: 720px) {
  .header-inner {
    padding: 15px 25px;
  }

  .whats-header {
    padding: 10px 18px;
    font-size: 14px;
  }
}  

/* CORREÇÃO PARA SEÇÕES NO MOBILE */
@media (max-width: 720px) {
  .section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  #depoimentos, #areas, #faq, #contato {
    position: relative;
    z-index: 1;
  }
}