/* ==========================================================================
   WordPress integration (added on top of the design's header.css)
   Hello's reset.css styles every <button> (magenta border, padding, hover fill) and the
   omangom-widgets plugin zeroes margins on every element. :where() keeps these resets at low
   specificity so the design rules below still win.
   ========================================================================== */
.oh :where(button) {
  background-color: transparent; border: 0; border-radius: 0; color: inherit; padding: 0;
  font-size: inherit; font-weight: inherit; line-height: inherit; text-align: inherit; text-transform: none; box-shadow: none;
}
/* Hello's hover/focus only changes the colours, so only undo those: resetting padding or font here
   would beat the component rules below while a button is tapped (focused) or hovered. */
.oh :where(button):hover, .oh :where(button):focus { background-color: transparent; color: inherit; }
.oh :where(a):hover, .oh :where(a):focus { color: inherit; }
.oh :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.oh :where(p) { margin: 0; }
.oh :where(img, svg) { max-width: none; }
/* The design's links and buttons use color: inherit, and its demo pages set the body colour.
   Give the header its own text colour so it never depends on the page. */
.oh { color: var(--oh-text); }

/* ==========================================================================
   OMANGOM Header v2 — floating glass header with mega menus
   Themes: .oh--light (blog / light pages) · .oh--dark (homepage / dark heroes)
   Prefix "oh-" avoids clashes with WordPress / Elementor styles.
   ========================================================================== */

.oh {
  --oh-ink: #0B1B2B;
  --oh-text: #2B3645;
  --oh-muted: #5D6B7C;
  --oh-surface: rgba(255,255,255,.78);
  --oh-surface-solid: #FFFFFF;
  --oh-border: rgba(11,27,43,.08);
  --oh-hover: rgba(11,27,43,.05);
  --oh-panel: #FFFFFF;
  --oh-panel-soft: #F7F8FB;
  --oh-shadow: 0 10px 40px -12px rgba(11,27,43,.18);
  --oh-brand: #FFC60A;
  --oh-teal: #79CDD3;
  --oh-teal-deep: #1E6E78;
  --oh-bar-bg: linear-gradient(90deg, #FFF3C4 0%, #FFFAEB 45%, #E8FCFD 100%);
  --oh-bar-text: #0B1B2B;
  --oh-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --oh-bar-h: 40px;
  position: sticky; top: calc(-1 * var(--oh-bar-h)); z-index: 100; /* bar scrolls away, nav stays */
  font-family: var(--oh-font);
}
.oh.bar-hidden { top: 0; }
.oh--dark {
  --oh-ink: #FFFFFF;
  --oh-text: rgba(255,255,255,.86);
  --oh-muted: rgba(255,255,255,.62);
  --oh-surface: rgba(16,14,48,.55);
  --oh-surface-solid: rgba(16,14,48,.92);
  --oh-border: rgba(255,255,255,.10);
  --oh-hover: rgba(255,255,255,.08);
  --oh-panel: #14123A;
  --oh-panel-soft: #1C1A4A;
  --oh-shadow: 0 20px 50px -12px rgba(0,0,0,.55);
  --oh-bar-bg: linear-gradient(90deg, rgba(255,198,10,.16), rgba(121,205,211,.14));
  --oh-bar-text: #FFFFFF;
}
.oh *, .oh *::before, .oh *::after { box-sizing: border-box; }
.oh a { text-decoration: none; color: inherit; }
.oh button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.oh :focus-visible { outline: 2px solid var(--oh-teal); outline-offset: 2px; border-radius: 8px; }

/* ---------- Announcement bar ---------- */
.oh-bar {
  background: var(--oh-bar-bg); color: var(--oh-bar-text);
  font-size: 13.5px; font-weight: 500; line-height: 1.3;
  height: var(--oh-bar-h); overflow: hidden; transition: height .3s ease, opacity .3s ease;
}
.oh-bar__inner { height: 100%; white-space: nowrap; max-width: 1240px; margin: 0 auto; padding: 0 48px 0 20px; position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; }
.oh-bar__pill {
  flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--oh-brand); color: #0B1B2B;
}
.oh-bar a { font-weight: 700; white-space: nowrap; border-bottom: 1.5px solid currentColor; }
.oh-bar a:hover { opacity: .75; }
.oh-bar__close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; opacity: .6; }
.oh-bar__close:hover { opacity: 1; background: var(--oh-hover); }
.oh.bar-hidden .oh-bar { height: 0; opacity: 0; }

/* ---------- Floating nav shell ---------- */
.oh-wrap { padding: 12px 20px 0; transition: padding .25s ease; }
.oh-nav {
  max-width: 1240px; margin: 0 auto; height: 68px; padding: 0 10px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: 20px;
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: height .25s ease, box-shadow .25s ease, background .25s ease, border-radius .25s ease;
  position: relative;
}
.oh.is-scrolled .oh-wrap { padding-top: 8px; }
.oh.is-scrolled .oh-nav { height: 60px; background: var(--oh-surface-solid); box-shadow: var(--oh-shadow); }

.oh-logo { display: flex; align-items: center; flex: none; }
.oh-logo img { height: 36px; width: auto; display: block; }
.oh--light .oh-logo .logo-on-dark, .oh--dark .oh-logo .logo-on-light { display: none; }

/* ---------- Primary links ---------- */
.oh-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.oh-menu > li { position: static; }
.oh-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--oh-text); transition: background .2s, color .2s;
}
.oh-link:hover, .oh-link[aria-expanded="true"] { background: var(--oh-hover); color: var(--oh-ink); }
.oh-link.is-active { color: var(--oh-ink); font-weight: 700; }
.oh-link.is-active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--oh-brand); margin-left: 2px; }
.oh-link svg { transition: transform .25s ease; opacity: .7; }
.oh-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.oh-ai {
  font-weight: 800;
  background: linear-gradient(90deg, #FFC60A, #FF8A5B 55%, #D66BFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.oh-new { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: var(--oh-teal); color: #0B1B2B; }

/* ---------- Actions ---------- */
.oh-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.oh-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--oh-text);
}
.oh-ghost:hover { background: var(--oh-hover); color: var(--oh-ink); }
.oh-cta {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px;
  background: var(--oh-brand); color: #0B1B2B !important; font-size: 15px; font-weight: 800; overflow: hidden;
  box-shadow: 0 6px 18px -6px rgba(255,198,10,.7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.oh-cta::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%);
  animation: oh-shine 4.5s ease-in-out infinite 1.5s;
}
.oh-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(255,198,10,.85); }
.oh-cta svg { transition: transform .2s ease; }
.oh-cta:hover svg { transform: translateX(3px); }
@keyframes oh-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* ---------- Mega menu panels ---------- */
.oh-panel {
  position: absolute; left: 50%; top: calc(100% + 10px); width: min(960px, calc(100vw - 40px));
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none;
  background: var(--oh-panel); border: 1px solid var(--oh-border); border-radius: 22px; box-shadow: var(--oh-shadow);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  overflow: hidden;
}
.oh-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.oh-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.oh-panel__grid { display: grid; grid-template-columns: 1fr 300px; }
.oh-panel__main { padding: 22px; }
.oh-panel__label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--oh-muted); margin: 4px 10px 12px; }
.oh-items { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.oh-items--one { grid-template-columns: 1fr; }
.oh-item { display: flex; gap: 14px; padding: 12px; border-radius: 14px; transition: background .15s; }
.oh-item:hover { background: var(--oh-panel-soft); }
.oh-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #FFF6D6; color: #8A6800; transition: transform .2s ease;
}
.oh-item:hover .oh-ico { transform: scale(1.06) rotate(-3deg); }
.oh-ico--teal { background: #E0F7F8; color: #1E6E78; }
.oh-ico--indigo { background: #EEF1FF; color: #4158D0; }
.oh-ico--peach { background: #FFEEDF; color: #A4501C; }
.oh-ico--lilac { background: #F2E8FF; color: #6A3DC0; }
.oh--dark .oh-ico { background: rgba(255,198,10,.14); color: #FFD54F; }
.oh--dark .oh-ico--teal { background: rgba(121,205,211,.16); color: #91F1FA; }
.oh--dark .oh-ico--indigo { background: rgba(196,207,255,.14); color: #C4CFFF; }
.oh--dark .oh-ico--peach { background: rgba(253,212,183,.14); color: #FDD4B7; }
.oh--dark .oh-ico--lilac { background: rgba(215,181,255,.14); color: #D7B5FF; }
.oh-item strong { display: block; font-size: 15px; font-weight: 700; color: var(--oh-ink); line-height: 1.3; }
/* Description text only: a plain `.oh-item span` also matched the .oh-ico box (a span) and broke its centring. */
.oh-item div > span { display: block; font-size: 13.5px; color: var(--oh-muted); line-height: 1.45; margin-top: 3px; }
.oh-item .oh-ico svg { display: block; }

.oh-feature { background: var(--oh-panel-soft); padding: 22px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--oh-border); }
.oh-feature__card { display: block; border-radius: 16px; overflow: hidden; background: var(--oh-panel); border: 1px solid var(--oh-border); transition: transform .2s ease, box-shadow .2s ease; }
.oh-feature__card:hover { transform: translateY(-2px); box-shadow: var(--oh-shadow); }
.oh-feature__card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.oh-feature__card div { padding: 14px 16px 16px; }
.oh-feature__card em { font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #B98C00; }
.oh--dark .oh-feature__card em { color: var(--oh-brand); }
.oh-feature__card strong { display: block; margin-top: 6px; font-size: 15px; line-height: 1.35; color: var(--oh-ink); }
.oh-feature__links { display: flex; flex-direction: column; gap: 2px; }
.oh-feature__links a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--oh-text); }
.oh-feature__links a:hover { background: var(--oh-panel); color: var(--oh-ink); }

.oh-panel__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 24px; border-top: 1px solid var(--oh-border); background: var(--oh-panel); font-size: 14px; color: var(--oh-muted);
}
.oh-panel__foot a { font-weight: 700; color: var(--oh-ink); display: inline-flex; align-items: center; gap: 6px; }
.oh-panel__foot a:hover { color: var(--oh-teal-deep); }
.oh--dark .oh-panel__foot a:hover { color: var(--oh-teal); }

/* Small panel variant (Company) */
.oh-panel--sm { width: 380px; }
.oh-panel--sm .oh-panel__grid { grid-template-columns: 1fr; }

/* ---------- Burger + mobile drawer ---------- */
.oh-burger { display: none; width: 44px; height: 44px; border-radius: 12px; place-items: center; }
.oh-burger:hover { background: var(--oh-hover); }
.oh-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--oh-ink); position: relative; transition: background .2s; }
.oh-burger span::before, .oh-burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--oh-ink); transition: transform .25s ease, top .25s ease; }
.oh-burger span::before { top: -6px; } .oh-burger span::after { top: 6px; }
.oh.menu-open .oh-burger span { background: transparent; }
.oh.menu-open .oh-burger span::before { top: 0; transform: rotate(45deg); }
.oh.menu-open .oh-burger span::after { top: 0; transform: rotate(-45deg); }

.oh-drawer {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; top: var(--oh-drawer-top, 88px);
  background: var(--oh-panel); overflow-y: auto; padding: 16px 20px 24px;
  opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease;
}
.oh.menu-open .oh-drawer { opacity: 1; transform: none; }
.oh-acc { border-bottom: 1px solid var(--oh-border); }
.oh-acc > button, .oh-acc > a { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 18px; font-weight: 700; color: var(--oh-ink); text-align: left; }
.oh-acc > button svg { transition: transform .25s ease; }
.oh-acc > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.oh-acc__body { display: none; padding: 0 0 12px; }
.oh-acc__body.is-open { display: block; }
.oh-acc__body a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 15.5px; color: var(--oh-text); }
.oh-acc__body a:hover { background: var(--oh-panel-soft); }
.oh-drawer__cta { display: grid; gap: 10px; margin-top: 20px; }
.oh-drawer__cta .oh-cta { justify-content: center; height: 52px; }
.oh-drawer__cta .oh-ghost { justify-content: center; border: 1px solid var(--oh-border); height: 50px; }
.oh-drawer__contact { margin-top: 20px; font-size: 14px; color: var(--oh-muted); line-height: 1.7; text-align: center; }
.oh-drawer__contact a { color: var(--oh-ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .oh-ghost--desk { display: none; }
  .oh-link { padding: 0 11px; }
}
@media (max-width: 960px) {
  .oh-menu, .oh-actions .oh-cta, .oh-panel { display: none; }
  .oh-burger { display: grid; }
  .oh-drawer { display: block; visibility: hidden; }
  .oh.menu-open .oh-drawer { visibility: visible; }
  .oh-wrap { padding: 8px 12px 0; }
  .oh-nav { height: 60px; padding: 0 6px 0 16px; border-radius: 16px; }
  .oh-logo img { height: 32px; }
  .oh.menu-open .oh-nav { background: var(--oh-panel); }
}
@media (max-width: 560px) {
  .oh-bar { font-size: 12.5px; }
  .oh-bar__inner { justify-content: flex-start; padding-left: 14px; overflow: hidden; }
  .oh-bar__inner > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
  .oh-bar__text-long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oh *, .oh *::before, .oh *::after { animation: none !important; transition: none !important; }
}

/* Drawer rows keep their heading colour while tapped/hovered (the reset above sets color: inherit). */
.oh .oh-acc > button:hover, .oh .oh-acc > button:focus { color: var(--oh-ink); }

/* Menu labels never wrap; between the mobile breakpoint and 1100px tighten the spacing so the
   bolder active item ("Insights" on the blog) still fits on one line. */
.oh-link { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1100px) {
  .oh-link { padding: 0 9px; }
  .oh-nav { gap: 10px; }
}

/* ==========================================================================
   WordPress integration: dark header floats over full-bleed Elementor heroes
   ========================================================================== */
/* Dark pages: the header overlays the page (like the previous Elementor header). The announcement bar
   slides away on scroll so only the floating nav stays on screen. */
.oh--overlay {
  position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px);
  transition: top .3s ease;
}
/* Elementor heroes are spaced for the previous (shorter) header: push the page down by the
   announcement bar's height while the bar is showing, so the nav sits where the old header did. */
body:has(> .oh--overlay:not(.no-bar)) { padding-top: 40px; transition: padding-top .3s ease; }
body:has(> .oh--overlay.bar-hidden) { padding-top: 0; }
/* Animate `top`, not transform: a transform would trap the position:fixed mobile drawer inside the header. */
.oh--overlay.is-scrolled { top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--oh-bar-h)); }

/* The announcement bar uses the light (blog) colours on dark pages too. */
.oh--dark .oh-bar {
  --oh-bar-bg: linear-gradient(90deg, #FFF3C4 0%, #FFFAEB 45%, #E8FCFD 100%);
  --oh-bar-text: #0B1B2B;
  --oh-hover: rgba(11,27,43,.05);
}

/* Light pages (blog): sticky in the page flow; keep clear of the WordPress admin bar. */
.oh--light, .oh--light.bar-hidden { top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--oh-bar-h)); }

/* No announcement bar rendered, or dismissed by the visitor */
.oh.no-bar, .oh.bar-hidden { --oh-bar-h: 0px; }

/* On phones the WordPress admin bar scrolls away with the page, so don't offset for it */
@media (max-width: 600px) {
  body.admin-bar .oh { --wp-admin--admin-bar--height: 0px; }
}
