/* Pawy site header — matches pawy.ch */

[data-pawy-header] {
  min-height: 124px;
}

.site-promo {
  display: block;
  text-decoration: none;
  color: var(--pawy-blue);
  background: var(--pawy-sky);
  transition: background 0.2s ease;
}

.site-promo:hover,
.site-promo:focus-visible {
  text-decoration: none;
  background: var(--pawy-yellow);
}

.site-promo__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
  min-height: 51px;
  padding: 0 16px;
  font-size: 17px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.site-promo__pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--pawy-yellow);
  color: var(--pawy-blue);
  transition: background 0.2s ease;
}

.site-promo:hover .site-promo__pill,
.site-promo:focus-visible .site-promo__pill {
  background: var(--pawy-sky);
}

.site-promo__plus {
  font-weight: var(--font-weight-bold);
}

.site-promo__emoji {
  line-height: 1;
}

.site-header {
  background: var(--pawy-header-bg, #fdfbf7);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 73px;
  min-height: 73px;
  padding: 0;
}

.site-header__nav {
  justify-self: start;
  min-width: 0;
}

.site-header__lead {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-header__menu-btn,
.site-header__overlay,
.site-header__drawer {
  display: none;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo-mark {
  display: block;
  width: 80px;
  height: 50px;
  flex-shrink: 0;
}

.site-header__logo:hover,
.site-header__drawer-logo:hover {
  text-decoration: none;
}

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--pawy-header-font-size);
  font-weight: var(--font-weight-regular);
  line-height: 1;
}

.site-nav a,
.site-nav__trigger {
  color: var(--pawy-blue);
  text-decoration: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.site-nav__trigger:hover,
.site-nav__item--dropdown:focus-within .site-nav__trigger {
  background: var(--pawy-yellow);
  font-weight: var(--font-weight-medium);
}

.site-nav a:hover,
.site-nav__trigger:hover,
.site-nav__trigger[aria-expanded="true"] {
  color: var(--pawy-blue-dark);
  text-decoration: none;
}

.site-nav__item {
  position: relative;
}

.site-nav__item--dropdown {
  position: static;
}

.site-nav__item--dropdown .site-nav__trigger {
  padding: 12px 16px;
  border-radius: 12px;
}

.site-nav__item--dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

.site-nav__chevron {
  width: 0.65rem;
  height: 0.65rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.site-nav__item--dropdown:hover .site-nav__chevron,
.site-nav__item--dropdown:focus-within .site-nav__chevron,
.site-nav__trigger[aria-expanded="true"] .site-nav__chevron {
  transform: rotate(180deg);
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 34px;
  box-sizing: border-box;
  width: min(670px, calc(100vw - 48px));
  height: 170px;
  min-width: 0;
  margin: 0;
  padding: 20px 22px;
  list-style: none;
  background: var(--pawy-white);
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(16, 43, 125, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}

.site-nav__item--dropdown:hover .site-nav__dropdown,
.site-nav__item--dropdown:focus-within .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav-card {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav-card__link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  color: var(--pawy-blue);
  text-decoration: none;
}

.site-nav-card__link:hover {
  color: var(--pawy-blue-dark);
  text-decoration: none;
}

.site-nav-card__media {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pawy-cream);
}

.site-nav-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-nav-card__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pawy-blue);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  white-space: nowrap;
}

.site-nav-card__pet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--pawy-yellow);
  font-weight: var(--font-weight-bold);
}

.site-nav-card__type {
  font-weight: var(--font-weight-bold);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--pawy-blue);
  color: var(--pawy-white);
  font-weight: var(--font-weight-bold);
  font-size: var(--pawy-header-font-size);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.header-cta:hover {
  background: var(--pawy-blue-dark);
  text-decoration: none;
  color: var(--pawy-white);
}

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pawy-blue);
  text-decoration: none;
  font-weight: var(--font-weight-regular);
  font-size: var(--pawy-header-font-size);
  line-height: 1;
}

.header-account:hover {
  color: var(--pawy-blue-dark);
  text-decoration: none;
}

.header-account svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.header-account--drawer span {
  font-weight: 600;
}

.header-lang {
  position: relative;
}

.header-lang__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pawy-blue);
  font-family: var(--font-body);
  font-size: var(--pawy-header-font-size);
  font-weight: var(--font-weight-regular);
  line-height: 1;
  cursor: pointer;
  text-transform: uppercase;
}

.header-lang--drawer .header-lang__trigger {
  text-transform: none;
  font-size: 18px;
  font-weight: 700;
}

.header-lang__trigger:hover,
.header-lang__trigger[aria-expanded="true"] {
  color: var(--pawy-blue-dark);
}

.header-lang__chevron {
  width: 0.65rem;
  height: 0.65rem;
  transition: transform 0.15s ease;
}

.header-lang:hover .header-lang__chevron,
.header-lang:focus-within .header-lang__chevron,
.header-lang__trigger[aria-expanded="true"] .header-lang__chevron {
  transform: rotate(180deg);
}

.header-lang__flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.header-lang__menu {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: var(--pawy-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}

.header-lang:hover .header-lang__menu,
.header-lang:focus-within .header-lang__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-lang__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: var(--pawy-blue);
  font-size: var(--pawy-header-font-size);
  font-weight: var(--font-weight-regular);
  text-decoration: none;
}

.header-lang--bar .header-lang__menu a {
  text-transform: uppercase;
}

.header-lang__menu a:hover,
.header-lang__menu a.is-active {
  background: var(--pawy-cream);
  text-decoration: none;
}

/* Mobile drawer */

.site-header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 43, 125, 0.45);
  z-index: 45;
  pointer-events: none;
}

.site-header__drawer {
  display: none;
  position: fixed;
  inset: 0 auto 0 0;
  width: min(100%, 22.5rem);
  max-width: 100%;
  max-height: 100dvh;
  z-index: 50;
  background: var(--pawy-cream);
  color: var(--pawy-blue);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

.site-header.is-menu-open .site-header__overlay {
  display: block;
  pointer-events: auto;
}

.site-header.is-menu-open .site-header__drawer {
  transform: translateX(0);
  pointer-events: auto;
}

.site-header__drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 20px 28px;
}

.site-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__drawer-logo {
  display: inline-flex;
}

.site-header__menu-btn,
.site-header__close-btn {
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pawy-blue);
  cursor: pointer;
}

.site-header__close-btn {
  display: inline-flex;
}

.site-header__close-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-header__menu-icon {
  width: 28px;
  height: 21px;
}

.site-header__drawer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-cta--drawer {
  flex-shrink: 0;
  padding: 11px 18px;
  font-size: 15px;
}

.site-header__rule {
  border: 0;
  border-top: 2px dashed rgba(16, 43, 125, 0.18);
  margin: 0;
}

.mobile-nav-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--pawy-blue);
  text-decoration: none;
}

.mobile-nav-card:hover {
  text-decoration: none;
  color: var(--pawy-blue-dark);
}

.mobile-nav-card__media {
  display: block;
  width: 160px;
  max-width: 160px;
  height: 100px;
  max-height: 100px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--pawy-white);
}

.mobile-nav-card__media img {
  width: 160px;
  max-width: 160px;
  height: 100px;
  max-height: 100px;
  object-fit: cover;
}

.mobile-nav-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.mobile-nav-card__pet {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--pawy-yellow);
  font-size: 14px;
  font-weight: 700;
}

.mobile-nav-card__type {
  font-weight: 700;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-links a,
.mobile-nav-help {
  color: var(--pawy-blue);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.mobile-nav-links a:hover,
.mobile-nav-help:hover {
  color: var(--pawy-blue-dark);
  text-decoration: none;
}

.site-header__drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-lang--drawer {
  width: 100%;
}

.header-lang--drawer .header-lang__menu {
  left: 0;
  right: auto;
}

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

@media (min-width: 961px) {
  .site-header__inner {
    font-size: var(--pawy-header-font-size);
  }

  .site-header__actions .header-cta,
  .site-header__actions .header-account--bar,
  .header-lang--bar .header-lang__trigger,
  .header-lang--bar .header-lang__menu a {
    font-size: var(--pawy-header-font-size);
  }
}

@media (max-width: 960px) {
  [data-pawy-header] {
    min-height: 102px;
  }

  .site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .site-promo__inner {
    font-size: 12px;
    gap: 6px;
    min-height: 47px;
    padding: 0 12px;
  }

  .site-promo__pill {
    padding: 3px 10px;
  }

  .site-header {
    --pawy-header-bg: #ffffff;
    position: static;
    border-bottom: 1px solid rgba(16, 43, 125, 0.08);
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 55px;
    min-height: 55px;
    padding: 0;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__lead {
    justify-self: auto;
    flex: 1;
    min-width: 0;
  }

  .site-header__menu-btn {
    display: inline-flex;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 2px;
  }

  .site-header__logo-mark {
    width: 60px;
    height: 36px;
  }

  .site-header__actions {
    flex-shrink: 0;
    gap: 0;
  }

  .header-account--bar,
  .header-lang--bar {
    display: none;
  }

  .header-cta {
    padding: 10px 16px;
    font-size: var(--pawy-header-font-size);
  }

  .site-header__drawer {
    display: block;
  }
}

@media (max-width: 640px) {
  .header-cta {
    font-size: var(--pawy-header-font-size);
    padding: 9px 14px;
  }

  .site-header__logo-mark {
    width: 56px;
    height: 34px;
  }
}

@media (max-width: 520px) {
  .site-header__drawer {
    width: min(100%, 20rem);
  }

  .mobile-nav-card__label {
    font-size: 14px;
  }

  .header-cta--drawer {
    font-size: 13px;
    padding: 9px 12px;
  }
}
