/* =========================================================
   sections/header.css — Header/Nav fixo, menu mobile,
                         botões flutuantes (WhatsApp + Solicitar Projeto)
   ========================================================= */

/* ---------------------------------------------------------
   HEADER PRINCIPAL
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--ease), background var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--gray-border);
  background: rgba(10, 10, 10, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding-inline: 20px;
  max-width: var(--container-max);
  margin-inline: auto;
  gap: 0;
}
@media (min-width: 768px)  { .header-inner { padding-inline: 40px; } }
@media (min-width: 1024px) { .header-inner { padding-inline: 56px; } }

/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 28px;
}
.logo-img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.logo-word {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.5px;
}
.logo-text {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.logo.is-active .logo-text {
  border-bottom-color: var(--red);
}
.logo-accent {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--red);
}

/* ---------------------------------------------------------
   NAVEGAÇÃO DESKTOP
   --------------------------------------------------------- */
.main-nav {
  display: none;
  align-items: center;
  gap: 20px;
  flex: 1;
}
@media (min-width: 960px) { .main-nav { display: flex; } }

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.nav-link:hover     { color: var(--white); }
.nav-link.is-active { color: var(--white); border-bottom-color: var(--red); }

/* "Ir para a Loja →" — âmbar, máximo destaque */
.btn-loja {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  background: var(--amber);
  color: var(--black);
  border-radius: 2px;
  white-space: nowrap;
  transition: background var(--ease), transform var(--ease);
}
.btn-loja:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   HAMBURGUER (mobile)
   --------------------------------------------------------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------
   MENU MOBILE
   --------------------------------------------------------- */
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: var(--gray-dark);
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding var(--ease);
}
.mobile-nav.is-open {
  max-height: 560px;
  padding-block: 16px;
}
@media (min-width: 960px) { .mobile-nav { display: none; } }

.mobile-nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 20px;
  transition: color var(--ease), background var(--ease);
}
.mobile-nav-link:hover { color: var(--white); background: rgba(255,255,255,0.03); }

/* Botões no menu mobile */
.mobile-nav-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 20px 4px;
}

.mobile-nav-loja {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  background: var(--amber);
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ---------------------------------------------------------
   BOTÕES FLUTUANTES — canto inferior direito
   Ordem: [📋 Solicitar Projeto]  [WhatsApp●]
   --------------------------------------------------------- */
.float-buttons {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-projeto {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(254, 0, 0, 0.35);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.float-projeto:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(254, 0, 0, 0.4);
}

@media (max-width: 420px) {
  .float-projeto { padding: 13px; border-radius: 50%; }
  .float-projeto-label { display: none; }
}

.float-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
  flex-shrink: 0;
}
.float-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------
   LOGO — imagem real (substitui o texto quando presente)
   --------------------------------------------------------- */
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-fallback {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 1px;
}
