:root {
  --brand: #2f8f46;
  --brand-dark: #226535;
  --brand-a: #2f8f46;
  --brand-b: #4a5560;
  --accent-yellow: #f0b429;
  --accent-red: #c1392b;
  --ink: #2b2320;
  --ink-light: #5a5a5a;
  --bg: #ffffff;
  --bg-soft: #f4f2ef;
  --concrete: #2b2320;
  --border: #e3ddd5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin-top: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: #fff;
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; color: var(--ink); }
.brand-text small { color: var(--ink-light); font-size: 12px; letter-spacing: .03em; }

.brand-stripe { display: flex; height: 4px; }
.brand-stripe span { flex: 1; }
.brand-stripe span:nth-child(1) { background: var(--brand); }
.brand-stripe span:nth-child(2) { background: var(--accent-yellow); }
.brand-stripe span:nth-child(3) { background: var(--accent-red); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover { color: var(--brand); }

.nav-toggle { display: none; }
.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  order: 2;
}
.nav-toggle-btn span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-phone { background: transparent; border-color: var(--brand); color: var(--brand); font-size: 14px; padding: 8px 16px; }
.btn-phone:hover { background: var(--brand); color: #fff; }
.btn-lg { font-size: 18px; padding: 14px 32px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--concrete), #23262a);
  color: #fff;
  padding: 90px 0 70px;
}
.hero-inner { max-width: 760px; }
.hero h1 { font-size: 42px; margin-bottom: 18px; }
.hero-sub { font-size: 18px; color: #d8d8d8; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--concrete); }

/* Stats */
.stats { background: var(--brand); color: #fff; padding: 28px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 16px;
}
.stat-num { display: block; font-size: 30px; font-weight: 700; }
.stat-label { font-size: 13px; letter-spacing: .03em; opacity: .9; }

/* Sections */
.section { padding: 70px 0; }
.section h2 { font-size: 30px; margin-bottom: 10px; }
.section-sub { color: var(--ink-light); margin-bottom: 36px; font-size: 16px; max-width: 640px; }
.services-preview { background: var(--bg-soft); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.08); text-decoration: none; }
.card-icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--ink-light); font-size: 15px; margin: 0; }

.center-cta { text-align: center; margin-top: 40px; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--ink-light);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.why-visual {
  height: 280px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, var(--brand) 0 18px, var(--brand-dark) 18px 36px);
  opacity: .9;
}

/* CTA band */
.cta-band { background: var(--concrete); color: #fff; padding: 60px 0; text-align: center; }
.cta-inner h2 { font-size: 28px; }
.cta-inner p { color: #d8d8d8; margin-bottom: 28px; }

/* Page hero (inner pages) */
.page-hero { background: var(--bg-soft); padding: 50px 0; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: 32px; }
.page-hero-content { color: var(--ink-light); max-width: 700px; margin-top: 8px; }

.content-page { max-width: 780px; }
.content-page h2 { margin-top: 36px; font-size: 22px; }
.content-page ul, .content-page ol { color: var(--ink-light); }

/* List cards (servicos/projetos) */
.list-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.list-card-visual { height: 160px; background-size: cover; background-position: center; }
.visual-0 { background: linear-gradient(135deg, var(--brand-a), var(--brand-dark)); }
.visual-1 { background: linear-gradient(135deg, var(--brand-b), var(--concrete)); }
.visual-2 { background: linear-gradient(135deg, #c1392b, #4a5560); }
.list-card-body { padding: 22px; }
.link-arrow { color: var(--brand); font-weight: 600; font-size: 14px; }

/* Project galleries and inline content images */
.content-page img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin: 16px 0;
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.project-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--ink-light); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--ink-light); margin: -6px 0 0; }
.contact-social { display: flex; gap: 16px; padding-top: 4px; border: none; }
.contact-social li { border: none; padding: 0; }
.footer-social a { color: #fff; margin-right: 16px; font-size: 14px; }

/* Footer */
.site-footer { background: var(--concrete); color: #cfcfcf; padding: 48px 0 0; margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col strong { color: #fff; display: block; margin-bottom: 8px; }
.footer-col p { font-size: 14px; color: #b8b8b8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 16px 0;
  font-size: 13px;
  color: #999;
}

/* Responsive */
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; }
  .brand { order: 1; }
  .nav-toggle-btn { display: flex; }
  .btn-phone { order: 3; }
  .main-nav {
    order: 4;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-toggle:checked ~ .main-nav { max-height: 500px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0 4px; }
  .main-nav a { display: block; padding: 10px 4px; border-top: 1px solid var(--border); font-size: 16px; }
  .hero h1 { font-size: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { height: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
