/* =========================================================
   NovaFolio – Top Bar
   @since 1.3.0
========================================================= */

.nvf-topbar{
  position: relative;
  width: 100%;
  padding: var(--nvf-space-xs, 6px) var(--nvf-space-m, 20px);
  line-height: 1.4;
  z-index: 10000;
}

.nvf-topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nvf-space-m, 20px);
  margin-inline: auto;
}

/* Boxed: constrain inner to content width */
.nvf-topbar--boxed .nvf-topbar__inner{
  max-width: var(--nvf-layout-content-width, 1280px);
  padding-inline: var(--nvf-layout-padding-x, 40px);
}

/* Full width: edge-to-edge, only small padding */
.nvf-topbar--full .nvf-topbar__inner{
  max-width: none;
  padding-inline: var(--nvf-layout-padding-x, 40px);
}

.nvf-topbar__left,
.nvf-topbar__right{
  display: flex;
  align-items: center;
  gap: var(--nvf-space-s, 12px);
}

.nvf-topbar__left a,
.nvf-topbar__right a{
  color: inherit;
  text-decoration: none;
  opacity: .8;
  transition: opacity .2s ease;
}
.nvf-topbar__left a:hover,
.nvf-topbar__right a:hover{
  opacity: 1;
  color: inherit !important;
}

/* -- Top Bar Social Icons -------------------------------- */
.nvf-topbar-social{
  display: flex;
  align-items: center;
}
.nvf-topbar-social__list{
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nvf-social-link--topbar{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: inherit;
  text-decoration: none;
  opacity: .75;
  transition: opacity .2s ease, background .2s ease;
}
.nvf-social-link--topbar:hover{
  opacity: 1;
  background: transparent;
  color: inherit !important;
}

/* Hide inline SVG, use ::before mask-image (Font Awesome) */
.nvf-social-link--topbar .nvf-icon{
  display: none !important;
}
.nvf-social-link--topbar::before{
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Per-network Font Awesome SVGs */
.nvf-social-link--topbar.nvf-social-facebook::before{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91V117.78c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.2V288z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91V117.78c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.2V288z'/%3E%3C/svg%3E");
}
.nvf-social-link--topbar.nvf-social-instagram::before{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.2s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.2s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E");
}
.nvf-social-link--topbar.nvf-social-x::before{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4l100.7 133.1zM364.4 421.8h39.1L151.1 88h-42z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4l100.7 133.1zM364.4 421.8h39.1L151.1 88h-42z'/%3E%3C/svg%3E");
}
.nvf-social-link--topbar.nvf-social-linkedin::before{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z'/%3E%3C/svg%3E");
}
.nvf-social-link--topbar.nvf-social-behance::before{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M232 237.2c31.8-15.2 48.4-38.2 48.4-74 0-70.6-52.6-87.8-113.3-87.8H0v354.4h171.8c64.4 0 124.9-30.9 124.9-102.9 0-44.5-21.1-77.4-64.7-89.7zM77.9 135.9H151c28.1 0 53.4 7.9 53.4 40.5 0 30.1-19.7 42.2-47.5 42.2h-79V135.9zm83.3 233.7H77.9V272h84.9c34.3 0 56 14.3 56 50.6 0 35.8-25.9 47-57.6 47zm358.5-240.7H376V94h143.7v34.9zM576 305.2c0-75.9-44.4-134.2-124.3-134.2-78.8 0-132.3 55.4-132.3 134.2 0 82.2 52.2 134.2 132.3 134.2 56 0 97.8-28.8 118-84.7h-58.4c-6.1 19.2-28.5 30-49.6 30-43.8 0-65.4-29.6-65.4-72.5H576v-7zm-196.4-28.2c2.3-34.5 24.8-58.4 58.4-58.4 30.8 0 53.9 22.3 57.4 58.4H379.6z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M232 237.2c31.8-15.2 48.4-38.2 48.4-74 0-70.6-52.6-87.8-113.3-87.8H0v354.4h171.8c64.4 0 124.9-30.9 124.9-102.9 0-44.5-21.1-77.4-64.7-89.7zM77.9 135.9H151c28.1 0 53.4 7.9 53.4 40.5 0 30.1-19.7 42.2-47.5 42.2h-79V135.9zm83.3 233.7H77.9V272h84.9c34.3 0 56 14.3 56 50.6 0 35.8-25.9 47-57.6 47zm358.5-240.7H376V94h143.7v34.9zM576 305.2c0-75.9-44.4-134.2-124.3-134.2-78.8 0-132.3 55.4-132.3 134.2 0 82.2 52.2 134.2 132.3 134.2 56 0 97.8-28.8 118-84.7h-58.4c-6.1 19.2-28.5 30-49.6 30-43.8 0-65.4-29.6-65.4-72.5H576v-7zm-196.4-28.2c2.3-34.5 24.8-58.4 58.4-58.4 30.8 0 53.9 22.3 57.4 58.4H379.6z'/%3E%3C/svg%3E");
}
.nvf-social-link--topbar.nvf-social-pinterest::before{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath d='M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107.2 0-165.9 72.5-165.9 148.6 0 36.2 19.2 81.4 49.8 95.8 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath d='M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107.2 0-165.9 72.5-165.9 148.6 0 36.2 19.2 81.4 49.8 95.8 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z'/%3E%3C/svg%3E");
}
.nvf-social-link--topbar.nvf-social-youtube::before{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z'/%3E%3C/svg%3E");
}
.nvf-social-link--topbar.nvf-social-mail::before{
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4 0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4 0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E");
}

/* Separator between text and social icons */
.nvf-topbar__right-text + .nvf-topbar-social{
  padding-left: var(--nvf-space-s, 12px);
  margin-left: var(--nvf-space-s, 12px);
  border-left: 1px solid rgba(255,255,255,.2);
}

@media (max-width: 768px){
  .nvf-topbar-social__list{
    gap: 0;
  }
  .nvf-social-link--topbar{
    width: 26px;
    height: 26px;
  }
  .nvf-social-link--topbar::before{
    width: 12px;
    height: 12px;
  }
}

/* =========================================================
   NovaFolio – Header Transparent
   Applied when body has .nvf-header-transparent class
   @since 1.3.0
========================================================= */

/* ── Base: transparent overlay (fixed for sticky, absolute for non-sticky) ── */
body.nvf-header-transparent #nova-header{
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9999;
  background: transparent !important;
  box-shadow: none !important;
}

/* Non-sticky variant: scroll with page instead of staying fixed */
body.nvf-header-transparent #nova-header.not-sticky{
  position: absolute !important;
}

/* When topbar is present, offset header below it */
body.nvf-header-transparent.nvf-has-topbar #nova-header{
  top: var(--nvf-topbar-height, 30px) !important;
}

/* ── Text color (transparent) ────────────────────────────────────── */
body.nvf-header-transparent #nova-header .nova-site-title,
body.nvf-header-transparent #nova-header .nova-site-tagline,
body.nvf-header-transparent #nova-header .nova-navigation a,
body.nvf-header-transparent #nova-header .nova-header-actions,
body.nvf-header-transparent #nova-header .nova-burger-menu span,
body.nvf-header-transparent #nova-header .nvf-search-toggle{
  color: var(--nvf-header-transparent-color, #ffffff);
}

/* Burger lines: background for the bars */
body.nvf-header-transparent #nova-header .nova-burger-menu span{
  background-color: var(--nvf-header-transparent-color, #ffffff);
}

/* Burger button: adapt border/bg for transparent overlay */
body.nvf-header-transparent #nova-header .nova-burger-menu{
  border-color: var(--nvf-header-transparent-color, rgba(255,255,255,.3));
  background: transparent;
}

/* ── Scroll state: solid header ──────────────────────────────────── */
/* JS toggles .is-sticky at scroll > 30 px (only for sticky headers) */
body.nvf-header-transparent #nova-header.is-sticky{
  top: 0 !important;
  background: var(--nvf-header-bg, #ffffff) !important;
  box-shadow: var(--nvf-header-shadow-value, 0 1px 4px rgba(0,0,0,.08)) !important;
}

body.nvf-header-transparent #nova-header.is-sticky .nova-site-title,
body.nvf-header-transparent #nova-header.is-sticky .nova-site-tagline,
body.nvf-header-transparent #nova-header.is-sticky .nova-navigation a,
body.nvf-header-transparent #nova-header.is-sticky .nova-primary-nav > li > a,
body.nvf-header-transparent #nova-header.is-sticky .nova-header-actions,
body.nvf-header-transparent #nova-header.is-sticky .nova-burger-menu span,
body.nvf-header-transparent #nova-header.is-sticky .nvf-search-toggle{
  color: var(--nvf-color-text, #111827) !important;
}
body.nvf-header-transparent #nova-header.is-sticky .nova-burger-menu span{
  color: var(--nvf-color-text, #111827);
  background-color: var(--nvf-color-text, #111827);
}
body.nvf-header-transparent #nova-header.is-sticky .nova-burger-menu{
  border-color: var(--nvf-color-border, #e5e7eb);
  background: var(--nvf-color-button-bg-soft, #f9fafb);
}

/* ── Content offset ──────────────────────────────────────────────── */
body.nvf-header-transparent .nova-titlebar{
  padding-top: calc(var(--nvf-header-transparent-offset, 80px) + var(--nvf-space-l, 32px));
}
body.nvf-header-transparent.nvf-has-topbar .nova-titlebar{
  padding-top: calc(var(--nvf-topbar-height, 30px) + var(--nvf-header-transparent-offset, 80px) + var(--nvf-space-l, 32px));
}

/* ── Responsive: disable transparent on mobile ──────────────────── */
@media (max-width: 991px){
  body.nvf-header-transparent #nova-header.header-main,
  body.nvf-header-transparent #nova-header.header-main.not-sticky,
  body.nvf-header-transparent #nova-header.header-main.is-sticky{
    position: relative !important;
    top: auto !important;
    background: var(--nvf-header-bg, #ffffff) !important;
    box-shadow: none !important;
  }
  body.nvf-header-transparent #nova-header .nova-site-title,
  body.nvf-header-transparent #nova-header .nova-navigation a,
  body.nvf-header-transparent #nova-header .nova-header-actions{
    color: inherit;
  }
  body.nvf-header-transparent #nova-header .nova-burger-menu span{
    background-color: currentColor;
  }
  body.nvf-header-transparent #nova-header .nova-burger-menu{
    border-color: var(--nvf-color-border, #e5e7eb);
    background: var(--nvf-color-button-bg-soft, #f9fafb);
  }
}

/* ── Accessibility: reduce motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nvf-topbar__left a,
  .nvf-topbar__right a {
    transition-duration: 1ms !important;
  }
}
