
.site-header {
  width: 100%;
  height: 80px;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* depois de scrollar pra além do hero, fica vermelho */
.site-header.is-scrolled {
  background-color: #EF381A;
  box-shadow: 0 4px 18px -8px rgba(0, 0, 0, 0.45);
}

/* quando o menu lateral abre, mantém vermelho pra contraste com o hambúrguer cream */
body.menu-open .site-header {
  background-color: #EF381A;
}

.header-container {
  width: 100%;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0;
  position: relative;
  width: 140px;
}

.logo-header {
  width: 100%;
  top: -5px;
  position: relative;
  height: 35px;          /* 140px * (71.6/289.88) — aspect ratio do viewBox */
  display: block;
  transition:
    filter 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo-header svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .logo-link { width: 128px; }
  .logo-header { height: 31px; }
}

.logo-link:hover .logo-header {
  filter: brightness(120%) sepia(20%) saturate(110%) contrast(95%);
  transform: scale(1.03);
}

/* Tagline aparece ABAIXO do logo no hover — branca, levemente menor que o logo */
.logo-tagline {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  margin-top: 0;
  width: 88%;
  font-family: 'Yeah', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -6px);
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo-link:hover .logo-tagline,
.logo-link:focus-visible .logo-tagline {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* esconde tagline em mobile (espaço apertado) */
@media (max-width: 768px) {
  .logo-tagline {
    display: none;
  }
}

/* HAMBURGER */
.menu-button {
  --bar-width: 30px;
  --bar-height: 5px;
  --bar-gap: 8px;

  width: var(--bar-width);
  height: calc((var(--bar-height) * 2) + var(--bar-gap));
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
  display: block;
  z-index: 1001;
}

.menu-button span {
  width: var(--bar-width);
  height: var(--bar-height);
  background-color: #F4E3AE;
  display: block;
  position: absolute;
  left: 0;
  transition: transform 0.35s ease, top 0.35s ease;
  transform-origin: center;
}

.menu-button span:first-child {
  top: 0;
}

.menu-button span:last-child {
  top: calc(var(--bar-height) + var(--bar-gap));
}

.menu-button.is-active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-button.is-active span:last-child {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {

  .menu-button:hover span:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
  }

  .menu-button:hover span:last-child {
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
  }

}

/* BLUR DESKTOP */
.menu-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* escuro semi-transparente */
  z-index: 998; /* atrás do menu, à frente do conteúdo */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* MENU */
.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: clamp(440px, 28%, 540px); /* não quebra em notebooks 1366x768 */
  height: 100vh;
  background-color: #EF381A;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

body.menu-open .site-menu {
  transform: translateX(0);
}

body.menu-open .menu-blur {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.menu-content {
  width: 100%;
  height: calc(100% - 64px);
  padding: 160px 60px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.menu-links a {
  font-family: var(--font-primary);
  font-size: 35px;
  line-height: 0.95;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.menu-links a:hover {
  transform: translateX(8px);
  opacity: 0.75;
}

.menu-footer {
  text-align: center;
  color: #ffffff;
}

.follow-title {
  font-family: var(--font-primary);
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
}

.social-links img {
  width: 42px;
  height: 42px;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-links a:hover img {
  transform: translateY(-4px) scale(1.06);
  opacity: 0.75;
}

.copyright {
  font-family: Arial, sans-serif;
  font-size: 9px;
  line-height: 1.2;
}

.menu-strip {
  width: 100%;
  height: 64px;
  background-image: url('../img/elements/faixa.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 center;
  animation: stripLoop 18s linear infinite;
}

@keyframes stripLoop {
  from { background-position: 0 center; }
  to   { background-position: -400px center; }
}

/* MOBILE */
@media (max-width: 768px) {
  .site-header {
    height: 100px;
  }

  .header-container {
    padding: 0 47px;
  }

  /* .logo-header herda width: 100% do desktop, dimensionado pelo .logo-link mobile */

  .menu-button {
    --bar-width: 38px;
    --bar-height: 6px;
    --bar-gap: 11px;
  }

  .menu-blur {
    display: none;
  }

  .site-menu {
    width: 100%;
    height: 100vh;
  }

  .menu-content {
    height: calc(100% - 64px);
    padding: clamp(110px, 22vh, 180px) 47px 24px;
    align-items: center;
    overflow-y: auto;
  }

  .menu-links {
    align-items: center;
    text-align: center;
    gap: 26px;
  }

  .menu-links a {
    font-size: 40px;
    text-align: center;
  }

  .menu-links a:hover {
    transform: scale(1.04);
  }

  .menu-footer {
    margin-top: 48px; /* respiro entre CONTATO e SIGA-NOS */
  }

  .social-links img {
    width: 54px;
    height: 54px;
  }

  .copyright {
    font-size: 9px;
  }
}
