/* ============================================
   NAVIGATION - Google About Style
   White header always, blue accents, no uppercase,
   pill buttons, clean sans-serif
   ============================================ */

/* === HEADER === */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.header.header--scrolled {
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
}

/* On hero: still white since hero is white now */
.header--on-hero {
  background: var(--color-white);
  border-bottom-color: var(--color-border-light);
}

.header--on-hero .header__nav-link,
.header--on-hero .nav__link {
  color: var(--color-text-secondary);
}

.header--on-hero .header__logo-icon {
  height: 40px;
}

/* Scrolled: same as default */
.header--on-hero.header--scrolled {
  background: var(--color-white);
  border-bottom-color: var(--color-border-light);
}

.header--on-hero.header--scrolled .header__nav-link,
.header--on-hero.header--scrolled .nav__link {
  color: var(--color-text-secondary);
}

.header--on-hero.header--scrolled .header__logo-icon {
  height: 40px;
}

/* Lang switcher — always dark */
.header--on-hero .lang-btn {
  color: var(--color-text-muted);
}

.header--on-hero .lang-btn.active {
  color: var(--color-text-primary);
}

.header--on-hero .lang-divider {
  color: var(--color-text-muted);
}

.header--on-hero.header--scrolled .lang-btn {
  color: var(--color-text-muted);
}

.header--on-hero.header--scrolled .lang-btn.active {
  color: var(--color-text-primary);
}

.header--on-hero.header--scrolled .lang-divider {
  color: var(--color-text-muted);
}

/* === HEADER INNER === */

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-xl);
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* === LOGO === */

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}

.header__logo-icon {
  height: 40px;
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
  object-fit: contain;
}

/* === NAV LINKS === */

.header__nav,
.nav {
  display: none;
  align-items: center;
  gap: 0;
}

@media (min-width: 1024px) {
  .header__nav,
  .nav {
    display: flex;
  }
}

.header__nav-link,
.nav__link {
  font-family: var(--font-nav);
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-secondary);
  padding: 22px 16px;
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header__nav-link:hover,
.nav__link:hover {
  color: var(--color-accent);
}

/* Active state: blue bottom border */
.header__nav-link.active,
.nav__link.active {
  color: var(--color-accent);
}

.header__nav-link.active::after,
.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px 3px 0 0;
}

/* === HEADER ACTIONS === */

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

/* Search icon button */
.header__search-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
  border-radius: var(--radius-full);
}

.header__search-btn:hover {
  color: var(--color-accent);
  background: var(--color-bg-blue);
}

.header__search-btn svg {
  width: 20px;
  height: 20px;
}

/* === LANG SWITCHER === */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  color: var(--color-text-muted);
  padding: 4px 6px;
  position: relative;
  transition: color var(--duration-fast);
  border-radius: var(--radius-sm);
}

.lang-btn.active {
  color: var(--color-text-primary);
}

.lang-btn:hover {
  color: var(--color-accent);
  background: var(--color-bg-blue);
}

.lang-divider {
  color: var(--color-text-muted);
  user-select: none;
}

/* === MOBILE MENU TOGGLE === */

.header__menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
}

.header__menu-btn:hover {
  background: var(--color-bg-secondary);
}

@media (min-width: 1024px) {
  .header__menu-btn {
    display: none;
  }
}

.header__menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--duration-base) var(--ease-out);
  border-radius: 1px;
}

.header__menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === MOBILE NAV PANEL === */

.mobile-nav,
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: var(--z-overlay);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.mobile-nav__links {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav__link,
.mobile-menu__link {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-primary);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: color var(--duration-fast);
  text-decoration: none;
}

.mobile-nav__link:hover,
.mobile-menu__link:hover {
  color: var(--color-accent);
}

/* Mobile lang switcher */
.mobile-nav__lang {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

/* Mobile menu inner layout */
.mobile-menu {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
}

.mobile-menu__footer {
  padding-top: var(--space-lg);
}

/* === NAV ACTIONS (right side) === */

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Contact button: filled blue pill for maximum visibility */
.nav__actions .btn--ghost {
  padding: 10px 22px;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  border-radius: var(--radius-full);
  color: var(--color-white);
  border-color: var(--color-accent);
  background: var(--color-accent);
  transition: all var(--duration-base) var(--ease-out);
}

.nav__actions .btn--ghost:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
}

/* On hero: same filled blue */
.header--on-hero .nav__actions .btn--ghost {
  color: var(--color-white);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.header--on-hero .nav__actions .btn--ghost:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

/* Scrolled: same */
.header--on-hero.header--scrolled .btn--ghost,
.header--on-hero.header--scrolled .nav__actions .btn--ghost {
  color: var(--color-white);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.header--on-hero.header--scrolled .btn--ghost:hover,
.header--on-hero.header--scrolled .nav__actions .btn--ghost:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

/* === HAMBURGER (actual HTML class) === */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-full);
}

.hamburger:hover {
  background: var(--color-bg-secondary);
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger__line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--duration-base) var(--ease-out);
  border-radius: 1px;
}

/* No white hamburger needed — hero is always white */
.header--on-hero .hamburger__line {
  background: var(--color-text-primary);
}

.header--on-hero.header--scrolled .hamburger__line {
  background: var(--color-text-primary);
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
