/* Hay Digital site header — self-contained, prefixed to avoid clashing with the Logo Maker app. */
:root {
  --hd-header-height: 80px;
  --hd-logo-height: 35px;
  --hd-container: 1200px;
  --hd-blue: #0769FF;
  --hd-blue-hover: #0055D4;
  --hd-ink: #000000;
  --hd-canvas: #ffffff;
  --hd-hairline: #F5F5F5;
  --hd-panel: rgba(18, 21, 25, 0.98);
  --hd-overlay: rgba(18, 21, 25, 0.6);
  --hd-shadow: 0 10px 20px rgba(41, 51, 61, 0.1);
  --hd-radius: 10px;
}

#hd-site-header,
#hd-site-header *,
#hd-site-header *::before,
#hd-site-header *::after {
  box-sizing: border-box;
}

#hd-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--hd-header-height);
  background: var(--hd-canvas);
  border-bottom: 1px solid var(--hd-hairline);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hd-ink);
  -webkit-font-smoothing: antialiased;
}

#hd-site-header a {
  color: inherit;
  text-decoration: none;
}

#hd-site-header button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#hd-site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#hd-site-header img {
  display: block;
}

#hd-site-header .hd-logo {
  height: var(--hd-logo-height);
  overflow: hidden;
}

#hd-site-header .hd-logo img {
  height: var(--hd-logo-height);
  width: auto;
  max-width: 180px;
  max-height: var(--hd-logo-height);
}

.hd-bar {
  height: var(--hd-header-height);
  max-width: var(--hd-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hd-start,
.hd-end {
  display: flex;
  align-items: center;
  min-width: 0;
}

.hd-end {
  justify-content: flex-end;
}

.hd-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}


.hd-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.hd-menu {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.hd-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.hd-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: capitalize;
  color: var(--hd-ink);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.hd-link:hover,
.hd-link:focus-visible,
.hd-item.is-open > .hd-link {
  color: var(--hd-blue);
}

.hd-link:focus-visible {
  outline: 2px solid var(--hd-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

.hd-caret {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  fill: currentColor;
}

.hd-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 240px;
  padding: 10px 0;
  background: var(--hd-canvas);
  border-radius: var(--hd-radius);
  box-shadow: var(--hd-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}

.hd-item:hover > .hd-sub,
.hd-item:focus-within > .hd-sub,
.hd-item.is-open > .hd-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hd-sub a {
  display: block;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--hd-ink);
  text-transform: none;
  white-space: nowrap;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.hd-sub a:hover,
.hd-sub a:focus-visible,
.hd-sub a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.05);
  color: var(--hd-blue);
}

.hd-sub a:focus-visible {
  outline: 2px solid var(--hd-blue);
  outline-offset: -2px;
}

.hd-cta {
  font-weight: 500;
}

/* Mobile trigger + off-canvas */
.hd-trigger,
.hd-mobile-cta,
.hd-mobile-bar {
  display: none;
}

.hd-trigger {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--hd-ink);
  border-radius: 3px;
}

.hd-trigger:hover,
.hd-trigger:focus-visible {
  color: var(--hd-blue);
}

.hd-trigger:focus-visible {
  outline: 2px solid var(--hd-blue);
  outline-offset: 2px;
}

.hd-trigger-icon {
  width: 18px;
  height: 14px;
  display: block;
}

.hd-mobile-cta {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--hd-ink);
  border-radius: 3px;
}

.hd-mobile-cta:hover,
.hd-mobile-cta:focus-visible {
  color: var(--hd-blue);
}

.hd-mobile-cta:focus-visible {
  outline: 2px solid var(--hd-blue);
  outline-offset: 2px;
}

.hd-mobile-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

#hd-offcanvas-root[hidden] {
  display: none !important;
}

#hd-offcanvas-root {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.hd-backdrop {
  position: absolute;
  inset: 0;
  background: var(--hd-overlay);
}

.hd-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(500px, 65vw);
  background: var(--hd-panel);
  color: #fff;
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

#hd-offcanvas-root.is-open .hd-panel {
  transform: translateX(0);
}

.hd-panel-actions {
  display: flex;
  justify-content: flex-end;
  padding: 20px 20px 8px;
  flex: 0 0 auto;
}

.hd-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.hd-close:hover,
.hd-close:focus-visible {
  color: #fff;
}

.hd-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hd-close svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.hd-mobile-nav {
  padding: 8px 28px 40px;
}

.hd-mobile-nav .hd-m-item {
  border-bottom: 0;
}

.hd-mobile-nav a,
.hd-mobile-nav .hd-m-parent {
  display: block;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  padding: 12px 0;
  text-transform: none;
}

.hd-mobile-nav a:hover,
.hd-mobile-nav a:focus-visible,
.hd-mobile-nav a[aria-current="page"] {
  color: var(--hd-blue);
}

.hd-mobile-nav a:focus-visible {
  outline: 2px solid var(--hd-blue);
  outline-offset: 2px;
}

.hd-m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hd-m-row > a,
.hd-m-row > .hd-m-parent {
  flex: 1;
  min-width: 0;
}

.hd-m-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hd-m-toggle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.hd-m-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.hd-m-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hd-m-sub {
  display: none;
  padding: 0 0 10px 12px;
}

.hd-m-sub.is-open {
  display: block;
}

.hd-m-sub a {
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.85);
}

.hd-m-cta {
  margin-top: 20px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000 !important;
  border-radius: 100px;
  padding: 12px 24px !important;
  font-size: 16px !important;
  font-weight: 500;
}

.hd-m-cta:hover,
.hd-m-cta:focus-visible {
  background: var(--hd-blue);
  color: #fff !important;
}

.hd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.hd-nav-open {
  overflow: hidden;
}

/* Keep the Logo Maker canvas filling the remaining viewport under the header. */
#root {
  height: calc(100dvh - var(--hd-header-height, 80px));
  max-height: calc(100dvh - var(--hd-header-height, 80px));
}

#root .h-screen {
  height: 100% !important;
}

@media (max-width: 999.98px) {
  .hd-desktop {
    display: none !important;
  }

  .hd-mobile-bar {
    display: grid;
  }

  .hd-trigger,
  .hd-mobile-cta {
    display: flex;
  }

  .hd-start {
    justify-content: flex-start;
  }

  .hd-center {
    display: flex;
    justify-content: center;
  }
}

@media (min-width: 1000px) {
  .hd-mobile-bar {
    display: none !important;
  }

  #hd-offcanvas-root {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hd-bar {
    padding: 0 16px;
  }

  .hd-panel {
    width: min(500px, 85vw);
  }
}
