:root {
  --tbd-header-primary: #12343B;
  --tbd-header-secondary: #1F7A6D;
  --tbd-header-accent: #F28C28;
  --tbd-header-dark: #0B1F24;
  --tbd-header-light: #F6F3EE;
  --tbd-header-white: #FFFFFF;
  --tbd-header-border: #D9E1DF;
  --tbd-header-muted: #6D7A7C;
  --tbd-header-font-heading: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tbd-header-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tbd-header-container: 1180px;
}

.tbd-custom-header {
  position: sticky;
  top: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 225, 223, 0.92);
  font-family: var(--tbd-header-font-body);
}

body.admin-bar .tbd-custom-header {
  top: 32px;
}

.tbd-custom-header__inner {
  max-width: var(--tbd-header-container);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.tbd-custom-header__brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--tbd-header-primary);
  text-decoration: none !important;
  min-width: max-content;
}

.tbd-custom-header__brand:hover,
.tbd-custom-header__brand:focus {
  color: var(--tbd-header-primary);
  text-decoration: none !important;
}

.tbd-custom-header__brand-main {
  font-family: var(--tbd-header-font-heading);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.tbd-custom-header__brand-sub {
  margin-top: 5px;
  font-family: var(--tbd-header-font-heading);
  font-size: 0.72rem;
  font-weight: 850;
  color: var(--tbd-header-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tbd-custom-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  width: 100%;
}

.tbd-custom-header__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--tbd-header-primary);
  font-size: 0.95rem;
  font-weight: 850;
  text-decoration: none !important;
  line-height: 1.2;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.tbd-custom-header__nav a:hover,
.tbd-custom-header__nav a:focus,
.tbd-custom-header__nav a.is-active {
  color: var(--tbd-header-secondary);
  text-decoration: none !important;
}

.tbd-custom-header__nav a:not(.tbd-custom-header__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--tbd-header-accent);
  transition: width 0.2s ease;
}

.tbd-custom-header__nav a:not(.tbd-custom-header__cta):hover::after,
.tbd-custom-header__nav a:not(.tbd-custom-header__cta).is-active::after {
  width: 100%;
}

.tbd-custom-header__cta {
  justify-content: center;
  padding: 12px 19px;
  border-radius: 999px;
  background: var(--tbd-header-accent);
  color: var(--tbd-header-dark) !important;
  font-weight: 950 !important;
  box-shadow: 0 10px 26px rgba(242, 140, 40, 0.25);
  white-space: nowrap;
}

.tbd-custom-header__cta:hover,
.tbd-custom-header__cta:focus {
  background: #d97818;
  color: var(--tbd-header-dark) !important;
  transform: translateY(-1px);
}

.tbd-custom-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--tbd-header-border);
  border-radius: 999px;
  background: var(--tbd-header-white);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.tbd-custom-header__toggle span:not(.screen-reader-text) {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--tbd-header-primary);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tbd-custom-header.is-open .tbd-custom-header__toggle span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.tbd-custom-header.is-open .tbd-custom-header__toggle span:nth-child(3) {
  opacity: 0;
}

.tbd-custom-header.is-open .tbd-custom-header__toggle span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 980px) {
  body.admin-bar .tbd-custom-header {
    top: 46px;
  }

  .tbd-custom-header__inner {
    padding: 13px 18px;
  }

  .tbd-custom-header__toggle {
    display: inline-flex;
  }

  .tbd-custom-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--tbd-header-white);
    border-bottom: 1px solid var(--tbd-header-border);
    box-shadow: 0 18px 45px rgba(11, 31, 36, 0.10);
  }

  .tbd-custom-header.is-open .tbd-custom-header__nav {
    display: flex;
  }

  .tbd-custom-header__nav a {
    padding: 15px 4px;
    border-bottom: 1px solid var(--tbd-header-border);
  }

  .tbd-custom-header__nav a::after {
    display: none;
  }

  .tbd-custom-header__cta {
    margin-top: 14px;
    padding: 15px 18px !important;
    border-bottom: 0 !important;
    text-align: center;
  }
}

@media (max-width: 782px) {
  body.admin-bar .tbd-custom-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  body.admin-bar .tbd-custom-header {
    top: 0;
  }
}
