/* Goolab global refinement v3 — header, rhythm, home loop, footer and accessibility */
:root{
  --gx-ice:#F5F6F8;
  --gx-warm:#FBFAF7;
  --gx-fog:#EEF1F5;
  --gx-ink:#202936;
  --gx-soft:#647082;
  --gx-line:#DDE3EB;
  --gx-blue:#1948F0;
  --gx-navy:#09111F;
}

/* Header: brand left, navigation truly centered, actions right */
@media(min-width:960px){
  .site-home .header-inner,
  .goolab-header .header-inner{
    display:grid!important;
    grid-template-columns:minmax(10rem,1fr) auto minmax(17rem,1fr)!important;
    align-items:center!important;
    gap:1.25rem!important;
  }
  .site-home .header-inner>.brand,
  .goolab-header .header-inner>.brand{justify-self:start!important}
  .site-home .header-inner>.nav-links,
  .goolab-header .header-inner>.nav-links{
    justify-self:center!important;
    margin:0!important;
    gap:clamp(1.35rem,2.1vw,2.2rem)!important;
  }
  .site-home .header-inner>.header-cta,
  .goolab-header .header-inner>.header-cta{justify-self:end!important}
}

/* Cleaner account action */
.site-home .btn-account,
.goolab-header .btn-account{
  min-width:auto!important;
  padding-inline:1.08rem!important;
  background:rgba(255,255,255,.97)!important;
  border:1px solid rgba(255,255,255,.7)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.12)!important;
}
.site-home .btn-account svg,
.goolab-header .btn-account svg{width:1rem!important;height:1rem!important;stroke-width:1.65!important}
.site-home .btn-account:hover,
.goolab-header .btn-account:hover{background:#fff!important;box-shadow:0 12px 28px rgba(0,0,0,.17)!important}

/* Global section rhythm */
.pillar-page .pillar-section,
.plans-page .plans-section{padding-block:clamp(5.6rem,8vw,7.4rem)}
.pillar-page .pillar-container,
.plans-page .plans-shell{padding-inline:clamp(1.35rem,3vw,2.25rem)}
.pillar-page .pillar-cap,
.pillar-page .pillar-process-step,
.pillar-page .case-card,
.plans-page .model-card,
.plans-page .price-card,
.plans-page .common-card,
.plans-page .crm-proof-card{padding:clamp(1.5rem,2.4vw,2rem)}

/* Home — rebalance the cycle block and remove dead space */
.site-home .home-loop{padding:clamp(6rem,8vw,8rem) 0!important;min-height:auto!important}
.site-home .home-loop-grid{grid-template-columns:minmax(0,.9fr) minmax(32rem,1.1fr)!important;gap:clamp(3rem,7vw,6.5rem)!important;align-items:center!important}
.site-home .home-loop-copy h2{max-width:12ch!important;font-size:clamp(2.75rem,4.2vw,4.25rem)!important;line-height:1.02!important}
.site-home .home-loop-copy>p:last-of-type{max-width:34rem!important;font-size:.98rem!important}
.site-home .growth-loop-visual{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.85rem!important;
  width:100%!important;max-width:38rem!important;aspect-ratio:auto!important;margin:0 auto!important;padding:1.4rem!important;
  border:1px solid var(--gx-line)!important;border-radius:1.65rem!important;background:linear-gradient(145deg,#fff,#F3F5F8)!important;
  box-shadow:0 24px 60px rgba(14,27,49,.07)!important;overflow:hidden!important;
}
.site-home .growth-loop-visual::before{
  content:"CICLO GOOLAB"!important;position:absolute!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;
  z-index:3!important;width:9rem!important;height:9rem!important;display:grid!important;place-items:center!important;border-radius:50%!important;
  background:#0C1527!important;color:#fff!important;font:700 .63rem/1.4 "JetBrains Mono",monospace!important;letter-spacing:.12em!important;white-space:normal!important;
  box-shadow:0 0 0 1rem rgba(25,72,240,.035),0 16px 44px rgba(9,17,31,.16)!important;
}
.site-home .growth-loop-line{inset:18%!important;border:1px dashed rgba(25,72,240,.22)!important;animation-duration:34s!important}
.site-home .loop-node{
  position:relative!important;z-index:2!important;inset:auto!important;width:auto!important;min-height:7.15rem!important;padding:1rem 1.05rem!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-end!important;border:1px solid var(--gx-line)!important;border-radius:1rem!important;
  background:rgba(255,255,255,.92)!important;box-shadow:none!important;font-size:.71rem!important;color:var(--gx-soft)!important;transition:transform .18s ease,border-color .18s ease,background .18s ease!important;
}
.site-home .loop-node:nth-child(2),.site-home .loop-node:nth-child(4),.site-home .loop-node:nth-child(6){padding-right:5.25rem!important}
.site-home .loop-node:nth-child(3),.site-home .loop-node:nth-child(5),.site-home .loop-node:nth-child(7){padding-left:5.25rem!important}
.site-home .loop-node:hover{transform:translateY(-2px)!important;border-color:#C9D4F7!important;background:#fff!important}
.site-home .loop-node b{font-size:.82rem!important;color:var(--gx-ink)!important}

/* Plans closing: no clipped title or anchor collisions */
.plans-page .plans-closing{padding:clamp(7rem,9vw,9rem) 0!important;scroll-margin-top:6rem}
.plans-page .plans-closing .plans-shell{padding-top:.35rem!important}
#assessoria,#integrado,#precos,#plano-ideal{scroll-margin-top:7.4rem!important}

/* AEO-friendly answer text rhythm */
.pillar-page p,.plans-page p,.site-crm p,.site-home p{max-width:72ch}
.pillar-page .pillar-lead,.plans-page .plans-hero-copy>p,.site-crm .hero-copy>p{font-size:clamp(.98rem,1.25vw,1.08rem)!important;line-height:1.7!important}

/* Footer contrast is handled by site-footer.css v2 */

@media(max-width:1050px) and (min-width:960px){
  .site-home .header-inner,.goolab-header .header-inner{grid-template-columns:minmax(8rem,.8fr) auto minmax(12rem,.8fr)!important;gap:.8rem!important}
}
@media(max-width:900px){
  .site-home .home-loop-grid{grid-template-columns:1fr!important}
  .site-home .growth-loop-visual{max-width:34rem!important}
}
@media(max-width:620px){
  .site-home .growth-loop-visual{grid-template-columns:1fr!important;padding:1rem!important}
  .site-home .growth-loop-visual::before,.site-home .growth-loop-line{display:none!important}
  .site-home .loop-node{padding:1rem!important;min-height:auto!important}
}
@media(prefers-reduced-motion:reduce){.site-home .loop-node,.site-home .growth-loop-line{transition:none!important;animation:none!important}}
.site-home .btn-account svg,.goolab-header .btn-account svg{
  width:1.55rem!important;height:1.55rem!important;padding:.28rem!important;border-radius:.5rem!important;background:#F0F2F6!important;color:#0A0F1C!important;
}

/* Keyboard accessibility and consistent interactive states */
a:focus-visible,button:focus-visible,summary:focus-visible{
  outline:3px solid rgba(25,72,240,.34)!important;
  outline-offset:3px!important;
}
.goolab-header .btn-account svg{
  transition:transform .18s ease,background .18s ease!important;
}
.goolab-header .btn-account:hover svg{transform:translateX(1px)!important;background:#E9EDFA!important}

/* Keep fixed header from visually colliding with anchored content */
html{scroll-padding-top:6.25rem}
.pillar-page [id],.plans-page [id],.site-crm [id],.site-home [id]{scroll-margin-top:6.25rem}
