/* =========================================================
   MediaNV – GLOBAL header & footer (new design)
   All classes start with .mnvh (header) / .mnvf (footer),
   so they never clash with the theme's own styles.
   ========================================================= */

/* ---------- scoped reset (protects against theme / Bootstrap styles) ---------- */
.mnvh, .mnvh *, .mnvh *::before, .mnvh *::after,
.mnvf, .mnvf *, .mnvf *::before, .mnvf *::after { box-sizing: border-box; }
.mnvh ul, .mnvf ul { list-style: none; margin: 0; padding: 0; }
.mnvh li, .mnvf li { margin: 0; padding: 0; list-style: none; }
.mnvh a, .mnvf a,
.mnvh a:hover, .mnvf a:hover,
.mnvh a:focus, .mnvf a:focus { text-decoration: none; }
.mnvh img, .mnvf img { display: block; max-width: 100%; height: auto; border: 0; }
.mnvh button { font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: inherit; }
.mnvh :focus-visible, .mnvf :focus-visible { outline: 3px solid #00a7b5; outline-offset: 3px; border-radius: 6px; }

/* =========================================================
   HEADER
   ========================================================= */
.mnvh {
  --mnv-teal: #00a7b5; --mnv-teal-dark: #008b97; --mnv-ink: #212121;
  position: fixed; z-index: 9990; top: 30px; left: 50%; transform: translateX(-50%);
  width: min(1500px, calc(100% - 2 * clamp(16px, 4vw, 40px)));
  height: 82px; margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 30px; border-radius: 24px;
  background: rgba(255, 255, 255, .44);
  border: 1.2px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(5.1px); backdrop-filter: blur(5.1px);
  font-family: "Open Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: top .35s cubic-bezier(.22, .61, .36, 1), background-color .35s, box-shadow .35s;
}
.mnvh.is-scrolled { top: 14px; background: rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }

/* solid glass on normal pages */
.mnvh { background: rgba(255, 255, 255, .88); border-color: rgba(0, 0, 0, .06); box-shadow: 0 8px 28px rgba(0, 0, 0, .07); }
.mnvh-spacer { height: 142px; }

.admin-bar .mnvh { top: 62px; }
.admin-bar .mnvh.is-scrolled { top: 46px; }

.mnvh__logo { flex: 0 0 auto; display: block; }
.mnvh__logo img { width: 202px; height: 42px; object-fit: contain; }

.mnvh__menu { display: flex; align-items: center; gap: 8px; }
.mnvh__list { display: flex; align-items: center; gap: 8px; }
.mnvh__list li { position: relative; }

.mnvh__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Open Sans", "Inter", system-ui, sans-serif; font-weight: 600; font-size: 19px; line-height: 19px; letter-spacing: -0.475px;
  color: #212121; padding: 10px 20px; border-radius: 20px;
  transition: background-color .3s linear, color .3s linear;
}
.mnvh__link:hover, .mnvh__link:focus { color: var(--mnv-teal); background: rgba(0, 167, 181, .12); }

/* active page */
.mnvh__list > .current-menu-item > .mnvh__link,
.mnvh__list > .current_page_item > .mnvh__link,
.mnvh__list > .current-menu-ancestor > .mnvh__link,
.mnvh__list > .current-menu-parent > .mnvh__link,
.mnvh__list .mnvh__link.is-active { background: rgba(0, 167, 181, .12); color: var(--mnv-teal); }

/* header button with pop in / pop out */
.mnvh__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 174px; padding: 7px 20px; margin-left: 22px; border-radius: 43px;
  background: var(--mnv-teal); color: #fff;
  font-family: "Gilroy", "Urbanist", "Inter", sans-serif; font-weight: 600; font-size: 18px; line-height: 1.5; letter-spacing: -0.6px; white-space: nowrap;
  transition: background-color .3s cubic-bezier(.68, -.2, .27, 1.3), transform .3s cubic-bezier(.68, -.2, .27, 1.3);
  animation: mnvhPop 2.4s cubic-bezier(.34, 1.56, .64, 1) infinite;
}
.mnvh__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(0, 167, 181, .45);
  animation: mnvhRing 2.4s ease-out infinite; pointer-events: none;
}
.mnvh__btn:hover, .mnvh__btn:focus { color: #fff; background: var(--mnv-ink); transform: scale(1.04); animation: none; }
.mnvh__btn:hover::after, .mnvh__btn:focus::after { animation: none; }
@keyframes mnvhPop { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.08); } 24% { transform: scale(.97); } 36% { transform: scale(1.02); } 48% { transform: scale(1); } }
@keyframes mnvhRing { 0% { box-shadow: 0 0 0 0 rgba(0, 167, 181, .45); } 60% { box-shadow: 0 0 0 12px rgba(0, 167, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 167, 181, 0); } }

/* sub-menu links */
.mnvh .sub-menu { list-style: none; margin: 0; padding: 8px; }
.mnvh__sublink {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  padding: 10px 14px; border-radius: 10px;
  font-family: "Open Sans", "Inter", system-ui, sans-serif; font-weight: 600; font-size: 16px; line-height: 1.3;
  color: #212121; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.mnvh__sublink:hover, .mnvh__sublink:focus,
.mnvh .sub-menu .current-menu-item > .mnvh__sublink,
.mnvh .sub-menu .current-menu-ancestor > .mnvh__sublink { background: rgba(0, 167, 181, .1); color: var(--mnv-teal); }

/* chevrons */
.mnvh .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; flex: 0 0 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s;
}

/* hamburger */
.mnvh__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.mnvh__toggle span { display: block; width: 22px; height: 2px; background: var(--mnv-ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.mnvh.is-open .mnvh__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnvh.is-open .mnvh__toggle span:nth-child(2) { opacity: 0; }
.mnvh.is-open .mnvh__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnvh__sub-toggle { display: none; }

/* ---------- desktop dropdowns ---------- */
@media (min-width: 1201px) {
  .mnvh .sub-menu {
    position: absolute; z-index: 60; min-width: 240px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 18px 40px rgba(17, 17, 26, .14), 0 2px 6px rgba(17, 17, 26, .06);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .mnvh__list > li > .sub-menu { top: calc(100% + 14px); left: 0; }
  .mnvh__list > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .mnvh .sub-menu .sub-menu { top: -8px; left: 100%; margin-left: 8px; }
  .mnvh .sub-menu .sub-menu::before { content: ""; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; }
  .mnvh .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); }
  .mnvh__list li:hover > .sub-menu,
  .mnvh__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
  .mnvh__list > li:hover > a::after { transform: rotate(225deg) translateY(-2px); }
  .mnvh__list > li:nth-last-child(-n+2) .sub-menu .sub-menu { left: auto; right: 100%; margin-left: 0; margin-right: 8px; }
  .mnvh__list > li:nth-last-child(-n+2) .sub-menu .sub-menu::before { left: auto; right: -12px; }
}

/* ---------- smaller desktops ---------- */
@media (max-width: 1560px) {
  .mnvh__link { font-size: 16px; padding: 10px 12px; }
  .mnvh__btn { margin-left: 8px; }
}
@media (max-width: 1360px) {
  .mnvh__link { font-size: 15px; padding: 8px 9px; }
  .mnvh__btn { width: auto; font-size: 16px; }
  .mnvh__logo img { width: 170px; height: 35px; }
}

/* ---------- tablet / mobile ---------- */
@media (max-width: 1200px) {
  .mnvh { height: 70px; padding: 0 18px; top: 16px; }
  .admin-bar .mnvh { top: 62px; }
  .mnvh-spacer { height: 106px; }
  .mnvh__toggle { display: flex; }
  .mnvh__menu {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    max-height: calc(100vh - 110px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-radius: 20px; background: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .mnvh.is-open .mnvh__menu { opacity: 1; visibility: visible; transform: none; }
  .mnvh.is-open { background: rgba(255, 255, 255, .95); }
  .mnvh__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .mnvh__list li { display: flex; flex-wrap: wrap; align-items: center; }
  .mnvh__list li > a { flex: 1; }
  .mnvh__link { font-size: 17px; padding: 12px 14px; }
  .mnvh .menu-item-has-children > a::after { display: none; }
  .mnvh .sub-menu { display: none; width: 100%; padding: 2px 0 6px 14px; margin-left: 14px; border-left: 2px solid rgba(0, 167, 181, .25); }
  .mnvh__list li.is-open > .sub-menu { display: block; }
  .mnvh__sublink { white-space: normal; font-size: 15px; padding: 10px 12px; }
  .mnvh__sub-toggle { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; color: var(--mnv-ink); }
  .mnvh__sub-toggle::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
  .mnvh__list li.is-open > .mnvh__sub-toggle { color: var(--mnv-teal); background: rgba(0, 167, 181, .1); }
  .mnvh__list li.is-open > .mnvh__sub-toggle::before { transform: rotate(225deg) translateY(-2px); }
  .mnvh__btn { width: 100%; margin: 6px 0 0; padding: 12px 20px; animation: none; }
  .mnvh__btn::after { animation: none; }
}
@media (max-width: 782px) { .admin-bar .mnvh { top: 62px; } }

/* =========================================================
   FOOTER
   ========================================================= */
.mnvf {
  --mnv-teal: #00a7b5; --mnv-ink: #212121;
  position: relative; overflow: hidden; clear: both;
  background: #e5f6f8; /* = rgba(0,167,181,.1) on white */
  padding: 123px 0 36px; margin: 0;
  color: #000; font-family: "Segoe UI", "Inter", system-ui, sans-serif; line-height: normal;
}
.mnvf__container { position: relative; width: min(1440px, calc(100% - 2 * clamp(16px, 4vw, 40px))); margin: 0 auto; }
.mnvf__mark { position: absolute; left: calc(50% - 213px); top: 53.69px; width: 705px !important; max-width: none !important; height: 639px !important; object-fit: cover; pointer-events: none; }
.mnvf__grid { display: grid; grid-template-columns: 1fr auto auto; gap: 60px 250px; }

.mnvf__logo img { width: 256px; height: 54px; object-fit: contain; }
.mnvf__contact { display: flex; flex-direction: column; gap: 16px; margin-top: 40px !important; max-width: 432px; }
.mnvf__contact li { display: flex; align-items: center; gap: 16px; font-family: "Segoe UI", "Inter", system-ui, sans-serif; font-weight: 600; font-size: 22px; color: #000; }
.mnvf__contact li:last-child { align-items: flex-start; gap: 17px; }
.mnvf__contact a { color: #000; transition: color .2s; }
.mnvf__contact a:hover { color: var(--mnv-teal); }
.mnvf__icon { flex: 0 0 50px; width: 50px !important; height: 50px !important; }
.mnvf__icon--fill { display: grid; place-items: center; border-radius: 50%; background: var(--mnv-teal); }
.mnvf__icon--fill img { width: 25px; height: 26px; }

.mnvf__social { position: relative; display: flex; width: 152px; height: 40px; margin-top: 30px; }
.mnvf__social img { position: absolute; inset: 0; width: 152px; height: 40px; }
.mnvf__social a, .mnvf__social span { position: relative; width: 40px; height: 40px; margin-right: 16px; border-radius: 8px; transition: background-color .2s; }
.mnvf__social a:hover { background: rgba(255, 255, 255, .3); }

.mnvf__col { display: flex; flex-direction: column; gap: 16px; min-width: 188px; }
.mnvf__col h3 { margin: 0 0 14px; padding: 0; font-family: "Gilroy", "Urbanist", "Inter", sans-serif; font-weight: 700; font-size: 36px; line-height: 1.2; color: #000; text-transform: none; letter-spacing: normal; }
.mnvf__menu { display: flex; flex-direction: column; gap: 16px; }
.mnvf__menu a { font-family: "Segoe UI", "Inter", system-ui, sans-serif; font-weight: 500; font-size: 20px; line-height: 1.3; color: #000; white-space: nowrap; transition: color .2s; }
.mnvf__menu a:hover, .mnvf__menu .current-menu-item > a { color: var(--mnv-teal); }

.mnvf__bottom { margin-top: 82px; padding-top: 16px; border-top: 1px solid rgba(0, 0, 0, .12); text-align: center; }
.mnvf__bottom p { margin: 0; font-family: "Segoe UI", "Inter", system-ui, sans-serif; font-size: 22px; color: #000; }

@media (max-width: 1360px) { .mnvf__grid { gap: 60px 100px; } }
@media (max-width: 1200px) {
  .mnvf__grid { grid-template-columns: 1fr 1fr; }
  .mnvf__brand { grid-column: 1 / -1; }
  .mnvf__mark { left: auto; right: -200px; }
}
@media (max-width: 768px) {
  .mnvf { padding-top: 70px; }
  .mnvf__grid { grid-template-columns: 1fr; gap: 40px; }
  .mnvf__contact li { font-size: 18px; }
  .mnvf__col h3 { font-size: 28px; margin-bottom: 4px; }
  .mnvf__menu a { font-size: 19px; white-space: normal; }
  .mnvf__bottom { margin-top: 50px; }
  .mnvf__bottom p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .mnvh, .mnvh *, .mnvf * { transition-duration: .001ms !important; animation: none !important; }
}
