/* =========================================================
   Intris – mega-menu header
   ========================================================= */

/* Hide the theme's old header. Check the class with Inspect and adjust if needed. */
.mainHeader,
.btVerticalHeaderTop,
.btMenuVertical .mainHeader { display: none !important; }
.btNoDashInSidebar .btPageWrap,
.btMenuHorizontal .btPageWrap { padding-top: 0 !important; }

.ih {
  --ih-ink: #25272c;
  --ih-text: #4d5058;
  --ih-muted: #7b7f88;
  --ih-line: #e6e7ea;
  --ih-soft: #f3f4f6;
  --ih-accent: #c41e3a;
  --ih-gray: #8e9098;
  --ih-purple: #692d8e;
  --ih-grad: linear-gradient(90deg, #c41e3a 0%, #692d8e 100%);
  --ih-accent-ink: #692d8e;
  --ih-accent-soft: #f1f2f4;
  --ih-h: 76px;
  --ih-top: var(--wp-admin--admin-bar--height, 0px);
  --ih-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ih-font-head: "Sora", "Figtree", system-ui, sans-serif;

  position: sticky;
  top: var(--ih-top);
  z-index: 9990;
  font-family: var(--ih-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ih-text);
  transition: transform .3s ease;
}
.ih *, .ih *::before, .ih *::after { box-sizing: border-box; }
.ih :where(ul, h2, h3, p) { margin: 0; padding: 0; }
:where(.ih) ul { list-style: none; }
.ih li { margin: 0; padding: 0; }
.ih li::before { display: none !important; }
:where(.ih) a { color: inherit; text-decoration: none; }
:where(.ih) button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; }
.ih svg { display: block; }
.ih a:focus-visible,
.ih button:focus-visible { outline: 2px solid var(--ih-accent); outline-offset: 3px; border-radius: 6px; }

.ih.is-hidden { transform: translateY(calc(-100% - var(--ih-top))); }

.ih-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); }

/* ---------- Bar ---------- */
.ih-bar {
  position: relative;
  z-index: 3;
  padding-top: env(safe-area-inset-top, 0px); /* keeps logo + menu button clear of the iPhone notch/status bar */
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.ih.is-scrolled .ih-bar,
.ih.is-open .ih-bar { border-bottom-color: var(--ih-line); }
.ih.is-scrolled:not(.is-open) .ih-bar { box-shadow: 0 6px 24px -12px rgba(19, 35, 58, .18); }

.ih-bar__inner { display: flex; align-items: center; gap: 24px; height: var(--ih-h); }
.ih-logo { flex: 0 0 auto; }
.ih-logo img { display: block; height: 40px; width: auto; }

.ih-nav { flex: 1 1 auto; display: flex; justify-content: center; height: 100%; }
.ih-menu { display: flex; align-items: stretch; gap: 8px; height: 100%; }
.ih-menu > li { display: flex; align-items: center; }

.ih-trigger,
.ih-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ih-ink);
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.ih-trigger:hover,
.ih-link:hover,
.ih-trigger[aria-expanded="true"] { background: var(--ih-soft); }
.ih-trigger[aria-expanded="true"] { color: var(--ih-accent-ink); }
.ih-link[aria-current="page"],
.ih-trigger.is-current { color: var(--ih-accent-ink); }
.ih-trigger::after {
  content: "";
  position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--ih-grad);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.ih-trigger[aria-expanded="true"]::after,
.ih-trigger.is-current::after { transform: scaleX(1); }
.ih-chev { width: 16px; height: 16px; transition: transform .2s ease; }
.ih-trigger[aria-expanded="true"] .ih-chev { transform: rotate(180deg); }

.ih-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; }
.ih-phone { font-size: 15px; font-weight: 600; color: var(--ih-ink); white-space: nowrap; }
.ih-phone:hover { color: var(--ih-accent); }
.ih-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: #c41e3a;
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(196, 30, 58, .5);
}
.ih-cta::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: #692d8e;
  opacity: 0;
  transition: opacity .2s ease;
}
.ih-cta:hover::after { opacity: 1; }

.ih-burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.ih-burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--ih-ink);
  transition: transform .25s ease, top .25s ease;
}
.ih-burger span:first-child { top: 17px; }
.ih-burger span:last-child { top: 25px; }
.ih-burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.ih-burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Mega panels ---------- */
.ih-panels {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--ih-line);
  box-shadow: 0 24px 48px -24px rgba(37, 39, 44, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
}
.ih-panels::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, #c41e3a, #8e9098 50%, #692d8e);
}
.ih.is-open .ih-panels {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s ease, transform .25s ease, visibility 0s;
}
.ih-panel { display: none; }
.ih-panel.is-active { display: block; animation: ih-fade .22s ease both; }
@keyframes ih-fade { from { opacity: 0; } to { opacity: 1; } }

.ih-panel__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr) minmax(220px, 1fr);
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 40px;
}
.ih-panel__grid--res { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr) minmax(260px, 1.1fr); }

.ih-intro { padding-right: 8px; }
.ih-intro__title {
  margin-bottom: 10px !important;
  font-family: var(--ih-font-head);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ih-ink);
}
.ih-intro__text { font-size: 15px; color: var(--ih-muted); margin-bottom: 20px !important; }
.ih-more { display: inline; font-size: 15px; font-weight: 600; color: var(--ih-accent); }
.ih-more svg { display: inline-block; width: 18px; height: 18px; margin-left: 4px; vertical-align: -4px; transition: transform .15s; }
.ih-more:hover svg { transform: translateX(3px); }

.ih-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; align-content: start; }
.ih-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ih-cards--stack { grid-template-columns: 1fr; align-content: start; }

.ih-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  transition: background-color .15s;
}
.ih-card:hover { background: var(--ih-soft); }
.ih-card strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--ih-ink); line-height: 1.35; margin-bottom: 3px; }
.ih-card > span:last-child > span { display: block; font-size: 14px; color: var(--ih-muted); line-height: 1.45; }
.ih-card:hover strong { color: var(--ih-accent-ink); }

.ih-ico {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ih-accent-soft);
  color: #c41e3a;
  transition: background-color .15s, color .15s;
}
.ih-ico svg { width: 22px; height: 22px; }
.ih-card:hover .ih-ico { background: #692d8e; color: #fff; }

.ih-feature {
  align-self: start;
  padding: 22px;
  border-radius: 14px;
  background: var(--ih-soft);
}
.ih-feature__title { font-family: var(--ih-font-head); font-size: 16px; font-weight: 600; color: var(--ih-ink); margin-bottom: 4px !important; }
.ih-feature__text { font-size: 14px; color: var(--ih-muted); margin-bottom: 14px !important; }
.ih-feature__list { display: grid; gap: 2px; }
.ih-feature__list a { display: block; padding: 7px 0; font-size: 14.5px; font-weight: 500; color: var(--ih-ink); border-bottom: 1px solid var(--ih-line); }
.ih-feature__list li:last-child a { border-bottom: 0; }
.ih-feature__list a:hover { color: var(--ih-accent); }

.ih-feature--cta { background: #2a2c31; }
.ih-feature--cta .ih-feature__title { color: #fff; }
.ih-feature--cta .ih-feature__text { color: #b9bcc3; }
.ih-feature__btn {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  border-radius: 999px; background: #c41e3a; color: #fff !important; font-weight: 700; font-size: 14.5px;
  transition: filter .15s;
}
.ih-feature__btn:hover { background: #692d8e; }

.ih-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ih-col__title { font-size: 13px; font-weight: 600; color: var(--ih-muted); margin-bottom: 10px !important; min-height: 1.4em; }
.ih-list { display: grid; gap: 2px; }
.ih-list a { display: block; padding: 6px 0; font-size: 15px; color: var(--ih-ink); }
.ih-list a:hover { color: var(--ih-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Scrim ---------- */
.ih-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(37, 39, 44, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.ih.is-open .ih-scrim,
.ih.is-drawer .ih-scrim { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }

/* ---------- Mobile drawer ---------- */
.ih-drawer {
  position: fixed;
  z-index: 2;
  left: 0; right: 0;
  top: calc(var(--ih-top) + var(--ih-h) + env(safe-area-inset-top, 0px));
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.ih-drawer[hidden] { display: none; }
.ih.is-drawer .ih-drawer { transform: none; }

.ih-drawer__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px clamp(20px, 4vw, 32px) 24px; }
.ih-drawer__foot {
  display: grid; gap: 10px;
  padding: 16px clamp(20px, 4vw, 32px) calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ih-line);
  text-align: center;
}
.ih-cta--block { display: flex; height: 52px; }
.ih-drawer__phone { font-weight: 600; color: var(--ih-ink); padding: 6px; }

.ih-acc { border-bottom: 1px solid var(--ih-line); }
.ih-acc__btn,
.ih-acc__link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  min-height: 60px;
  font-family: var(--ih-font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--ih-ink);
  text-align: left;
}
.ih-acc__btn svg { width: 20px; height: 20px; transition: transform .2s; }
.ih-acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ih-acc__panel { padding: 0 0 18px; }
.ih-acc__panel[hidden] { display: none; }
.ih-acc__panel .ih-cards { grid-template-columns: 1fr; gap: 2px; }
.ih-acc__panel .ih-card { padding: 10px 4px; align-items: center; }
.ih-acc__panel .ih-card strong { margin: 0; font-weight: 500; }
.ih-acc__panel .ih-card > span:last-child > span { display: none; }
.ih-acc__panel .ih-ico { flex-basis: 34px; width: 34px; height: 34px; }
.ih-acc__panel .ih-ico svg { width: 19px; height: 19px; }
.ih-acc__panel .ih-feature { margin-top: 10px; padding: 16px; }
.ih-acc__panel .ih-feature__text { display: none; }
.ih-acc__panel .ih-more { margin: 4px 0 8px; }
.ih-acc__panel .ih-cols { grid-template-columns: 1fr; gap: 8px; }
.ih-acc__panel .ih-col__title:empty,
.ih-acc__panel .ih-col__title:not(:empty) { margin-top: 8px !important; }

html.ih-lock, html.ih-lock body { overflow: hidden !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .ih-phone { display: none; }
  .ih-panel__grid { grid-template-columns: minmax(200px, .9fr) minmax(0, 2.4fr); }
  .ih-feature { grid-column: 2; }
  .ih-panel__grid--res { grid-template-columns: minmax(200px, .9fr) minmax(0, 2.4fr); }
  .ih-panel__grid--res .ih-cards--stack { grid-column: 2; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .ih { --ih-h: 68px; }
  .ih-nav, .ih-panels { display: none; }
  .ih-burger { display: block; }
  .ih-bar__inner { justify-content: space-between; }
  .ih-logo img { height: 36px; }
}
@media (max-width: 480px) {
  .ih-actions > .ih-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ih, .ih-panels, .ih-drawer, .ih-scrim, .ih-chev { transition: none !important; }
  .ih-panel.is-active { animation: none; }
}
