/* AXYS TERRA. Paleta, tipografia e componentes compartilhados em base.css. */
body.terra { --accent: #a6d47f; --accent-hover: #c0e3a2; }

.t-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); align-items: center; min-height: 90svh; padding: 140px var(--m) 56px; }
.t-hero-copy { grid-column: 1 / 8; display: grid; gap: 22px; justify-items: start; }
.t-brand { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.025em; color: var(--accent); }
.t-kind { color: var(--muted); font-size: var(--step-body); }
.t-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 1rem + 2.6vw, 3.75rem); line-height: 1.12; letter-spacing: -0.035em; max-width: 21ch; text-wrap: balance; }
.t-lead { max-width: 54ch; }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.t-landscape { grid-column: 8 / 13; min-width: 0; display: grid; gap: 0; }
.t-map-canvas { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.t-map-canvas img, .t-map-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-lot { fill: rgba(166, 212, 127, 0.18); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.t-points { fill: var(--accent); stroke: var(--bg); stroke-width: 5; }
.t-map-key { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 18px; background: var(--surface-2); color: var(--accent); font-size: var(--step-small); }
.t-landscape figcaption { padding-top: 14px; color: var(--muted); font-size: var(--step-small); line-height: 1.5; }

.t-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.t-service { padding: clamp(24px, 2.8vw, 40px); background: var(--surface); min-width: 0; }
.t-service-icon { width: 36px; height: 36px; margin-bottom: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.t-service h3 { font-size: clamp(1.25rem, 0.9rem + 0.7vw, 1.625rem); line-height: 1.25; font-weight: 500; color: var(--accent); overflow-wrap: anywhere; }
.t-service > p { margin-top: 16px; color: var(--muted); }
.t-service ul { margin: 28px 0 0; padding-left: 1.1em; display: grid; gap: 16px; }
.t-service li::marker { color: var(--accent); }
.t-scope { margin-top: 28px; max-width: 90ch; padding-left: 20px; border-left: 2px solid var(--accent); font-size: var(--step-small); color: var(--muted); }

.t-audience .section-title, .t-steps .section-title { margin-bottom: clamp(32px, 4vw, 56px); }
.t-audience ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.t-audience li { padding: 22px 0; border-top: 1px solid var(--line); max-width: 46ch; }
.t-steps ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); counter-reset: steps; }
.t-steps li { counter-increment: steps; border-top: 1px solid var(--line); padding-top: 20px; }
.t-steps li::before { content: "0" counter(steps); display: block; margin-bottom: 28px; font-family: var(--font-display); font-size: var(--step-lead); color: var(--accent); }
.t-steps h3 { font-size: var(--step-body); font-weight: 500; line-height: 1.3; margin-bottom: 12px; }
.t-steps p { color: var(--muted); }
.terra .contact-side .section-title { font-size: clamp(1.75rem, 1rem + 2vw, 3rem); overflow-wrap: anywhere; }
.terra .contact-lead { font-size: var(--step-body); }
.terra .contact-email { font-size: clamp(1rem, 0.8rem + 0.65vw, 1.5rem); }

@media (max-width: 1100px) {
  .t-service-grid { grid-template-columns: 1fr; }
  .t-service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
  .t-service-icon, .t-service h3, .t-service > p { grid-column: 1; }
  .t-service ul { grid-column: 2; grid-row: 1 / 4; margin-top: 0; align-content: start; }
  .t-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .t-hero { min-height: auto; padding-top: 112px; }
  .t-hero-copy { grid-column: 1 / -1; }
  .t-hero h1 { font-size: clamp(1.75rem, 4.8vw, 3.25rem); max-width: 26ch; }
  .t-landscape { grid-column: 1 / -1; }
  .t-map-canvas { aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
  .t-hero { padding-top: 104px; padding-bottom: 0; }
  .t-actions { width: 100%; }
  .t-actions .button { width: 100%; padding: 0 20px; }
  .t-service { display: block; }
  .t-service ul { margin-top: 24px; }
  .t-audience ul, .t-steps ol { grid-template-columns: 1fr; }
  .t-map-key { gap: 6px 12px; padding: 14px; }
}

/* Levantamento interativo e memorial, preservados da página original. */
.terra { --paper: #e8ecef; --paper-ink: #12181c; --paper-muted: #46525a; --paper-line: #b9c3c9; }
.t-map-canvas { aspect-ratio: 3 / 2; }
.t-map-canvas img { object-fit: fill; }
.t-vertex { cursor: grab; touch-action: none; outline: none; }
.t-vertex .hit { fill: transparent; }
.t-vertex .dot { fill: var(--bg); stroke: var(--ink); stroke-width: 4; }
.t-vertex text { font-family: var(--font-text); font-size: 26px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; pointer-events: none; user-select: none; }
.t-vertex:focus-visible .dot, .t-vertex.is-dragging .dot { fill: var(--accent); stroke: var(--accent); }
.t-vertex.is-dragging { cursor: grabbing; }
@media (hover: hover) and (pointer: fine) { .t-vertex:hover .dot { stroke: var(--accent); } }
.t-readout { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 18px 22px; background: var(--surface-2); }
.t-readout span { display: grid; gap: 2px; }
.t-readout small { color: var(--muted); font-size: var(--step-small); }
.t-readout strong { font-size: var(--step-lead); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-map-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.t-map-actions button, .e-footer .text-link { background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; }
.t-memorial { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); align-items: start; padding: var(--section) var(--m) 0; }
.t-memorial-intro { grid-column: 1 / 5; display: grid; gap: 24px; position: sticky; top: 100px; min-width: 0; }
.t-memorial .section-title { font-size: clamp(1.5rem, 2.7vw, 3rem); overflow-wrap: anywhere; }
.t-small { font-size: var(--step-small); color: var(--muted); }
.t-doc { grid-column: 6 / 13; min-width: 0; padding: clamp(24px, 3vw, 48px); background: var(--paper); color: var(--paper-ink); }
.t-doc-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 28px; }
.t-doc-fields { margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.t-doc-fields dt { font-size: var(--step-small); color: var(--paper-muted); }
.t-doc-fields dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.t-doc-text { margin-bottom: 32px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.t-doc-table { max-width: 100%; overflow-x: auto; }
.t-doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--step-small); }
.t-doc th, .t-doc td { text-align: right; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--paper-line); white-space: nowrap; }
.t-doc th:first-child, .t-doc td:first-child { text-align: left; padding-left: 0; }
.t-doc thead th { color: var(--paper-muted); font-weight: 500; }
.t-doc :focus-visible { outline-color: #4f782e; }
.t-service > .text-link { margin-top: 24px; font-size: var(--step-small); }

/* Explorador ambiental: cenários e camadas conceituais, sem diagnóstico automático. */
.e-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px var(--gap); margin-bottom: 24px; align-items: end; }
.e-scenario { display: grid; gap: 8px; font-size: var(--step-small); font-weight: 500; }
.e-scenario select { width: 100%; min-height: 52px; padding: 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 0; }
.e-layers { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.e-layers legend { padding: 0 0 8px; font-size: var(--step-small); font-weight: 500; }
.e-layers label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; background: var(--surface); cursor: pointer; font-size: var(--step-small); }
.e-layers input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.e-layers span { border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.e-layers .e-water { border-color: #7cc6c2; }
.e-layers .e-neighbors { border-color: #a7b3ba; }
.e-workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: stretch; }
.e-map { min-width: 0; display: grid; align-content: start; background: var(--surface); }
.e-map-canvas { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.e-map-canvas > img, .e-map-canvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.e-map-canvas > img { opacity: 0.35; }
.e-map text { font: 500 22px var(--font-text); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 6px; stroke-linejoin: round; }
.e-vegetation path { fill: rgba(166, 212, 127, 0.3); stroke: var(--accent); stroke-width: 2; }
.e-drainage path { fill: none; stroke: #7cc6c2; stroke-width: 22; opacity: 0.8; }
.e-surroundings path { fill: var(--surface-2); stroke: var(--muted); stroke-width: 3; }
.e-surroundings .e-road { fill: none; stroke-width: 10; stroke-dasharray: 20 8; opacity: 0.6; }
.e-footprint { fill: rgba(166, 212, 127, 0.08); stroke: var(--ink); stroke-width: 3; stroke-dasharray: 10 8; }
.e-crop { fill: none; stroke: var(--accent); stroke-width: 5; }
.e-building { fill: var(--surface-2); stroke: var(--ink); stroke-width: 3; }
.e-window { fill: var(--accent); }
.e-pit { fill: url(#env-hatch); stroke: var(--accent); stroke-width: 4; }
.e-feature { animation: env-layer-in 250ms ease-out; }
@keyframes env-layer-in { from { opacity: 0; } to { opacity: 1; } }
.e-map figcaption { display: grid; gap: 6px; padding: 20px; font-size: var(--step-small); color: var(--muted); }
.e-map [data-env-summary] { font-weight: 500; color: var(--accent); }
.e-brief { padding: clamp(24px, 3vw, 40px); background: var(--surface-2); }
.e-eyebrow { font-size: var(--step-small); color: var(--accent); margin-bottom: 10px; }
.e-brief h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.e-brief h4 { margin: 28px 0 0; font-size: var(--step-body); font-weight: 500; }
.e-brief ul { margin: 20px 0 0; padding-left: 1.1em; display: grid; gap: 14px; font-size: var(--step-small); }
.e-brief li::marker { color: var(--accent); }
.e-documents { color: var(--muted); }
.e-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--gap); margin-top: 24px; align-items: start; }
.e-footer > p { max-width: 70ch; font-size: var(--step-small); color: var(--muted); }
.e-footer .t-actions { margin: 0; justify-content: end; }
@media (max-width: 1100px) { .t-service > .text-link { grid-column: 1 / -1; } }
@media (max-width: 1000px) {
  .t-memorial-intro, .t-doc { grid-column: 1 / -1; position: static; }
  .e-controls, .e-workspace, .e-footer { grid-template-columns: 1fr; }
  .e-footer .t-actions { justify-content: start; }
}
@media (max-width: 600px) {
  .t-vertex .hit { r: 85px; }
  .t-vertex .dot { r: 18px; }
  .t-vertex text { font-size: 40px; stroke-width: 8px; }
  .t-doc-fields { grid-template-columns: 1fr; }
  .e-layers { display: grid; }
  .e-footer .button { width: 100%; padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) { .e-feature { animation: none; } }