/* Shared styles for the 2026 redesign templates.
   The HubSpot form (67bebf73) renders inside an iframe; its field styles live in hsform.css. */

.g26-hsform{min-height:420px}
.g26-hsform iframe.hs-form-iframe{display:block;width:100% !important;border:0}
@media (max-width:760px){.g26-hsform{min-height:0}}

/* Footer logo: at the prototype's 48px the "Geofusion" line was unreadable. */
.g26-root footer img[alt="Cortex Geofusion"]{height:72px !important;width:auto !important}

/* Thank-you message shown after HubSpot confirms the submission (runtime.js showThanks). */
.g26-hsform.g26-hsform-done{min-height:0;display:flex !important;align-items:center;justify-content:center}
.g26-thanks{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:56px 16px;max-width:440px;margin:0 auto;font-family:"REM","Trebuchet MS",sans-serif}
.g26-thanks-ico{width:64px;height:64px;border-radius:50%;background:#E8D9ED;color:#741E91;display:flex;align-items:center;justify-content:center;flex:none}
.g26-thanks h3{margin:0;font-size:28px;line-height:1.2;font-weight:700;color:#241330;letter-spacing:-.01em}
.g26-thanks p{margin:0;font-size:17px;line-height:1.55;color:#4D4D4D}
@media (prefers-reduced-motion:no-preference){.g26-thanks{animation:g26-in .35s ease both}}
@keyframes g26-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---- Responsive layer: the prototype was drawn on a 1440px canvas ---- */
.g26-burger{display:none}
/* The desktop menu needs ~1100px: between 1024 and ~1090px its hidden "Soluções" mega menu ends past the screen edge and adds a horizontal scrollbar. */
@media (max-width:1099px){
  .g26-root [data-g26-header] > div{flex-wrap:wrap !important;min-height:72px !important;gap:0 16px !important}
  .g26-root [data-g26-header] nav,
  .g26-root [data-g26-header] > div > div:last-of-type{display:none !important}
  .g26-root [data-g26-header].g26-open nav{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:4px !important;width:100%;order:3;padding:8px 0 4px;border-top:1px solid #EBEBEB}
  .g26-root [data-g26-header].g26-open > div > div:last-of-type{display:flex !important;flex-wrap:wrap;width:100%;order:4;padding:12px 0 20px}
  .g26-root [data-g26-header].g26-open nav > a,.g26-root [data-g26-header].g26-open .ddbtn{min-height:48px;display:flex !important;align-items:center;font-size:17px !important}
  .g26-root [data-g26-header] .dd .ddbtn svg{display:none}
  .g26-root [data-g26-header] .ddm{position:static !important;opacity:1 !important;visibility:visible !important;transform:none !important;box-shadow:none !important;border:0 !important;min-width:0 !important;width:auto !important;padding:0 0 8px 12px !important;background:transparent !important}
  .g26-root [data-g26-header] .ddm::before{display:none}
  .g26-root [data-g26-header] .ddgrp + .ddgrp{border-left:0 !important;padding-left:0 !important}
  .g26-burger{display:flex;flex-direction:column;justify-content:center;gap:5px;margin-left:auto;width:44px;height:44px;padding:10px;border:0;border-radius:8px;background:transparent;cursor:pointer;box-sizing:border-box}
  .g26-burger span{display:block;height:2px;background:#241330;border-radius:2px;transition:transform .18s ease,opacity .18s ease}
  .g26-open .g26-burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .g26-open .g26-burger span:nth-child(2){opacity:0}
  .g26-open .g26-burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .g26-burger:focus-visible{outline:3px solid #FEA931;outline-offset:2px}
}
@media (max-width:760px){
  /* Single column, except inside the prototype's own horizontal scrollers (min-width:760px). */
  .g26-root .cx [style*="minmax("]:not([style*="min-width:7"]):not([style*="min-width:7"] *){grid-template-columns:minmax(0,1fr) !important}
  /* Client logo strip: wrap instead of clipping. */
  .g26-root .cx [style*="overflow:hidden;justify-content:space-between"]{flex-wrap:wrap !important;justify-content:center !important;row-gap:8px !important}
  .g26-root .cx [style*="flex:1 0 140px"]{flex:0 0 calc(33.333% - 11px) !important;height:64px !important}
  .g26-root .cx h1,.g26-root .cx h2,.g26-root .cx h3,.g26-root .cx p{width:auto !important;max-width:100% !important}
  .g26-root .cx img,.g26-root .cx video{max-width:100%}
  .g26-root .cx div:not([style*="max-width"]){max-width:100%}
}
/* Tablets (761-1023px): the prototype gives some headings a fixed inline width (e.g. 801px on the Home), which overflows the screen.
   Below 760px the phone rule above already frees them. Headings with their own max-width are left alone. */
@media (min-width:761px) and (max-width:1023px){
  .g26-root .cx :is(h1,h2,h3)[style*="width"]:not([style*="max-width"]){width:auto !important;max-width:100% !important}
}
/* Home hero title: "Geográfica" did not fit at 32px on 375px phones. */
@media (max-width:420px){.g26-root .cx .h1{font-size:28px !important;overflow-wrap:break-word}}

/* The WhatsApp block (shared with the legacy footer) reads var(--font), defined by the legacy CSS. */
body.g26{--font:"REM","Trebuchet MS",sans-serif}
body.g26 #whatsapp-float-button{font-family:var(--font)}
/* The legacy block pins the dialog 180px above the button; anchor it right above instead. */
body.g26 .whatsapp-float-button__dialog{top:auto !important;bottom:calc(100% + 12px) !important;margin-bottom:0 !important}
