/* Beto Caiuby | proposta visual 2027. Mantém a versão de 2026 intacta. */
:root{--bc27-navy:#132e3a;--bc27-blue:#2b5665;--bc27-yellow:#ffd418}
html{scroll-padding-top:98px}
.header{position:sticky;top:0;z-index:100;background:rgba(18,42,54,.97);border-bottom:1px solid rgba(222,237,240,.12);overflow:visible;isolation:isolate;backdrop-filter:blur(18px)}
.header-inner{position:relative;min-height:118px;align-items:center;gap:24px;transition:min-height .35s cubic-bezier(.22,.8,.24,1)}
.brand{position:relative!important;z-index:5;display:block!important;flex:0 0 330px;min-width:330px!important;width:330px;height:118px;align-self:stretch;overflow:visible}
.brand .brand-original{position:absolute!important;left:0;top:8px;display:block;width:328px!important;max-width:none!important;height:auto!important;object-fit:contain!important;object-position:top left!important;filter:drop-shadow(0 12px 20px rgba(7,25,33,.12));transform-origin:top left;transition:width .38s ease,top .38s ease}
.nav{position:relative;margin-left:auto;display:flex;align-items:center;gap:2px!important;padding:6px!important;max-width:calc(100% - 340px);border:1px solid rgba(225,242,247,.14);border-radius:13px;background:rgba(233,247,249,.052);box-shadow:0 7px 20px rgba(7,23,31,.11);backdrop-filter:blur(12px);font-size:12px!important}
.nav>a{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:40px;padding:10px 13px!important;border:0!important;border-radius:8px;color:#d7e4e9;font-weight:600;letter-spacing:.01em;transition:color .2s,background .2s}
.nav>a:hover,.nav>a:focus-visible,.nav>a[aria-current="location"]{color:#fff;background:rgba(255,255,255,.12)}
.nav>a.nav-contact{margin:0 0 0 5px!important;background:var(--bc27-yellow)!important;color:#203844!important;border-radius:8px!important;box-shadow:none!important;font-weight:800}
.nav>a.nav-contact:hover,.nav>a.nav-contact:focus-visible{background:#ffe467!important;color:#132833!important}
.header.is-scrolled{background:rgba(16,37,47,.985)!important}
.header.is-scrolled .header-inner{min-height:78px}
.header.is-scrolled .brand{height:78px;flex-basis:225px;min-width:225px!important;width:225px;overflow:hidden}
.header.is-scrolled .brand .brand-original{width:181px!important;top:0}
.header.is-scrolled .nav{max-width:calc(100% - 234px)}
.hero{position:relative;isolation:isolate;overflow:hidden;background:#1a3a46!important}
.hero-layout{position:relative;z-index:2;min-height:610px;padding-top:78px}
.hero-intro{padding-top:20px}
.hero h1{letter-spacing:-.045em}
.office-detail{border-radius:2px;text-decoration:none;transition:color .2s,background .2s,padding .2s;cursor:pointer}
.office-detail:hover{color:#244f60;background:#f0f6f6;padding-left:10px}
.office-arrow{display:inline-flex;align-self:center;margin-left:auto;font-size:24px;color:#a99639;line-height:1}
.identity-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:27px}
#identity-status{font-size:12px;color:#607f8b}
.more-identities{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;padding:13px 20px;border:1px solid #8fa8ae;border-radius:2px;background:transparent;color:#214957;font:800 12px Manrope,Arial,sans-serif;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.more-identities span{color:#a88c1b;font-size:22px;font-weight:400;line-height:.7}
.more-identities:hover,.more-identities:focus-visible{background:#244c5b;border-color:#244c5b;color:white}
.more-identities:hover span{color:var(--bc27-yellow)}
.more-identities[hidden],.identity-card[hidden]{display:none!important}
.floating-whatsapp{right:20px!important;bottom:22px!important;width:56px;height:56px;border-radius:12px!important;background:var(--bc27-yellow)!important;border-color:#e7c320!important;color:#193744!important}
.floating-whatsapp:hover,.floating-whatsapp:focus-visible{background:#ffe356!important}
.credit-by img{width:80px!important;max-width:80px!important;height:auto!important;filter:brightness(0) invert(1)}
.credit-by{grid-template-columns:auto 80px!important;opacity:.84}
.credit-by small{font-size:9px;letter-spacing:.05em}
@media(max-width:1200px) and (min-width:921px){
 .brand{flex-basis:275px;min-width:275px!important;width:275px}
 .brand .brand-original{width:280px!important}
 .nav{max-width:calc(100% - 282px)}
 .nav>a{padding:9px 9px!important;font-size:11px}
}
@media(max-width:920px){
 .header-inner{min-height:100px}
 .brand{flex-basis:260px;min-width:260px!important;width:260px;height:100px}
 .brand .brand-original{width:260px!important;top:4px}
 .mobile-trigger{display:grid!important;place-items:center;flex:0 0 44px;height:44px;margin-left:auto;background:rgba(255,255,255,.085);color:#fff;border:1px solid rgba(255,255,255,.22);border-radius:10px;cursor:pointer}
 .nav{display:none;position:absolute;top:calc(100% + 5px)!important;left:0;right:0;max-width:none!important;width:100%;padding:12px!important;flex-direction:column;align-items:stretch;gap:2px!important;background:#183642;box-shadow:0 18px 45px rgba(4,18,25,.35);border-radius:12px}
 .nav.open{display:flex}
 .nav>a{padding:13px 15px!important;text-align:left;justify-content:flex-start;font-size:13px!important;border:0!important}
 .nav>a.nav-contact{margin:8px 0 0!important;justify-content:center}
 .header.is-scrolled .header-inner{min-height:73px}
 .header.is-scrolled .brand{flex-basis:205px;min-width:205px!important;height:73px;width:205px}
 .header.is-scrolled .brand .brand-original{width:167px!important}
 .hero-layout{padding-top:86px}
}
@media(max-width:760px){
 html{scroll-padding-top:73px}
 .header-inner{min-height:86px}
 .brand{height:86px;flex-basis:205px;min-width:205px!important;width:205px}
 .brand .brand-original{width:219px!important;top:2px}
 .header.is-scrolled .brand{height:73px}
 .header.is-scrolled .brand .brand-original{width:162px!important}
 .hero-layout{padding-top:80px}
 .hero-intro{padding-top:0}
 .identity-controls{flex-direction:column;align-items:stretch}
 .more-identities{width:100%}
 .credit-by{grid-template-columns:auto 70px!important}
 .credit-by img{width:70px!important;max-width:70px!important}
}
@media(max-width:420px){
 .brand{flex-basis:187px;min-width:187px!important;width:187px}
 .brand .brand-original{width:202px!important}
 .header.is-scrolled .brand{flex-basis:175px;min-width:175px!important;width:175px}
 .header.is-scrolled .brand .brand-original{width:154px!important}
 .hero-layout{padding-top:75px}
}
@media(prefers-reduced-motion:reduce){.brand .brand-original,.header-inner,.nav>a,.more-identities{transition:none!important}}

/* Refinamento pontual do topo e fundo original | 06 Nov 2026 */
.hero{background:#203b46 url("assets/bg.jpg") no-repeat center top!important;background-size:cover!important}
.hero::before,.hero::after{display:none!important;content:none!important}
.brand{flex:0 0 285px!important;min-width:285px!important;width:285px!important}
.brand .brand-original{width:279px!important;top:-4px!important}
.nav{max-width:calc(100% - 294px)!important}
.header.is-scrolled .brand{flex-basis:210px!important;min-width:210px!important;width:210px!important}
.header.is-scrolled .brand .brand-original{width:172px!important;top:-4px!important}
.header.is-scrolled .nav{max-width:calc(100% - 218px)!important}
.credit-by{grid-template-columns:auto 80px!important}
.credit-by small{display:none!important}
.credit-by img{width:80px!important;max-width:80px!important}
.ui-arrow{display:block;flex:none;vertical-align:middle;pointer-events:none}
.carousel-controls button{display:inline-flex;align-items:center;justify-content:center}
.carousel-controls button .ui-arrow{width:20px;height:20px}
.solid-btn .ui-arrow{width:17px;height:17px}
.map-directions .ui-arrow{width:20px;height:20px}
.media-list b{display:grid;place-items:center}
.media-list b .ui-arrow{width:17px;height:17px}
.office-arrow .ui-arrow{width:22px;height:22px}
@media(max-width:1200px) and (min-width:921px){
  .brand{flex-basis:260px!important;width:260px!important;min-width:260px!important}
  .brand .brand-original{width:262px!important;top:-3px!important}
  .nav{max-width:calc(100% - 268px)!important}
}
@media(max-width:920px){
  .brand{flex-basis:224px!important;width:224px!important;min-width:224px!important}
  .brand .brand-original{width:231px!important;top:-3px!important}
  .header.is-scrolled .brand{flex-basis:190px!important;width:190px!important;min-width:190px!important}
  .header.is-scrolled .brand .brand-original{width:161px!important;top:-5px!important}
}
@media(max-width:760px){
  .brand{flex-basis:190px!important;width:190px!important;min-width:190px!important}
  .brand .brand-original{width:192px!important;top:-3px!important}
  .header.is-scrolled .brand{flex-basis:165px!important;width:165px!important;min-width:165px!important}
  .header.is-scrolled .brand .brand-original{width:151px!important;top:-5px!important}
  .carousel-controls button{min-width:44px;min-height:44px}
  .carousel-controls button .ui-arrow{width:22px;height:22px}
}


/* Refinamento de respiro, barra de progresso e continuidade do Y | Nov 2026 */
.header-inner{min-height:134px}
.brand{height:134px}
.brand .brand-original{top:-1px!important}
.header.is-scrolled .header-inner{min-height:78px}
.header.is-scrolled .brand{height:78px}
.header.is-scrolled .brand .brand-original{top:3px!important}
.page-progress{height:2px;z-index:120}

.hero-layout{z-index:2}
@media(max-width:920px){
 .header-inner{min-height:109px}
 .brand{height:109px}
 .brand .brand-original{top:0!important}
 .header.is-scrolled .header-inner{min-height:73px}
 .header.is-scrolled .brand{height:73px}
 .header.is-scrolled .brand .brand-original{top:3px!important}
}
@media(max-width:760px){
 .header-inner{min-height:98px}
 .brand{height:98px}
 .brand .brand-original{top:1px!important}
 .header.is-scrolled .header-inner{min-height:73px}
 .header.is-scrolled .brand{height:73px}
 .header.is-scrolled .brand .brand-original{top:3px!important}
}

/* Teste de alinhamento: APENAS fundo original, sem segunda malha */
.hero::before,.hero::after{display:none!important;content:none!important}
.hero{background-image:linear-gradient(90deg,transparent 63%,#1b313b 90%),linear-gradient(90deg,rgba(27,49,60,.72) 0%,rgba(27,49,60,.60) 28%,rgba(27,49,60,.04) 57%,transparent 80%),url("assets/bg.jpg")!important;background-size:100% 100%,100% 100%,1700px auto!important;background-position:center,center,calc(50% - 390px) -430px!important;background-repeat:no-repeat!important;background-color:#1b313b!important}
.header.is-scrolled .brand .brand-original{top:-1px!important}
@media(max-width:920px){.hero{background-size:100% 100%,100% 100%,1260px auto!important;background-position:center,center,calc(50% - 270px) -295px!important}}
@media(max-width:760px){.hero{background-image:url("assets/bg.jpg")!important;background-size:cover!important;background-position:center top!important}}

/* Movimento editorial progressivo e responsivo da versão 2027 */
@media (prefers-reduced-motion:no-preference){
 html.motion-2027-ready .motion-item:not(.motion-in){
   opacity:0;
   transform:translate3d(0,42px,0) scale(.985);
 }
 html.motion-2027-ready .motion-item.motion-in{
   opacity:1;
   transform:translate3d(0,0,0) scale(1);
   transition:opacity .8s ease, transform .9s cubic-bezier(.18,.72,.19,1),
   transition-delay:calc(var(--motion-order,0)*65ms);
 }
 .seo-local-copy a{transition:color .22s ease}
 .hero .hero-intro[data-revealed=yes] h1{animation:headlineAppear .9s cubic-bezier(.18,.82,.2,1) both}
 @keyframes headlineAppear{from{opacity:.35;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
}
@media (prefers-reduced-motion:reduce){
 html.motion-2027-ready .motion-item{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
}
.seo-local-section{background:#f5f8f8;overflow:hidden;border-top:1px solid #e2ebed}
.seo-local-layout{display:grid;grid-template-columns:.83fr 1.17fr;gap:75px;align-items:start}
.seo-local-heading h2{margin:0;font-size:clamp(31px,3.4vw,44px);line-height:1.2}
.seo-local-heading h2 em{color:#32748a}
.seo-local-copy p{font-size:14px;line-height:1.9;color:#4d6570;margin:0 0 18px}
.seo-local-copy p:last-child{margin-bottom:0}
.seo-local-copy strong{font-weight:750;color:#203e4a}
.seo-local-copy a{color:#17637e;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.seo-local-copy a:hover{color:#ab8500}
@media(max-width:760px){.seo-local-layout{grid-template-columns:1fr;gap:22px}.seo-local-copy p{font-size:14px}}

/* Evitar colisao entre WhatsApp e controles no celular compacto */
@media(max-width:360px){.floating-whatsapp{right:9px!important;bottom:8px!important;width:44px!important;height:44px!important}.floating-whatsapp svg{width:25px!important;height:25px!important}.whatsapp-tooltip{display:none!important}}


/* 2027: menu móvel sempre legível, inclusive antes de recolher o cabeçalho.
   Sobrescreve os limites de largura do menu desktop em ambos os estados. */
@media (max-width:920px){
  .header .nav,
  .header.is-scrolled .nav{
    position:absolute!important;
    z-index:25!important;
    top:calc(100% + 5px)!important;
    right:0!important;
    left:auto!important;
    width:222px!important;
    max-width:calc(100vw - 32px)!important;
    min-width:0!important;
    box-sizing:border-box!important;
    padding:12px!important;
    margin:0!important;
    align-items:stretch!important;
    overflow-wrap:break-word;
  }
  .header .nav>a,
  .header.is-scrolled .nav>a{
    display:flex;
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
    white-space:nowrap;
    text-align:left;
    padding:13px 15px!important;
  }
  .header .nav>a.nav-contact,
  .header.is-scrolled .nav>a.nav-contact{
    margin:8px 0 0!important;
    justify-content:center;
    text-align:center;
  }
}
