/* ═══════════════════════════════════════════════
   Healer Hero Widget — hero.css
   ═══════════════════════════════════════════════ */

.hhw-wrap {
  display: flex;
  flex-direction: column;
  font-family: inherit;
}

/* ── TOPBAR ──────────────────────────────────── */
.hhw-topbar {
  background-color: #ffffff;
  height: 64px;
  position: relative;
  z-index: 100;
  box-sizing: border-box;
}

.hhw-topbar-sticky .hhw-topbar {
  position: sticky;
  top: 0;
}

.hhw-topbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 32px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Logo */
.hhw-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.hhw-logo img {
  display: block;
  height: auto;
}
.hhw-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #1a2b4a;
  letter-spacing: -0.02em;
}

/* ── NAV (wp_nav_menu output) ────────────────── */
.hhw-nav {
  display: flex;      /* nav сам — flex-строка */
  align-items: center;
  flex: 1;
  min-width: 0;
}

/* ul генерируется wp_nav_menu с классом hhw-nav-list.
   Покрываем все варианты: прямой дочерний ul и .hhw-nav-list */
.hhw-nav-list,
.hhw-nav > ul {
  display: flex !important;   /* перебиваем block от браузерного reset */
  flex-direction: row !important;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* li — строго inline, не block */
.hhw-nav-list > li,
.hhw-nav > ul > li {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.hhw-nav-list > li > a,
.hhw-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #1a2b4a;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.hhw-nav-list > li > a:hover,
.hhw-nav > ul > li > a:hover,
.hhw-nav > ul > li.current-menu-item > a,
.hhw-nav > ul > li.current-menu-ancestor > a {
  background: rgba(37,99,235,0.06);
  color: #2563eb;
}

/* WP submenu dropdown */
.hhw-nav-list > li > ul.sub-menu,
.hhw-nav > ul > li > ul.sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  flex-direction: column;   /* sub-menu — вертикальный */
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  list-style: none;
  min-width: 180px;
  z-index: 300;
}
.hhw-nav-list > li:hover > ul.sub-menu,
.hhw-nav > ul > li:hover > ul.sub-menu {
  display: flex;
}
.hhw-nav-list > li > ul.sub-menu li,
.hhw-nav > ul > li > ul.sub-menu li {
  width: 100%;
}
.hhw-nav-list > li > ul.sub-menu li a,
.hhw-nav > ul > li > ul.sub-menu li a {
  display: block;
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.hhw-nav-list > li > ul.sub-menu li a:hover,
.hhw-nav > ul > li > ul.sub-menu li a:hover {
  background: #f3f4f6;
  color: #2563eb;
}

/* ── TOPBAR RIGHT ────────────────────────────── */
.hhw-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Socials */
.hhw-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hhw-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}
.hhw-socials a:hover {
  color: #2563eb;
  background: rgba(37,99,235,0.07);
}
.hhw-socials a i {
  font-size: 16px;
}

/* ── LANGUAGE SWITCHER ───────────────────────── */
.hhw-lang-switcher {
  position: relative;
}
.hhw-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
  font-family: inherit;
  white-space: nowrap;
}
.hhw-lang-btn:hover,
.hhw-lang-btn[aria-expanded="true"] {
  border-color: #2563eb;
  color: #2563eb;
}
.hhw-lang-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}
.hhw-lang-btn[aria-expanded="true"] .hhw-lang-arrow {
  transform: rotate(180deg);
}

/* Language dropdown — рендерится через Lang_Walker */
.hhw-lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 90px;
  z-index: 200;
  flex-direction: column;
}
.hhw-lang-dropdown.is-open {
  display: flex;
}
.hhw-lang-dropdown a {
  display: block;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.hhw-lang-dropdown a:hover {
  background: #f3f4f6;
  color: #2563eb;
}
.hhw-lang-dropdown a.hhw-lang-current {
  color: #2563eb;
  font-weight: 700;
}

/* ── TOPBAR CTA ──────────────────────────────── */
.hhw-top-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}
.hhw-top-cta:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ── HAMBURGER ───────────────────────────────── */
.hhw-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hhw-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hhw-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hhw-hamburger.is-open span:nth-child(2) { opacity: 0; }
.hhw-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV DRAWER ───────────────────────── */
.hhw-mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 20px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}
.hhw-mobile-nav.is-open {
  display: flex;
}

/* WP menu inside mobile drawer */
.hhw-mobile-list,
.hhw-mobile-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.hhw-mobile-list li,
.hhw-mobile-nav > ul li {
  margin: 0;
  border-bottom: 1px solid #f3f4f6;
}
.hhw-mobile-list li:last-child,
.hhw-mobile-nav > ul li:last-child {
  border-bottom: none;
}
.hhw-mobile-list li a,
.hhw-mobile-nav > ul li a {
  display: block;
  padding: 10px 4px;
  font-size: 15px;
  font-weight: 500;
  color: #1a2b4a;
  text-decoration: none;
  transition: color 0.15s;
}
.hhw-mobile-list li a:hover,
.hhw-mobile-nav > ul li a:hover {
  color: #2563eb;
}

/* ── HERO BODY ───────────────────────────────── */
.hhw-hero-body {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 80px 40px;
  overflow: hidden;
  box-sizing: border-box;
}

.hhw-hero-bgimg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.hhw-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}

.hhw-headline {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.08;
  color: #0f2044;
  margin: 0;
  letter-spacing: -0.02em;
}

.hhw-inline-img {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  object-fit: cover;
  border-radius: 8px;
  vertical-align: -0.05em;
  margin: 0 0.05em;
  flex-shrink: 0;
}

.hhw-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: #4b5a6e;
  max-width: 440px;
  margin: 0;
}

.hhw-hero-cta-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hhw-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 10px;
  background: #36b5a2;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}
.hhw-hero-cta:hover {
  background: #2a9b8a;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(54,181,162,0.28);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media ( max-width: 1024px ) {
  .hhw-topbar-inner { padding: 0 20px; gap: 16px; }
  .hhw-headline { font-size: 44px; }
}

@media ( max-width: 768px ) {
  .hhw-nav { display: none; }
  .hhw-socials { display: none; }
  .hhw-lang-switcher { display: none; }
  .hhw-top-cta { display: none; }
  .hhw-hamburger { display: flex; }

  .hhw-headline { font-size: 36px; }
  .hhw-hero-body { padding: 52px 20px; min-height: 360px; }
}

@media ( max-width: 480px ) {
  .hhw-headline { font-size: 28px; }
  .hhw-hero-body { padding: 40px 16px; min-height: 300px; }
  .hhw-hero-cta { padding: 12px 24px; font-size: 14px; }
}
