/**
 * header.css
 * Стили хедера. Подключается через wp_enqueue_style() в functions.php,
 * с зависимостью от agency-fonts (см. functions.php).
 */

.vh-header *, .vh-header *::before, .vh-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.vh-header {
  background: #F5F0EA;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
  font-family: 'Raleway', sans-serif;
  width: 100%;
  position: relative;
  z-index: 100;
}

.vh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

/* LOGO */
.vh-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.vh-logo-img {
  height: 84px;
  width: auto;
  display: block;
}

.vh-logo-fallback {
  height: 44px;
  width: 44px;
  border: 1px solid rgba(139,115,85,0.3);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: #8B7355;
}

/* NAV */
.vh-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex-shrink: 1;
  min-width: 0;
}

.vh-nav a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1A1A1A !important;
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}

.vh-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #8B7355;
  transition: width 0.3s ease;
}

.vh-nav a:hover { color: #8B7355 !important; }
.vh-nav a:hover::after { width: 100%; }

/* RIGHT */
.vh-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.vh-phone {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: #888 !important;
  font-style: normal;
  font-family: 'Raleway', sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color 0.3s;
}

.vh-phone:hover {
  color: #1A1A1A !important;
}

.vh-tg-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: #1A1A1A;
  color: #F5F0EA !important;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid #1A1A1A;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}

.vh-tg-btn:hover {
  background: transparent;
  color: #1A1A1A !important;
}

.vh-tg-btn svg path {
  stroke: #F5F0EA !important;
}

.vh-tg-btn:hover svg path {
  stroke: #1A1A1A !important;
}

/* BURGER */
.vh-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.vh-burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: #1A1A1A;
}

/* MOBILE MENU */
.vh-mobile-menu {
  display: none;
  flex-direction: column;
  background: #F5F0EA;
  border-top: 1px solid rgba(139,115,85,0.2);
  padding: 24px 40px 32px;
  gap: 20px;
}

.vh-mobile-menu a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1A1A1A !important;
  text-decoration: none !important;
}

.vh-mobile-menu .vh-mobile-tg {
  color: #8B7355 !important;
}

.vh-mobile-menu .vh-mobile-phone {
  font-family: 'Raleway', sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.8px !important;
  text-transform: none !important;
  color: #1A1A1A !important;
  text-decoration: none !important;
  padding-top: 8px;
  border-top: 1px solid rgba(139, 115, 85, 0.15);
}

.vh-mobile-menu.open { display: flex; }

/* ПЛАНШЕТ горизонтальный */
@media (max-width: 1024px) {
  .vh-phone { display: none; }
  .vh-nav { gap: 20px; }
  .vh-container { padding: 0 24px; gap: 12px; }
}

/* ПЛАНШЕТ вертикальный */
@media (max-width: 860px) {
  .vh-nav { display: none; }
  .vh-phone { display: none; }
  .vh-tg-btn { display: none; }
  .vh-burger { display: flex; }

  .vh-container {
    height: 80px;
    padding: 0 20px;
    gap: 0;
    justify-content: space-between;
  }

  .vh-logo-img {
    height: 56px;
    max-width: 120px;
  }
}

/* МОБИЛЬНЫЙ */
@media (max-width: 480px) {
  .vh-container {
    height: 70px;
    padding: 0 16px;
  }

  .vh-logo-img {
    height: 48px;
    max-width: 100px;
  }

  .vh-mobile-menu {
    padding: 20px 16px 28px;
  }
}
