/*
Theme Name: Ecolacre Oficial
Theme URI: https://ecolacreoficial.com.br
Author: Daniel Mello & Jarvis
Author URI: https://ecolacreoficial.com.br
Description: Tema institucional oficial do projeto Ecolacre – sustentabilidade, tecnologia e impacto social. (Otimizado para uso com Elementor nas páginas)
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecolacre
Tags: clean, fast, institutional, elementor
*/

:root{
  --ec-green:#2E7D32;
  --ec-yellow:#FBC02D;
  --ec-dark:#333333;
  --ec-light:#FFFFFF;
  --ec-muted:#F6F7F8;
  --ec-radius:18px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--ec-dark);
  background:var(--ec-light);
  line-height:1.6;
}
a{color:inherit; text-decoration:none;}
a:hover{opacity:.85;}
img{max-width:100%; height:auto;}

.ec-container{
  width:min(1140px, calc(100% - 32px));
  margin-inline:auto;
}

.ec-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.ec-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}
.ec-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.3px;
}
.ec-brand__dot{
  width:12px;height:12px;border-radius:999px;
  background:linear-gradient(135deg,var(--ec-green),var(--ec-yellow));
  box-shadow:0 10px 20px rgba(46,125,50,.25);
}
.ec-brand img { max-height: 42px; width: auto; }
.ec-brand .custom-logo-link { display:flex; align-items:center; }
.ec-nav ul{
  list-style:none;
  display:flex;
  gap:18px;
  margin:0;padding:0;
}
.ec-nav a{
  font-weight:600;
  padding:10px 10px;
  border-radius:12px;
}
.ec-nav a:hover{
  background:rgba(46,125,50,.08);
}
.ec-nav .current-menu-item > a,
.ec-nav .current_page_item > a{
  background:rgba(251,192,45,.22);
}

.ec-cta{
  display:flex;
  gap:10px;
  align-items:center;
}
.ec-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  font-weight:700;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.ec-btn--primary{
  border:none;
  background:linear-gradient(135deg,var(--ec-green), #1b5e20);
  color:#fff;
}
.ec-btn--accent{
  border:none;
  background:linear-gradient(135deg,var(--ec-yellow), #f9a825);
  color:#1a1a1a;
}
.ec-btn:active{transform:translateY(1px);}

.ec-main{
  padding:28px 0 60px;
}

.ec-footer{
  background:var(--ec-dark);
  color:#fff;
  padding:36px 0;
}
.ec-footer a{color:#fff; text-decoration:underline;}
.ec-footer__grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap:24px;
  align-items:start;
}
.ec-footer__small{
  opacity:.75;
  font-size:.92rem;
}
@media (max-width: 780px){
  .ec-nav ul{display:none;}
  .ec-footer__grid{grid-template-columns:1fr;}
}

/* Gutenberg basic */
.wp-block{max-width: 1140px;}
.alignwide{max-width: 1300px;}
.alignfull{max-width:none; width:100%;}

/* Elementor fixes */
.elementor-page .ec-main{padding-top:18px;}
/* ===== Ajuste de logo no header ===== */
.ec-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ec-brand img {
  max-height: 48px;   /* ajuste fino aqui */
  width: auto;
}

.ec-brand__dot {
  display: none; /* opcional: remove o ponto verde */
}
/* TESTE FORÇADO - ajustar logo */
.ec-header .ec-brand .custom-logo-link img {
  max-height: 48px !important;
  width: auto !important;
}

.ec-header .ec-brand__dot {
  display: none !important;
}
@media (max-width: 768px) {
  .ec-header .custom-logo {
    height: 72px;
  }
}
