
/* ====== BRAND TOKENS ====== */
:root {
  --gold: #EAAA00;
  --gold-hover: #CC8A00;
  --black: #333132;
  --white: #FFFFFF;
  --nav-bg: #EAAA00;
  --dropdown-bg: #EAAA00;
  --border-subtle: rgba(51,49,50,0.12);
  --text-muted: rgba(51,49,50,0.55);
  --font: 'Montserrat', Arial, sans-serif;
  --nav-max-w: 90%;
}

/* ====== NAV LINK RESET — override theme defaults ====== */
.ihe-nav a,
.ihe-nav a:hover,
.ihe-nav a:focus,
.ihe-nav a:active,
.ihe-mega a,
.ihe-mega a:hover,
.ihe-mega a:focus,
.ihe-mega a:active,
.ihe-mobile-panel a,
.ihe-mobile-panel a:hover,
.ihe-mobile-panel a:focus,
.ihe-mobile-panel a:active,
.ihe-mobile-cta a,
.ihe-mobile-cta a:hover {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

a.ihe-mega__col-title,
a.ihe-mega__col-title:hover,
a.ihe-mega__col-title:focus,
a.ihe-mega__col-title:active {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  color: var(--black) !important;
  transition: color 0.15s ease;
  cursor: pointer;
}
a.ihe-mega__col-title:hover {
  color: #fff !important;
}

/* ====== NAV BAR ====== */
.ihe-nav {
  background: var(--gold);
  position: sticky;
  top: 0;
  z-index: 99999;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.ihe-nav.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.ihe-nav__spacer {
  display: none;
}
.ihe-nav__spacer.is-active {
  display: block;
}
.ihe-nav__inner {
  width: 90%;
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 64px;
}

/* Logo — bird icon + text */
.ihe-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 20px;
}
.ihe-nav__bird {
  height: 30px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}
.ihe-nav__logo img:not(.ihe-nav__bird) {
  height: 22px;
  width: auto;
  display: block;
}

/* Hub Links */
.ihe-nav__hubs {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 1;
}
.ihe-nav__hub {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
/* Hub link — rolling text animation */
.ihe-nav__hub-link {
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  cursor: pointer;
  user-select: none;
}
.ihe-nav__hub-link .hub-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.2;
  height: 1.2em;
}
.ihe-nav__hub-link .hub-text,
.ihe-nav__hub-link .hub-text-clone {
  display: block;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ihe-nav__hub-link .hub-text-clone {
  position: absolute;
  top: 0;
  left: 0;
  color: #fff;
  transform: translateY(100%);
}
.ihe-nav__hub:hover .hub-text,
.ihe-nav__hub.is-open .hub-text {
  transform: translateY(-100%);
}
.ihe-nav__hub:hover .hub-text-clone,
.ihe-nav__hub.is-open .hub-text-clone {
  transform: translateY(0);
}

/* ====== RIGHT: Search + CTA ====== */
.ihe-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Search icon + dropdown field */
.ihe-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
}
.ihe-search__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(51,49,50,0.7);
  transition: color 0.15s;
  z-index: 2;
}
.ihe-search__btn:hover { color: var(--black); }
.ihe-search__btn svg {
  width: 18px;
  height: 18px;
}
/* Search dropdown panel — slides down from nav */
.ihe-search__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: -12px;
  width: 320px;
  background: var(--gold);
  box-shadow: 0 12px 36px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.15);
  padding: 16px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  z-index: 99998;
}
.ihe-search.is-active .ihe-search__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}
.ihe-search__field {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1.5px solid rgba(51,49,50,0.2);
  background: rgba(255,255,255,0.15);
  color: var(--black);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  outline: none;
  transition: background 0.15s;
}
.ihe-search__field:focus {
  background: rgba(255,255,255,0.3);
  border-bottom-color: rgba(51,49,50,0.45);
}
.ihe-search__field::placeholder {
  color: rgba(51,49,50,0.45);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* CTA button — circular wipe animation */
.ihe-nav__cta {
  background: var(--gold-hover);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: color 0.35s ease;
}
.ihe-nav__cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  width: 0;
  height: 0;
  background: var(--black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}
.ihe-nav__cta:hover::before {
  width: 320px;
  height: 320px;
}
.ihe-nav__cta:hover { color: var(--gold); }

/* ====== MEGA DROPDOWN — Hub-Anchored, Constrained Width ====== */
.ihe-mega {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 0;
  max-width: 960px;
  background: var(--dropdown-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
  z-index: 99998;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
}
.ihe-nav__hub.is-open .ihe-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

.ihe-mega__inner {
  padding: 32px 32px 24px;
  display: flex;
  gap: 36px;
}

/* Link Columns */
.ihe-mega__cols {
  flex: 1;
  display: flex;
  gap: 36px;
}

.ihe-mega__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ihe-mega__col-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 14px;
  margin-top: 0;
  padding-bottom: 8px;
  align-self: stretch;
  white-space: nowrap;
}
.ihe-mega__col-title + .ihe-mega__link ~ .ihe-mega__col-title,
.ihe-mega__col .ihe-mega__col-title:not(:first-child) {
  margin-top: 20px;
}

.ihe-mega__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  padding: 5px 0;
  margin: 1px 0;
  position: relative;
  transition: color 0.18s ease;
  opacity: 0;
  transform: translateX(-6px);
  animation: linkFadeIn 0.22s ease forwards;
}
.ihe-mega__link:nth-child(1) { animation-delay: 0.04s; }
.ihe-mega__link:nth-child(2) { animation-delay: 0.08s; }
.ihe-mega__link:nth-child(3) { animation-delay: 0.12s; }
.ihe-mega__link:nth-child(4) { animation-delay: 0.16s; }
.ihe-mega__link:nth-child(5) { animation-delay: 0.20s; }
.ihe-mega__link:nth-child(6) { animation-delay: 0.24s; }
.ihe-mega__link:nth-child(7) { animation-delay: 0.28s; }
.ihe-mega__link:nth-child(8) { animation-delay: 0.32s; }
.ihe-mega__link:nth-child(9) { animation-delay: 0.36s; }
.ihe-mega__link:nth-child(10) { animation-delay: 0.40s; }
.ihe-mega__link:nth-child(11) { animation-delay: 0.44s; }
.ihe-mega__link:nth-child(12) { animation-delay: 0.48s; }
.ihe-mega__link:nth-child(13) { animation-delay: 0.52s; }
.ihe-mega__link:nth-child(14) { animation-delay: 0.56s; }
@keyframes linkFadeIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Underline hover — sweeps right to left */
.ihe-mega__link::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ihe-mega__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.ihe-mega__link:hover {
  color: #ffffff;
}

/* Featured Card */
.ihe-mega__feature {
  width: 240px;
  flex-shrink: 0;
  background: var(--black);
  border: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Toggle: add data-no-feature to .ihe-mega to hide the featured card */
.ihe-mega[data-no-feature] .ihe-mega__feature { display: none; }
.ihe-mega__feature-img {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #CC8A00 0%, #a87000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(51,49,50,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
  flex-shrink: 0;
}
.ihe-mega__feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ihe-mega__feature-body {
  padding: 14px;
  background: var(--black);
  flex: 1;
}
.ihe-mega__feature-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 8px;
}
.ihe-mega__feature-cta {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
  text-decoration: none;
}
.ihe-mega__feature-cta:hover { gap: 8px; }

/* Bottom Utility Bar */
.ihe-mega__bar {
  padding: 12px 32px;
  display: flex;
  gap: 24px;
}
.ihe-mega__bar-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(51,49,50,0.55);
  transition: color 0.12s;
}
.ihe-mega__bar-link:hover { color: var(--black); }
.ihe-mega__bar-link span { margin-right: 2px; }


/* ====== MOBILE NAV ====== */

/* Hamburger — hidden on desktop */
.ihe-nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
}
.ihe-nav__hamburger-lines {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}
.ihe-nav__hamburger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.ihe-nav__hamburger-lines span:nth-child(1) { top: 0; }
.ihe-nav__hamburger-lines span:nth-child(2) { top: 7px; }
.ihe-nav__hamburger-lines span:nth-child(3) { top: 14px; }
/* X state */
.ihe-nav__hamburger.is-active .ihe-nav__hamburger-lines span:nth-child(1) {
  top: 7px; transform: rotate(45deg);
}
.ihe-nav__hamburger.is-active .ihe-nav__hamburger-lines span:nth-child(2) {
  opacity: 0;
}
.ihe-nav__hamburger.is-active .ihe-nav__hamburger-lines span:nth-child(3) {
  top: 7px; transform: rotate(-45deg);
}

/* Mobile slide panel — slide in from right + blur backdrop */
.ihe-mobile-panel {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 400px;
  height: 100%;
  background: var(--gold);
  z-index: 100000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: -8px 0 40px rgba(0,0,0,0);
  pointer-events: none;
}
.ihe-mobile-panel.is-open {
  transform: translateX(0);
  box-shadow: -8px 0 40px rgba(0,0,0,0.25);
  pointer-events: auto;
}

/* Blur backdrop */
.ihe-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(51,49,50,0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.ihe-mobile-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ---- STICKY HEADER WRAPPER ---- */
.ihe-mobile-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--gold);
}

/* ---- Search + close ---- */
.ihe-mobile-topbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 6px 10px 12px;
  background: var(--gold);
}
.ihe-mobile-topbar__search {
  flex: 1;
  position: relative;
}
.ihe-mobile-topbar__field {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: none;
  border-bottom: 1.5px solid rgba(51,49,50,0.15);
  background: rgba(0,0,0,0.05);
  color: var(--black);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  outline: none;
  transition: background 0.15s, border-color 0.15s;
}
.ihe-mobile-topbar__field:focus {
  background: rgba(255,255,255,0.2);
  border-bottom-color: rgba(51,49,50,0.35);
}
.ihe-mobile-topbar__field::placeholder {
  color: rgba(51,49,50,0.35);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ihe-mobile-topbar__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(51,49,50,0.35);
  pointer-events: none;
}
.ihe-mobile-topbar__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  color: var(--black);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ihe-mobile-topbar__close svg {
  width: 20px;
  height: 20px;
}

/* ---- SHORTCUTS: icon square + gold label strip ---- */
.ihe-mobile-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--black);
}
.ihe-mobile-shortcut {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.ihe-mobile-shortcut:active {
  opacity: 0.8;
}
.ihe-mobile-shortcut__icon-box {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ihe-mobile-shortcut:last-child .ihe-mobile-shortcut__icon-box {
  border-right: none;
}
.ihe-mobile-shortcut__icon {
  width: 24px;
  height: 24px;
  color: #fff;
}
.ihe-mobile-shortcut__label {
  background: var(--gold);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  text-align: center;
  line-height: 1.25;
  padding: 4px 3px;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- ACCORDION AREA ---- */
.ihe-mobile-scroll {
  padding: 6px 12px 60px;
}

/* Mobile accordion hub */
.ihe-mobile-hub {
  border-bottom: 1px solid rgba(51,49,50,0.1);
}
.ihe-mobile-hub__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
}
.ihe-mobile-hub__toggle {
  font-size: 18px;
  font-weight: 400;
  color: var(--black);
  opacity: 0.5;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  transition: opacity 0.2s ease;
  line-height: 1;
}
.ihe-mobile-hub.is-open .ihe-mobile-hub__toggle {
  opacity: 0.8;
}
.ihe-mobile-hub.is-open .ihe-mobile-hub__toggle::after {
  content: '';
}
.ihe-mobile-hub__trigger--plain {
  text-decoration: none;
  display: block;
  padding: 16px 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
}

/* Accordion body */
.ihe-mobile-hub__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ihe-mobile-hub.is-open .ihe-mobile-hub__body {
  max-height: 1200px;
}

/* Mobile column titles */
.ihe-mobile-col-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(51,49,50,0.5);
  padding: 12px 0 4px;
  white-space: nowrap;
}
.ihe-mobile-link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  padding: 8px 0 8px 12px;
  text-decoration: none;
  transition: color 0.15s;
}
.ihe-mobile-link:hover,
.ihe-mobile-link:active {
  color: #fff;
}

/* Mobile bottom bar links */
.ihe-mobile-bar {
  padding: 8px 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.ihe-mobile-bar a {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(51,49,50,0.45);
  text-decoration: none;
}

/* Mobile sticky CTA — circular phone button */
.ihe-mobile-cta {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 16px;
  z-index: 100001;
}
.ihe-mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  text-decoration: none;
}
.ihe-mobile-cta a svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  stroke: none;
}

/* Mobile search icon (nav bar) */
.ihe-nav__mobile-search {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  color: rgba(51,49,50,0.7);
  transition: color 0.15s;
  min-width: 44px;
  min-height: 44px;
}
.ihe-nav__mobile-search:hover { color: var(--black); }
.ihe-nav__mobile-search svg {
  width: 16px;
  height: 16px;
}

/* Mobile search dropdown — flush under nav bar */
.ihe-mobile-nav-search {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99998;
  background: var(--gold);
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.3s ease;
}
.ihe-mobile-nav-search.is-active {
  max-height: 56px;
  padding: 10px 16px;
}
.ihe-mobile-nav-search__field {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1.5px solid rgba(51,49,50,0.15);
  background: rgba(0,0,0,0.05);
  color: var(--black);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  outline: none;
  transition: background 0.15s, border-color 0.15s;
}
.ihe-mobile-nav-search__field:focus {
  background: rgba(255,255,255,0.2);
  border-bottom-color: rgba(51,49,50,0.3);
}
.ihe-mobile-nav-search__field::placeholder {
  color: rgba(51,49,50,0.35);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .ihe-nav__hubs,
  .ihe-nav__right .ihe-search,
  .ihe-nav__right .ihe-nav__cta {
    display: none;
  }
  .ihe-nav__hamburger {
    display: block;
  }
  .ihe-nav__mobile-search {
    display: flex;
    align-items: center;
  }
  .ihe-mobile-nav-search {
    display: block;
  }
  .ihe-mobile-panel {
    display: block;
  }
  .ihe-mobile-backdrop {
    display: block;
  }
  .ihe-mobile-cta {
    display: block;
  }
  .ihe-nav__inner {
    width: 100%;
    padding: 0 16px;
    height: 56px;
  }
  .ihe-nav__logo {
    margin-right: auto;
  }
  .ihe-nav__bird {
    height: 24px;
  }
  .ihe-nav__logo img:not(.ihe-nav__bird) {
    height: 18px;
  }
  .ihe-nav__right {
    gap: 4px;
  }
}
</style>
