/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

:root {
  --nav-height: 44px;
  --font: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  --nav-bg: rgba(251,251,253,0.85);
  --nav-bg-open: rgba(251,251,253,1);
  --text-primary: #1d1d1f;
  --text-secondary: rgba(29,29,31,0.56);
  --accent: #0071e3;
  --divider: rgba(0,0,0,0.1);
  --dropdown-bg: rgba(251,251,253,0.98);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  overflow-x: hidden;
}

body.custom-header-enabled {
  padding-top: var(--nav-height);
}

.site-header,
.ast-desktop .main-header-bar,
.ast-mobile-header-wrap {
  display: none !important;
}

#custom-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--divider);
  z-index: 1000;
  transition: background 0.25s ease, border-color 0.25s ease;
}

#custom-nav.dropdown-active {
  background: var(--nav-bg-open);
  border-bottom-color: transparent;
}


.custom-nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: relative;
}

.custom-logo {
  display: flex;
  align-items: center;
}

.custom-logo:hover {
  opacity: 0.6;
}

.custom-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  height: 100%;
  flex: 1;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.custom-nav-links > li {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.custom-nav-links > li > a {
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0 9px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.custom-nav-links > li > a:hover,
.custom-nav-links > li.active > a {
  color: var(--text-primary);
}

#custom-nav.dropdown-active .custom-nav-links > li:not(.active) > a {
  color: rgba(29,29,31,0.28);
}

.custom-nav-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  z-index: 2;
}

.custom-nav-actions a,
.custom-nav-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, opacity 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.custom-nav-actions a:hover,
.custom-nav-actions button:hover {
  color: var(--text-primary);
  background: rgba(0,0,0,0.05);
}

.custom-nav-actions svg {
  width: 15px;
  height: 15px;
}

.custom-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.custom-nav-hamburger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s ease, background 0.2s;
  transform-origin: center;
}

.custom-nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.custom-nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.custom-nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.custom-page-backdrop {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, backdrop-filter 0.35s ease, background 0.35s ease;
}

.custom-page-backdrop.active {
  opacity: 1;
  pointer-events: all;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.custom-dropdown-overlay {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--dropdown-bg);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border-bottom: 1px solid var(--divider);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.28s cubic-bezier(.4,0,.2,1), transform 0.28s cubic-bezier(.4,0,.2,1);
}

.custom-dropdown-overlay.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.custom-dropdown-panel {
  display: none;
  max-width: 1020px;
  margin: 0 auto;
  padding: 40px 18px 48px;
}

.custom-dropdown-panel.active {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.custom-dd-links-col {
  flex: 0 0 auto;
  min-width: 220px;
}

.custom-dd-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.custom-dd-big-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-dd-big-links a {
  display: block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s;
}

.custom-dd-big-links a:hover {
  color: var(--accent);
}

.custom-dd-img-col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.custom-dd-img-col img {
  width: 100%;
  max-width: 420px;
  max-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.custom-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f5f5f7;
  z-index: 1100;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.custom-mm-close {
  position: absolute;
  top: 14px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.07);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 10;
}

.custom-mm-slider {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 200%;
  display: flex;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
}

.custom-mm-slider.level2 {
  transform: translateX(-50%);
}

.custom-mm-panel {
  width: 50%;
  height: 100%;
  overflow-y: auto;
  padding: 58px 0 40px;
  flex-shrink: 0;
}

.custom-mm-panel-1 ul,
.custom-mm-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.custom-mm-panel-1 ul li,
.custom-mm-sub-list li {
  border-bottom: 1px solid rgba(0,0,0,0.09);
}

.custom-mm-panel-1 ul li:first-child,
.custom-mm-sub-list li:first-child {
  border-top: 1px solid rgba(0,0,0,0.09);
}

.custom-mm-panel-1 ul li a,
.custom-mm-panel-1 ul li button,
.custom-mm-sub-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 22px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}

.custom-mm-panel-2 {
  background: #fff;
  border-radius: 12px 12px 0 0;
}

.custom-mm-back {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 22px 6px;
  font-size: 14px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}

.custom-mm-sub-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  padding: 6px 22px 18px;
  color: var(--text-primary);
}

.custom-mm-chevron {
  opacity: 0.35;
  flex-shrink: 0;
}

.custom-mm-chevron svg,
.custom-mm-back svg {
  width: 8px;
  height: 14px;
}

@media (max-width: 768px) {
  .custom-nav-links,
  .custom-nav-actions .desktop-only,
  .custom-dropdown-overlay {
    display: none !important;
  }

  .custom-nav-hamburger,
  .custom-mobile-menu {
    display: block;
  }

  .custom-nav-hamburger {
    display: flex;
  }
}

@media (min-width: 769px) {
  .custom-mobile-menu {
    display: none !important;
  }
}