/* TuViu Company DEV — Header TVS Standard
   Base visual: TuViu Public Global UI / TVS header homologado.
   Escopo: cabeçalho + Clicky+ + drawer mobile. */
:root{
  --tvg-bg:#0A2239;
  --tvg-bg2:#071A2B;
  --tvg-accent:#B01F2E;
  --tvg-border:#B01F2E;
  --tvg-soft:#f8f9fc;
  --tvg-ink:#172033;
}
body.tuviu-public-shell{padding-top:84px!important}
.tvg-header{
  position:fixed;top:0;left:8px;right:8px;z-index:2147481000;
  background:var(--tvg-bg);
  border-left:2px solid var(--tvg-border);
  border-right:2px solid var(--tvg-border);
  border-bottom:2px solid var(--tvg-border);
  border-radius:0 0 40px 40px;
  box-shadow:0 12px 28px rgba(7,26,43,.20);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  backdrop-filter:blur(16px) saturate(130%);
  transition:.22s ease;
  will-change:transform,background-color,box-shadow;
}
.tvg-header.is-scrolled{background:var(--tvg-bg2);box-shadow:0 14px 34px rgba(7,26,43,.28);transform:translateY(-1px)}
.tvg-header-inner{
  width:min(1180px,calc(100% - 26px));min-height:72px;margin:auto;
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;
}
.tvg-brand{display:flex;align-items:center;min-width:170px;text-decoration:none!important}
.tvg-brand img{
  width:165px;max-height:56px;object-fit:contain;display:block;
  filter:brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0,0,0,.18));
}
.tvg-desktop-nav{display:flex;align-items:center;justify-content:center}
.tvg-clicky{position:relative}
.tvg-clicky>summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;outline:none;
  min-height:36px;padding:7px 12px;border-radius:999px;
  color:#fff!important;font-size:12px;font-weight:800;white-space:nowrap;
  border:1px solid var(--tvg-border);background:transparent;box-shadow:none;
  transition:border-color .18s ease,color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.tvg-clicky>summary::-webkit-details-marker{display:none}
.tvg-clicky>summary:hover,.tvg-clicky[open]>summary,.tvg-clicky.is-active>summary{
  background:rgba(255,255,255,.045);border-color:#fff;box-shadow:none;
}
.tvg-clicky>summary:hover,.tvg-clicky[open]>summary{transform:translateY(-1px);box-shadow:0 8px 18px rgba(0,0,0,.10)}
.tvg-clicky-caret{font-size:10px;opacity:.8;transition:transform .2s ease}
.tvg-clicky[open] .tvg-clicky-caret{transform:rotate(180deg)}
.tvg-clicky-menu{
  position:absolute;top:calc(100% + 10px);right:0;left:auto;transform:none;
  width:342px;padding:11px;border-radius:22px;background:rgba(255,255,255,.98);
  border:1px solid rgba(15,23,42,.08);box-shadow:0 28px 68px rgba(15,23,42,.26);
  -webkit-backdrop-filter:blur(20px) saturate(135%);backdrop-filter:blur(20px) saturate(135%);overflow:hidden;
}
.tvg-clicky-menu::before{
  content:"";position:absolute;top:-7px;right:22px;left:auto;width:14px;height:14px;
  background:#fff;border-left:1px solid rgba(15,23,42,.08);border-top:1px solid rgba(15,23,42,.08);transform:rotate(45deg);
}
.tvg-clicky:not([open])>.tvg-clicky-menu{display:none}
.tvg-clicky:hover>.tvg-clicky-menu,.tvg-clicky[open]>.tvg-clicky-menu{display:block}
.tvg-clicky[open]>.tvg-clicky-menu{animation:tvgMenuIn .18s cubic-bezier(.2,.7,.25,1);transform-origin:top right}
@keyframes tvgMenuIn{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.tvg-clicky-section{
  position:relative;z-index:1;padding:9px 10px 6px;color:var(--tvg-accent);
  font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;
}
.tvg-clicky-menu a{
  position:relative;z-index:1;display:grid!important;grid-template-columns:34px 1fr;align-items:center;gap:10px;
  min-height:52px;padding:7px 9px!important;margin:2px 0;border-radius:14px;color:#273142!important;
  text-decoration:none!important;border:1px solid transparent;
  transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.tvg-clicky-menu a::before{
  content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:999px;
  background:var(--tvg-border);opacity:0;transform:scaleY(.35);transition:.18s ease;
}
.tvg-clicky-menu a:hover{
  transform:translateX(4px);color:#fff!important;border-color:rgba(255,255,255,.16);
  background:linear-gradient(135deg,var(--tvg-bg),var(--tvg-accent));box-shadow:0 11px 24px rgba(15,23,42,.15);
}
.tvg-clicky-menu a:hover::before{opacity:1;transform:scaleY(1)}
.tvg-clicky-menu a::after{display:none!important}
.tvg-clicky-icon{
  width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  background:var(--tvg-soft);color:var(--tvg-accent);border:1px solid rgba(15,23,42,.06);transition:.18s ease;
}
.tvg-clicky-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tvg-clicky-menu a:hover .tvg-clicky-icon{background:var(--tvg-border);color:#fff;border-color:rgba(255,255,255,.18);transform:scale(1.04)}
.tvg-clicky-copy{display:block;min-width:0}
.tvg-clicky-copy strong{display:block;color:inherit;font-size:11px;font-weight:850;line-height:1.15}
.tvg-clicky-copy small{display:block;margin-top:3px;color:#7c8799;font-size:9px;font-weight:550;line-height:1.2;transition:color .18s ease}
.tvg-clicky-menu a:hover .tvg-clicky-copy small{color:rgba(255,255,255,.74)}
.tvg-clicky-divider{height:1px;margin:7px 9px;background:rgba(15,23,42,.08)}
.tvg-header-spacer{min-width:0}
.tvg-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}
.tvg-action{
  min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:13px;
  border:1px solid rgba(255,255,255,.18);color:#fff!important;background:rgba(255,255,255,.07);
  font-size:11px;font-weight:700;text-decoration:none!important;position:relative;overflow:hidden;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .22s ease,color .18s ease;
}
.tvg-action.primary{color:var(--tvg-bg)!important;background:#fff;border-color:#fff}
.tvg-action:hover{transform:translateY(-2px);background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.34);box-shadow:0 8px 20px rgba(0,0,0,.12)}
.tvg-action.primary:hover{background:#fff;box-shadow:0 10px 24px rgba(0,0,0,.16)}
.tvg-action:active{transform:translateY(0) scale(.985)}
.tvg-mobile-menu,.tvg-mobile-app{display:none}
.tvg-action:focus-visible,.tvg-clicky>summary:focus-visible,.tvg-mobile-menu:focus-visible,.tvg-mobile-app:focus-visible,.tvg-drawer-close:focus-visible{
  outline:3px solid color-mix(in srgb,var(--tvg-border) 55%, white);outline-offset:3px;
}
.tvg-backdrop{
  position:fixed;inset:0;z-index:2147481100;background:rgba(7,26,43,.38);opacity:0;pointer-events:none;
  transition:.24s cubic-bezier(.2,.7,.25,1);
}
.tvg-backdrop.is-open{opacity:1;pointer-events:auto}
.tvg-drawer{
  position:fixed;left:0;top:0;bottom:0;z-index:2147481200;width:min(356px,88vw);background:var(--tvg-soft);
  box-shadow:24px 0 64px rgba(16,19,28,.26);transform:translateX(-104%);transition:transform .28s cubic-bezier(.2,.7,.25,1);overflow:auto;
}
.tvg-drawer.is-open{transform:translateX(0)}
.tvg-drawer-head{
  min-height:70px;display:flex;align-items:center;justify-content:center;padding:8px 52px 8px 14px;position:relative;
  background:var(--tvg-bg);border-right:2px solid var(--tvg-border);border-bottom:2px solid var(--tvg-border);border-radius:0 0 40px 0;
}
.tvg-drawer-head img{width:145px;max-height:52px;object-fit:contain;filter:brightness(0) invert(1)}
.tvg-drawer-close{
  position:absolute;right:15px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;
  color:#fff;font-size:25px;line-height:1;cursor:pointer;
}
.tvg-drawer-body{padding:6px 16px 24px}
.tvg-drawer-nav a{
  min-height:56px;display:grid;grid-template-columns:30px 1fr 14px;align-items:center;gap:10px;padding:8px;margin:2px 0;
  border-bottom:1px solid rgba(74,82,96,.10);border-radius:13px;color:#273142!important;text-decoration:none!important;
  font-size:14px;font-weight:550;transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.tvg-drawer-nav a:hover{transform:translateX(4px);color:#fff!important;background:linear-gradient(135deg,var(--tvg-bg),var(--tvg-accent));box-shadow:0 10px 22px rgba(15,23,42,.12)}
.tvg-drawer-nav svg{width:20px;height:20px;fill:none;stroke:var(--tvg-accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:stroke .18s ease}
.tvg-drawer-nav a:hover svg{stroke:#fff}
.tvg-drawer-nav .chev{color:#99a0aa;font-size:12px;transition:color .18s ease}
.tvg-drawer-nav a:hover .chev{color:#fff}
.tvg-drawer-section-label{margin:10px 4px 4px;padding:0 5px 8px;color:var(--tvg-accent);font-size:10px;font-weight:900;letter-spacing:.10em;text-transform:uppercase}
.tvg-menu-promo{
  position:relative;display:block;margin:18px 0 10px;padding:18px;min-height:178px;overflow:hidden;border-radius:23px;
  background:var(--tvg-bg);color:#fff!important;border:1px solid color-mix(in srgb,var(--tvg-border) 55%, transparent);
  text-decoration:none!important;box-shadow:0 16px 34px rgba(7,26,43,.16);
}
.tvg-menu-promo::after{content:"";position:absolute;width:180px;height:180px;right:-90px;bottom:-95px;border-radius:50%;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 30px rgba(255,255,255,.025)}
.tvg-menu-promo small{display:inline-block;color:var(--tvg-border);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.tvg-menu-promo strong{display:block;max-width:72%;margin-top:13px;font-size:22px;line-height:1.08}
.tvg-menu-promo span{display:block;max-width:75%;margin-top:8px;color:rgba(255,255,255,.76);font-size:11px;line-height:1.45}
.tvg-goads-first{margin:8px 0 12px;min-height:148px;padding:16px 18px}
.tvg-goads-first small{color:var(--tvg-border)}
.tvg-goads-first strong{margin-top:10px;font-size:20px}
.tvg-goads-first span{margin-top:7px}
.tvg-drawer.is-open .tvg-drawer-nav a{animation:tvgDrawerItemIn .26s both}
.tvg-drawer.is-open .tvg-drawer-nav a:nth-of-type(2){animation-delay:.025s}
.tvg-drawer.is-open .tvg-drawer-nav a:nth-of-type(3){animation-delay:.05s}
.tvg-drawer.is-open .tvg-drawer-nav a:nth-of-type(4){animation-delay:.075s}
.tvg-drawer.is-open .tvg-drawer-nav a:nth-of-type(5){animation-delay:.10s}
.tvg-drawer.is-open .tvg-drawer-nav a:nth-of-type(6){animation-delay:.125s}
@keyframes tvgDrawerItemIn{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:991px){
  body.tuviu-public-shell{padding-top:76px!important}
  .tvg-header{left:8px;right:8px}
  .tvg-header-inner{min-height:64px;width:100%;padding:0 11px;grid-template-columns:48px 1fr 48px;gap:6px}
  .tvg-brand{min-width:0;justify-content:center}.tvg-brand img{width:132px;max-height:50px}
  .tvg-header-spacer{display:none}.tvg-desktop-nav,.tvg-actions{display:none}
  .tvg-mobile-menu,.tvg-mobile-app{
    width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;
    color:#fff!important;text-decoration:none!important;cursor:pointer;border-radius:14px;transition:background .18s ease,transform .16s ease;
  }
  .tvg-mobile-menu{justify-self:start}.tvg-mobile-app{justify-self:end;align-self:center}
  .tvg-mobile-menu svg,.tvg-mobile-app svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .tvg-mobile-menu:active,.tvg-mobile-app:active{transform:scale(.94)}
  .tvg-mobile-menu:hover,.tvg-mobile-app:hover{background:rgba(255,255,255,.08)}
}
@media(max-width:560px){
  .tvg-drawer{width:min(344px,92vw)}
  .tvg-goads-first{min-height:134px;margin-top:6px;border-radius:20px}
  .tvg-goads-first strong{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
  .tvg-header,.tvg-action,.tvg-clicky>summary,.tvg-clicky[open]>.tvg-clicky-menu,.tvg-drawer,.tvg-backdrop,.tvg-drawer.is-open .tvg-drawer-nav a{animation:none!important;transition:none!important;transform:none!important}
}
