/* ============================================================
 HEADER - independente (prefixo hkm-)
 ============================================================ */
.hkm-topo,
.hkm-topo *,
.hkm-gaveta,
.hkm-gaveta *{
box-sizing: border-box;
}

.hkm-topo{
--hkm-ouro: #e3b881;
--hkm-ouro-fundo: #c9954f;
--hkm-escuro: #241811;
--hkm-texto: #3a2820;

position: sticky;
top: 0;
z-index: 900;
width: 100%;
font-family: "Sora", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.hkm-progresso{
position: absolute;
top: 0; left: 0;
z-index: 5;
width: 0;
height: 2px;
background: linear-gradient(90deg, var(--hkm-ouro), #f0d0a5, var(--hkm-ouro));
transition: width .1s linear;
}

/* ---------- Faixa superior ---------- */
.hkm-faixa{
background: var(--hkm-escuro);
color: rgba(248,236,217,.72);
font-size: 12px;
letter-spacing: .4px;
overflow: hidden;
max-height: 40px;
transition: max-height .45s ease, opacity .35s ease;
}
.hkm-topo.hkm-rolou .hkm-faixa{
max-height: 0;
opacity: 0;
}
.hkm-faixa-interna{
display: flex;
align-items: center;
justify-content: center;
gap: 9px;
max-width: 1280px;
padding: 10px 30px;
margin: 0 auto;
}
.hkm-faixa-pin{
width: 14px;
height: 14px;
flex: 0 0 auto;
color: var(--hkm-ouro);
}

/* ---------- Barra principal ---------- */
.hkm-barra{
background: rgba(255,255,255,.93);
backdrop-filter: blur(16px) saturate(1.2);
-webkit-backdrop-filter: blur(16px) saturate(1.2);
border-bottom: 1px solid rgba(58,40,32,.07);
transition: box-shadow .4s ease, background .4s ease;
}
.hkm-topo.hkm-rolou .hkm-barra{
background: rgba(255,255,255,.98);
box-shadow: 0 8px 30px rgba(58,40,32,.09);
}
.hkm-barra-interna{
display: flex;
align-items: center;
gap: 28px;
max-width: 1280px;
padding: 14px 30px;
margin: 0 auto;
transition: padding .4s ease;
}
.hkm-topo.hkm-rolou .hkm-barra-interna{ padding: 9px 30px; }

/* Logo */
.hkm-logo{
flex: 0 0 auto;
line-height: 0;
transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.hkm-logo:hover{ transform: scale(1.03); }
.hkm-logo img{
display: block;
width: auto;
height: 38px;
transition: height .4s ease;
}
.hkm-topo.hkm-rolou .hkm-logo img{ height: 32px; }

/* ---------- Menu ---------- */
.hkm-menu{
display: flex;
align-items: center;
gap: 2px;
flex: 1 1 auto;
justify-content: center;
margin: 0;
padding: 0;
list-style: none;
}
.hkm-item{ position: relative; }
.hkm-link{
position: relative;
display: inline-flex;
align-items: center;
gap: 5px;
padding: 10px 14px;
border-radius: 30px;
color: var(--hkm-texto);
font-size: 14.5px;
font-weight: 500;
text-decoration: none;
white-space: nowrap;
transition: color .3s ease, background .35s ease;
}
.hkm-link::after{
content: "";
position: absolute;
left: 14px; right: 14px;
bottom: 5px;
height: 2px;
border-radius: 2px;
background: linear-gradient(90deg, var(--hkm-ouro), #f0d0a5);
transform: scaleX(0);
transform-origin: right;
transition: transform .38s cubic-bezier(.22,.61,.36,1);
}
.hkm-link:hover,
.hkm-item.hkm-aberto > .hkm-link{
color: #a97b3d;
background: rgba(227,184,129,.1);
}
.hkm-link:hover::after,
.hkm-item.hkm-aberto > .hkm-link::after{
transform: scaleX(1);
transform-origin: left;
}
.hkm-seta{
width: 14px;
height: 14px;
transition: transform .38s cubic-bezier(.22,.61,.36,1);
}
.hkm-item.hkm-aberto .hkm-seta{ transform: rotate(180deg); }

/* ---------- Dropdown ---------- */
.hkm-drop{
position: absolute;
top: calc(100% + 10px);
left: 50%;
z-index: 30;
min-width: 268px;
padding-top: 10px;
opacity: 0;
visibility: hidden;
transform: translate(-50%, 12px);
transition: opacity .32s ease, transform .32s cubic-bezier(.22,.61,.36,1), visibility .32s;
}
.hkm-item.hkm-aberto .hkm-drop{
opacity: 1;
visibility: visible;
transform: translate(-50%, 0);
}
.hkm-drop-caixa{
position: relative;
display: flex;
flex-direction: column;
gap: 1px;
padding: 10px;
border: 1px solid rgba(58,40,32,.07);
border-radius: 16px;
background: #fff;
box-shadow: 0 24px 56px rgba(58,40,32,.16);
}
.hkm-drop-caixa::before{
content: "";
position: absolute;
top: -7px; left: 50%;
width: 13px; height: 13px;
margin-left: -6.5px;
border-left: 1px solid rgba(58,40,32,.07);
border-top: 1px solid rgba(58,40,32,.07);
border-radius: 3px 0 0 0;
background: #fff;
transform: rotate(45deg);
}
.hkm-drop-link{
position: relative;
display: block;
padding: 10px 14px 10px 22px;
border-radius: 10px;
color: var(--hkm-texto);
font-size: 13.8px;
text-decoration: none;
white-space: nowrap;
transition: background .3s ease, color .3s ease, padding-left .3s ease;
}
.hkm-drop-link::before{
content: "";
position: absolute;
left: 10px; top: 50%;
width: 5px; height: 5px;
margin-top: -2.5px;
border-radius: 50%;
background: var(--hkm-ouro);
opacity: 0;
transform: scale(.4);
transition: opacity .3s ease, transform .3s ease;
}
.hkm-drop-link:hover{
background: rgba(227,184,129,.13);
color: #a97b3d;
padding-left: 26px;
}
.hkm-drop-link:hover::before{ opacity: 1; transform: scale(1); }

/* ---------- Ações ---------- */
.hkm-acoes{
display: flex;
align-items: center;
gap: 12px;
flex: 0 0 auto;
}
.hkm-cta{
position: relative;
display: inline-flex;
align-items: center;
gap: 11px;
padding: 11px 24px 11px 12px;
overflow: hidden;
border-radius: 40px;
background: linear-gradient(120deg, var(--hkm-ouro-fundo) 0%, #e8c391 48%, var(--hkm-ouro-fundo) 100%);
background-size: 200% auto;
color: #26170f;
font-size: 14px;
font-weight: 600;
letter-spacing: .2px;
text-decoration: none;
white-space: nowrap;
box-shadow: 0 8px 24px rgba(201,149,79,.32);
transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease, background-position .6s ease;
}
.hkm-cta:hover{
color: #26170f;
transform: translateY(-2px);
background-position: 100% center;
box-shadow: 0 14px 32px rgba(201,149,79,.46);
}
.hkm-cta-icone{
position: relative;
z-index: 2;
display: grid;
place-items: center;
width: 32px; height: 32px;
border-radius: 50%;
background: rgba(255,255,255,.42);
transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.hkm-cta-icone svg{ width: 15px; height: 15px; }
.hkm-cta:hover .hkm-cta-icone{ transform: rotate(-14deg) scale(1.08); }
.hkm-cta-texto{ position: relative; z-index: 2; }
.hkm-cta-brilho{
position: absolute;
top: 0; left: -70%;
z-index: 1;
width: 40%; height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
transform: skewX(-20deg);
animation: hkmBrilho 4.5s ease-in-out infinite 1.4s;
}
@keyframes hkmBrilho{
0%       { left: -70%; }
55%, 100%{ left: 140%; }
}

.hkm-hamburguer{
display: none;
flex-direction: column;
justify-content: center;
gap: 5px;
width: 44px; height: 44px;
padding: 0 11px;
border: 1px solid rgba(58,40,32,.14);
border-radius: 12px;
background: transparent;
cursor: pointer;
transition: background .3s ease, border-color .3s ease;
}
.hkm-hamburguer:hover{
background: rgba(227,184,129,.12);
border-color: rgba(227,184,129,.5);
}
.hkm-hamburguer span{
display: block;
width: 100%;
height: 2px;
border-radius: 2px;
background: var(--hkm-texto);
transition: transform .4s cubic-bezier(.22,.61,.36,1), opacity .3s ease;
}
.hkm-hamburguer.hkm-x span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hkm-hamburguer.hkm-x span:nth-child(2){ opacity: 0; }
.hkm-hamburguer.hkm-x span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Cortina e gaveta ---------- */
.hkm-cortina{
position: fixed;
inset: 0;
z-index: 950;
background: rgba(20,13,9,.55);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
opacity: 0;
visibility: hidden;
transition: opacity .4s ease, visibility .4s;
}
.hkm-cortina.hkm-visivel{ opacity: 1; visibility: visible; }

.hkm-gaveta{
position: fixed;
top: 0; right: 0;
z-index: 960;
display: flex;
flex-direction: column;
width: 340px;
max-width: 88vw;
height: 100%;
background: #fff;
box-shadow: -20px 0 60px rgba(58,40,32,.24);
transform: translateX(105%);
transition: transform .5s cubic-bezier(.22,.61,.36,1);
font-family: "Sora", system-ui, Arial, sans-serif;
}
.hkm-gaveta.hkm-visivel{ transform: translateX(0); }

.hkm-gaveta-topo{
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 22px;
border-bottom: 1px solid rgba(58,40,32,.08);
}
.hkm-gaveta-logo{ height: 34px; width: auto; }
.hkm-fechar{
display: grid;
place-items: center;
width: 40px; height: 40px;
border: 1px solid rgba(58,40,32,.14);
border-radius: 12px;
background: transparent;
color: #3a2820;
cursor: pointer;
transition: background .3s ease, transform .35s ease;
}
.hkm-fechar svg{ width: 20px; height: 20px; }
.hkm-fechar:hover{ background: rgba(227,184,129,.14); transform: rotate(90deg); }

.hkm-gaveta-menu{
flex: 1 1 auto;
padding: 14px 16px;
overflow-y: auto;
}
.hkm-gaveta-link{
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 14px;
border: none;
border-radius: 12px;
background: transparent;
color: #3a2820;
font-family: inherit;
font-size: 15.5px;
font-weight: 500;
text-align: left;
text-decoration: none;
cursor: pointer;
transition: background .3s ease, color .3s ease, padding-left .3s ease;
}
.hkm-gaveta-link:hover{
background: rgba(227,184,129,.14);
color: #a97b3d;
padding-left: 20px;
}
.hkm-gaveta-abre svg{
width: 18px; height: 18px;
transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.hkm-gaveta-abre.hkm-x svg{ transform: rotate(180deg); }

.hkm-gaveta-sub{
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows .45s cubic-bezier(.22,.61,.36,1);
}
.hkm-gaveta-sub.hkm-aberta{ grid-template-rows: 1fr; }
.hkm-gaveta-sub > *{ min-height: 0; }
.hkm-gaveta-sub-interno{
overflow: hidden;
padding-left: 14px;
border-left: 2px solid rgba(227,184,129,.4);
margin: 4px 0 4px 14px;
}
.hkm-gaveta-sub a{
display: block;
padding: 10px;
border-radius: 9px;
color: rgba(58,40,32,.82);
font-size: 14px;
text-decoration: none;
transition: background .3s ease, color .3s ease, padding-left .3s ease;
}
.hkm-gaveta-sub a:hover{
background: rgba(227,184,129,.13);
color: #a97b3d;
padding-left: 16px;
}

.hkm-gaveta-rodape{
display: flex;
flex-direction: column;
gap: 14px;
padding: 20px 22px 26px;
border-top: 1px solid rgba(58,40,32,.08);
}
.hkm-gaveta-cta{
padding: 15px;
border-radius: 40px;
background: linear-gradient(120deg, #c9954f, #e8c391);
color: #26170f;
font-size: 15px;
font-weight: 600;
text-align: center;
text-decoration: none;
box-shadow: 0 10px 24px rgba(201,149,79,.34);
}
.hkm-gaveta-cta:hover{ color: #26170f; }
.hkm-gaveta-endereco{
color: rgba(58,40,32,.6);
font-size: 12.5px;
line-height: 1.6;
text-align: center;
}

body.hkm-travado{ overflow: hidden; }

/* ---------- Responsivo ---------- */
@media (max-width: 1250px){
.hkm-barra-interna{ gap: 18px; }
.hkm-link{ padding: 10px 11px; font-size: 14px; }
.hkm-link::after{ left: 11px; right: 11px; }
}
@media (max-width: 1080px){
.hkm-menu{ display: none; }
.hkm-hamburguer{ display: flex; }
.hkm-barra-interna{ justify-content: space-between; gap: 14px; }
}
@media (max-width: 767px){
.hkm-faixa-interna{ padding: 9px 18px; font-size: 11px; }
.hkm-barra-interna{ padding: 11px 18px; }
.hkm-topo.hkm-rolou .hkm-barra-interna{ padding: 9px 18px; }
.hkm-logo img{ height: 32px; }
.hkm-topo.hkm-rolou .hkm-logo img{ height: 28px; }
.hkm-cta-texto{ display: none; }
.hkm-cta{ padding: 8px; gap: 0; }
}
@media (max-width: 420px){
.hkm-faixa{ display: none; }
}

@media (prefers-reduced-motion: reduce){
.hkm-cta-brilho{ animation: none !important; }
}
