/* Layout e Grid System */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--verde-escuro);
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 45px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: var(--space-xl);
}

.header__nav-link {
  color: var(--off-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 0;
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--rose-gold);
  transition: width var(--transition-fast);
}

.header__nav-link:hover::after,
.header__nav-item:hover > .header__nav-link::after {
  width: 100%;
}

.header__nav-item {
  position: relative;
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--branco);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.header__nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--texto);
  font-size: 0.875rem;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--rose-gold-light);
  color: var(--rose-gold);
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 36px;
  color: var(--off-white);
  font-size: 0.875rem;
  width: 200px;
  transition: all var(--transition-fast);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--rose-gold);
  width: 240px;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--branco);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 101;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--cinza-claro);
  color: var(--texto);
}

.search-result-item:hover {
  background: var(--cinza-bg);
}

.search-result-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

/* Mobile Menu Button */
.mobile-toggle {
  display: none;
  color: var(--branco);
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--verde-escuro);
  color: var(--off-white);
  padding: var(--space-4xl) 0 var(--space-lg);
  margin-top: var(--space-4xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer__title {
  font-family: var(--font-display);
  color: var(--rose-gold);
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.footer__links li {
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer__links a:hover {
  color: var(--rose-gold);
  padding-left: 5px;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--branco);
  transition: all var(--transition-fast);
}

.footer__social a:hover {
  background-color: var(--rose-gold);
  transform: translateY(-3px);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Main Content Area */
.main-content {
  min-height: calc(100vh - var(--header-height) - 400px);
  padding-top: var(--header-height);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--rose-gold);
  color: var(--branco);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-fast);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: var(--rose-gold-hover);
  animation: none;
}

/* Responsive Layouts */
@media (max-width: 1024px) {
  .header__nav {
    display: none; /* Hide desktop nav */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    height: var(--header-height-mobile);
  }
  
  .main-content {
    padding-top: var(--header-height-mobile);
  }
  
  .search-input {
    width: 150px;
  }
  .search-input:focus {
    width: 180px;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}
