/* Lendora Services - Header & Navigation CSS */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-200);
  z-index: 1000;
  transition: all var(--transition-normal);
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy-900);
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-emerald-500));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.logo-text span {
  color: var(--color-primary-600);
}

/* Nav Menu Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-slate-700);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary-600);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background-color: var(--color-slate-100);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-slate-800);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.lang-btn:hover {
  background-color: var(--color-slate-200);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 170px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1010;
}

.lang-dropdown.active {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  color: var(--color-slate-700);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.lang-option:hover {
  background-color: var(--color-slate-100);
  color: var(--color-primary-600);
}

.lang-option.selected {
  font-weight: 700;
  color: var(--color-primary-600);
  background-color: var(--color-primary-50);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-navy-900);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-xl);
  z-index: 1050;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-slate-600);
  cursor: pointer;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  list-style: none;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy-900);
  display: block;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  display: none;
}

.overlay.active {
  display: block;
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .header-actions .btn-header-cta {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* ===== Nav Dropdown (Condições) ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.7em;
  margin-left: 0.15rem;
  transition: transform var(--transition-fast);
}

.nav-dropdown.active .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 1020;
  list-style: none;
}

.nav-dropdown.active .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-link {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-slate-700);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav-dropdown-link:hover {
  background-color: var(--color-primary-50);
  color: var(--color-primary-600);
}

/* Mobile drawer: Condições divider & section title */
.mobile-nav-divider {
  height: 1px;
  background-color: var(--color-slate-200);
  margin: 0.5rem 0;
  list-style: none;
}

.mobile-nav-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate-500);
  padding-bottom: 0.25rem;
  list-style: none;
}
