/* ==========================================================================
   Ambiservice — folha de estilo principal
   Paleta derivada da logomarca (verde #009933 e cinza do ícone da fábrica)
   ========================================================================== */

:root {
  --green: #009933;          /* verde da marca */
  --green-ink: #00752a;      /* verde para texto/links sobre fundo claro (AA) */
  --green-soft: #e3f3e8;
  --forest: #0f2e1d;         /* fundo escuro institucional */
  --forest-2: #163b27;
  --steel: #b4b9c6;          /* cinza-azulado do ícone da logomarca */
  --steel-soft: #e9ebf0;
  --paper: #f4f6f5;
  --white: #ffffff;
  --ink: #1b231e;
  --muted: #536058;
  --line: #d6dcd8;
  --danger: #b42318;
  --danger-soft: #fdecea;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.35rem, 1.7rem + 3vw, 4.1rem);

  --radius-lg: 14px;
  --radius: 8px;
  --radius-sm: 4px;
  --header-h: 88px;
  --container: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--forest); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--forest); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: inherit; font-weight: 650; font-size: var(--step-0); line-height: 1.2;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0.5rem 1rem; font-size: var(--step--1); }
.btn-primary { background: var(--green-ink); color: var(--white); }
.btn-primary:hover { background: var(--forest); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn-light { background: var(--white); color: var(--forest); }
.btn-light:hover { background: var(--green-soft); color: var(--forest); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); }
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; color: #5f6463; }
.brand-logo { height: 72px; width: auto; }
.brand-text {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 1.55rem; font-weight: 500; letter-spacing: -0.01em; font-variation-settings: "wdth" 104;
}
.brand-leaf {
  width: 26px; height: 26px; background: var(--green);
  border-radius: 0 70% 0 70%; transform: rotate(-8deg);
  box-shadow: 9px -4px 0 -4px var(--steel);
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.5rem; }
.site-nav ul a {
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: var(--step--1);
  padding: 0.5rem 0; position: relative;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.2rem; height: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--white); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
    transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: 0 18px 30px -18px rgba(15, 46, 29, 0.35);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--steel-soft); font-size: var(--step-0); }
  .site-nav ul a::after { display: none; }
  .header-cta { margin-top: 1rem; }
  .brand-logo { height: 56px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem);
  background:
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-kicker { color: var(--muted); font-weight: 550; font-size: var(--step--1); margin-bottom: 1.1rem; }
.hero-title {
  font-size: var(--step-4);
  font-weight: 750;
  font-variation-settings: "wdth" 88;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--forest);
  max-width: 14ch;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 52ch; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 1.5rem; }
.hero-contacts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-weight: 600; }
.hero-contacts a { color: var(--forest); text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-contacts a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.hero-contacts a:hover { color: var(--green-ink); text-decoration: underline; }

/* Ficha "Resíduo → Destino": elemento central da página */
.route-sheet {
  margin: 0;
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(15, 46, 29, 0.55);
}
.route-sheet::before {
  /* tarja verde da marca no topo */
  content: ""; position: absolute; left: clamp(1.25rem, 3vw, 2rem); top: 0; width: 64px; height: 5px;
  background: var(--green); border-radius: 0 0 3px 3px;
}
.route-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  font-size: var(--step--1); color: var(--steel); font-weight: 550;
  padding-bottom: 0.75rem; border-bottom: 1px solid rgba(180, 185, 198, 0.35);
}
.route-head span:last-child { padding-left: 2.25rem; }
.route-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem;
  padding: 0.95rem 0; border-bottom: 1px dashed rgba(180, 185, 198, 0.28);
  opacity: 0; transform: translateY(6px);
  animation: route-in .5s ease forwards;
}
.route-row:nth-child(1) { animation-delay: .15s; }
.route-row:nth-child(2) { animation-delay: .3s; }
.route-row:nth-child(3) { animation-delay: .45s; }
.route-row:nth-child(4) { animation-delay: .6s; }
.route-row:nth-child(5) { animation-delay: .75s; }
@keyframes route-in { to { opacity: 1; transform: none; } }
.route-waste { font-size: var(--step--1); line-height: 1.4; color: #dfe6e1; }
.route-arrow {
  width: 1.5rem; height: 2px; background: var(--green); position: relative;
}
.route-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px;
  border-left: 7px solid var(--green); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.route-dest { font-weight: 650; font-variation-settings: "wdth" 92; line-height: 1.3; }
.route-foot { margin: 1.1rem 0 0; font-size: var(--step--1); color: var(--steel); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 18ch; }
}
@media (max-width: 480px) {
  .route-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .route-arrow { display: none; }
  .route-head { display: none; }
  .route-dest::before { content: "Destino: "; color: var(--steel); font-weight: 500; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title {
  font-size: var(--step-3); color: var(--forest); letter-spacing: -0.015em;
  font-variation-settings: "wdth" 90; font-weight: 720; text-wrap: balance;
  margin-bottom: 0.9rem;
}
.section-lead { color: var(--muted); font-size: var(--step-1); line-height: 1.5; margin: 0; }

/* Sobre */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-grid:has(.about-photo) { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) minmax(0, 1fr); }
.about-year { border-top: 5px solid var(--green); padding-top: 1rem; }
.about-year-num {
  display: block; font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: .9; font-weight: 800;
  font-variation-settings: "wdth" 70; color: var(--forest); letter-spacing: -0.03em;
}
.about-year-label { display: block; margin-top: 0.5rem; color: var(--muted); font-size: var(--step--1); }
.about-copy { max-width: 62ch; }
.about-lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.about-copy p:not(.about-lead) { color: var(--muted); }
.about-place { font-weight: 600; color: var(--forest) !important; }
.about-photo { margin: 0; }
.about-photo img { border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 4 / 5; width: 100%; }
@media (max-width: 900px) {
  .about-grid, .about-grid:has(.about-photo) { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 16 / 10; }
}

/* Serviços */
.services { background: var(--paper); }
.service-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.service-tabs a {
  padding: 0.5rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  color: var(--forest); font-weight: 600; font-size: var(--step--1); text-decoration: none;
}
.service-tabs a:hover { border-color: var(--green); color: var(--green-ink); }

.service-group {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 2.75rem) 0; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
  align-items: start;
}
.service-group-head p { color: var(--muted); font-size: var(--step--1); margin-top: 0.6rem; }
.service-group-heading { display: flex; align-items: flex-start; gap: 0.75rem; }
.service-icon { color: var(--green); flex: none; margin-top: 0.15em; }
.service-group-title { font-size: var(--step-2); color: var(--forest); font-variation-settings: "wdth" 92; }

.service-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service-cards--1 { grid-template-columns: 1fr; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover { border-color: var(--green); box-shadow: 0 14px 30px -22px rgba(15, 46, 29, 0.6); }
.service-cards--1 .service-card.has-image { flex-direction: row; }
.service-cards--1 .service-card.has-image .service-img { width: 42%; aspect-ratio: auto; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: var(--white); }
.before-after figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.before-after img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--steel-soft); }
.before-after figcaption {
  position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 700; background: rgba(15, 46, 29, 0.85); color: var(--white);
}
.before-after figure + figure figcaption { background: var(--green-ink); }
.service-cards--1 .service-card.has-compare { flex-direction: row; }
.service-cards--1 .service-card.has-compare .before-after { width: 55%; flex: none; }
.service-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--steel-soft); }
.service-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.service-title { font-size: var(--step-1); color: var(--forest); font-variation-settings: "wdth" 95; line-height: 1.25; }
.service-body p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.6rem; }
.tags li {
  font-size: 0.78rem; font-weight: 600; color: var(--green-ink); background: var(--green-soft);
  padding: 0.2rem 0.55rem; border-radius: var(--radius-sm);
}
@media (max-width: 900px) {
  .service-group { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-cards--1 .service-card.has-image,
  .service-cards--1 .service-card.has-compare { flex-direction: column; }
  .service-cards--1 .service-card.has-compare .before-after { width: 100%; }
  .service-cards--1 .service-card.has-image .service-img { width: 100%; aspect-ratio: 16 / 10; }
}

/* Diferenciais */
.diff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 6vw, 5rem); }
.diff-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.diff-item { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.diff-item:nth-child(odd) { padding-right: 2rem; }
.diff-item:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
.diff-item:last-child:nth-child(odd) { grid-column: 1 / -1; padding-right: 0; }
.diff-item:last-child:nth-child(odd) dd { max-width: 60ch; }
.diff-item dt {
  font-weight: 700; font-size: var(--step-1); color: var(--forest); margin-bottom: 0.4rem;
  font-variation-settings: "wdth" 95; display: flex; gap: 0.6rem; align-items: baseline;
}
.diff-item dt::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--green); border-radius: 0 60% 0 60%; }
.diff-item dd { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) {
  .diff-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .diff-list { grid-template-columns: 1fr; }
  .diff-item, .diff-item:nth-child(odd), .diff-item:nth-child(even) { padding: 1.25rem 0; border-left: 0; }
}

/* Setores */
.sectors { background: var(--steel-soft); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.sectors-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 2rem; align-items: center; }
.sectors .section-title { margin: 0; font-size: var(--step-2); }
.sector-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sector-list li {
  background: var(--white); color: var(--forest); font-weight: 600; font-size: var(--step--1);
  padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid #d4d8e0;
}
.sector-list .sector-more { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .sectors-grid { grid-template-columns: 1fr; } }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 1.5rem 0 0; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--green); color: var(--forest);
  font-weight: 750; font-size: 1.15rem; position: relative; z-index: 1; margin-bottom: 1.25rem;
}
.step::before {
  content: ""; position: absolute; top: 23px; left: 48px; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--steel) 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step-title { font-size: var(--step-1); color: var(--forest); margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 1.25rem; padding: 0 0 1.75rem; }
  .step-num { grid-row: span 2; margin: 0; }
  .step::before { top: 48px; bottom: 0; left: 23px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--steel) 0 6px, transparent 6px 12px); }
  .step-title { align-self: center; }
}

/* Chamada comercial */
.cta-band { background: var(--forest); color: var(--white); padding: clamp(2.75rem, 6vw, 4rem) 0; position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px;
  border-radius: 0 70% 0 70%; background: var(--forest-2); transform: rotate(-12deg);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-title { font-size: var(--step-2); font-variation-settings: "wdth" 90; max-width: 26ch; margin-bottom: 0.5rem; }
.cta-band p { color: #c9d4cd; margin: 0; }
.cta-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.cta-phone { color: var(--white); font-weight: 600; }
.cta-phone:hover { color: var(--green-soft); }

/* Contato */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { margin-top: 2rem; display: grid; gap: 1.25rem; }
.contact-list dt { font-size: var(--step--1); color: var(--muted); font-weight: 550; margin-bottom: 0.15rem; }
.contact-list dd { font-weight: 600; color: var(--forest); line-height: 1.55; }
.contact-list a { color: var(--forest); }
.contact-list a:hover { color: var(--green-ink); }

.contact-form {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; gap: 1.15rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: var(--step--1); color: var(--ink); }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.75rem 0.9rem; min-height: 48px;
  border: 1px solid #b9c2bc; border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231b231e' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px rgba(0, 153, 51, 0.22); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2); }
.field-error { color: var(--danger); font-size: var(--step--1); font-weight: 550; margin: 0; }
.field-hint { color: var(--muted); font-size: var(--step--1); margin: 0; }

.field-check { grid-template-columns: auto 1fr; align-items: start; column-gap: 0.75rem; }
.field-check input { width: 22px; height: 22px; min-height: 0; margin: 0.15rem 0 0; accent-color: var(--green-ink); }
.field-check label { font-weight: 400; line-height: 1.5; }
.field-check .field-error { grid-column: 1 / -1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.25rem; }
.form-note { color: var(--muted); font-size: var(--step--1); margin: 0; }
.btn-submit { min-width: 210px; }
.btn-submit.is-loading .btn-label::after {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-left: 0.6rem; vertical-align: -0.15em;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: var(--white); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status { padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 550; line-height: 1.45; }
.form-status:focus { outline: none; }
.form-status.is-success { background: var(--green-soft); color: #0b4f22; border-left: 4px solid var(--green); }
.form-status.is-error { background: var(--danger-soft); color: #7a1a12; border-left: 4px solid var(--danger); }
.form-dev-note { font-size: var(--step--1); background: #fff7e0; border: 1px dashed #d6a400; padding: 0.75rem 1rem; border-radius: var(--radius); margin: 0; }

/* Mapa */
.contact-map { margin-top: clamp(2rem, 5vw, 3rem); }
.contact-map iframe {
  display: block; width: 100%; height: clamp(280px, 40vw, 420px); border: 0;
  border-radius: var(--radius-lg); background: var(--steel-soft); border: 1px solid var(--line);
}
.contact-map-link { margin: 0.75rem 0 0; font-weight: 600; font-size: var(--step--1); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--forest); color: #c9d4cd; padding-top: clamp(3rem, 6vw, 4.5rem); font-size: var(--step--1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand { color: var(--white); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; font-variation-settings: "wdth" 100; }
.footer-about p { max-width: 38ch; }
.footer-title { color: var(--white); font-size: 1rem; margin-bottom: 0.9rem; font-weight: 650; }
.footer-title:not(:first-child) { margin-top: 1.5rem; }
.footer-list { display: grid; gap: 0.45rem; margin-top: 0.75rem; }
.footer-list:first-of-type { margin-top: 0; }
.site-footer address + .footer-list { margin-top: 0.9rem; }
.site-footer a { color: #e6efe9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.25rem 0 1.5rem; }
.footer-bottom p { margin: 0; color: #9fb0a6; }
.footer-small { color: #9fb0a6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1f8f4e; color: var(--white); text-decoration: none; font-weight: 650;
  padding: 0.75rem 1.1rem 0.75rem 0.85rem; border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}
.whatsapp-float.is-pending { opacity: 0.92; }
.whatsapp-float:hover { background: #17733e; color: var(--white); }
@media (max-width: 560px) { .whatsapp-label { display: none; } .whatsapp-float { padding: 0.8rem; } }

/* ---------- Páginas internas ---------- */
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: var(--step-1); color: var(--forest); margin: 2rem 0 0.6rem; }
.legal-body p { color: #36423b; }
.legal-updated { color: var(--muted); font-size: var(--step--1); }

.notfound-body { max-width: 640px; }
.notfound-code { font-size: clamp(5rem, 4rem + 8vw, 10rem); font-weight: 800; line-height: .9; color: var(--green); font-variation-settings: "wdth" 70; margin: 0 0 1rem; }
.notfound-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

@media print {
  .site-header, .whatsapp-float, .cta-band, .contact-form-wrap { display: none; }
}
