/* Construtivo — site institucional
   Paleta e tipografia extraídas do próprio app (app.agilizaengenharia.com.br) */

:root {
  --primary: #228c22;
  --primary-dark: #1a6e1a;
  --accent: #007f80;
  --destructive: #dc2828;
  --background: #f8fafc;
  --muted: #f1f5f9;
  --muted-2: #eef2f6;
  --foreground: #0f1729;
  --muted-foreground: #65758b;
  --border: #e1e7ef;
  --card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 41, 0.12);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 41, 0.18);
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

section { padding: 96px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(34, 140, 34, 0.1);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow.accent { color: var(--accent); background: rgba(0, 127, 128, 0.1); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--foreground); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 20px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  font-weight: 600; font-size: 15px; color: var(--muted-foreground);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover { color: var(--foreground); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; color: var(--foreground); }

/* Hero */
.hero { padding: 88px 0 40px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { font-size: 52px; line-height: 1.1; margin-bottom: 24px; }
.hero h1 .hl { color: var(--primary); }
.hero p.lead {
  font-size: 19px; color: var(--muted-foreground); max-width: 520px; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-size: 14px; color: var(--muted-foreground); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.hero-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--card);
}
.hero-visual img { width: 100%; height: auto; }

/* Trust strip */
.trust-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.trust-strip .container {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  text-align: center; flex-wrap: wrap;
}
.trust-strip p { color: var(--muted-foreground); font-size: 15px; }
.trust-strip strong { color: var(--foreground); }

/* Problem section */
.problem { }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: 36px; margin-bottom: 16px; }
.section-head p { color: var(--muted-foreground); font-size: 17px; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.problem-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(220, 40, 40, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.problem-card .icon-wrap svg { width: 22px; height: 22px; color: var(--destructive); }
.problem-card h3 { font-size: 17px; margin-bottom: 8px; }
.problem-card p { color: var(--muted-foreground); font-size: 15px; }

/* Features */
.features { background: var(--muted-2); }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.feature-row.reverse .feature-visual { order: 2; }
.feature-visual {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.feature-visual img { width: 100%; height: auto; }
.feature-copy .icon-wrap {
  width: 48px; height: 48px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-copy .icon-wrap svg { width: 24px; height: 24px; color: #fff; }
.feature-copy h3 { font-size: 26px; margin-bottom: 14px; }
.feature-copy p { color: var(--muted-foreground); font-size: 16px; margin-bottom: 20px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--foreground); }
.feature-list svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* How it works */
.how { }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 8px;
}
.how-step { position: relative; padding-left: 4px; }
.how-step .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--primary);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.how-step h3 { font-size: 19px; margin-bottom: 8px; }
.how-step p { color: var(--muted-foreground); font-size: 15px; }

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 130%);
  border-radius: 28px;
  margin: 0 24px;
  padding: 72px 48px;
  text-align: center;
  color: #fff;
}
.final-cta h2 { color: #fff; font-size: 34px; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,0.9); font-size: 17px; max-width: 520px; margin: 0 auto 32px; }
.final-cta .btn-primary { background: #fff; color: var(--primary); }
.final-cta .btn-primary:hover { background: #f1f5f9; }
.final-cta .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.final-cta .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { padding: 56px 0 32px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
  padding-bottom: 40px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--muted-foreground); font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a, .footer-contact span { font-size: 15px; color: var(--muted-foreground); display: flex; align-items: center; gap: 10px; }
.footer-contact a:hover { color: var(--primary); }
.footer-contact svg { width: 17px; height: 17px; color: var(--primary); flex-shrink: 0; }
.footer-bottom { font-size: 13px; color: var(--muted-foreground); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual { order: 0; }
  .how-steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 24px; }
  .hero h1 { font-size: 36px; }
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 20px 24px; gap: 16px; transform: translateY(-150%); transition: transform 0.2s ease; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a.btn { width: 100%; }
  .nav-toggle { display: flex; }
  .problem-grid { grid-template-columns: 1fr; }
  .final-cta { margin: 0 12px; padding: 48px 24px; }
  .final-cta h2 { font-size: 26px; }
  .footer-top { flex-direction: column; }
}
