/* ==========================================================================
   CIDADE LIMPA — design system
   Tipografia: Inter (corpo) · Inter Display (títulos)
   Mobile-first · Sóbrio · Profissional
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 16px;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  /* Cores neutras */
  --bg:        #f7f6f2;
  --bg-soft:   #efece3;
  --bg-card:   #ffffff;
  --ink:       #0f1f17;
  --ink-soft:  #4a5751;
  --ink-dim:   #7a857f;
  --ink-mute:  #a3aaa6;

  /* Marca */
  --green:        #1f6f3a;
  --green-deep:   #0f3a1f;
  --green-darker: #082815;
  --green-soft:   rgba(31,111,58,0.08);
  --green-leaf:   #b8d671;
  --blue:         #1d3b8b;
  --yellow:       #e8b923;

  /* Linhas e bordas */
  --line:      #e3ddc9;
  --line-soft: #ede7d3;

  /* Estados */
  --danger:    #c63b1e;
  --success:   #1f6f3a;

  /* Sombras (sóbrias) */
  --shadow-sm: 0 1px 2px rgba(15,31,23,0.04), 0 1px 1px rgba(15,31,23,0.02);
  --shadow-md: 0 4px 12px rgba(15,31,23,0.05), 0 1px 3px rgba(15,31,23,0.03);
  --shadow-lg: 0 12px 32px rgba(15,31,23,0.07), 0 2px 6px rgba(15,31,23,0.03);

  /* Tipografia */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* Raios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

::selection { background: var(--green); color: #fff; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247,246,242,0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  white-space: nowrap;
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color .15s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green-deep); }

.nav-cta {
  background: var(--green-deep);
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}
.nav-cta:hover { background: var(--green-darker); }

/* CTA dentro do drawer mobile (escondida no desktop) */
.nav-links .nav-cta-mobile { display: none; }

/* ===== Hamburger (mobile) ===== */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s;
}
.nav-burger span {
  width: 20px;
  height: 1.8px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
  transform-origin: center;
}
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,31,23,0.45);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 98;
}

@media (max-width: 860px) {
  .nav-inner { padding: 12px 16px; }
  .logo { font-size: 16px; }
  .logo-mark { width: 28px; height: 28px; }
  .nav-inner > .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-burger:active { background: var(--bg-soft); }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    padding: 80px 20px 24px;
    border-left: 1px solid var(--line);
    box-shadow: -12px 0 32px rgba(15,31,23,0.1);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
    z-index: 99;
    font-size: 15px;
    overflow-y: auto;
  }
  .nav-links a {
    padding: 14px 14px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--ink);
  }
  .nav-links a:hover,
  .nav-links a:active { background: var(--bg-soft); color: var(--green-deep); }

  .nav-links .nav-cta-mobile {
    display: flex; align-items: center; justify-content: center;
    margin-top: 14px;
    padding: 14px;
    background: var(--green-deep); color: #fff !important;
    border-radius: 10px;
    font-weight: 600; font-size: 15px;
  }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav-links { transform: translateX(0); }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  background: var(--green-deep);
  color: #fff;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: var(--shadow-md);
  letter-spacing: -0.005em;
}
.btn-primary:hover {
  background: var(--green-darker);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--ink);
  padding: 14px 18px;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
  letter-spacing: -0.005em;
}
.btn-ghost:hover { color: var(--green-deep); }
.btn-ghost svg { transition: transform .2s; }
.btn-ghost:hover svg { transform: translateX(3px); }

@media (max-width: 520px) {
  .btn-primary {
    padding: 14px 22px;
    font-size: 14px;
    width: 100%;
  }
  .btn-ghost { padding: 12px 16px; font-size: 14px; width: 100%; justify-content: center; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section {
  padding: 80px 24px;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 860px) { section { padding: 64px 20px; } }
@media (max-width: 520px) { section { padding: 52px 16px; } }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  width: 18px; height: 1.5px;
  background: var(--green);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--green-deep);
  margin-bottom: 14px;
  max-width: 720px;
}
.section-title em {
  font-style: normal;
  color: var(--green);
}

.section-sub {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 600px;
  margin-bottom: 44px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .section-title { font-size: 26px; }
  .section-sub { font-size: 15px; margin-bottom: 32px; }
  .section-eyebrow { font-size: 11px; margin-bottom: 10px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer#site-footer,
footer.site-footer {
  background: var(--green-darker);
  color: rgba(255,255,255,0.7);
  padding: 56px 24px 24px;
  border-top: 3px solid var(--green);
}
.foot-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.foot-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.foot-col ul { list-style: none; }
.foot-col ul li {
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.5;
}
.foot-col ul li a { transition: color .15s; }
.foot-col ul li a:hover { color: var(--green-leaf); }
.foot-about p {
  font-size: 13.5px;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 320px;
}
.foot-about .logo { color: #fff; font-size: 16px; }

.cnpjs {
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}
.cnpjs h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cnpj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.cnpj-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 11.5px;
}
.cnpj-item strong {
  display: block;
  color: #fff;
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 600;
}
.cnpj-item span {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
}

.copyright {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  footer#site-footer,
  footer.site-footer { padding: 44px 18px 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .foot-col h4 { margin-bottom: 10px; }
  .cnpjs { margin-top: 28px; }
  .cnpj-grid { grid-template-columns: 1fr; }
  .copyright {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 54px; height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
  z-index: 50;
  transition: transform .15s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
@media (max-width: 520px) {
  .wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { margin: 0; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
  letter-spacing: -0.005em;
}
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
  color: var(--ink);
  font-family: inherit;
}
/* iOS Safari não dá zoom quando input tem 16px */
@media (max-width: 768px) {
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    padding: 12px 14px;
  }
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); }

.field input:disabled,
.field select:disabled {
  background: var(--bg-soft);
  color: var(--ink-dim);
  cursor: not-allowed;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- CEP feedback & spinner ---- */
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.fh { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
#fCep.cep-ok  { border-color: var(--success, #16a34a); }
#fCep.cep-err { border-color: var(--danger,  #dc2626); }
