/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  overflow-x: hidden;
}


/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #0d0d0d;
  padding: 0 3rem;
  z-index: 10;
  transition: all 0.3s ease;
}

.header.scrolled {
  backdrop-filter: blur(10px);
  background-color: rgba(18, 26, 31, 0.8);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #f5f5f5;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-line {
  width: 100%;
  height: 4px;
  background-color: #e85107;
  margin: 0.3rem 0;
}

.logo-subtext {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: #e85107;
  letter-spacing: 1px;
  line-height: 1;
  margin-top: 0.2rem;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-image {
  height: auto;
  max-height: 90px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo:hover .logo-image {
  transform: scale(1.05);
}


.nav {
  margin-left: auto;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem 0.3rem 0.6rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: #e85107;
  background-color: transparent;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #e85107;
  transition: all 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: calc(100% - 1.2rem);
}

.btn-header {
  background: white;
  color: #0e141b;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header:hover {
  background-color: #e85107;
  color: #0e141b;
}

.btn-header .btn-icon {
  transition: transform 0.3s ease;
}

.btn-header:hover .btn-icon {
  transform: translateX(3px);
}

/* HEADER BUTTONS */
.header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

/* MENU TOGGLE (hambúrguer) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animação de entrada dos botões */
.btn-auth {
  animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateX(30px);
}

.btn-auth:nth-child(1) {
  animation-delay: 0.1s;
}

.btn-auth:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes slideInFromRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.btn-auth {
  background: white;
  color: #0e141b;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: fit-content;
  width: auto;
  transform: translateY(0);
}

.btn-auth:hover {
  background-color: #e85107;
  color: #000;
  transform: translateY(-2px);
  z-index: 10;
}

.btn-text-short {
  display: inline;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  opacity: 1;
  width: auto;
  transform: translateX(0);
}

.btn-text-full {
  display: none;
  white-space: nowrap;
  opacity: 0;
  width: auto;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-auth:hover .btn-text-short {
  opacity: 0;
  transform: translateX(-10px);
  width: 0;
  overflow: hidden;
}

.btn-auth:hover .btn-text-full {
  display: inline;
  opacity: 1;
  transform: translateX(0);
}

.btn-arrow {
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
}

.btn-auth:hover .btn-arrow {
  transform: translateY(-2px) translateX(2px) rotate(45deg);
}

/* Efeito ripple no clique */
.btn-auth::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.btn-auth:active::before {
  width: 300px;
  height: 300px;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/img-backgroud.avif');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.3) 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  flex: 1 1 520px;
  min-width: 0;
  max-width: 795px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  padding-top: clamp(50px, 8vw, 80px);
}

.hero-specialist {
  position: relative;
  top: clamp(0rem, 4vw, 9rem);
  z-index: 3;
  margin-left: auto;
  margin-right: clamp(1.25rem, 4vw, 4rem);
  width: clamp(280px, 28vw, 360px);
  flex-shrink: 0;
  background: rgba(8, 8, 8, 0.88);
  border-radius: 16px;
  padding: 1.85rem 1.6rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-specialist-title {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.4rem 0;
}

.hero-specialist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.hero-specialist-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero-specialist-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 81, 7, 0.16);
  color: #e85107;
}

.hero-specialist-icon svg {
  width: 19px;
  height: 19px;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 179, 71, 0.28) 0%,
    rgba(255, 122, 24, 0.22) 50%,
    rgba(232, 81, 7, 0.28) 100%
  );
  border: none;
  border-radius: 50px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 32px rgba(232, 81, 7, 0.25);
}

.hero-subtitle > span {
  background: linear-gradient(135deg, #ffb347 0%, #ff7a18 50%, #e85107 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 122, 24, 0.5));
}

.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-content h1 > span {
  display: block;
}

.hero-content h1 .hero-title-highlight {
  color: #e85107;
  font-weight: 900;
  font-size: 1.18em;
  line-height: 1;
}

.hero-description {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  margin-top: -1rem;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  max-width: 720px;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232, 81, 7, 0.18);
  color: #e85107;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-benefit-icon svg {
  width: 20px;
  height: 20px;
}

.btn-main {
  background-color: #e85107;
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn-main-icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero - animação de subir vir de baixo para cima */
.hero-content > .hero-subtitle,
.hero-content > h1,
.hero-content > .hero-description,
.hero-content > .hero-benefits,
.hero-content > .hero-actions {
  opacity: 0;
  transform: translateY(40px);
  animation: heroRise 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.hero-content > .hero-subtitle    { animation-delay: 0.1s; }
.hero-content > h1                { animation-delay: 0.25s; }
.hero-content > .hero-description { animation-delay: 0.4s; }
.hero-content > .hero-benefits    { animation-delay: 0.55s; }
.hero-content > .hero-actions     { animation-delay: 0.7s; }

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero specialist - animação de subir vir de baixo para cima */
.hero-specialist {
  opacity: 0;
  transform: translateY(40px);
  animation: heroRise 0.9s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  animation-delay: 0.3s;
}

.btn-secondary {
  background-color: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: calc(1rem - 2px) 2.5rem;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  border: 2px solid #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

.btn-main:hover {
  background-color: #ff6a1a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232, 81, 7, 0.4);
}

.btn-main .btn-icon {
  transition: transform 0.3s ease;
}

.btn-main:hover .btn-icon {
  transform: translateX(3px);
}

/* DECORAÇÃO SVG */
.hero-decor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 4;
  pointer-events: none;
}

.hero-decor img {
  width: 100%;
  display: block;
  transform: translateY(1px);
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #0d0d0d;
  box-shadow: -6px 0 24px rgba(0,0,0,0.4);
  transform: translateX(100%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0 1rem 2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0d0d0d;
  margin: 0 -1rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-close {
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.sidebar-close .bar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sidebar-close .bar-1 { transform: translate(-50%, -50%) rotate(45deg); }
.sidebar-close .bar-2 { transform: translate(-50%, -50%) rotate(-45deg); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}
.sidebar-nav a {
  color: white;
  text-decoration: none;
  padding: 0.8rem 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.sidebar-nav a.active { color: #e85107; }

.sidebar-actions {
  margin-top: auto;
  display: grid;
  gap: 0.6rem;
}
.sidebar-actions .btn-auth {
  width: 100%;
  justify-content: center;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
}

body.sidebar-open .sidebar {
  transform: translateX(0%);
  opacity: 1;
}
body.sidebar-open .sidebar-overlay {
  opacity: 1;
  visibility: visible;
}
html.sidebar-open,
body.sidebar-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
  .nav { display: none; }
  .header-buttons { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1200px) {
  .hero-content {
    flex: 1 1 100%;
    max-width: 100%;
    padding-top: clamp(110px, 16vw, 140px);
  }

  .hero-specialist {
    top: 0;
    margin-left: clamp(1.25rem, 4vw, 4rem);
    margin-right: clamp(1.25rem, 4vw, 4rem);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    width: auto;
    max-width: 560px;
  }

  .hero-section {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-bottom: 2rem;
  }
}

@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .header-buttons {
    gap: 0.5rem;
    display: none;
  }

  .btn-auth {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .btn-auth:hover {
    transform: translateY(-1px);
  }

  .btn-arrow {
    width: 10px;
    height: 10px;
  }

  .hero-section {
    min-height: 90vh;
    min-height: 90svh;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
  }

  .btn-main {
    padding: 0.875rem 2rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 2rem;
  }

  .header .container {
    gap: 1rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-subtext {
    font-size: 0.7rem;
  }

  .header-buttons {
    flex-direction: column;
    gap: 0.5rem;
    display: none;
  }

  .btn-auth {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .btn-auth:hover {
    transform: translateY(-1px);
  }

  .btn-text-full {
    font-size: 0.75rem;
  }

  .hero-section {
    min-height: 85vh;
    min-height: 85svh;
  }

  .hero-content {
    padding: 0 1.75rem;
    padding-top: 160px;
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 7vw, 3rem);
    line-height: 1.15;
  }

  .hero-section {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 3rem;
  }

  .hero-specialist {
    margin: 1.5rem 1.75rem 0;
    width: auto;
    max-width: none;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .hero-benefit {
    font-size: 0.88rem;
  }

  .btn-main {
    padding: 0.875rem 1.75rem;
    font-size: 0.9rem;
  }

  .btn-secondary {
    padding: calc(0.875rem - 2px) 1.75rem;
    font-size: 0.9rem;
  }

  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.7) 50%,
      rgba(0, 0, 0, 0.4) 100%
    );
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.75rem 1.25rem;
  }

  .hero-section {
    min-height: 80vh;
    min-height: 80svh;
  }

  .hero-content {
    padding: 0 1.25rem;
    padding-top: 160px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.25rem);
    margin-bottom: 2rem;
  }

  .hero-specialist {
    margin: 1.25rem 1.25rem 0;
    padding: 1.5rem 1.25rem;
  }

  .hero-specialist-title {
    font-size: 1.1rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-main {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: calc(1rem - 2px) 1.5rem;
  }

}

@media (max-width: 360px) {
  .hero-content {
    padding: 0 1rem;
    padding-top: 160px;
  }

  .hero-content h1 {
    font-size: clamp(1.4rem, 8vw, 1.75rem);
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0.45rem 0.9rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-benefit {
    font-size: 0.85rem;
  }

  .hero-benefit-icon {
    width: 32px;
    height: 32px;
  }

  .hero-benefit-icon svg {
    width: 16px;
    height: 16px;
  }

  .hero-specialist {
    margin: 1rem 1rem 0;
    padding: 1.25rem 1rem;
  }

  .btn-main,
  .btn-secondary {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}

/* Esconder seta quando o botão estiver expandido */
.header-buttons .btn-auth.is-open .btn-arrow {
  display: none;
}

/* HEADER LANGUAGE SELECTOR */
.header-language {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.header-lang-toggle.active {
  background: rgba(232, 81, 7, 0.3);
  border-color: #e85107;
}

/* Flag Icons Library - Header Language Toggle */
.header-lang-toggle .current-flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Flag Icons Library - Dropdown */
.header-lang-dropdown .flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.header-lang-dropdown {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  background: rgba(26, 26, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  left: 0rem;
  right: auto;
}

.header-lang-dropdown li {
  margin: 0;
  padding: 0;
}

.header-lang-dropdown .language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.header-lang-dropdown .language-option:hover {
  background: rgba(232, 81, 7, 0.15);
  color: #fff;
}

.header-lang-dropdown .language-option.active {
  background: rgba(232, 81, 7, 0.25);
  color: #e85107;
  font-weight: 600;
}

.header-lang-dropdown .flag-icon {
  flex-shrink: 0;
  border-radius: 2px;
}

.header-lang-dropdown .lang-name {
  flex: 1;
}

/* LANGUAGE BUTTONS */
.header .language-buttons {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-btn.active {
  border-color: #e85107;
}

.lang-btn .flag-icon {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
}

/* Hide language buttons in header on smaller screens, show in sidebar */
@media (max-width: 1400px) {
  .header .language-buttons {
    display: none;
  }
}

/* HEADER LANGUAGE DROPDOWN — menu de bandeira + nome, abre no hover ou clique */
@media (min-width: 1401px) {
  .header .header-language {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0;
  }

  .header .header-language .header-lang-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
  }

  .header .header-language .header-lang-toggle:hover {
    border-color: #e85107;
    background: transparent;
    transform: none;
  }

  .header .header-language .header-lang-toggle .current-flag,
  .header .header-language .header-lang-toggle .flag-icon {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  /* Abre no hover do container ou quando dropdown tem .active */
  .header .header-language:hover .header-lang-dropdown,
  .header .header-language:focus-within .header-lang-dropdown,
  .header .header-language .header-lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Sidebar language buttons */
.sidebar-language .language-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.sidebar-language .lang-btn {
  width: 40px;
  height: 40px;
}

.sidebar-language .lang-btn .flag-icon {
  width: 24px;
  height: 24px;
}

/* LANGUAGE SELECTOR (legacy) */
.language-selector {
  position: relative;
  display: table-caption;
  align-items: center;
}

.language-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.language-toggle svg {
  transition: transform 0.3s ease;
}

.language-toggle.active svg {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown li {
  margin: 0;
  padding: 0;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.language-option:hover {
  background: rgba(232, 81, 7, 0.1);
}

.language-option.active {
  background: rgba(232, 81, 7, 0.2);
  color: #e85107;
}

.language-option .flag {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.language-option .lang-name {
  flex: 1;
}

/* SIDEBAR LANGUAGE SELECTOR */
.sidebar-language {
  width: 100%;
  margin: 0.5rem 0;
}

.sidebar-language .language-selector {
  width: 100%;
  height: 60px;
}

.sidebar-lang-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.sidebar-lang-toggle.active {
  background: rgba(232, 81, 7, 0.15);
  border-color: #e85107;
}

.sidebar-lang-toggle .current-flag-sidebar {
  width: 24px;
  height: 18px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.sidebar-lang-toggle .current-lang {
  flex: 1;
  text-align: left;
}

.sidebar-lang-toggle .dropdown-arrow {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sidebar-lang-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.sidebar-language .language-dropdown {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  margin-top: 0.5rem;
  background: rgba(26, 26, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.sidebar-language .language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sidebar-language .language-dropdown li {
  margin: 0;
  padding: 0;
}

.sidebar-language .language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sidebar-language .language-option:hover {
  background: rgba(232, 81, 7, 0.15);
  color: #fff;
}

.sidebar-language .language-option.active {
  background: rgba(232, 81, 7, 0.25);
  color: #e85107;
  font-weight: 600;
}

.sidebar-language .language-option .flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.sidebar-language .language-option .lang-name {
  flex: 1;
}

/* RESPONSIVE - Hide header language selector on smaller screens */
@media (max-width: 1400px) {
  .header-language {
    display: none;
  }
}

/* NAV DROPDOWN — submenu de Produtos no header desktop */
.nav .nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav .nav-dropdown > a {
  display: inline-block;
}

.nav .nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: rgba(26, 26, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 0;
  margin-top: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
  pointer-events: none;
}

.nav .nav-dropdown:focus-within .nav-dropdown-menu,
.nav .nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  pointer-events: auto;
}

.nav .nav-dropdown > a .caret {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.nav .nav-dropdown:hover > a .caret,
.nav .nav-dropdown:focus-within > a .caret,
.nav .nav-dropdown.open > a .caret {
  transform: rotate(180deg);
}

.nav .nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav .nav-dropdown-menu a:hover {
  color: #ffffff;
  background: rgba(232, 81, 7, 0.15);
}

.nav .nav-dropdown-menu a.active {
  color: #e85107;
  background: rgba(232, 81, 7, 0.25);
  font-weight: 600;
}

.nav .nav-dropdown-menu a::after,
.nav .nav-dropdown-menu a:hover::after {
  display: none;
  width: 0;
}

.nav .nav-dropdown-menu hr {
  margin: 4px 12px;
  border: 0;
  border-top: 1px solid #eaeaea;
}

/* SIDEBAR SUBNAV — submenu de Produtos no menu mobile (colapsável) */
.sidebar-nav .sidebar-subnav {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  margin: 0 0 0.4rem 0.4rem;
}

.sidebar-nav .sidebar-subnav.open {
  display: flex;
}

.sidebar-nav .sidebar-subnav a {
  font-size: 0.9rem;
  padding: 0.45rem 0.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.sidebar-nav .sidebar-subnav a:hover,
.sidebar-nav .sidebar-subnav a.active {
  color: #e85107;
}

.sidebar-nav .sidebar-subnav a.active {
  font-weight: 600;
}

/* Toggle button para o submenu de produtos no sidebar */
.sidebar-nav .sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.8rem 0.4rem;
  background: none;
  border: none;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.sidebar-nav .sidebar-toggle:hover,
.sidebar-nav .sidebar-toggle.active {
  color: #e85107;
}

.sidebar-nav .sidebar-toggle .caret {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.sidebar-nav .sidebar-toggle.open .caret {
  transform: rotate(180deg);
}

