:root {
    --hc-black: #0a0a0a;
    --hc-white: #ffffff;
    --hc-paper: #f5f5f2;
    --hc-line: #d8d8d3;
    --hc-equipamentos: #b5123e;
    --hc-ferramentas: #123b5d;
    --hc-formacao: #00a6a6;
    --hc-multimedia: #70757a;
    --hc-web: #1677c8;
    --hc-container: min(92vw, 1440px);
}

/* O módulo substitui visualmente o header existente do tema sem alterar o tema. */
body.hotchip-header-module-active > header.site-header { display: none !important; }

.hc-header, .hc-header * { box-sizing: border-box; }
.hc-header { position: sticky; top: 0; z-index: 999; width: 100%; font-family: Inter, Arial, Helvetica, sans-serif; color: var(--hc-black); }
.admin-bar .hc-header { top: 32px; }
.hc-container { width: var(--hc-container); margin: 0 auto; }

.hc-utility { background: var(--hc-black); color: var(--hc-white); border-bottom: 1px solid rgba(255,255,255,.12); }
.hc-utility-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.hc-status, .hc-utility-actions { display: flex; align-items: center; }
.hc-status { gap: .55rem; font-size: .72rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
.hc-dot { opacity: .35; }
.hc-weather { display: inline-flex; align-items: center; gap: .35rem; }
.hc-weather-place { opacity: .62; }
.hc-weather-temp { font-weight: 850; }
.hc-utility-actions { gap: .9rem; }

.hc-search { width: min(270px, 24vw); height: 29px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.52); }
.hc-search input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; padding: 0 .3rem; font: inherit; font-size: .75rem; }
.hc-search input::placeholder { color: rgba(255,255,255,.65); }
.hc-search button { width: 28px; height: 28px; border: 0; padding: 5px; background: transparent; color: #fff; cursor: pointer; }
.hc-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hc-translate { min-width: 45px; display: flex; align-items: center; justify-content: flex-end; font-size: .72rem; font-weight: 800; }
.hc-translate-placeholder { border: 1px solid rgba(255,255,255,.35); padding: .3rem .45rem; }

.hc-mainbar { background: rgba(245,245,242,.97); border-bottom: 1px solid var(--hc-line); backdrop-filter: blur(16px); transition: box-shadow .2s ease; }
.hc-header.is-scrolled .hc-mainbar { box-shadow: 0 7px 24px rgba(0,0,0,.06); }
.hc-mainbar-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hc-brand { width: 170px; flex: 0 0 auto; display: block; }
.hc-brand img { display: block; max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }

.hc-nav { margin-left: auto; }
.hc-menu { list-style: none; display: flex; align-items: center; gap: clamp(.8rem, 1.6vw, 1.65rem); padding: 0; margin: 0; }
.hc-menu li { margin: 0; padding: 0; }
.hc-menu a { display: inline-block; color: var(--hc-black); text-decoration: none; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; position: relative; white-space: nowrap; }
.hc-menu a::after { content: ''; position: absolute; left: 0; bottom: -.65rem; width: 100%; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.hc-menu a:hover::after, .hc-menu .current-menu-item > a::after { transform: scaleX(1); }
.hc-menu a[href*="equipamentos-hardware"], .hc-menu .hc-equipamentos { --hc-link: var(--hc-equipamentos); }
.hc-menu a[href*="ferramentas-software"], .hc-menu .hc-ferramentas { --hc-link: var(--hc-ferramentas); }
.hc-menu a[href*="formacao"], .hc-menu .hc-formacao { --hc-link: var(--hc-formacao); }
.hc-menu a[href*="multimedia"], .hc-menu .hc-fotografia { --hc-link: var(--hc-multimedia); }
.hc-menu a[href*="desenvolvimento-web"], .hc-menu .hc-web { --hc-link: var(--hc-web); }
.hc-menu a:hover, .hc-menu .current-menu-item > a { color: var(--hc-link, var(--hc-black)); }

.hc-menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.hc-menu-toggle span { display: block; width: 100%; height: 2px; background: var(--hc-black); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.hc-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hc-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hc-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
    .hc-mainbar-inner { gap: 1.25rem; }
    .hc-brand { width: 150px; }
    .hc-menu { gap: .8rem; }
    .hc-menu a { font-size: .68rem; }
}

@media (max-width: 850px) {
    .hc-utility-inner { min-height: 42px; }
    .hc-status { font-size: .65rem; }
    .hc-search { width: 190px; }
    .hc-menu-toggle { display: block; margin-left: auto; }
    .hc-mainbar-inner { min-height: 70px; }
    .hc-brand { width: 145px; }
    .hc-nav { position: fixed; left: 0; right: 0; top: 112px; background: var(--hc-paper); border-bottom: 1px solid var(--hc-line); transform: translateY(-130%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; z-index: -1; }
    .admin-bar .hc-nav { top: 144px; }
    .hc-nav.is-open { transform: translateY(0); visibility: visible; }
    .hc-menu { width: var(--hc-container); margin: 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: .7rem 0 1.2rem; }
    .hc-menu a { display: block; padding: .9rem 0; font-size: .9rem; border-bottom: 1px solid var(--hc-line); }
    .hc-menu a::after { display: none; }
}

@media (max-width: 620px) {
    .hc-utility-inner { min-height: 70px; align-items: stretch; flex-direction: column; justify-content: center; gap: .35rem; padding: .45rem 0; }
    .hc-status { width: 100%; justify-content: space-between; gap: .35rem; }
    .hc-dot { display: none; }
    .hc-utility-actions { width: 100%; justify-content: space-between; gap: .6rem; }
    .hc-search { width: 100%; max-width: none; flex: 1; }
    .hc-nav { top: 140px; }
    .admin-bar .hc-nav { top: 186px; }
}

@media screen and (max-width: 782px) {
    .admin-bar .hc-header { top: 46px; }
}
