/* ============================================================
   Agrimensor Virtual — site institucional
   Paleta: #024080 (azul), #4d4d4f (cinza), #f4f6f9 (fundo)
   ============================================================ */

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

:root {
  --azul:        #024080;
  --azul-hover:  #035099;
  --azul-light:  #e8f0fb;
  --cinza:       #4d4d4f;
  --cinza-claro: #f4f6f9;
  --branco:      #ffffff;
  --borda:       #dde3ed;
  --text:        #1a202c;
  --radius:      10px;
  --sombra:      0 2px 12px rgba(2,64,128,.10);
  --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--branco); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Utilitários ─────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 6px; font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primario  { background: var(--azul); color: var(--branco); }
.btn-primario:hover { background: var(--azul-hover); }
.btn-outline {
  background: transparent; color: var(--branco);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-ghost {
  background: var(--azul-light); color: var(--azul); border: none;
}
.btn-ghost:hover { background: #d4e5f7; }

.section-label {
  display: inline-block; background: var(--azul-light);
  color: var(--azul); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 34px); font-weight: 700;
  color: var(--text); line-height: 1.25; margin-bottom: 16px;
}
.section-sub {
  font-size: 16px; color: var(--cinza); max-width: 580px; line-height: 1.7;
}

/* ── Navbar ──────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borda); transition: box-shadow .2s;
}
#navbar.scrolled { box-shadow: var(--sombra); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 36px; height: 36px; background: var(--azul);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
.nav-logo-text { font-size: 17px; font-weight: 700; color: var(--azul); line-height: 1.2; }
.nav-logo-text span { display: block; font-size: 11px; font-weight: 400; color: var(--cinza); }

.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}
.nav-links a { font-size: 14px; font-weight: 500; color: var(--cinza); transition: color .15s; }
.nav-links a:hover { color: var(--azul); }
.nav-cta { margin-left: 8px; }
.nav-cta a {
  font-size: 14px; font-weight: 600; color: var(--branco);
  background: var(--azul); padding: 8px 18px; border-radius: 6px; transition: background .2s;
}
.nav-cta a:hover { background: var(--azul-hover); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--cinza); border-radius: 2px; transition: all .25s;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  padding: 130px 0 80px;
  background: linear-gradient(135deg, #012d5a 0%, #024080 55%, #035aa0 100%);
  color: var(--branco); position: relative; overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,.3);
}
.hero-title {
  font-size: clamp(28px, 4.5vw, 48px); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px; color: var(--branco);
}
.hero-title em { font-style: normal; color: #90c4ff; }
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,.82); line-height: 1.7;
  margin-bottom: 32px; max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 16px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
}
.hero-card-title {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.hero-stat {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,.07); border-radius: 10px; padding: 16px;
}
.hero-stat-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-stat-icon svg { width: 22px; height: 22px; stroke: #90c4ff; fill: none; stroke-width: 2; }
.hero-stat-num { font-size: 22px; font-weight: 800; color: #fff; line-height: 1; }
.hero-stat-lbl { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ── Módulos ──────────────────────────────────────────────── */
#modulos { padding: 90px 0; background: var(--cinza-claro); }
.modulos-header { text-align: center; margin-bottom: 52px; }
.modulos-header .section-sub { margin: 0 auto; }

.modulos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px;
}
.modulo-card {
  background: var(--branco); border: 1px solid var(--borda);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.modulo-card:hover { box-shadow: var(--sombra); transform: translateY(-3px); }
.modulo-icon {
  width: 48px; height: 48px; background: var(--azul-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.modulo-icon svg { width: 24px; height: 24px; stroke: var(--azul); fill: none; stroke-width: 1.8; }
.modulo-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.modulo-card p  { font-size: 14px; color: var(--cinza); line-height: 1.65; }

/* ── Como funciona ────────────────────────────────────────── */
#como-funciona { padding: 90px 0; }
.como-header { text-align: center; margin-bottom: 56px; }
.como-header .section-sub { margin: 0 auto; }

.como-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  position: relative;
}
.como-steps::before {
  content: ''; position: absolute; top: 28px; left: calc(16.66% + 24px);
  width: calc(66.66% - 48px); height: 2px;
  background: linear-gradient(90deg, var(--azul-light) 0%, var(--azul-light) 100%);
  background-image: repeating-linear-gradient(90deg, var(--borda) 0, var(--borda) 6px, transparent 6px, transparent 14px);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--azul); color: #fff;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 1;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.step p  { font-size: 14px; color: var(--cinza); line-height: 1.65; max-width: 240px; margin: 0 auto; }

/* ── Planos ───────────────────────────────────────────────── */
#planos {
  padding: 90px 0;
  background: linear-gradient(135deg, #012d5a 0%, #024080 100%);
}
.planos-header { text-align: center; margin-bottom: 52px; }
.planos-header .section-title { color: var(--branco); }
.planos-header .section-sub   { color: rgba(255,255,255,.75); margin: 0 auto; }

.planos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.plano-card {
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 36px;
  display: flex; flex-direction: column;
}
.plano-card.destaque {
  background: var(--branco); border-color: var(--branco);
}
.plano-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 20px;
}
.plano-card.destaque .plano-tag { background: var(--azul-light); color: var(--azul); }
.plano-card:not(.destaque) .plano-tag { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }

.plano-nome { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plano-card.destaque .plano-nome { color: var(--text); }
.plano-card:not(.destaque) .plano-nome { color: #fff; }

.plano-preco { margin-bottom: 24px; }
.plano-preco .moeda { font-size: 18px; font-weight: 600; vertical-align: top; margin-top: 6px; display: inline-block; }
.plano-preco .valor { font-size: 52px; font-weight: 900; line-height: 1; }
.plano-preco .periodo { font-size: 15px; font-weight: 400; }
.plano-card.destaque .plano-preco { color: var(--azul); }
.plano-card:not(.destaque) .plano-preco { color: #fff; }

.plano-desc { font-size: 14px; margin-bottom: 24px; }
.plano-card.destaque .plano-desc { color: var(--cinza); }
.plano-card:not(.destaque) .plano-desc { color: rgba(255,255,255,.7); }

.plano-itens { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 28px; }
.plano-itens li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.plano-card.destaque .plano-itens li { color: var(--cinza); }
.plano-card:not(.destaque) .plano-itens li { color: rgba(255,255,255,.85); }
.plano-itens li::before {
  content: '';
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3,9 7,13 15,5' fill='none' stroke='%23024080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: %23e8f0fb; background-repeat: no-repeat; background-position: center;
}
.plano-card.destaque .plano-itens li::before { background-color: var(--azul-light); }
.plano-card:not(.destaque) .plano-itens li::before {
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='3,9 7,13 15,5' fill='none' stroke='%2390c4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: rgba(255,255,255,.1);
}

.plano-card.destaque .btn-plano { background: var(--azul); color: #fff; width: 100%; justify-content: center; }
.plano-card.destaque .btn-plano:hover { background: var(--azul-hover); }
.plano-card:not(.destaque) .btn-plano {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3); width: 100%; justify-content: center;
}
.plano-card:not(.destaque) .btn-plano:hover { background: rgba(255,255,255,.25); }

/* ── CTA ──────────────────────────────────────────────────── */
#cta {
  padding: 90px 0; text-align: center;
}
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta-inner .section-title { margin-bottom: 16px; }
.cta-inner .section-sub { margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #011d3a; color: rgba(255,255,255,.5);
  padding: 36px 0 28px; font-size: 13px; line-height: 1.8;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-icon {
  width: 30px; height: 30px; background: rgba(255,255,255,.1);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 18px; height: 18px; fill: none; stroke: #90c4ff; stroke-width: 2; }
.footer-logo-text { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.8); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: #90c4ff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.35); text-align: center; margin-top: 20px; }

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner   { grid-template-columns: 1fr; }
  .hero-card    { display: none; }
  .como-steps   { grid-template-columns: 1fr; }
  .como-steps::before { display: none; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; width: 100%; background: #fff;
    padding: 16px 24px 20px; border-bottom: 1px solid var(--borda); gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-cta  { display: none; }
  .nav-toggle { display: flex; }
  #hero { padding: 110px 0 60px; }
  .hero-btns  { flex-direction: column; }
  .btn        { justify-content: center; }
  .cta-btns   { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
