/* Header — Miro Tech */
:root {
  --header-bg: #2c3136;
  --header-text: #ffffff;
  --header-accent: #0095da;
  --header-pill-bg: rgba(255, 255, 255, 0.1);
  --header-pill-border: rgba(255, 255, 255, 0.2);
  --header-nav-gap: 45px;
  --header-mobile-breakpoint: 991px;
  --header-panel-top: 5.75rem;
}

.header.site-header {
  color: var(--header-text);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 20px 0;
  box-sizing: border-box;
}


.logout-page .header.site-header,
.woocommerce-account .header.site-header{
  background: rgba(0, 0, 0, 0.6);
    position: static;
    padding: 15px 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.header__brand {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  position: relative;
  z-index: 102;
}

.header__logo {
  display: block;
  height: auto;
  width: auto;
  max-width: min(240px, 55vw);
  transition: all 0.3s ease;
}

/* Hamburger — hidden on large screens */
.header-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--header-pill-border);
  border-radius: 6px;
  background: var(--header-pill-bg);
  color: var(--header-text);
  cursor: pointer;
  position: relative;
  z-index: 102;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header-menu-toggle:hover,
.header-menu-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.header-menu-toggle__box {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}

.header-menu-toggle__line {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.header-menu-toggle__line:nth-child(1) {
  top: 0;
}

.header-menu-toggle__line:nth-child(2) {
  top: 7px;
}

.header-menu-toggle__line:nth-child(3) {
  top: 14px;
}

.header-menu-toggle--open .header-menu-toggle__line:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.header-menu-toggle--open .header-menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.header-menu-toggle--open .header-menu-toggle__line:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .header-menu-toggle__line {
    transition: none;
  }
}

/* Mobile backdrop (only used ≤991px) */
.header-menu-backdrop {
  display: none;
}

/* Pill nav */
.header-nav-pill {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.5rem;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--header-pill-border);
  border-radius: 13px;
  padding: 10px 25px;
  min-height: 64px;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}



.header-nav-pill__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--header-nav-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-primary);
 line-height: auto;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.header-nav-pill__list li{
  line-height: inherit;
}

.header-nav-pill__list a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  display: block;

  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.header-nav-pill__list .current-menu-item a {
  color: var(--header-accent);
}

.header-nav-pill__list a:hover,
.header-nav-pill__list a:focus-visible {
  color: var(--header-accent);
}

.header-nav-pill__icons {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 25px;
  flex-shrink: 0;
}

.header-nav-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header-text);
  line-height: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.header-nav-pill__icon:hover,
.header-nav-pill__icon:focus-visible {
  color: var(--header-accent);
}

@media (max-width: 1200px) {
  :root {
    --header-nav-gap: 0.75rem;
  }

  .header-nav-pill__list {
    font-size: 0.75rem;
  }
}

/* ——— Mobile responsive menu (hamburger + overlay panel) ——— */
@media (max-width: 1000px) {
  .header-menu-toggle {
    display: flex;
  }

  .header-menu-open .header.site-header{
    background: #292b2d;
  }

  .header-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 98;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .header-nav-pill {
    padding: 10px 5%;
    min-height: 50px;
}

  body.header-menu-open .header-menu-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-nav-pill {
    position: fixed;
    background: #292b2d;
    z-index: 99;
    left: 0;
    right: 0;
    top: 110px;
    bottom: 0;
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.25rem 1.25rem 2rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  }

  .scroll-down .site-header .header-nav-pill{
    top: 65px;
  }

  .header-nav-pill.header-nav-pill--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-nav-pill__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
  }

  .header-nav-pill__list li {
    border-bottom: 1px solid var(--header-pill-border);
  }

  .header-nav-pill__list li:last-child {
    border-bottom: none;
  }

  .header-nav-pill__list a {
    display: block;
    padding: 0.875rem 0.25rem;
    white-space: normal;
    font-size: 17px;
  }

  .header-nav-pill__icons {
    margin-left: 0;
    margin-top: 1rem;
    padding-left: 0;
    padding-top: 1rem;
    border-left: none;
    border-top: 1px solid var(--header-pill-border);
    justify-content: center;
    gap: 1.25rem;
  }

  .header-nav-pill__icon {
    padding: 0.5rem;
  }

  .header-nav-pill__icon svg {
    width: 24px;
    height: 24px;
  }

  body.header-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 1000px) and (prefers-reduced-motion: reduce) {
  .header-menu-backdrop,
  .header-nav-pill {
    transition: none;
  }

  .scroll-down .site-header .header-nav-pill{
    top: 65px;
  }
}

@media (max-width: 400px) {
  .header-nav-pill{
    top: 105px;
  }

  .scroll-down .site-header .header-nav-pill{
    top: 65px;
  }
}

@media (max-width: 370px) {
  .scroll-down .site-header .header-nav-pill{
    top: 65px;
  }
}

.site-header{
  transition: all 0.3s ease;
}

.scroll-down .site-header{
  position: fixed;
  top: 0;
  left: 0;
  padding: 6px 0;
  background: rgba(0, 0, 0, 0.7);
}

.scroll-down .site-header .header-nav-pill{
  padding: 8px 25px;
  min-height: 45px;
}

.scroll-down .site-header .header__logo{
  max-width: 170px;
}

.default-page-section{
  padding: 110px 0;
}

@media (max-width: 1200px) {
  .default-page-section{
    padding: 100px 0;
  }
}

@media (max-width: 768px) {
  .default-page-section{
    padding: 80px 0;
  }
}

@media (max-width: 580px) {
  .default-page-section{
    padding: 50px 0;
  }
}