/* Global visual polish: breathing room, cleaner surfaces, form and case cards. */

/* Taller sections with generous vertical rhythm */
#es-page :is(#clientes,#por-que-estracta,#solucoes,#cases,#resultados,#es-v15-team,#seguranca,.es-faq) {
  padding-top: clamp(96px, 10vw, 156px) !important;
  padding-bottom: clamp(96px, 10vw, 156px) !important;
}
#es-page #human-first { padding: clamp(96px, 10vw, 150px) 0 !important; }
#es-page #cta-final { padding-top: clamp(110px, 12vw, 180px) !important; padding-bottom: clamp(110px, 12vw, 180px) !important; }
#es-page :is(.es-title, .es-v11-title, .sec-title, .hfg-title, .team-title) { margin-bottom: clamp(22px, 2.4vw, 36px) !important; }
#es-page :is(.v15-cards, .sec-grid, .hfg-grid) { margin-top: clamp(40px, 4.5vw, 64px) !important; }

/* Human First Governance: clean, flat surface */
#es-page #human-first { background: #fbfdfc !important; }
#es-page #human-first .hfg-waves { display: none !important; }
#es-page #human-first .hfg-card { border-color: #e6eeec; box-shadow: 0 1px 2px rgba(11, 29, 46, .04); }
#es-page #human-first .hfg-card:hover { box-shadow: 0 20px 44px -28px rgba(0, 63, 120, .35); }

/* Cases: refined editorial cards */
#es-page #cases .v15-cards { gap: clamp(18px, 2vw, 28px) !important; }
#es-page #cases .v15-cards > article.v15-darkcard {
  display: flex; flex-direction: column;
  padding: 0 !important;
  border-radius: 20px !important;
  border: 1px solid rgba(168, 243, 208, .14) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025)) , #0f2f38 !important;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7);
  transition: transform .5s cubic-bezier(.22,.7,.2,1), border-color .4s, box-shadow .5s;
}
#es-page #cases .v15-cards > article.v15-darkcard:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 201, 107, .45) !important;
  box-shadow: 0 40px 70px -40px rgba(0, 201, 107, .35);
}
#es-page #cases .es-case-image {
  margin: 0 !important; border-radius: 0 !important;
  aspect-ratio: 16 / 10 !important; object-fit: cover !important;
  transition: transform .9s cubic-bezier(.22,.7,.2,1);
}
#es-page #cases .v15-darkcard:hover .es-case-image { transform: scale(1.04); }
#es-page #cases .v15-darkcard > h3 { margin: 26px 28px 10px !important; font-size: 22px !important; font-weight: 600 !important; letter-spacing: -.02em; }
#es-page #cases .v15-darkcard > p { margin: 0 28px !important; color: rgba(227, 238, 235, .72) !important; font-size: 14.5px; line-height: 1.65; flex: 1; }
#es-page #cases .v15-darkcard > .v15-btn { margin: 26px 28px 28px !important; align-self: flex-start; }

/* Solutions: progress bar only */
#es-page #solucoes .es-sx-pag { gap: 0; }

/* Lead form modal: clean, elegant, rounded */
.es-demo-modal { background: rgba(4, 22, 28, .55) !important; backdrop-filter: blur(14px) saturate(1.2) !important; padding: 20px !important; }
.es-demo-modal:not([hidden]) .es-demo-dialog { animation: esDialogIn .5s cubic-bezier(.22,.7,.2,1) both; }
@keyframes esDialogIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.es-demo-dialog {
  max-width: 520px !important; padding: 44px 44px 36px !important;
  border-radius: 28px !important; color: #0b1d2e !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%) !important;
  box-shadow: 0 40px 100px -30px rgba(0, 30, 40, .55), 0 0 0 1px rgba(0, 75, 59, .06);
  overflow: hidden auto;
}
.es-demo-dialog::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #004b3b, #00c96b 55%, #1d7bff);
}
.es-demo-dialog h2 { font: 600 30px/1.15 'IBM Plex Sans', sans-serif !important; letter-spacing: -.035em !important; margin: 0 !important; color: #0b1d2e; }
.es-demo-dialog > p:not(.es-demo-back) { font-size: 15px !important; line-height: 1.6; color: #5b6676 !important; margin: 10px 0 22px !important; max-width: 400px; }
.es-demo-close {
  right: 20px !important; top: 20px !important; width: 38px !important; height: 38px !important;
  border: 0 !important; background: #f0f5f3 !important; color: #33545a; font-size: 20px !important;
  display: grid; place-items: center; transition: background .25s, transform .25s; cursor: pointer;
}
.es-demo-close:hover { background: #e2f6ef !important; transform: rotate(90deg); }
.es-demo-close:focus-visible { outline: 2px solid #00c96b; outline-offset: 2px; }
.es-demo-notice { border: 0 !important; border-radius: 12px; background: #eef8f3 !important; color: #2e6650 !important; font-size: 12px !important; padding: 10px 14px !important; margin-bottom: 22px; }
.es-demo-form { gap: 16px !important; }
.es-demo-form label { font: 500 13px 'IBM Plex Sans', sans-serif !important; letter-spacing: 0 !important; color: #33454f !important; gap: 8px !important; }
.es-demo-form input, .es-demo-form textarea {
  border: 1px solid #dfe7e5 !important; border-radius: 14px !important; padding: 14px 16px !important;
  background: #fff !important; font: 15px 'IBM Plex Sans', sans-serif !important; color: #0b1d2e;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.es-demo-form input::placeholder { color: #9aa6ae; }
.es-demo-form input:hover { border-color: #c5d6d1 !important; }
.es-demo-form input:focus { border-color: #00c96b !important; box-shadow: 0 0 0 4px rgba(0, 201, 107, .14); }
.es-demo-form .es-btn { margin-top: 8px !important; width: 100%; min-height: 54px !important; border-radius: 999px !important; font-size: 15px !important; }
.es-demo-back { text-align: center; margin: 14px 0 0 !important; color: #5b6676 !important; }
@media (max-width: 600px) {
  .es-demo-modal { align-items: end !important; padding: 0 !important; }
  .es-demo-dialog { border-radius: 26px 26px 0 0 !important; padding: 36px 22px 26px !important; max-height: 92vh !important; }
  .es-demo-dialog h2 { font-size: 26px !important; }
}

/* Motion helpers driven by estracta-motion.js */
.es-m-ready [data-m] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .es-demo-modal:not([hidden]) .es-demo-dialog { animation: none; }
  #es-page #cases .v15-darkcard, #es-page #cases .es-case-image { transition: none !important; }
}
#es-page #human-first .hfg-orbit, #es-page #human-first svg[aria-hidden="true"]:not(.hfg-card svg) { display: none !important; }
#es-page #human-first .hfg-cta { margin-top: clamp(36px, 4vw, 56px) !important; }
.es-demo-dialog, .es-demo-dialog p, .es-demo-notice { font-family: 'IBM Plex Sans', sans-serif !important; }
/* Live institutional contact fields */
.es-demo-modal { --lead-error: #b42338; --lead-surface: #ffffff; --lead-border: #dfe7e5; --lead-ink: #0b1d2e; --lead-accent: #00c96b; }
.es-demo-modal .es-demo-dialog { max-width: 620px !important; box-sizing: border-box; }
.es-lead-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.es-lead-wide { grid-column: 1 / -1; }
.es-demo-form[hidden] { display: none !important; }
.es-demo-form select { width: 100%; min-width: 0; border: 1px solid var(--lead-border); border-radius: 14px; padding: 14px 16px; background: var(--lead-surface); color: var(--lead-ink); font: 15px 'IBM Plex Sans', sans-serif; }
.es-lead-fields input { min-width: 0; width: 100%; box-sizing: border-box; }
.es-demo-form select:focus { outline: 2px solid var(--lead-accent); outline-offset: 2px; }
.es-demo-form [aria-invalid="true"] { border-color: var(--lead-error) !important; }
.es-demo-form [data-error] { color: var(--lead-error); font-size: 12px; line-height: 1.4; }
.es-demo-form [data-error]:empty { display: none; }
.es-demo-form .es-lead-consent { display: flex; align-items: flex-start; gap: 10px !important; font-size: 12px !important; line-height: 1.5; }
.es-demo-form .es-lead-consent input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0 !important; flex-shrink: 0; accent-color: var(--lead-accent); }
.es-lead-consent a { text-decoration: underline; }
.es-lead-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.es-demo-form .es-btn:disabled { opacity: .65; cursor: wait; }
@media (max-width: 480px) { .es-lead-fields { grid-template-columns: minmax(0, 1fr); } }
#es-page #human-first::before, #es-page #human-first::after { display: none !important; } #es-page #human-first { background-image: none !important; }
