/**
 * Header moderno e responsivo para CodiFood
 * Utilizando CSS Grid e transform para transições suaves
 */

/* VARIÁVEIS DO HEADER */
:root {
  --header-height: 60px;
  --header-height-scrolled: 50px;
  --header-height-mobile: 50px;
  --header-bg: #fff;
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --primary-color: #ff595f;
  --accent-color: #ff7a7e;
  --text-color: #333;
  --transition-speed: 0.3s;
}

/* HEADER PRINCIPAL */
.site-header {
  background: var(--header-bg);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  box-shadow: var(--header-shadow);
  z-index: 1000;
  transition: height var(--transition-speed) ease,
    background-color var(--transition-speed) ease;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  height: var(--header-height-scrolled);
}

/* Utilizando flexbox para organizar os itens do header */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
  width: 100%;
}

/* LOGO */
.logo-container {
  display: flex;
  align-items: center;
  justify-self: start;
}

.logo {
  display: block;
  text-decoration: none;
  transition: transform var(--transition-speed) ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo img {
  height: auto;
  max-height: 45px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: height var(--transition-speed) ease;
}

.site-header.scrolled .logo img {
  max-height: 38px;
}

/* NAVEGAÇÃO DESKTOP */
.nav-container {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  height: 100%;
  overflow: visible;
}

.main-nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin: 0 2px;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 14px;
  padding: 0 6px;
  height: 100%;
  transition: color var(--transition-speed) ease;
  white-space: nowrap;
}

.nav-link i {
  margin-right: 6px;
  font-size: 14px;
  color: var(--primary-color);
  transition: transform var(--transition-speed) ease;
}

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

.nav-link:hover i {
  transform: translateY(-3px);
}

/* Efeito de sublinhado */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transition: width var(--transition-speed) ease, left var(--transition-speed) ease;
  opacity: 0;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
  left: 50%;
  opacity: 1;
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* BOTÃO CTA */
.header-cta {
  margin-left: 20px;
  display: flex;
  align-items: center;
  justify-self: end;
}

.lang-switcher {
  position: relative;
  margin: 0 14px;
  flex-shrink: 0;
  /* Prevent collapsing */
  z-index: 1002;
}

.lang-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  white-space: nowrap;
  /* Prevent text wrap */
}

/* Fix for LINE Logo */
.line-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  /* Fixed width */
  height: 40px;
  /* Fixed height */
  margin-right: 10px;
  flex-shrink: 0;
}

.line-header-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Critical for aspect ratio */
  display: block;
}

.lang-button::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.lang-button i {
  font-size: 14px;
  color: #f59e0b;
}

.lang-button:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 120px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
  display: none;
  z-index: 1100;
}

.lang-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #0f172a;
  border-left: 1px solid rgba(148, 163, 184, 0.3);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  transform: rotate(45deg);
}

.lang-switcher.open .lang-menu {
  display: block;
}

.lang-switcher:focus-within .lang-menu {
  display: block;
}

.lang-option {
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.lang-option:hover,
.lang-option:focus {
  background-color: rgba(245, 158, 11, 0.15);
  color: #f8fafc;
  outline: none;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 10px rgba(255, 90, 95, 0.25);
  min-width: 160px;
  width: auto;
  white-space: nowrap;
}

.cta-button i {
  margin-right: 8px;
  transition: transform var(--transition-speed) ease;
}

.cta-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 90, 95, 0.35);
}

.cta-button:hover i {
  transform: translateX(-3px);
}

/* BOTÃO HAMBURGER */
.menu-toggle {
  display: none;
  background-color: var(--primary-color);
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 200;
  border-radius: 5px;
  width: 45px;
  height: 45px;
  transition: background-color var(--transition-speed) ease;
}

.menu-toggle:hover {
  background-color: var(--accent-color);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  border-radius: 3px;
  transition: transform var(--transition-speed) ease,
    opacity var(--transition-speed) ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* NAVEGAÇÃO MOBILE */
.mobile-menu {
  position: fixed;
  top: var(--header-height-mobile);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height-mobile));
  background-color: var(--header-bg);
  box-shadow: var(--header-shadow);
  transform: translateX(-100%);
  transition: transform var(--transition-speed) ease;
  z-index: 90;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-container {
  padding: 20px;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-rows: minmax(50px, auto);
  gap: 10px;
}

.mobile-nav-item {
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

.mobile-nav-link i {
  margin-right: 12px;
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: var(--primary-color);
}

.mobile-nav-link:hover,
.mobile-nav-link:active,
.mobile-nav-link:focus {
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--primary-color);
}

.mobile-nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.02);
}

.mobile-cta {
  margin: 20px 0;
}

.mobile-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  transition: background-color var(--transition-speed) ease;
  min-width: 200px;
  white-space: nowrap;
}

.mobile-cta-button i {
  margin-right: 10px;
}

/* OVERLAY */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease,
    visibility var(--transition-speed) ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Evitar rolagem quando o menu está aberto */
body.menu-open {
  overflow: hidden;
}

/* RESPONSIVIDADE */
@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }

  /* Garantir que o header tenha altura fixa */
  .site-header {
    height: var(--header-height);
    min-height: unset;
    max-height: unset;
    padding: 0;
  }

  .header-container {
    flex-wrap: nowrap;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 1300px) and (min-width: 1024px) {

  /* Remover layout de duas linhas */
  .nav-container {
    order: unset;
    width: auto;
    justify-content: center;
    margin-top: 0;
    height: 100%;
  }

  .main-nav {
    height: 100%;
  }

  .nav-menu {
    justify-content: center;
    padding: 0;
    height: 100%;
  }

  .nav-link {
    height: 100%;
    padding: 0 5px;
    font-size: 12px;
  }

  .logo-container {
    order: unset;
    flex: unset;
  }

  .header-cta {
    order: unset;
    margin-left: 10px;
  }
}

@media (max-width: 1230px) and (min-width: 1024px) {
  .nav-link {
    padding: 0 4px;
    font-size: 12px;
  }

  .nav-link i {
    margin-right: 3px;
    font-size: 13px;
  }

  .cta-button {
    padding: 6px 15px;
    font-size: 13px;
    min-width: 140px;
  }

  .nav-menu {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .logo img {
    max-height: 40px;
  }
}

@media (max-width: 1120px) and (min-width: 1024px) {
  .nav-link {
    font-size: 11px;
    padding: 0 3px;
  }

  .header-cta {
    margin-left: 5px;
  }

  .cta-button {
    padding: 6px 12px;
    font-size: 11px;
    min-width: 130px;
  }

  .nav-link i {
    margin-right: 2px;
    font-size: 11px;
  }

  .logo img {
    max-height: 35px;
  }
}

@media (max-width: 1023px) {
  .site-header {
    height: var(--header-height-mobile);
    position: fixed;
  }

  .header-container {
    padding: 0 16px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
  }

  .logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Allows clicking through if transparency overlaps, though logo link needs ptr events */
  }

  .logo {
    pointer-events: auto;
  }

  .nav-container {
    display: none;
  }

  .header-cta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    order: 3;
    z-index: 101;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    padding-right: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    order: 1;
    margin-right: 0;
  }

  /* Mobile Menu Position */
  .mobile-menu {
    display: block;
    top: var(--header-height-mobile);
    height: calc(100vh - var(--header-height-mobile));
    transform: translateX(-100%);
  }

  .mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-cta-group .lang-switcher {
    margin: 12px 0;
  }

  .mobile-cta-group .lang-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-cta-button {
    display: flex;
  }

  .header-cta .cta-button {
    display: none;
  }

  .header-cta .simple-lang-selector {
    margin: 0 4px;
  }

  .line-header-icon {
    width: 35px;
    /* Smaller for mobile */
    height: 35px;
    margin-right: 0;
  }

  .line-header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .lang-switcher {
    margin: 0;
    /* Override desktop margin */
  }

  .lang-button {
    padding: 4px 8px;
    font-size: 11px;
  }

  .lang-current {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 767px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  .logo img {
    max-height: 35px;
    max-width: 150px;
  }

  .mobile-menu-container {
    padding: 15px;
  }

  .mobile-nav-link {
    padding: 15px;
  }

  .mobile-cta-button {
    padding: 16px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 250px;
  }

  .menu-toggle span {
    width: 22px;
    height: 2px;
  }
}

/* Ajuste para o conteúdo principal ter o espaço adequado abaixo do header */
#main-content {
  padding-top: var(--header-height);
  transition: opacity var(--transition-speed) ease;
}

/* TRANSIÇÕES AJAX E ANIMAÇÕES */
body.page-transitioning .site-header,
.site-header[data-transitioning="true"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  display: flex;
}

body.page-transitioning {
  overflow-x: hidden;
}

/* Garantir que o cabeçalho nunca desapareça, mesmo durante carregamentos */
@keyframes preserve-header {

  0%,
  100% {
    opacity: 1;
    visibility: visible;
  }
}

.site-header {
  animation: preserve-header 0.1s linear infinite;
}

#main-content {
  transition: opacity var(--transition-speed) ease;
}

/* Estilos de transição para links ativos no menu */
.nav-link.active,
.mobile-nav-link.active {
  position: relative;
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  opacity: 1;
  transform: translateX(-50%);
}

/* Ajustar espaçamento nas telas maiores */
@media (min-width: 1200px) {
  .nav-link {
    padding: 0 12px;
    font-size: 15px;
  }

  .nav-link i {
    margin-right: 8px;
    font-size: 16px;
  }
}

/* Classe específica para garantir que o header não desapareça durante navegação */
.header-preserved {
  opacity: 1;
  visibility: visible;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1500;
  /* Z-index aumentado para garantir que fique sobre tudo */
}

/* LINE HEADER ICON */
.line-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #00B900;
  color: white;
  border-radius: 50%;
  margin-right: 15px;
  font-size: 20px;
  text-decoration: none;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  box-shadow: 0 2px 5px rgba(0, 185, 0, 0.2);
  flex-shrink: 0;
}

.line-header-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 185, 0, 0.4);
}

/* Ajuste no container CTA para alinhar itens */
.header-cta {
  display: flex;
  align-items: center;
}

/* LINE MOBILE ICON */
.mobile-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #00B900;
  color: white;
  border-radius: 8px;
  font-size: 24px;
  text-decoration: none;
  margin-right: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 185, 0, 0.2);
}

/* Ajuste no container CTA Mobile */
.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px 20px 20px;
}

.mobile-cta-button {
  margin-left: 0;
  margin-right: 0;
  width: auto;
  flex: 1;
}

/* REFINAMENTO LINE ICON */
.line-header-icon,
.mobile-line-icon {
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: none;
}

.line-header-icon img,
.mobile-line-icon img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(0, 185, 0, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.line-header-icon:hover img,
.mobile-line-icon:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(0, 185, 0, 0.5));
}

/* CORREÇÃO LAYOUT MOBILE */
.mobile-cta-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  width: 100%;
}

.mobile-line-icon {
  width: 52px;
  height: 52px;
  margin: 0;
}

.mobile-cta-button {
  flex: 0 0 auto;
  flex-basis: 100%;
  margin: 6px auto 0;
  max-width: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FORCE VISIBILITY FOR MOBILE CTA ELMENTS */
@media (max-width: 1023px) {
  .mobile-cta {
    display: flex;
    width: 100%;
    padding: 10px 0;
    opacity: 1;
    visibility: visible;
  }

  .mobile-cta-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    width: 100%;
    opacity: 1;
    visibility: visible;
  }

  .mobile-line-icon {
    display: flex;
    width: 45px;
    height: 45px;
    position: relative;
    opacity: 1;
    visibility: visible;
    margin: 0;
  }

  .mobile-line-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  /* Ensure specific visibility with high specificity */
  body .site-header .mobile-cta,
  body .site-header .mobile-cta-group {
    display: flex;
    opacity: 1;
    visibility: visible;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
    /* Spacing */
  }

  .mobile-cta .lang-switcher {
    display: block;
    margin: 0;
  }

  .mobile-cta .lang-button {
    display: inline-flex;
    opacity: 1;
    visibility: visible;
  }
}

/* NEW SIMPLE LANG SELECTOR STYLES */
.simple-lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 10px;
  z-index: 1005;
}

.simple-lang-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.simple-lang-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

.simple-lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  display: none;
  /* simple hover show */
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 60px;
}

/* Show only when JS adds .show or when focused */
.simple-lang-selector.show .simple-lang-dropdown {
  display: flex;
}

.simple-lang-dropdown span {
  padding: 8px 12px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  color: #333;
  transition: color 0.2s;
}

.simple-lang-dropdown span:hover {
  color: var(--primary-color);
  background: #f9f9f9;
}

/* MOBILE FIXES */
@media (max-width: 1023px) {

  /* RESET FORCE BLOCK IF NEEDED OR OVERRIDE */
  .mobile-line-icon {
    width: 40px;
    /* FIXED SIZE */
    height: 40px;
    flex: 0 0 40px;
    /* NO FLEX GROW */
    margin-right: 15px;
  }

  .mobile-line-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* REMOVED 100% width on container context */
  }

  .simple-lang-selector.mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

  .simple-lang-selector.mobile .mobile-lang-opt {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 5px;
  }

  .simple-lang-selector.mobile .mobile-lang-opt:hover {
    color: var(--primary-color);
  }

  .simple-lang-selector.mobile .separator {
    color: #ccc;
  }
}

/* === Canonical Header Layout (Refactor 2026-01-25) === */
@media (max-width: 1023px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  .header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    height: 100%;
  }

  .menu-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .logo {
    pointer-events: auto;
  }

  .header-cta {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
  }

  .header-cta .cta-button {
    display: none;
  }

  .header-cta .simple-lang-selector {
    margin: 0;
  }

  .line-header-icon {
    width: 34px;
    height: 34px;
    margin: 0;
  }

  .line-header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-cta {
    padding: 12px 0;
  }

  .mobile-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .simple-lang-selector.mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

  .mobile-cta-button {
    display: flex;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    justify-content: center;
  }
}
