/* ASTI — revisão responsiva */
:root {
  --green-glass:
    linear-gradient(175deg, rgba(255,255,255,.40), rgba(255,255,255,.04) 44%, rgba(3,69,47,.13)),
    linear-gradient(105deg, #69edb8, #29cb94);
  --field-height: 44px;
  --site-width: 1240px;
  --site-gutter: clamp(16px, 2.5vw, 32px);
  --site-heading: clamp(38px, 4vw, 52px);
  --site-section: clamp(30px, 3.25vw, 40px);
  --site-copy: 16px;
  --nav-inset: 11px;
  --nav-inline-inset: 9px;
  --nav-action-height: 40px;
  --asti-control-height: 40px;
}
html, body { background-color: #0a0a0a; }
body { padding-bottom: 0; }
footer {
  background: #0a0a0a;
  border-top-color: transparent;
  padding-bottom: 38px;
}
nav { padding-inline: var(--site-gutter); }
.nav-row {
  width: 100%;
  max-width: var(--site-width);
  min-height: calc(var(--nav-action-height) + 2 * var(--nav-inset) + 2px);
  padding: var(--nav-inset) var(--nav-inline-inset);
  border-radius: var(--asti-pill-radius);
}
.nav-row > .logo { margin-inline-start: 14px; }
.nav-row .pill-btn, .nav-row .burger {
  min-height: var(--nav-action-height);
  border-radius: var(--asti-pill-radius);
}
.page, .materials-cta > .page {
  width: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: 0 !important;
}
.band h2, .hero-content h1, .subhero h1 {
  text-wrap: wrap;
  overflow-wrap: break-word;
}
.band h2,
.band-first > .page:has(.construimos-heading) .construimos-heading,
#clientes h2, .contact-intro > h2 {
  font-size: var(--site-section);
  line-height: 1.18;
}
.band h2 { max-width: 1050px; }
.band .sub { max-width: 74ch; font-size: var(--site-copy); }
.stat-grid .stat-num { font-size: clamp(23px, 2.4vw, 31px); }
.footer-card .footer-newsletter-heading, .founder-copy h3 {
  font-size: clamp(20px, 2vw, 26px);
}
.founder-copy p { max-width: 77ch; }
.nav-row .nav-links { flex-wrap: nowrap; font-size: 12px; }
.nav-row .nav-links .pill-btn { font-size: 12px; }
.nav-row .logo { flex-shrink: 0; }
.nav-row .logo img { max-width: 100%; object-fit: contain; }
.burger { display: none; }
.offcanvas-panel:not(.open) { visibility: hidden; }

.pill-btn.is-green,
.nav-row .pill-btn[href="contato.html"],
.contact-form-card button.pill-btn,
#material-modal-form .pill-solid,
.material-card-v2 .pill-solid,
#job-form-toggle-wrap .pill-solid,
#partner-form-toggle-wrap .pill-solid,
.materials-cta-btn .pill-btn,
.footer-newsletter-form button,
.blog-filter-btn.active {
  background: var(--green-glass) !important;
  border-color: rgba(181,255,222,.62) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), inset 0 2px 5px rgba(255,255,255,.31), 0 4px 12px rgba(5,117,77,.16);
  color: #032419 !important;
}
.pill-btn.is-green:hover,
.nav-row .pill-btn[href="contato.html"]:hover,
.contact-form-card button.pill-btn:hover,
#material-modal-form .pill-solid:hover,
.material-card-v2 .pill-solid:hover,
#job-form-toggle-wrap .pill-solid:hover,
#partner-form-toggle-wrap .pill-solid:hover,
.materials-cta-btn .pill-btn:hover,
.footer-newsletter-form button:hover,
.blog-filter-btn.active:hover { filter: brightness(1.05); }
.nav-row .pill-btn[href="contato.html"] {
  min-height: var(--nav-action-height);
  padding-inline: clamp(12px, 1.25vw, 18px);
}

.hero:has(.hero-ctas), .hero:has(.hero-content > .eyebrow), .subhero {
  min-height: auto;
  padding-block: clamp(58px, 6.7vw, 94px);
}
.hero-content:has(.hero-ctas), .hero-content:has(> .eyebrow) { display: block; }
.hero-content:has(.hero-ctas)::before { display: none; }
.hero-content:has(.hero-ctas) h1, .hero-content:has(> .eyebrow) h1, .subhero h1 {
  max-width: 100%;
  font-size: var(--site-heading);
  line-height: 1.12;
  text-wrap: wrap;
}
.hero-content:has(.hero-ctas) h1 { max-width: min(100%, 1050px); }
.hero-content:has(.hero-ctas) .lead, .hero-content:has(> .eyebrow) .lead, .subhero .lead {
  max-width: 74ch;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  font-size: var(--site-copy);
  line-height: 1.6;
}
.hero-content:has(.hero-ctas) .hero-ctas {
  max-width: none;
  margin: 22px 0 0;
  padding: 0;
}
.hero-ctas .pill-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: var(--asti-control-height);
  width: auto;
  max-width: 100%;
  gap: 8px;
  font-size: 14px;
}
.hero-ctas .pill-btn .pbtn-icon { position: static; translate: none; flex-shrink: 0; }
.hero-cta-text { display: block; min-width: 0; text-align: center; white-space: nowrap; }
.hero-cta-break { display: none; }
.pill-btn, .nav-row .pill-btn, .footer-contact-btn, .footer-login-btn,
.band-white .faq-contact-link, .blog-filter-btn, .form-success-card button.close-modal {
  padding-block: 6px;
  padding-inline: 13px;
}
.offcanvas-links .offcanvas-login { display: flex; align-items: center; gap: 8px; }
.offcanvas-login svg { flex: 0 0 auto; }
#clientes h2 { max-width: 1120px; }
.band-first > .page:has(.construimos-heading) { display: block; }
.band-first > .page:has(.construimos-heading) .construimos-heading { max-width: 1050px; }
.band-first > .page:has(.construimos-heading) .stat-grid-3 {
  margin-top: clamp(24px, 3.5vw, 46px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.band-dark .cert-badge-sq {
  background: var(--asti-glass-fill);
  border: 1px solid var(--asti-glass-edge);
  box-shadow: var(--asti-glass-depth);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
}
.band-dark .cert-badge-sq img { object-fit: contain; }
.band:has(.materials-grid) .materials-grid {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  align-items: stretch;
}
.material-card-v2 .pill-btn { align-self: flex-start; max-width: 100%; white-space: normal; }
.material-card-v2 h3, .material-card-v2 p { overflow-wrap: anywhere; }

#formulario-contato .contact-split { margin-top: 0; }
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(20px, 4.1vw, 62px);
  align-items: start;
}
.contact-intro, .contact-form-card { min-width: 0; }
@media (min-width: 768px) {
  .band-first .contact-split { align-items: stretch; }
  .band-first .contact-split > .contact-form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(370px, 33vw, 465px);
  }
}
.contact-intro .contact-steps-mini { margin-top: 18px; }
#formulario-contato .contact-form-card {
  --field-height: 43px;
  padding: clamp(18px, 2vw, 28px);
  min-height: 0;
}
#formulario-contato .contact-form-card .form-grid {
  column-gap: clamp(10px, 1.35vw, 16px);
  row-gap: clamp(10px, 1.2vw, 14px);
}
#formulario-contato .form-grid button[type="submit"] {
  width: auto !important;
  max-width: 100%;
}
#formulario-contato .contact-form-title {
  margin: 0 0 16px;
  color: var(--asti-light-ink);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}
@media (max-width: 930px) {
  #formulario-contato .contact-split { grid-template-columns: minmax(0, 1fr); }
  #formulario-contato .contact-form-card { --field-height: 44px; }
}

.contact-form-card .form-grid > div { min-width: 0; }
.contact-form-card .form-grid :is(input:not([type="hidden"]), select, textarea),
#material-modal-form input:not([type="hidden"]),
.footer-newsletter-form input[type="email"] {
  min-height: var(--field-height);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 13px;
  border-radius: var(--asti-control-radius);
  font: 400 16px/1.35 'Inter', system-ui, sans-serif;
}
.contact-form-card .form-grid select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 8 5 5 5-5' stroke='%23065f46' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 18px 18px !important;
}
.contact-form-card .form-grid [type="file"] { max-width: 100%; }
.contact-form-card .form-grid :is(input, select, textarea):focus-visible,
#material-modal-form input:focus-visible {
  outline: 2px solid #15936d;
  outline-offset: 2px;
}
.band-first > .page:has(.materials-grid),
.band-first > .page:has(.contact-split) { display: block; }
/* As seções de candidatura seguem o fluxo vertical original. */
body:has(#job-form-container, #partner-form-container) .subhero + .band {
  padding-bottom: clamp(24px, 3vw, 38px);
}
.band:has(#job-form-container, #partner-form-container) {
  padding-block: clamp(28px, 4vw, 49px) clamp(42px, 6vw, 72px);
}
.band:has(#job-form-container, #partner-form-container) h2 {
  max-width: min(100%, 40ch);
  text-wrap: balance;
}
:is(#job-form-toggle-wrap, #partner-form-toggle-wrap, #job-form-container, #partner-form-container) .contact-form-card,
:is(#job-form-toggle-wrap, #partner-form-toggle-wrap) {
  margin-top: 22px !important;
}

.subhero + .band.band-dark > .page > div > p.reveal-up { font-size: var(--site-copy) !important; }
:is(#job-form-container, #partner-form-container) .contact-form-card.reveal-up {
  opacity: 1;
  transform: none;
}

#clientes .client-row { contain: none; width: 100%; margin-inline: 0; overflow: hidden; }
#clientes .client-track {
  transform: none;
  animation-duration: 48s;
  animation-play-state: running;
}
#clientes .client-cell { filter: none; transform: none; transform-style: flat; will-change: auto; }
#clientes .client-cell img { filter: grayscale(100%); }
#clientes .client-cell:hover img, #clientes .client-cell:active img { filter: none; }
#clientes .client-cell[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  #clientes .client-row { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  #clientes .client-track .client-cell[aria-hidden="true"] { display: none; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --site-heading: clamp(34px, 4.5vw, 45px);
    --site-section: clamp(28px, 3.65vw, 36px);
  }
  .band { padding-block: clamp(55px, 7vw, 84px); }
  .band:has(.materials-grid) .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  :root { --nav-action-height: 44px; --asti-control-height: 44px; }
  .nav-links > a:not([href="contato.html"]) { display: none; }
  .nav-links { flex: 1; justify-content: flex-end; gap: 8px; }
  .nav-row .burger {
    display: block;
    width: var(--nav-action-height);
    height: var(--nav-action-height);
    flex: 0 0 var(--nav-action-height);
    border: 1px solid var(--asti-control-border);
    border-radius: var(--asti-pill-radius);
  }
  .nav-row .burger span { left: 11px; width: 20px; }
  .nav-row .burger span:nth-child(1) { top: 14px; }
  .nav-row .burger span:nth-child(2) { top: 21px; }
  .nav-row .burger span:nth-child(3) { top: 28px; }
}
@media (max-width: 820px) {
  footer { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  .band { padding-block: clamp(46px, 10vw, 67px); }
  :root {
    --site-heading: clamp(28px, 7.5vw, 36px);
    --site-section: clamp(24px, 6.2vw, 31px);
    --site-copy: 15px;
  }
  .band h2, .hero-content h1, .subhero h1 { text-wrap: balance; }
  .hero-content:has(.hero-ctas) h1 > .script { display: block; margin-top: .18em; }
  .hero-content:has(.hero-ctas) .hero-ctas { margin-top: 24px; }
  .hero-cta-break { display: inline; }
  .nav-row .pill-btn[href="contato.html"] {
    min-height: var(--nav-action-height);
    padding-inline: 11px;
    font-size: 12px;
    gap: 6px;
  }
  .band-first > .page:has(.construimos-heading) .stat-grid-3,
  .band:has(.materials-grid) .materials-grid,
  .contact-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-form-card .form-grid { grid-template-columns: minmax(0, 1fr); }
  #clientes .client-track { animation-duration: 48s; }
  #clientes .client-cell { flex-basis: 122px; height: 62px; padding: 11px; }
}
@media (min-width: 768px) and (max-width: 930px) {
  .contact-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); }
  .contact-form-card .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1200px) and (max-width: 1359px) {
  .nav-row .nav-links { gap: 12px; font-size: 12px; }
  .nav-row .pill-btn { padding-inline: 13px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .blog-post-grid, .gloss-term-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid .blog-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .blog-post-grid, .gloss-term-grid, .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-grid .blog-card:nth-child(n) { grid-column: 1; grid-row: auto; flex-direction: column; }
  .blog-grid .blog-card:nth-child(n) .blog-thumb { width: 100%; aspect-ratio: 16 / 9; }
  .band:not(:has(.construimos-heading)) h2 { max-width: min(100%, 25ch); }
}
@media (max-width: 380px) {
  :root { --nav-inline-inset: 6px; }
  .nav-row .logo img { max-width: 105px; }
  .nav-row { gap: 6px; }
  .nav-row > .logo { margin-inline-start: 8px; }
}
