﻿/* HEADER - LINHAGRO - ADAPTADO NO MODELO DA LITHOPLANT */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none !important;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.header.header-overlay {
  background-color: #274433;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.75rem;
  max-width: 1360px;
  margin: 0 auto;
  gap: 1.75rem;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 1.75rem;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-img.mobile-logo {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 400;
  font-size: 14px;
  padding: 0.58rem 0.95rem;
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.2px;
  line-height: 1;
  border-radius: 999px;
  transition:
    color 0.28s ease,
    background-color 0.28s ease,
    transform 0.22s ease,
    box-shadow 0.28s ease;
}

.nav-link:hover {
  background-color: #ff5500;
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-link.active,
.nav-link.is-selected {
  background-color: #ff5500;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(255, 85, 0, 0.24);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.btn {
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn i {
  font-size: 16px;
}

.btn-portal {
  background: #000000;
  color: #ffffff;
  border: 2px solid #ff5500;
}

.btn-portal::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transition: left 0.6s ease;
}

.btn-portal:hover::before {
  left: 100%;
}

.btn-portal:hover {
  background: #222222;
  border-color: #ff5500;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.social-link.social-header {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  margin-left: 0.2rem;
  background-color: transparent;
  box-shadow: none;
  transition:
    background-color 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    transform 0.22s ease;
}

.social-link.social-header:hover {
  background-color: #ff5500;
  color: #ffffff;
  border-color: #ff5500;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #f5f5f5;
  padding: 0;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1002;
  border-radius: 12px;
  transition:
    transform 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease;
}

.mobile-toggle i {
  transition: transform 0.32s ease, opacity 0.26s ease;
}

.mobile-toggle.active {
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.mobile-toggle.active i {
  transform: rotate(90deg) scale(1.04);
}

.mobile-toggle:active {
  transform: scale(0.96);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 1150px) {
  .navbar {
    padding: 0.65rem 1.25rem;
    gap: 1.1rem;
    max-width: 100%;
  }

  .logo-img {
    height: 48px;
  }

  .nav-link {
    font-size: 13px;
    padding: 0.52rem 0.82rem;
  }

  .btn-portal span {
    display: none;
  }

  .btn-portal {
    padding: 0.55rem;
    border-radius: 50%;
  }
}

@media (max-width: 768px) {
  .header {
    transform: translateY(0) !important;
    background: linear-gradient(135deg, #274433 0%, #1c2f24 100%);
  }

  .header.header-overlay {
    background: linear-gradient(135deg, #274433 0%, #1c2f24 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  }

  .navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    padding: 0.8rem 1rem;
    gap: 0.75rem;
    min-height: 68px;
  }

  .logo {
    grid-column: 1;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: none;
    overflow: hidden;
  }

  .logo a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }

  .logo-img.desktop-logo {
    display: none;
  }

  .logo-img.mobile-logo {
    display: block;
    height: 40px;
    width: 40px;
    max-width: 40px;
    object-fit: contain;
    margin: 0;
  }

  .nav-actions {
    display: none !important;
  }

  .mobile-toggle {
    grid-column: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    width: 44px;
    height: 44px;
    padding: 0;
    justify-self: end;
    align-self: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(84vw, 340px);
    height: 100vh;
    padding: 5.5rem 1.35rem 2rem 1.35rem;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    background: linear-gradient(180deg, #274433 0%, #1c2f24 100%);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1001;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: none;
    margin: 0;
    flex: none;
    min-width: 0;
    box-shadow: -18px 0 48px rgba(0, 0, 0, 0.28);
  }

  .nav-menu.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.95rem 1rem;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    color: #ffffff;
    border-radius: 14px;
    border-bottom: none;
    white-space: normal;
    letter-spacing: 0.15px;
  }

  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
  }

  .nav-link.active,
  .nav-link.is-selected {
    background-color: #ff5500;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(255, 85, 0, 0.24);
  }
}