/* =====================================================================
   style.css — site header and footer (used with header.php / footer.php)

   Everything is scoped to .vt-header and .vt-footer, so it cannot change the pages.
   Width follows --container from common.css (fallback 1240px).
   Sections: 1 Base   2 Top bar   3 Main bar + menu   4 Mobile   5 Footer
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800&display=swap');

/* Anchor links on the pages (#contact etc.) should not hide under the sticky header. */
html { scroll-padding-top: 100px; }

/* ---------- 1. Base ---------- */
.vt-header,
.vt-footer {
  --vt-navy: #141d38;
  --vt-gold: #c0ae2f;
  --vt-gold-dark: #8a7c1f;
  --vt-line: rgba(255, 255, 255, .16);
  --vt-gutter: 24px;
  --vt-topbar-h: 50px;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--vt-navy);
  -webkit-text-size-adjust: 100%;
}
.vt-header *, .vt-header *::before, .vt-header *::after,
.vt-footer *, .vt-footer *::before, .vt-footer *::after { box-sizing: border-box; }
.vt-header a, .vt-footer a { text-decoration: none; }
.vt-header ul, .vt-footer ul { list-style: none; margin: 0; padding: 0; }
.vt-header button { font: inherit; }
.vt-ico { width: 18px; height: 18px; flex: none; display: block; fill: currentColor; }

/* the content column: same width as the pages (--container), with a small gutter */
.vt-wrap {
  width: 100%;
  max-width: calc(var(--container, 1240px) + 2 * var(--vt-gutter));
  margin-inline: auto;
  padding-inline: var(--vt-gutter);
}

/* ---------- 2. Top bar ---------- */
/* The whole header is sticky; the top bar slides away, the main bar stays. */
.vt-header {
  position: sticky;
  top: calc(-1 * var(--vt-topbar-h));
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 29, 56, .12);
}
.vt-topbar { background: var(--vt-navy); color: #fff; height: var(--vt-topbar-h); }
.vt-topbar-row { height: 100%; display: flex; align-items: stretch; justify-content: space-between; }
.vt-social, .vt-contact { display: flex; align-items: stretch; }
.vt-social li, .vt-contact li { display: flex; border-left: 1px solid var(--vt-line); }
.vt-social li:last-child, .vt-contact li:last-child { border-right: 1px solid var(--vt-line); }
.vt-topbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  transition: color .2s, background-color .2s;
}
.vt-topbar a:hover, .vt-topbar a:focus-visible { color: var(--vt-gold); background: rgba(255, 255, 255, .05); }
.vt-social a { width: 38px; }
.vt-social .vt-yt a { color: #ff3b30; }
.vt-social .vt-yt a:hover { color: #ff6b62; }
.vt-contact a { padding: 0 20px; font-size: 14px; white-space: nowrap; }
.vt-contact .vt-ico { width: 17px; height: 17px; }

/* ---------- 3. Main bar + menu ---------- */
.vt-mainbar { background: #fff; }
.vt-mainbar-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.vt-logo { display: block; flex: none; }
.vt-logo img { display: block; width: 145px; height: auto; }

/* The menu is styled by structure (ul > li > a), so any menu markup works. */
.vt-nav ul { display: flex; align-items: center; gap: 2px; }
.vt-nav li { position: relative; }
.vt-nav a {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--vt-navy);
  transition: color .2s, box-shadow .2s;
}
.vt-nav li:hover > a,
.vt-nav li:focus-within > a,
.vt-nav .current-menu-item > a,
.vt-nav .current-menu-ancestor > a { color: var(--vt-gold-dark); box-shadow: inset 0 -3px 0 var(--vt-gold); }
/* small solid caret on items that have a sub-menu */
.vt-nav li:has(> ul) > a::after,
.vt-nav li.menu-item-has-children > a::after {
  content: "";
  margin-left: 7px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
/* drop-down */
.vt-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 240px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px 0;
  background: #fff;
  border-top: 3px solid var(--vt-gold);
  box-shadow: 0 14px 30px rgba(20, 29, 56, .16);
}
.vt-nav li:hover > ul, .vt-nav li:focus-within > ul { display: flex; }
.vt-nav li ul li { width: 100%; }
.vt-nav li ul a {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  white-space: normal;
  box-shadow: none;
}
.vt-nav li ul li:hover > a { background: #f5f4ef; box-shadow: none; }
.vt-nav li ul li > ul { top: -11px; left: 100%; }
.vt-nav li ul li:has(> ul) > a::after { margin-left: auto; border: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* top-level items fill the bar's height, so the pointer never leaves them on the way to a drop-down */
.vt-mainbar-row { position: relative; align-items: stretch; }
.vt-logo { align-self: center; }
.vt-nav { display: flex; }
.vt-nav nav { display: flex; }
.vt-nav ul:not(li ul) { align-items: stretch; }
.vt-nav ul:not(li ul) > li > a { height: 100%; }
/* mega menu: full-width panel with the lists in columns */
.vt-nav li:has(> .sub-mega-menu) { position: static; }
.vt-nav .sub-mega-menu { left: 0; right: 0; width: auto; min-width: 0; padding: 14px 16px 18px; }
.vt-nav .sub-mega-menu > li { width: 100%; }
.vt-nav .mega-menu-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; }
.vt-nav .mega-menu-content ul {
  display: block; position: static; min-width: 0; padding: 0; margin: 0;
  background: none; border: 0; box-shadow: none;
}
.vt-nav .mega-menu-content li { position: static; }
.vt-nav .mega-menu-content a { padding: 9px 14px; }

/* ---------- 4. Mobile / tablet ---------- */
.vt-burger { display: none; }
.vt-burger-x { display: none; }
.vt-mobilepanel { display: none; }

@media (max-width: 1290px) {
  .vt-tb-email { display: none; }                       /* keep the bar on one line */
}
@media (max-width: 1240px) {
  .vt-nav a { font-size: 14px; padding: 14px 8px; }
}
@media (max-width: 1200px) {                             /* tighter top bar so it still fits the narrower column */
  .vt-social a { width: 34px; }
  .vt-contact a { padding: 0 12px; font-size: 13px; gap: 7px; }
}
@media (max-width: 1099px) {
  .vt-header { position: static; }
  .vt-topbar { height: auto; }
  .vt-topbar-row { flex-direction: column; align-items: center; padding-block: 8px; gap: 2px; }
  .vt-social, .vt-contact { justify-content: center; flex-wrap: wrap; }
  .vt-social li, .vt-contact li, .vt-social li:last-child, .vt-contact li:last-child { border: 0; }
  .vt-social a { width: 40px; height: 34px; }
  .vt-contact a { padding: 4px 12px; }
  .vt-tb-login { display: none; }
  .vt-mainbar-row { min-height: 78px; }
  .vt-logo img { width: 120px; }
  .vt-nav { display: none; }
  .vt-mainbar-row { align-items: center; }
  .vt-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--vt-navy);
    background: #fff;
    border: 1px solid rgba(20, 29, 56, .28);
    border-radius: 8px;
    cursor: pointer;
  }
  .vt-burger .vt-ico { width: 24px; height: 24px; }
  .vt-burger[aria-expanded="true"] .vt-burger-bars { display: none; }
  .vt-burger[aria-expanded="true"] .vt-burger-x { display: block; }
  .vt-mobilepanel.is-open { display: block; border-top: 1px solid rgba(20, 29, 56, .12); background: #fff; padding-bottom: 12px; }
  .vt-mnav ul { display: block; }
  .vt-mnav li { border-bottom: 1px solid rgba(20, 29, 56, .1); }
  .vt-mnav a { display: block; padding: 14px 4px; font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--vt-navy); }
  .vt-mnav a:hover { color: var(--vt-gold-dark); }
  .vt-mnav li ul { padding-left: 16px; }                /* sub-menus are simply shown, indented */
  .vt-mnav li ul a { font-weight: 600; text-transform: none; }
  .vt-mnav .mega-menu-content { display: block; }
  .vt-mlogin { display: flex; gap: 10px; padding-top: 14px; }
  .vt-mlogin a { display: block; padding: 10px 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--vt-navy); border-radius: 6px; }
  .vt-mlogin a:hover { color: var(--vt-gold); }
}

/* ---------- 5. Footer ---------- */
.vt-footer {
  --vt-navy: #141d38; --vt-gold: #c0ae2f;
  position: relative; clear: both; float: none; width: auto; height: auto; z-index: 1;
  box-sizing: border-box; background: var(--vt-navy); color: #fff; text-align: center;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px; line-height: 2.05; padding: 48px 0 40px;
}
.vt-footer *, .vt-footer *::before, .vt-footer *::after { box-sizing: border-box; }
.vt-footer .vt-f-container { width: 100%; padding: 0 15px; }
.vt-footer .vt-f-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.vt-footer .vt-f-center { justify-content: center; }
.vt-footer .vt-c12, .vt-footer .vt-c4, .vt-footer .vt-c3, .vt-footer .vt-c2 { width: 100%; padding: 0 15px; }
.vt-footer .vt-tc { text-align: center; }
@media (min-width: 768px) {
  .vt-footer .vt-c4 { width: 33.3333%; }
  .vt-footer .vt-c3 { width: 25%; }
  .vt-footer .vt-c2 { width: 16.6667%; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .vt-footer .vt-c4, .vt-footer .vt-c3, .vt-footer .vt-c2 { width: 50%; }
}
.vt-footer .vt-f-space60 { height: 60px; }
.vt-footer .vt-f-space26 { height: 26px; }
.vt-footer img { max-width: 100%; height: auto; border: 0; }
.vt-footer .vt-c12 img { display: block; margin: 0 auto; width: 300px; }
.vt-footer a { color: #fff; text-decoration: none; transition: color .2s; }
.vt-footer a:hover, .vt-footer a:focus-visible { color: var(--vt-gold) !important; }
.vt-footer p { margin: 0; padding: 0; color: inherit; font-size: inherit; line-height: inherit; }
.vt-footer h6 { margin: 0; padding: 0; font-family: inherit; font-size: 18px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.vt-footer .vt-f-info { padding-bottom: 24px; }
.vt-footer .vt-f-icon { display: flex; justify-content: center; margin-bottom: 16px; color: var(--vt-gold); line-height: 1; }
.vt-footer .vt-f-icon img { width: 40px; height: 40px; object-fit: contain; }
.vt-footer .vt-f-icon .vt-ico { width: 40px; height: 40px; }
.vt-footer .vt-f-copy { margin-top: 20px; color: rgba(255, 255, 255, .62); font-size: 18px; }
.vt-footer .vt-f-social { display: flex; justify-content: center; gap: 10px; }
.vt-footer .vt-f-social a { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; background: #fff; border-radius: 50%; }
.vt-footer .vt-f-social .vt-ico { width: 16px; height: 16px; }
.vt-footer .vt-f-social a:hover { transform: translateY(-2px); color: var(--vt-navy) !important; }
.vt-footer .vt-s-facebook { color: #1877f2; }
.vt-footer .vt-s-linkedin { color: #0a66c2; }
.vt-footer .vt-s-instagram { color: #e1306c; }
.vt-footer .vt-s-youtube { color: #f00; }
.vt-footer .vt-s-pinterest { color: #f5a623; }
@media (max-width: 575px) { .vt-footer { padding: 36px 0 30px; } .vt-footer .vt-f-space60 { height: 36px; } }

.vt-totop {
  --vt-gold: #c0ae2f; --vt-gold-dark: #8a7c1f;
  position: fixed; right: 50px; bottom: 50px; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 56px; background: #fff; color: var(--vt-gold-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25); transition: color .2s, background-color .2s;
}
.vt-totop:hover { background: var(--vt-gold); color: #fff; }
.vt-totop .vt-ico { width: 26px; height: 26px; }

@media (max-width: 560px) { .vt-totop { right: 16px; bottom: 16px; } }
