:root {
  /* Paleta atualizada com cores oficiais da ACN Engenharia */
  --bg: #f5f9f5;
  --bg-soft: #ffffff;
  --text: #1a2f1c;
  --muted: #537553;
  --brand: #2b9d36;
  --brand-2: #1e6c25;
  --brand-soft: rgba(43, 157, 54, 0.08);
  --accent: #f08310;
  --accent-2: #c46415;
  --line: rgba(26, 47, 28, 0.1);
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(43, 157, 54, 0.05);
  --shadow: 0 12px 32px rgba(43, 157, 54, 0.08);
  --radius: 12px; /* Mais quadrado, aspecto de engenharia/solidez do que os originais 22px */
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: 0.2s; }
img { max-width: 100%; display: block; height: auto; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; padding-inline: 16px; }

/* Auxiliares */
.mt-20 { margin-top: 20px; }
.text-center { text-align: center; }

/* Topbar */
.topbar {
  background: var(--brand-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; }
.topbar a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(26, 47, 28, 0.04);
}
.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  display: block;
}

/* Nav Links */
.nav-links { 
  display: flex; 
  align-items: center; 
  gap: 28px; 
  font-weight: 600; 
  font-size: 0.95rem; 
  color: var(--muted); 
}
.nav-links a {
  position: relative;
  color: var(--muted);
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a.active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active, .nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 16px; min-height: 38px; font-size: 0.9rem; }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 8px 24px rgba(27, 78, 66, 0.25); }
.btn-primary:hover { 
  background: var(--brand-2); 
  color: white; 
  box-shadow: 0 12px 32px rgba(27, 78, 66, 0.35);
}
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand-soft); }
.btn-gold { background: var(--accent); color: white; box-shadow: 0 8px 24px rgba(212, 163, 75, 0.3); text-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.btn-gold:hover { 
  background: var(--accent-2); 
  color: white; 
  box-shadow: 0 12px 32px rgba(196, 100, 21, 0.4);
}
.btn-block { width: 100%; display: flex; }

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--brand);
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
}

/* Tipografia e Textos Base */
h1, h2, h3, h4 { margin: 0; color: var(--brand-2); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; margin: 16px 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; line-height: 1.3; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 680px; margin-bottom: 24px; line-height: 1.5; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Seções e Grids */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.align-items-center { align-items: center; }

/* Cards Genéricos */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
}
.service-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--shadow); 
  border-color: var(--brand); 
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.service-card:hover .icon {
  transform: scale(1.1);
  background: var(--brand);
  color: var(--white);
}
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }
.link-more { font-weight: 700; display: inline-flex; margin-top: 16px; font-size: 0.95rem; align-items: center; gap: 4px; }
.link-more:hover { gap: 8px; }

/* Listas customizadas */
.feature-list { list-style: none; padding: 0; margin-bottom: 24px; }
.feature-list li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--muted); }
.feature-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 900; font-size: 1.1rem;
}
.feature-list strong { color: var(--text); }

/* Hero Específico */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, #edeada 100%);
}
.hero::before {
  content: ""; position: absolute; top: 0; right: 0; width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(212,163,75, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.hero-visual {
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  background: var(--brand-2) url('https://images.unsplash.com/photo-1541888081180-60b73ece8db9?auto=format&fit=crop&q=80&w=1000') center/cover;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 48, 40, 0.8) 100%);
}
.visual-caption {
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--brand-2);
  font-size: 0.85rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 12px;
  border-radius: 8px;
  text-align: center;
}
.stat strong { display: block; font-size: 1.8rem; line-height: 1; color: var(--accent-2); margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }

/* Blocos específicos (Obras, Sobre) */
.solid-card { background: var(--bg-soft); border-top: 4px solid var(--brand); }
.about-highlight blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--brand);
  border-left: 3px solid var(--accent);
  margin: 20px 0 0; 
  padding-left: 16px;
}

/* Call to Action Band */
.band {
  background: var(--brand-2);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0;
  text-align: center;
}
.band h2 { color: white; margin-bottom: 12px; }
.band p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 24px; }
.band .container { display: flex; flex-direction: column; align-items: center; }

/* Conteúdo (Páginas internas) */
.content-hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.content-hero-left { text-align: left; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.content-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.content-block h2 { font-size: 1.8rem; margin-top: 10px; }
.content-block ul { padding-left: 20px; color: var(--muted); margin-bottom: 20px; }
.content-block li { margin-bottom: 8px; }
.sidebar { position: sticky; top: 100px; }

/* Blog */
.blog-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.article-meta { color: var(--brand); font-weight: 700; font-size: 0.85rem; margin-bottom: 12px; text-transform: uppercase; }
.table-wrap { overflow-x: auto; margin-bottom: 20px; border-radius: 8px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #fff; min-width: 500px; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 14px 16px; font-size: 0.95rem; }
th { color: var(--brand-2); background: var(--bg); font-weight: 700; }
.note { font-size: 0.85rem; color: #888; font-style: italic; padding: 12px; background: #f9f9f9; border-left: 3px solid #ccc; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-item { padding: 20px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 16px; }
.form { display: grid; gap: 16px; }
.form label { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid #c8cbcc;
  border-radius: 6px;
  padding: 14px;
  font: inherit;
  background: white;
  margin-top: 6px;
  transition: border-color 0.2s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form textarea { min-height: 140px; resize: vertical; }

/* Footer */
.footer {
  background: #091a15;
  color: #8c9b97;
  padding: 70px 0 24px;
  font-size: 0.95rem;
}
.footer h3, .footer h4 { color: white; margin-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer p { margin-bottom: 12px; }
.footer a { color: #a4b3af; }
.footer a:hover { color: var(--accent); }
.footer-links { display: grid; gap: 12px; }
.contact-info { margin-bottom: 16px; line-height: 1.4; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; font-size: 0.85rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 0.85rem; text-align: center; }

/* Botão Flutuante WPP */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  background: #25D366;
  color: white;
  border-radius: 50px;
  padding: 12px 24px 12px 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.02); color: white; }

/* Responsividade */
@media (max-width: 1024px) {
  .hero-grid, .grid-4, .grid-3, .grid-2, .content-layout, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { gap: 24px; }
  .sidebar { position: static; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero { padding: 40px 0 60px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    inset: 79px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 16px; width: 100%; border-radius: 6px; }
  .nav-links a:hover { background: var(--bg); }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn-sm { display: none; }
  
  .topbar .container { justify-content: center; text-align: center; }
  .content-hero { padding: 60px 0 40px; }
  .section { padding: 60px 0; }
  .content-block, .card { padding: 24px; }
  .stats { grid-template-columns: 1fr; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 12px; }
  .whatsapp-float svg { margin: 0; }
  .whatsapp-float span { display: none; } /* Encolhe botão WPP para ícone apenas */
}
