/* Infoved shared header + footer. Everything is prefixed .iv- so WordPress theme CSS can't clash. */
:root {
  --iv-navy: #0B1F4D; --iv-royal: #1767E0; --iv-royal-dark: #0f57c4; --iv-cobalt: #1849B8;
  --iv-slate: #44526B; --iv-line: #E1E9F5; --iv-mist: #EEF4FD;
  --iv-container: 1280px; --iv-header-h: 72px;
}
.iv-header, .iv-footer { font-family: Inter, system-ui, sans-serif; color: var(--iv-navy); line-height: 1.5; }
.iv-header *, .iv-footer * { box-sizing: border-box; }
.iv-header a, .iv-footer a { text-decoration: none; color: inherit; }
.iv-header button { margin: 0; }
.iv-header ul, .iv-footer ul { list-style: none; margin: 0; padding: 0; }
.iv-container { box-sizing: border-box; width: 100%; max-width: var(--iv-container); margin: 0 auto; padding: 0 20px; }
.iv-logo { display: block; width: 128px; flex-shrink: 0; }
.iv-header__brand { display: flex; align-items: center; gap: 24px; }
.iv-header__divider { display: none; width: 1px; height: 28px; background: rgba(11, 31, 77, .15); }
@media (min-width: 1180px) { .iv-header__divider { display: block; } }
.iv-logo img { display: block; width: 100%; height: auto; }
.iv-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--iv-royal); color: #fff !important; font-weight: 600; font-size: 13px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 24px rgba(23, 103, 224, .28); transition: background .2s, transform .2s; white-space: nowrap; }
.iv-nav__cta { border-radius: 999px; padding: 10px 20px; }
.iv-btn:hover { background: var(--iv-royal-dark); transform: translateY(-2px); }
.iv-btn--sm { padding: 8px 16px; }

/* ---------- Header ---------- */
.iv-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); transition: box-shadow .3s; }
.admin-bar .iv-header { top: 32px; } /* WordPress admin bar */
.iv-header.is-scrolled, .iv-header.is-open { box-shadow: 0 8px 30px rgba(10,31,68,.08); }
.iv-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--iv-header-h); }
.iv-nav { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 20px; }
.iv-nav__list { display: flex; align-items: center; gap: 4px; }
.iv-nav__item { position: relative; }
.iv-nav__link { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; background: none; border-radius: 6px; font: 600 13px/1.4 Inter, system-ui, sans-serif; color: var(--iv-navy); cursor: pointer; transition: color .2s; }
.iv-nav__link:hover, .iv-nav__item.is-open > .iv-nav__link, .iv-nav__link.is-active { color: var(--iv-royal); }
.iv-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.iv-nav__item.is-open .iv-chev { transform: rotate(180deg); }

.iv-menu { position: absolute; left: 0; top: 100%; margin-top: 12px; width: 320px; padding: 8px; background: #fff; border: 1px solid var(--iv-line); border-radius: 16px; box-shadow: 0 24px 60px rgba(11,31,77,.16); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s; }
.iv-menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* hover bridge */
.iv-menu--grid { display: grid; grid-template-columns: 1fr 1fr; width: 380px; }
.iv-nav__item.is-open > .iv-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.iv-menu a { display: block; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.iv-menu a:hover { background: var(--iv-mist); color: var(--iv-royal); }
.iv-menu a.iv-menu__all { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--iv-line); border-radius: 0 0 8px 8px; font-size: 13px; color: var(--iv-royal); }

.iv-burger { display: none; width: 44px; height: 44px; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; background: #fff; border: 1px solid var(--iv-line); border-radius: 8px; cursor: pointer; }
.iv-burger span { display: block; height: 2px; background: var(--iv-navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.iv-header.is-open .iv-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.iv-header.is-open .iv-burger span:nth-child(2) { opacity: 0; }
.iv-header.is-open .iv-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 640px) { .iv-container { padding: 0 28px; } }
@media (min-width: 1024px) { .iv-container { padding: 0 40px; } }
@media (min-width: 1180px) { :root { --iv-header-h: 78px; } }

/* Mobile / tablet: nav becomes a full-screen panel */
@media (max-width: 1179px) {
  .iv-burger { display: flex; }
  /* backdrop-filter would trap the fixed panel inside the 72px header, so drop it while the menu is open */
  .iv-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .iv-nav { position: fixed; inset: var(--iv-header-h) 0 0; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 8px 20px 40px; background: #fff; overflow-y: auto; display: none; }
  .admin-bar .iv-nav { top: calc(var(--iv-header-h) + 46px); }
  .iv-header.is-open .iv-nav { display: flex; }
  .iv-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .iv-nav__item { border-bottom: 1px solid var(--iv-line); }
  .iv-nav__link { width: 100%; justify-content: space-between; padding: 16px 0; font: 700 20px/1.3 Montserrat, Inter, sans-serif; }
  .iv-chev { width: 20px; height: 20px; }
  .iv-menu, .iv-menu--grid { position: static; display: none; width: auto; margin: 0 0 16px; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .iv-menu::before { display: none; }
  .iv-nav__item.is-open > .iv-menu { display: grid; gap: 4px; grid-template-columns: 1fr; }
  .iv-menu a { background: var(--iv-mist); }
  .iv-menu a.iv-menu__all { order: -1; margin: 0; border: 0; border-radius: 8px; background: rgba(23,103,224,.1); }
  .iv-nav__cta { justify-content: center; margin-top: 32px; padding: 14px; font-size: 15px; }
  body.iv-lock { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .iv-header { top: 46px; } }

/* ---------- Footer (brand | link columns | Connect With Us) ---------- */
.iv-footer { background: #F7FAFF; border-top: 1px solid var(--iv-line); padding: 48px 0 0; }
.iv-footer__grid { display: grid; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--iv-line); }
.iv-footer .iv-logo { width: 150px; }
.iv-footer__tagline { margin: 4px 0 0; font: 600 15px/1.4 Montserrat, Inter, sans-serif; color: var(--iv-navy); }
.iv-footer__title { margin: 0; font: 700 14px/1.4 Montserrat, Inter, sans-serif; color: var(--iv-cobalt); }
.iv-footer__links { display: grid; gap: 6px; margin-top: 12px !important; font-size: 13px; color: var(--iv-slate); }
.iv-footer__links a:hover, .iv-footer__legal a:hover { color: var(--iv-royal); }
.iv-social { display: flex; gap: 12px; margin-top: 12px; }
.iv-social a, .iv-social span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: var(--iv-cobalt); transition: color .2s, background .2s, box-shadow .2s; }
.iv-social a:hover { color: var(--iv-royal); background: #fff; box-shadow: 0 4px 16px rgba(23, 74, 160, .07); }
.iv-social svg { width: 24px; height: 24px; fill: currentColor; }
.iv-social svg.iv-social__mail { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.iv-footer__bottom { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 24px; font-size: 12px; color: var(--iv-slate); }
.iv-footer__bottom p { margin: 0; }
.iv-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.iv-footer__legal a + a::before { content: "|"; margin-right: 10px; color: rgba(68, 82, 107, .5); }

@media (min-width: 640px) { .iv-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .iv-footer { padding-top: 56px; } .iv-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 1024px) {
  .iv-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr .9fr; gap: 0; }
  .iv-footer__col { padding: 0 32px; }
  .iv-footer__col + .iv-footer__col { border-left: 1px solid var(--iv-line); }
}
