/* ================================================================
   EXTRAS.CSS — AVRA Prime
   Seções novas (IT-41, mapa fachada), correções de conflito
   e acessibilidade. Carregar DEPOIS de footer.css e ANTES de responsive.css
   ================================================================ */

/* ══════ 1. ACESSIBILIDADE ══════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  padding: 14px 22px;
  background: var(--champagne);
  color: var(--space);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

@media (pointer: coarse) {
  .nav-links a,
  .footer-col a,
  .footer-legal a,
  .faq-q,
  .fin-term,
  .cookie-btn,
  .social-link,
  .pillar__link {
    min-height: 44px;
  }
  .faq-q {
    display: flex;
    align-items: center;
  }
}

/* Reveal degradando sem JS (evita página em branco) */
.no-js .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Contrastes corrigidos */
.fine,
.metrics-source,
.form-disclaimer,
.calc-note {
  color: #9aa8ba;
}

/* ══════ 2. NAV — hamburger em X + CTA no drawer ══════ */
.hamburger span {
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.nav-drawer-cta {
  display: none;
}

/* ══════ 3. SEÇÃO IT-41 / SAVE ══════ */
.it41 {
  padding: 150px 48px;
  background: var(--midnight);
  position: relative;
}
.it41::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.4),
    transparent
  );
}
.it41-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.it41-head {
  max-width: 840px;
  margin-bottom: 64px;
}
.it41-head h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 300;
  line-height: 1.12;
  margin: 26px 0 22px;
}
.it41-head h2 em {
  font-style: italic;
  color: var(--cyan);
}
.it41-head p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--cool-gray);
}
.it41-head strong {
  color: var(--soft-white);
  font-weight: 500;
}

.it41-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.it41-card {
  background: rgba(27, 38, 56, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 2px solid rgba(0, 212, 255, 0.35);
  padding: 28px 24px;
  transition:
    transform 500ms var(--ease),
    border-color 500ms var(--ease);
}
.it41-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
}
.it41-card h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 400;
  color: var(--soft-white);
  margin-bottom: 12px;
  line-height: 1.25;
}
.it41-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--cool-gray);
}
.it41-card strong {
  color: var(--champagne-light);
  font-weight: 500;
}
.it41-card--art {
  grid-column: span 2;
  border-top-color: var(--champagne);
  background: linear-gradient(
    180deg,
    rgba(200, 169, 106, 0.07),
    rgba(27, 38, 56, 0.7)
  );
}
.it41-card--art:hover {
  border-color: rgba(200, 169, 106, 0.4);
}

.it41-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 42px 46px;
  margin-bottom: 28px;
  background: linear-gradient(
    135deg,
    rgba(229, 72, 77, 0.09),
    rgba(200, 169, 106, 0.05)
  );
  border: 1px solid rgba(229, 72, 77, 0.22);
  border-radius: 8px;
}
.it41-band h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 29px);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 10px;
}
.it41-band h3 em {
  font-style: italic;
  color: #f2a0a3;
}
.it41-band p {
  font-size: 15px;
  color: var(--cool-gray);
  line-height: 1.65;
  max-width: 620px;
}

/* ══════ 4. MAPA — fachada (LGPD + performance) ══════ */
.map-facade {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  background: #101a2b url("/img/mapa-sjc-estatico.webp") center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.map-facade::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  transition: background 400ms var(--ease);
}
.map-facade:hover::before {
  background: rgba(11, 18, 32, 0.4);
}
.map-facade__btn {
  position: relative;
  z-index: 1;
  padding: 14px 28px;
  border-radius: 100px;
  background: rgba(11, 18, 32, 0.92);
  color: var(--soft-white);
  border: 1px solid rgba(200, 169, 106, 0.42);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.map-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}

/* ══════ 5. BARRA FIXA DE CTA (corrige conflito .show/.visible) ══════ */
.smart-cta-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  background: rgba(11, 18, 32, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 380ms var(--ease);
  justify-content: stretch;
  align-items: center;
}
.smart-cta-bar.show,
.smart-cta-bar.visible {
  transform: translateY(0);
}
.smart-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.smart-cta-bar .sc-wa {
  background: var(--emerald);
  color: #04231b;
}
.smart-cta-bar .sc-form {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ══════ 6. PORTFÓLIO — div→img e div→figure ══════ */
.portfolio-item {
  margin: 0;
  position: relative;
  overflow: hidden;
}
.portfolio-item-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
.portfolio-item:hover .portfolio-item-image {
  transform: scale(1.04);
}

/* ══════ 7. DEPOIMENTOS — figure/blockquote ══════ */
.voice-card {
  margin: 0;
}
.voice-text {
  margin: 0 0 22px;
  quotes: none;
}
.voice-text::before,
.voice-text::after {
  content: none;
}
.voices-source {
  text-align: center;
  margin-top: 40px;
}
.voices-source a {
  color: var(--champagne);
  text-decoration: underline;
}

/* ══════ 8. ENGENHEIRO — foto real ══════ */
.engineer__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(200, 169, 106, 0.45);
  box-shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.8);
}
.engineer__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.engineer__eco {
  margin-top: 18px;
}
.engineer__eco a {
  color: var(--champagne);
  text-decoration: underline;
}

/* ══════ 9. CALCULADORA e FINANCIAMENTO ══════ */
.calc-badge {
  margin-top: 22px;
  font-size: 13px;
  color: var(--cool-gray);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.calc-badge strong {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--emerald);
}
.fin-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cool-gray-2);
  margin-bottom: 14px;
}
.fin-field select {
  width: 100%;
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--soft-white);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  border-radius: 4px;
}
.fin-verdict {
  margin-top: 24px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cool-gray);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}
.fin-verdict strong {
  color: var(--soft-white);
}
.fin-verdict.is-ok {
  border-color: rgba(0, 196, 140, 0.28);
  background: rgba(0, 196, 140, 0.06);
}
.fin-verdict.is-warn {
  border-color: rgba(229, 72, 77, 0.28);
  background: rgba(229, 72, 77, 0.06);
}

/* ══════ 10. FORMULÁRIO — erros inline ══════ */
.field-error {
  margin-top: 8px;
  font-size: 12.5px;
  color: #f2a0a3;
}
.form-field .opt {
  color: var(--cool-gray-3);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(229, 72, 77, 0.6) !important;
}

/* ══════ 11. BLOCO DE NORMAS (span, não link) ══════ */
.group-band-partner {
  color: var(--cool-gray-2);
  font-size: 12.5px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 100px;
  white-space: nowrap;
}

/* ══════ 12. AJUSTES DIVERSOS ══════ */
.scope-box {
  margin: 32px 0 0;
}
.battery-disclaimer {
  margin-bottom: 20px;
}
.roi-fine {
  text-align: center;
  margin: 42px auto 0;
  max-width: 760px;
}
.charging-visual {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.charging-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer-contact-items {
  font-style: normal;
}
.footer-contact-row span {
  display: block;
}
.consult-contact-value {
  line-height: 1.5;
}
