:root{
  --bg: #ffffff;
  --text: #1b1f2a;
  --muted: #6b7280;
  --brand: #3aa44a;
  --brand-2: #2f8b3d;
  --line: rgba(0,0,0,.08);
  --soft: #f7f8fb;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);

  --container: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* DESKTOP – sanduíche NUNCA aparece */
.nav-toggle{
  display: none !important;
}

.header.scrolled{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.header-inner{
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{ display: inline-flex; align-items: center; }
.brand-logo{
  height: 40px;
  width: auto;
}

.nav{ display: flex; }
.nav-list{
  list-style: none;
  display: flex;
  gap: 26px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.nav-link{
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .2px;
  color: rgba(255,255,255,.92);
  transition: color .2s ease;
}

.header.scrolled .nav-link{ color: #2b3342; }

.nav-link:hover{ color: var(--brand); }
.nav-link.active{ color: var(--brand); }

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.header.scrolled .nav-toggle{ border-color: rgba(0,0,0,.15); }

.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: rgba(255,255,255,.92);
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.header.scrolled .nav-toggle span{ background: #2b3342; }

/* HERO */
.hero{
  position: relative;
  display: flex;
  align-items: center;

  /* FULL SCREEN */
  min-height: 100vh;

  /* NÃO usar padding-top aqui (header é fixed) */
  padding-top: 0;

  /* fundo LOCAL */ 
/* fundo WP */
background-image: url("/wp-content/uploads/2020/08/header-bg-1-scaled-1.jpg");

background-size: cover;
background-repeat: no-repeat;

  /* ajuste fino do enquadramento */
  background-position: 60% 30%;
}

/* Mobile moderno: garante 100% de altura real */
@supports (height: 100svh){
  .hero{ min-height: 100svh; }
}


.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,10,35,.75), rgba(2,10,35,.35));
}

.hero-content{
  position: relative;
  padding: 110px 0 64px 0; /* empurra o texto pra baixo, mas SEM tirar altura do hero */
}

.hero-text{
  max-width: 640px;
  color: #fff;
}

.hero h1{
  margin: 0 0 14px 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: .2px;
}

.hero-quote{
  margin: 0 0 26px 0;
  color: rgba(255,255,255,.9);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
}

.hero-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary{
  background: var(--brand);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}
.btn-primary:hover{ background: var(--brand-2); }

.btn-ghost{
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover{ background: rgba(255,255,255,.18); }

/* SECTIONS */
.section{
  padding: 70px 0;
}

.section-soft{
  background: var(--soft);
  border-top: 1px solid rgba(0,0,0,.04);
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.section-title{
  text-align: center;
  margin-bottom: 34px;
}

.section-title h2{
  margin: 0;
  letter-spacing: .6px;
  font-size: 22px;
}

.subtitle{
  margin: 10px auto 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* SPLIT blocks */
.split{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 34px;
  align-items: center;
  margin: 28px 0;
}

.split.reverse{
  grid-template-columns: 1fr 1.15fr;
}

.split.reverse .split-media{ order: 2; }
.split.reverse .split-text{ order: 1; }

.split-media{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}

.split-media img{
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split-text h3{
  margin: 0 0 10px 0;
  font-size: 22px;
}

.split-text p{
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* CARDS */
.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card{
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  text-align: center;
}

.card-icon{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  margin: 0 auto 12px auto;
  display: grid;
  place-items: center;
  border: 2px solid rgba(0,0,0,.10);
}

.card-icon i{
  font-size: 18px;
  color: #111827;
}

.card h4{
  margin: 0 0 8px 0;
  font-size: 16px;
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* PORTFÓLIO */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.portfolio-item{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  place-items: center;
  min-height: 150px;
}

.portfolio-item img{
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

/* BLOG */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.blog-card{
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-body{
  padding: 16px;
}

.blog-body h4{
  margin: 0 0 8px 0;
  font-size: 16px;
}

.blog-body p{
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.blog-link{
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
  font-size: 13px;
}

.blog-link:hover{ color: var(--brand-2); }

/* CONTATO */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-box{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 18px;
}

.contact-box h4{ margin: 0 0 10px 0; }
.contact-box p{ margin: 0; color: var(--muted); line-height: 1.7; }

/* APP */
.app-box{
  display: flex;
  justify-content: center;
}

/* FOOTER */
.footer{
  background: #2f3846;
  color: rgba(255,255,255,.9);
}

.footer-inner{
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.footer-logo{
  height: 38px;
  width: auto;
  margin-bottom: 12px;
}

.footer-col h5{
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #fff;
}

.footer-col a{
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,.85);
  margin: 8px 0;
  font-size: 13px;
}
.footer-col a:hover{ color: #fff; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}

/* Floating buttons */
.fab-whatsapp{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
  text-decoration: none;
  z-index: 999;
}

.fab-whatsapp i{ font-size: 22px; }

.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 999;
}

.back-to-top.show{
  opacity: 1;
  pointer-events: auto;
}

/* MOBILE */
@media (max-width: 980px){
  .cards-grid{ grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .nav-toggle{ display: inline-flex; align-items: center; justify-content: center; }
  .nav{
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav.open{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list{
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 14px;
  }

  .nav-list li{ width: 100%; }
  .nav-link{
    width: 100%;
    display: block;
    padding: 12px 10px;
    color: #2b3342 !important;
    border-radius: 10px;
  }
  .nav-link:hover{ background: rgba(0,0,0,.05); }

  .split,
  .split.reverse{
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media{ order: 1; }
  .split.reverse .split-text{ order: 2; }

  .blog-grid{ grid-template-columns: 1fr; }
}
/* PORTFÓLIO – logos maiores e centralizados */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px){
  .portfolio-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .portfolio-grid{ grid-template-columns: 1fr; }
}

/* Se você usa <img> direto dentro da grid */
/* PORTFÓLIO – centralização perfeita + zoom */
.portfolio-item{
  min-height: 150px !important;
  height: 150px !important;
  padding: 18px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* centraliza de verdade */
.portfolio-item img{
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(1.8) !important;
  width: auto !important;
  height: auto !important;
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
}

/* extra */
section[id]{
  scroll-margin-top: 86px;
}

/* ===== HAMBURGUER (MOBILE) – botão bonito + barras alinhadas ===== */
.nav-toggle{
  display: none; /* aparece no media query */
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  cursor: pointer;

  /* alinhamento das barras */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

/* barras */
.nav-toggle span{
  width: 22px;
  height: 2px;
  background: #2b3342;
  border-radius: 2px;
  margin: 0;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

/* quando o header estiver transparente (no topo do hero) */
.header:not(.scrolled) .nav-toggle{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.35);
  box-shadow: none;
}
.header:not(.scrolled) .nav-toggle span{
  background: rgba(255,255,255,.95);
}

/* vira X quando abrir */
.nav-toggle.open span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2){
  opacity: 0;
}
.nav-toggle.open span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* garante que ele aparece só no mobile */
@media (max-width: 860px){
  .nav-toggle{ display: flex; }
}

/* ===== NAV TOGGLE: DESKTOP OFF / MOBILE ON (FORÇADO) ===== */
.nav-toggle{ display: none !important; }

@media (max-width: 860px){
  .nav-toggle{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}
