/* New preview features drawn in the published site's language.
   site.css stays the source of the look; this file only adds the guide,
   the contextual contact links, the situation list, the city list and the
   guided contact sheet, using the same tokens, rules and sheet labels. */

/* ── Palette: text set in the near-black ink (headings, menu, names, guide
   options) takes the deep green of the brand instead. ── */
:root { --ink: var(--green-dark); }

/* ── Navigation: current section, with the existing underline ── */
@media (min-width: 1101px) {
  .nav-links a[aria-current="location"]:not(.nav-btn) { color: var(--green); }
  .nav-links a[aria-current="location"]:not(.nav-btn)::after { transform: scaleX(1); }
}

/* ── Hero: the guide link sits beside the main button ── */
.hero-ctas { align-items: center; gap: 6px 26px; }
@media (max-width: 520px) { .hero-ctas .text-link { text-align: center; } }

/* ── Hero bar: the three responsible professionals ── */
.hero-bar-team .hero-bar-num { display: flex; align-items: center; gap: 14px; }
.hero-bar-faces { display: inline-flex; }
.hero-bar-faces img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--green-dark); }
.hero-bar-faces img + img { margin-left: -9px; }

/* ── Text links: quiet companions to the primary buttons ── */
.text-link {
  display: inline-block; padding: 11px 0; font-size: 0.84rem; font-weight: 600; line-height: 1.5;
  letter-spacing: 0.02em; color: var(--green); text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(184,145,58,0.55); text-underline-offset: 6px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.text-link > [aria-hidden] { display: inline-block; margin-left: 8px; transition: transform 0.2s ease; }
.text-link[hidden] { display: none; }
@media (hover: hover) {
  .text-link:hover { color: var(--green-dark); text-decoration-color: var(--green); }
  .text-link:hover > [aria-hidden] { transform: translateX(3px); }
}
.service-next { margin-top: 18px; }

/* ── Guide: "O que vamos resolver?" as a technical sheet ── */
.need-finder { background: var(--cream); padding: var(--section-y) 0; border-bottom: 1px solid var(--rule); }
.need-finder .sh { margin-bottom: clamp(32px, 4vw, 44px); }
.need-guide { position: relative; padding: clamp(24px, 3.2vw, 40px); background: var(--white); border: 1px solid rgba(28,78,67,0.12); box-shadow: var(--shadow-soft); }
.need-guide::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), rgba(212,172,88,0.08)); }
.need-question { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 22px; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.25; color: var(--green); }
.need-question:focus { outline: none; }
.need-count { font-family: var(--mono); font-size: 0.64rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }
.need-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); counter-reset: need-chip; }
.need-chip {
  counter-increment: need-chip; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 16px 20px;
  border: 0; border-radius: 0; background: var(--white); color: var(--ink); font-family: var(--sans);
  font-size: 0.86rem; font-weight: 500; line-height: 1.45; text-align: left; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.need-chip::before { content: counter(need-chip, decimal-leading-zero); flex-shrink: 0; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--gold-text); }
.need-chip::after { content: '→'; margin-left: auto; padding-left: 12px; color: var(--green); transition: transform 0.2s ease; }
.need-chip-soft { background: var(--cream); }
.need-chip[aria-pressed="true"] { background: var(--green); color: var(--white); }
.need-chip[aria-pressed="true"]::before { color: var(--gold-light); }
.need-chip[aria-pressed="true"]::after { color: var(--white); }
.need-chip:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--gold); outline-offset: -2px; }
@media (hover: hover) {
  .need-chip:not([aria-pressed="true"]):hover { background: var(--green-tint); }
  .need-chip:hover::after { transform: translateX(4px); }
}
.need-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0;
  border: 0; background: none; color: var(--green); cursor: pointer; font-family: var(--mono);
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.need-back::before { content: '←'; font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0; }
.need-back[data-need-restart]::before { content: '↺'; }
@media (hover: hover) { .need-back:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 5px; } }
.need-result-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.need-result-head .need-back { margin-top: 0; flex-shrink: 0; }
.need-summary { font-family: var(--mono); font-size: 0.64rem; line-height: 1.7; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); }
.need-result h3 { margin: 22px 0 26px; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 300; line-height: 1.12; color: var(--green); text-wrap: balance; }
.need-result h3:focus { outline: none; }
.need-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.need-result-grid > div { padding: 24px 24px 26px; background: var(--white); }
.need-result h4 { margin-bottom: 12px; font-family: var(--mono); font-size: 0.62rem; font-weight: 500; line-height: 1.6; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }
.need-result-grid p { font-size: 0.86rem; line-height: 1.7; color: var(--ink-mid); }
.need-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; }
.need-disclaimer { margin-top: 18px; padding-left: 14px; border-left: 2px solid rgba(184,145,58,0.45); font-size: 0.76rem; line-height: 1.55; color: #6E6A62; }
.need-disclaimer a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* ── Situations: the green "segments" band, one sheet open at a time ── */
.situations .sh { margin-bottom: clamp(36px, 4.5vw, 52px); }
.situation-list { display: grid; gap: 14px; }
.situation { position: relative; border: 1px solid rgba(255,255,255,0.13); background: rgba(18,47,41,0.72); box-shadow: 0 18px 44px rgba(0,0,0,0.06); transition: background 0.25s ease, border-color 0.25s ease; }
.situation::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), rgba(212,172,88,0.08)); pointer-events: none; }
.situation summary { display: flex; align-items: center; gap: 20px; min-height: 92px; padding: 24px 32px; list-style: none; cursor: pointer; }
.situation summary::-webkit-details-marker { display: none; }
.situation summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -4px; }
.situation-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid rgba(212,172,88,0.32); color: var(--gold-light); transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
.situation-icon svg { width: 18px; height: 18px; }
.situation-title { display: flex; align-items: baseline; gap: 14px; flex: 1; min-width: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 300; line-height: 1.2; color: var(--white); transition: color 0.25s ease; }
.situation-num { flex-shrink: 0; font-family: var(--mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; color: var(--gold-light); }
.situation-toggle { position: relative; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid rgba(212,172,88,0.4); transition: background 0.25s ease, border-color 0.25s ease; }
.situation-toggle::before,
.situation-toggle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1px; background: var(--gold-light); transform: translate(-50%, -50%); }
.situation-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.2s ease; }
.situation-body { padding: 0 32px 28px 92px; }
.situation-body p { max-width: 640px; margin-bottom: 6px; font-size: 0.9rem; line-height: 1.78; color: rgba(255,255,255,0.76); }
.situation .text-link { color: var(--gold-light); text-decoration-color: rgba(212,172,88,0.5); }
.situation[open] { background: var(--cream); border-color: rgba(212,172,88,0.42); }
.situation[open] .situation-title { color: var(--green); }
.situation[open] .situation-num { color: var(--gold-text); }
.situation[open] .situation-icon { color: var(--green); border-color: rgba(28,78,67,0.18); background: rgba(28,78,67,0.04); }
.situation[open] .situation-toggle { background: var(--white); border-color: rgba(28,78,67,0.2); }
.situation[open] .situation-toggle::before,
.situation[open] .situation-toggle::after { background: var(--green); }
.situation[open] .situation-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.situation[open] .situation-body p { color: #58534C; }
.situation[open] .text-link { color: var(--green); text-decoration-color: rgba(184,145,58,0.55); }
@media (hover: hover) {
  .situation:not([open]):hover { border-color: rgba(212,172,88,0.42); background: rgba(18,47,41,0.86); }
  .situation:not([open]) .text-link:hover { color: var(--white); }
}

/* ── Map: the full city list on request, inside the green panel ── */
.coverage-cities { margin-top: 28px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.14); }
.coverage-cities summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; list-style: none; cursor: pointer; font-family: var(--mono); font-size: 0.64rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); }
.coverage-cities summary::-webkit-details-marker { display: none; }
.coverage-cities summary::after { content: '+'; display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 1px solid rgba(212,172,88,0.4); font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0; }
.coverage-cities[open] summary::after { content: '−'; }
.coverage-cities summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.coverage-cities p { margin-top: 8px; font-size: 0.8rem; line-height: 1.75; color: rgba(255,255,255,0.72); }
.coverage-cities b { font-weight: 500; color: var(--white); }

/* ── Contact: the closing title block becomes the message sheet ── */
.contact-guided .contact-inner { align-items: start; }
.contact-guided .contact-left .sh-eyebrow { color: #D7B162; margin-bottom: 18px; }
.contact-guided .contact-left.visible .sh-eyebrow::before { transform: scaleX(1); }
.contact-guided .contact-left > p { margin-bottom: 0; }
.contact-steps { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.14); }
.contact-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.contact-step-n { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; color: var(--gold-light); }
.contact-steps strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.3; color: var(--white); }
.contact-guided .contact-left .contact-direct-label { margin-top: 28px; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.contact-direct { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 12px 0 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); }
.contact-direct > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-direct > div + div { margin-left: 24px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,0.14); }
.contact-direct dd { margin: 0; }
.contact-direct a { color: inherit; overflow-wrap: anywhere; }
.contact-direct a:hover { color: var(--white); }
.contact-guided .contact-left .contact-office { margin-top: 18px; font-size: 0.78rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.contact-guide .carimbo-cell { margin: 0; padding: 16px 20px; }
.contact-guide .carimbo-head { padding: 12px 20px; }
.contact-guide .guide-head { gap: 6px; }
.contact-guide .guide-head h3 { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.2; color: var(--white); }
.contact-guide .guide-intro { margin: 0; font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.62); }
.contact-guide .guide-field { position: relative; margin: 0; cursor: text; font-size: inherit; }
.contact-guide .guide-field :is(input, select) {
  display: block; width: 100%; max-width: none; min-height: 44px; margin: 0; padding: 4px 0 8px;
  border: 0; border-bottom: 1px dashed rgba(255,255,255,0.42); border-radius: 0; background: transparent;
  color: var(--white); font-family: var(--serif); font-size: 1.3rem; font-weight: 400; line-height: 1.3;
  box-shadow: none; -webkit-appearance: none; appearance: none;
}
.contact-guide .guide-field input::placeholder { color: rgba(255,255,255,0.55); font-style: italic; opacity: 1; }
.contact-guide .guide-field :is(input, select):focus { outline: none; border-bottom: 2px solid var(--gold-light); padding-bottom: 7px; }
.contact-guide .guide-field :is(input, select):focus-visible { outline: none; }
.contact-guide .guide-select { cursor: pointer; }
.contact-guide .guide-select select { padding-right: 28px; cursor: pointer; }
.contact-guide .guide-select::after { content: ''; position: absolute; right: 24px; bottom: 30px; width: 7px; height: 7px; border-right: 1.5px solid var(--gold-light); border-bottom: 1.5px solid var(--gold-light); transform: rotate(45deg); pointer-events: none; }
.contact-guide select option { background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 1rem; }
.contact-guide .guide-preview { display: block; }
.contact-guide .guide-preview summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; list-style: none; cursor: pointer; }
.contact-guide .guide-preview summary::-webkit-details-marker { display: none; }
.contact-guide .guide-preview summary::after { content: '+'; font-family: var(--sans); font-size: 1rem; line-height: 1; color: var(--gold-light); }
.contact-guide .guide-preview[open] summary::after { content: '−'; }
.contact-guide .guide-preview summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.contact-guide .guide-preview p { margin: 10px 0 2px; padding-left: 14px; border-left: 2px solid rgba(212,172,88,0.5); font-family: var(--serif); font-size: 1.15rem; font-style: italic; line-height: 1.55; color: rgba(255,255,255,0.82); white-space: pre-line; overflow-wrap: anywhere; }
.contact-guide .guide-foot { gap: 10px; padding: 18px 20px 20px; }
.contact-guide .guide-send { width: 100%; }
.contact-guide .guide-note { margin: 0; font-size: 0.78rem; line-height: 1.55; color: rgba(255,255,255,0.62); }

/* The floating shortcut steps aside while the visitor is in the contact sheet. */
.whatsapp-float { transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease, visibility 0.2s, bottom 0.25s ease; }
.whatsapp-float.is-at-contact { visibility: hidden; opacity: 0; pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .need-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .need-chips:not(.need-chips-wide) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .need-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .contact-guided h2 br { display: none; }
}
@media (max-width: 640px) {
  .need-guide { padding: 22px 18px 24px; }
  .need-question { font-size: 1.3rem; }
  .need-chips,
  .need-chips:not(.need-chips-wide) { grid-template-columns: 1fr; }
  .need-chip { min-height: 56px; padding: 14px 16px; font-size: 0.84rem; }
  .need-result-head { align-items: flex-start; }
  .need-result-grid > div { padding: 20px 18px; }
  .need-result-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .need-result-actions .btn-primary { width: 100%; justify-content: center; margin-bottom: 8px; }
  .situation summary { gap: 14px; min-height: 80px; padding: 20px 18px; }
  .situation-icon { width: 34px; height: 34px; }
  .situation-title { flex-direction: column; gap: 6px; font-size: 1.35rem; }
  .situation-toggle { width: 30px; height: 30px; }
  .situation-body { padding: 0 18px 22px; }
  .contact-direct { grid-template-columns: 1fr; gap: 16px; }
  .contact-direct > div + div { margin: 0; padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.14); }
}
@media (max-width: 560px) {
  .contact-guide .carimbo-cell { padding: 14px 16px; }
  .contact-guide .guide-field :is(input, select) { font-size: 1.2rem; }
  .contact-guide .guide-select::after { right: 20px; bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-guided .contact-left .sh-eyebrow::before { transform: scaleX(1); }
}
