/*
Theme Name: DIWE Theme
Theme URI: https://diwe.vn
Author: DIWE
Author URI: https://diwe.vn
Description: WordPress theme DIWE
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: diwe-theme
*/

/* ==========================================================================
   Global Site Header (Figma Node 145:305)
   Transparent Header Overlay with Polylang Language Switcher
   ========================================================================== */

.site-header {
  position: relative;
  width: 100%;
  z-index: 100;
}

.site-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.site-header__container {
  width: 100%;
  max-width: 90rem; /* 1440px */
  margin-left: auto;
  margin-right: auto;
  padding: 1rem var(--section, 5.625rem); /* 90px padding on 1440px desktop */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

/* 1. Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-header__logo-link:hover {
  opacity: 0.9;
}

.site-header__logo-img {
  height: 4rem; /* 64px */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* 2. Header Right Tools */
.site-header__right {
  display: flex;
  align-items: center;
  gap: 2rem; /* 32px */
}

/* 3. Polylang Language Switcher (VN | EN) */
.site-header__lang {
  display: flex;
  align-items: center;
}

.site-header__lang .custom-lang-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem; /* 10px */
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.site-header__lang .custom-lang-nav .lang-item {
  font-family: inherit;
  font-size: 1.125rem; /* 18px */
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.25;
  transition: color 0.2s ease, opacity 0.2s ease;
  padding: 0;
  background: transparent;
  display: inline-block;
  width: auto;
  height: auto;
}

.site-header__lang .custom-lang-nav .lang-item:hover {
  color: #cda666;
}

.site-header__lang .custom-lang-nav .lang-item.is-active,
.site-header__lang .custom-lang-nav .lang-item.active {
  color: #cda666; /* Gold brand color from Figma */
  background: transparent;
  cursor: default;
}

.site-header__lang .custom-lang-nav .lang-divider {
  display: inline-block;
  width: 0.0625rem; /* 1px */
  height: 1.0625rem; /* 17px */
  background-color: rgba(255, 255, 255, 0.65);
  margin: 0 0.125rem;
}

/* 4. Search Button */
.site-header__search {
  display: flex;
  align-items: center;
}

.site-header__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  outline: none;
}

.site-header__search-btn:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

.site-header__search-btn svg {
  width: 1.375rem; /* 22px */
  height: 1.375rem; /* 22px */
  display: block;
}

/* 5. Menu Hamburger Button (Circle with 3 lines) */
.site-header__menu {
  display: flex;
  align-items: center;
}

.site-header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; /* 40px */
  height: 2.5rem; /* 40px */
  border-radius: 50%;
  border: 0.0625rem solid #ffffff;
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  outline: none;
}

.site-header__menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.site-header__menu-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Responsive Header (< 768px Mobile)
   ========================================================================== */
@media screen and (max-width: 767.98px) {
  .site-header__container {
    padding: 0.75rem var(--section, 1rem);
  }

  .site-header__logo-img {
    height: 2.75rem; /* 44px */
  }

  .site-header__right {
    gap: 1.125rem; /* 18px */
  }

  .site-header__lang .custom-lang-nav .lang-item {
    font-size: 0.9375rem; /* 15px */
  }

  .site-header__lang .custom-lang-nav .lang-divider {
    height: 0.875rem;
  }

  .site-header__search-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .site-header__menu-btn {
    width: 2.125rem; /* 34px */
    height: 2.125rem; /* 34px */
  }
}
