/* Voilex default site theme: header, navigation, footer and base typography for sites the studio creates.
   Colors come from the --vx-* scheme variables, like the parts library. */
@font-face {
  font-family: "Vazirmatn"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/vazirmatn.woff2") format("woff2");
}
:root {
  --vx-font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.vx-site {
  margin: 0; font-family: var(--vx-font); font-size: 16px; line-height: 1.8;
  color: var(--vx-text, #0f172a); background: var(--vx-surface, #fff); -webkit-font-smoothing: antialiased;
}
.vx-site img { max-width: 100%; height: auto; }
.vx-site a { color: var(--vx-primary, #1d4ed8); }
.vx-site h1, .vx-site h2, .vx-site h3, .vx-site h4 { font-family: inherit; }
.vx-wrap { max-width: 1188px; margin-inline: auto; padding-inline: 24px; }

/* Header */
.vx-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--vx-surface, #fff) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--vx-border, #e2e8f0);
}
.vx-header .vx-wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.vx-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--vx-text, #0f172a) !important; font-weight: 800; font-size: 19px; }
.vx-brand img { height: 44px; width: auto; display: block; }
.vx-nav { margin-inline-start: auto; }
.vx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.vx-nav li { position: relative; }
.vx-nav a {
  display: block; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px;
  color: var(--vx-text, #0f172a); transition: background .15s, color .15s;
}
.vx-nav a:hover, .vx-nav .current-menu-item > a { color: var(--vx-primary, #1d4ed8); background: color-mix(in srgb, var(--vx-primary, #1d4ed8) 9%, transparent); }
.vx-nav .sub-menu {
  display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 200px; flex-direction: column; align-items: stretch;
  background: var(--vx-surface, #fff); border: 1px solid var(--vx-border, #e2e8f0); border-radius: 12px; padding: 6px; box-shadow: var(--vx-shadow, 0 10px 30px -12px rgba(15, 23, 42, .25));
}
.vx-nav li:hover > .sub-menu, .vx-nav li:focus-within > .sub-menu { display: flex; }
.vx-header-cta {
  background: var(--vx-primary, #1d4ed8); color: var(--vx-primary-contrast, #fff) !important; text-decoration: none; font-weight: 700;
  padding: 10px 20px; border-radius: calc(var(--vx-radius, 16px) * .6); white-space: nowrap;
}
.vx-nav-toggle, .vx-burger { display: none; }

/* Footer */
.vx-footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 24px; margin-top: 0; }
.vx-footer .vx-cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.vx-footer h3 { color: #fff; font-size: 17px; margin: 0 0 12px; }
.vx-footer p { margin: 0 0 8px; }
.vx-footer a { color: #e2e8f0; text-decoration: none; }
.vx-footer a:hover { color: #fff; text-decoration: underline; }
.vx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vx-footer .vx-footer-logo { height: 40px; width: auto; margin-bottom: 12px; background: #fff; border-radius: 8px; padding: 4px; }
.vx-copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 18px; font-size: 14px; color: #94a3b8; }

@media (max-width: 860px) {
  .vx-header .vx-wrap { flex-wrap: wrap; min-height: 64px; }
  .vx-burger {
    display: grid; place-items: center; width: 44px; height: 44px; margin-inline-start: auto; cursor: pointer; border-radius: 10px;
    border: 1px solid var(--vx-border, #e2e8f0);
  }
  .vx-burger span, .vx-burger span::before, .vx-burger span::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
  .vx-burger span::before { position: absolute; top: -6px; } .vx-burger span::after { position: absolute; top: 6px; }
  .vx-nav { display: none; width: 100%; margin: 0; padding-bottom: 12px; }
  .vx-nav-toggle:checked ~ .vx-nav { display: block; }
  .vx-nav ul { flex-direction: column; align-items: stretch; }
  .vx-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-inline-start: 14px; }
  .vx-header-cta { display: none; }
  .vx-footer .vx-cols { grid-template-columns: 1fr; }
}
