/* ── Site header, mega menu and footer ── */
.sh,
.sf {
  --sc-brand: #dd4db5;
  --sc-brand-strong: #c2379b;
  --sc-brand-soft: #fdf1fa;
  --sc-ink: #17131f;
  --sc-text: #4b4758;
  --sc-muted: #7b7788;
  --sc-line: #e9e7ef;
  --sc-tint: #faf9fc;
  --sc-bar: 68px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}

.sh *,
.sh *::before,
.sh *::after,
.sf *,
.sf *::before,
.sf *::after {
  box-sizing: border-box;
}

.sh ul,
.sf ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh ul li,
.sf ul li {
  margin: 0;
  padding: 0;
}

.sh a,
.sf a {
  text-decoration: none;
}

.sh svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Header bar ── */
.sh {
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
  border-bottom: 1px solid var(--sc-line);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
}

.sh-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1200px;
  height: var(--sc-bar);
  margin: 0 auto;
  padding: 0 20px;
}

.sh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--sc-ink) !important;
}

.sh-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sh-brand-name,
.sf-brand-name {
  color: var(--sc-ink);
  font-family: Rubik, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.sh .sh-brand-name span,
.sf .sf-brand-name span {
  display: inline;
  width: auto;
  margin: 0;
  color: var(--sc-brand);
}

.sh-collapse {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.sh-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Panels are positioned against the header, not the menu item */
.sh .sh-menu > li.sh-item {
  position: static;
}

.sh-trigger,
.sh-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sc-ink) !important;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sh-chevron {
  width: 16px;
  height: 16px;
  color: var(--sc-muted);
  transition: transform 0.18s ease;
}

.sh-trigger:hover,
.sh-link:hover,
.sh-item.is-open > .sh-trigger,
.sh-link.is-active {
  background: var(--sc-brand-soft);
  color: var(--sc-brand-strong) !important;
}

.sh-item.is-open .sh-chevron {
  color: var(--sc-brand-strong);
  transform: rotate(180deg);
}

.sh-trigger:focus-visible,
.sh-link:focus-visible,
.sh-cta:focus-visible,
.sh-burger:focus-visible,
.sh-brand:focus-visible {
  outline: 3px solid rgba(221, 77, 181, 0.4);
  outline-offset: 2px;
}

/* ── Mega menu panel ── */
.sh-panel {
  display: none;
}

.sh-item.is-open > .sh-panel {
  display: block;
}

.sh-panel-title {
  margin-bottom: 10px;
  color: var(--sc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sh-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.sh-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sc-brand-soft);
}

.sh-feature-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sh-feature-name {
  color: var(--sc-ink);
  font-size: 15px;
  font-weight: 700;
}

.sh-feature-desc {
  margin-top: 2px;
  color: var(--sc-muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.sh-feature:hover,
.sh-feature:focus-visible {
  background: var(--sc-brand-soft);
  outline: none;
}

.sh-feature:hover .sh-feature-name {
  color: var(--sc-brand-strong);
}

.sh-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--sc-text) !important;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.sh-links a:hover,
.sh-links a:focus-visible {
  background: var(--sc-brand-soft);
  color: var(--sc-brand-strong) !important;
  outline: none;
}

/* ── Search ── */
.sh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sh-search {
  position: relative;
  width: 220px;
}

.sh-search > svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: var(--sc-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.sh-search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1.5px solid var(--sc-line);
  border-radius: 10px;
  background: var(--sc-tint);
  color: var(--sc-ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sh-search-input::placeholder {
  color: var(--sc-muted);
}

.sh-search-input:focus {
  border-color: var(--sc-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(221, 77, 181, 0.14);
  outline: none;
}

.sh-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: 360px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 19, 31, 0.14);
}

.sh-results[hidden] {
  display: none;
}

.sh-result {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--sc-ink) !important;
  font-size: 14.5px;
  font-weight: 500;
}

.sh-result:hover,
.sh-result.is-active {
  background: var(--sc-brand-soft);
  color: var(--sc-brand-strong) !important;
}

.sh-results-empty {
  padding: 14px 12px;
  color: var(--sc-muted);
  font-size: 14px;
}

.sh-cta,
.sf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--sc-brand);
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.sh-cta:hover,
.sf-cta:hover {
  background: var(--sc-brand-strong);
}

.sh-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--sc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--sc-ink);
  cursor: pointer;
}

.sh-burger svg {
  width: 22px;
  height: 22px;
}

.sh-burger-close,
.sh.is-menu-open .sh-burger-open {
  display: none;
}

.sh.is-menu-open .sh-burger-close {
  display: inline;
}

/* ── Desktop mega menu ── */
@media (min-width: 992px) {
  .sh-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 20px 20px;
  }

  /* Keeps the pointer inside the item while moving from trigger to panel */
  .sh-panel::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
  }

  .sh-panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 12px 32px;
    max-width: 1160px;
    margin: 8px auto 0;
    padding: 24px;
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(23, 19, 31, 0.16);
  }

  .sh-featured-list {
    display: grid;
    gap: 2px;
    margin: 0 -10px;
  }

  .sh-more {
    padding-left: 32px;
    border-left: 1px solid var(--sc-line);
  }

  .sh-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 16px;
    margin: 0 -10px !important;
  }
}

@media (min-width: 992px) and (max-width: 1140px) {
  .sh-bar {
    gap: 16px;
  }

  .sh-search {
    width: 160px;
  }

  .sh-trigger,
  .sh-link {
    padding: 0 9px;
  }
}

/* ── Mobile menu ── */
@media (max-width: 991.98px) {
  .sh,
  .sf {
    --sc-bar: 60px;
  }

  .sh-bar {
    padding: 0 16px;
  }

  .sh-burger {
    display: inline-flex;
  }

  .sh-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    max-height: calc(100vh - var(--sc-bar));
    max-height: calc(100dvh - var(--sc-bar));
    padding: 16px;
    overflow-y: auto;
    border-top: 1px solid var(--sc-line);
    background: #fff;
    box-shadow: 0 24px 40px rgba(23, 19, 31, 0.14);
  }

  .sh.is-menu-open .sh-collapse {
    display: flex;
  }

  .sh-actions {
    flex-direction: column;
    align-items: stretch;
    order: -1;
  }

  .sh-search {
    width: 100%;
  }

  .sh-search-input {
    height: 46px;
    font-size: 16px;
  }

  .sh-results {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    box-shadow: none;
  }

  .sh-cta {
    height: 46px;
    font-size: 16px;
  }

  .sh-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .sh-menu > .sh-item {
    border-bottom: 1px solid var(--sc-line);
  }

  .sh-menu > .sh-item:last-child {
    border-bottom: 0;
  }

  .sh-trigger,
  .sh-link {
    justify-content: space-between;
    width: 100%;
    height: 52px;
    padding: 0 4px;
    border-radius: 0;
    font-size: 16px;
  }

  .sh-trigger:hover,
  .sh-link:hover,
  .sh-item.is-open > .sh-trigger,
  .sh-link.is-active {
    background: transparent;
  }

  .sh-chevron {
    width: 20px;
    height: 20px;
  }

  .sh-panel-inner {
    display: grid;
    gap: 16px;
    padding: 4px 0 18px;
  }

  .sh-featured-list {
    display: grid;
    gap: 2px;
    margin: 0 -6px;
  }

  .sh-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 8px;
    margin: 0 -10px !important;
  }

  .sh-links a {
    padding: 10px;
  }
}

/* ── Footer ── */
.sf {
  margin-top: 0;
  border-top: 1px solid var(--sc-line);
  background: var(--sc-tint);
  color: var(--sc-text);
}

.sf-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 0;
}

.sf-top {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 40px 64px;
  padding-bottom: 44px;
}

.sf-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sf-brand-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sf-about {
  margin: 14px 0 20px;
  color: var(--sc-text);
  font-size: 14.5px;
  line-height: 1.6;
}

.sf-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.sf-title {
  margin-bottom: 14px;
  color: var(--sc-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sf-links li + li {
  margin-top: 10px;
}

.sf-links a,
.sf-legal a {
  color: var(--sc-text) !important;
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.sf-links a:hover,
.sf-legal a:hover,
.sf-links a:focus-visible,
.sf-legal a:focus-visible {
  color: var(--sc-brand-strong) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--sc-line);
}

.sf-copy {
  color: var(--sc-muted);
  font-size: 14px;
}

.sf-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

@media (max-width: 991.98px) {
  .sf-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .sf-about {
    max-width: 440px;
  }
}

@media (max-width: 640px) {
  .sf-inner {
    padding: 40px 16px 0;
  }

  .sf-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sh *,
  .sf * {
    transition: none !important;
  }
}
