
/* Sticky footer A2 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}

:root {
  --verde-primario: #007A3D;
  --verde-claro: #bfe8cf;
  --verde-escuro: #00552A;
  --cinza-claro: #F3F5F7;
  --cinza-medio: #67707c;
  --cinza-escuro: #2A2F33;
  --branco: #ffffff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.06);
  --container-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cinza-escuro);
  background: var(--cinza-claro);
  line-height: 1.6;
}

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

a {
  color: var(--verde-primario);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(135deg, #b7e4cf, #c7efe0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}


.hamburger {
  display: none;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}

.logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, #e9fff3, #007a3d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.logo-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 20px;
  color: var(--verde-escuro);
}

.brand-slogan {
  font-size: 12px;
  color: var(--cinza-medio);
}

.main-nav {
  position: relative;
}

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

.main-nav a {
  padding: 6px 0;
  font-weight: 500;
  color: var(--cinza-escuro);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--verde-primario);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--verde-primario);
  color: var(--branco) ;
  box-shadow: 0 10px 25px rgba(0, 122, 61, 0.35);
}

.nav-toggle {
  display: none;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.6);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--cinza-escuro);
}

.nav-toggle span + span {
  margin-top: 4px;
}

/* Main */
.page-main {
  padding: 48px 0 72px;
}

/* Hero */
.hero-home {
  background: radial-gradient(circle at top left, #d9f6e8 0, #f6fffb 40%, #ecf7f1 100%);
  padding: 32px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-text h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 18px;
  color: var(--verde-escuro);
}

.hero-lead {
  font-size: 15px;
  color: var(--cinza-medio);
  margin: 0 0 20px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--verde-escuro);
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn.primary {
  background: var(--verde-primario);
  color: var(--branco);
  box-shadow: 0 12px 30px rgba(0, 122, 61, 0.4);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--cinza-escuro);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--cinza-medio);
}

.hero-highlights span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--verde-escuro);
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--cinza-medio);
}

/* Generic sections */
.section {
  padding: 40px 0;
}

.section.alt {
  background: #f1faf5;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: left;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 10px;
  color: var(--verde-escuro);
}

.section-header p {
  margin: 0;
  color: var(--cinza-medio);
  font-size: 14px;
}

/* Layout helpers */
.columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.columns-2 h3 {
  margin-top: 0;
  color: var(--verde-escuro);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  background: var(--branco);
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--verde-escuro);
}

.card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--cinza-medio);
}

.card-link {
  font-size: 13px;
  font-weight: 600;
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin-top: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--cinza-escuro);
}

input,
select,
textarea {
  border-radius: 10px;
  border: 1px solid #d0d7df;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
  display: flex;
  gap: 10px;
}

/* Portfolio */
.portfolio-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--cinza-medio);
}

/* Footer */
.site-footer {
  background: var(--verde-escuro);
  color: var(--branco);
  padding-top: 28px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-title {
  font-weight: 600;
  margin: 0;
}

.footer-subtitle {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  font-size: 13px;
}

.footer-grid h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 4px;
}

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

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 10px 16px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    display: none;
  }
  .nav-list.open {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    justify-content: stretch;
  }
  .columns-2 {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-home {
    padding-top: 24px;
  }
  .hero-text h1 {
    font-size: 26px;
  }
  .page-main {
    padding-top: 32px;
  }
}

.logo-img {
  height: 78px;
  width: auto;
  display: block;
}

.site-header {
  background: linear-gradient(135deg, #e1f7ec, #f6fff9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 4px 0;
}

.nav-list {
  flex-wrap: wrap;
  row-gap: 4px;
  column-gap: 18px;
  justify-content: flex-end;
}

.footer-logo {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  margin-left: auto;
}

.nav-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: flex-end;
}

.nav-row-1 {
  margin-bottom: 6px;
}

/* HEADER FIXED LAYOUT */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-area {
  display: flex;
  align-items: center;
}

.main-nav {
  margin-left: auto;
}

.nav-row {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 22px;
  padding: 0;
  margin: 0;
  justify-content: flex-end;
}

.nav-row-1 {
  margin-bottom: 6px;
}

.logo-img {
  height: 78px;
  width: auto;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ==== Verde Engenharia identidade refinada ==== */

/* Títulos de seção mais corporativos */
.section-header h1,
.section-header h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

/* Espaçamentos verticais mais confortáveis */
.section {
  padding: 64px 0;
}

.hero-home {
  padding: 80px 0;
}

/* Botões padronizados */
.btn.primary {
  background: var(--verde-primario);
  color: var(--branco);
  box-shadow: 0 12px 28px rgba(0, 122, 61, 0.35);
}

.btn.ghost {
  background: transparent;
  border-color: var(--verde-primario);
  color: var(--verde-escuro);
}

/* Header premium leve */
.site-header {
  background: linear-gradient(135deg, #E8FFF2, #F5FFF9);
  backdrop-filter: blur(16px);
}

/* Footer com contraste maior */
.site-footer {
  background: #00361d;
}

/* Ajuste tipográfico geral */
body {
  font-size: 15px;
}

.form-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--cinza-medio);
}


/* ============================
   PASSO 3.1 — Ajuste Desktop 27"
   ============================ */

/* Aumentar largura do container */
.container {
  max-width: 1700px;
}

/* Header refinado — menu à direita em duas linhas */
.main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.nav-row {
  justify-content: flex-end;
}

/* Logo maior */
.logo-img {
  height: 88px;
  width: auto;
}

/* Mais espaço para compensar header sticky */
main {
  padding-top: 40px;
}

/* Reduz padding das páginas internas */
.section {
  padding: 48px 0;
}

/* Footer com largura ampla */
.site-footer .container {
  max-width: 1700px;
}

/* Footer: melhorar alinhamento da marca */
.footer-brand, .footer-brand-area {
  display: flex;
  align-items: center;
  gap: 16px;
}


/* Mobile responsiveness fixes */
@media (max-width: 768px) {
  header nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  header nav {
    padding: 10px 0;
  }
  .hero, .content, section {
    padding: 0 16px ;
  }
  .card, .service-box {
    width: 100% ;
    margin: 10px 0;
  }
}

@media(max-width:768px){
  .hamburger {display:block;}
  .main-nav {display:none ;}
  .main-nav.open {display:flex ; flex-direction:column; align-items:flex-start;}
}


/* Mobile dropdown menu */
@media (max-width: 768px) {
  .header-flex {
    align-items: center;
    gap: 12px;
  }

  .brand-area {
    flex: 1;
  }

  .hamburger {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    margin-left: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    padding: 12px 16px;
    z-index: 20;
  }

  .main-nav.open {
    display: flex ;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav-row-1 {
    margin-bottom: 4px;
  }

  .nav-row li a {
    display: block;
    width: 100%;
    padding: 6px 0;
  }
}

/* === FOOTER MOBILE FIX === */
@media (max-width: 768px) {
  .site-footer {
    padding-left: 20px ;
    padding-right: 20px ;
  }
  .footer-columns {
    display: flex ;
    flex-direction: column ;
    gap: 24px ;
  }
  .footer-columns * {
    word-break: keep-all ;
    white-space: normal ;
  }
  .footer-brand,
  .footer-brand-area {
    flex-direction: column ;
    align-items: flex-start ;
    gap: 8px ;
  }
}

/* Fix footer left clipping */
.footer-inner, .footer-grid { padding-left: 40px; padding-right: 40px; }

.brand-flex { display:flex; align-items:center; gap:16px; }
.brand-col { display:flex; flex-direction:column; }
.footer-grid { align-items:flex-start ; }
.site-footer { padding-top:20px; padding-bottom:20px;}
.footer-inner { padding-top:0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.brand-flex {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-title-sub p { margin: 0; padding: 0; }
.site-footer { padding-top: 30px; padding-bottom: 30px; }

/* MOBILE FIX: evitar scroll lateral e ajustar footer */
html, body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    overflow-x: hidden;
  }

  .footer-grid > div {
    width: 100%;
  }

  .footer-inner,
  .footer-bottom-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.footer-logo {
  max-width: 120px;
  height: auto;
}

/* --- FIX MENU HORIZONTAL --- */
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  text-decoration: none;
  font-weight: 500;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  padding: 10px;
  list-style: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* MOBILE: menu collapses normally */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .dropdown-menu {
    position: relative;
    box-shadow: none;
    padding-left: 20px;
  }
}

/* mobile menu hidden */
.main-nav ul { display:flex; }
@media(max-width:768px){
  .main-nav ul { display:none; flex-direction:column; }
  .main-nav.open ul { display:flex; }
}

/* FIX: dropdown only visible on hover */
.dropdown-menu {
  display:none !important;
  flex-direction:column;
  gap:12px;
  padding:14px 18px;
  background:#fff;
  border-radius:6px;
  min-width:220px;
}

.dropdown:hover .dropdown-menu {
  display:flex !important;
}

/* spacing for each item */
.dropdown-menu li a {
  display:block;
  padding:6px 0;
  white-space:nowrap;
}

/* MOBILE MENU FIX */
@media(max-width:768px){
  .dropdown-menu{
    display:none !important;
    background:#E8F9F0 !important; /* same header color */
    box-shadow:none !important;
    padding:10px 20px !important;
    border-radius:0 !important;
  }
  .main-nav.open .dropdown-menu{
    display:block !important;
  }
}

/* Ensure desktop dropdown keeps the box */
@media(min-width:769px){
  .dropdown-menu{
    background:white !important;
  }
}

/* FULL MENU BACKGROUND FIX */

/* desktop dropdown background */
@media(min-width:769px){
  .dropdown-menu{
    background:#E8F9F0 !important;
    box-shadow:0 2px 6px rgba(0,0,0,0.15) !important;
  }
}

/* mobile menu background */
@media(max-width:768px){
  .main-nav{
    background:#E8F9F0 !important;
    border-radius:12px;
  }
  .main-nav ul{
    background:#E8F9F0 !important;
  }
  .dropdown-menu{
    background:#E8F9F0 !important;
  }
}

@media(max-width:768px){nav.open{left:0 !important; right:0 !important; width:100% !important; background:#E8F9F0 !important;} nav.open ul{background:#E8F9F0 !important; width:100% !important;} }

/* Professional update */
body { font-family: 'Inter', sans-serif; line-height:1.55; color:#1a1a1a; }
h1,h2,h3,h4 { font-weight:700; color:#0A7D32; letter-spacing:-0.5px; }

/* Card improvements */
.card, .service-card {
  background:#F7FAF8;
  border:1px solid #E3EEE7;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
  border-radius:18px;
  padding:24px;
  transition:0.2s ease;
}
.card:hover, .service-card:hover {
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  transform:translateY(-2px);
}

/* Section padding */
section { padding:60px 0; }

/* Submenu professional style */
nav ul ul {
  background:#E8F9F0 !important;
  border-radius:12px;
  padding:14px 0 !important;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
}
nav ul ul li a {
  padding:10px 22px !important;
  border-bottom:1px solid #D6EDE2;
}
nav ul ul li:last-child a { border-bottom:none; }

/* Footer refinement */
footer {
  background:#003F1E;
  color:white;
  padding:60px 0;
}
footer a { color:white; opacity:0.9; }


.card.service {
    display: flex;
    flex-direction: column;
}
.card.service .card-link {
    margin-top: auto;
}
