/* vazne.app — shared by every page: colours, fonts, the top bar, the language menu and the footer.
   Page styles: experience.css (home), page.css (guides, legal pages, 404), test.css (/test/). */
@font-face { font-family: Estedad; src: url(/assets/Estedad.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #191d26;
  --muted: #535a67;
  --red: #c52235;
  --paper: #f3f4f6;
  --line: #cbd1db;
  --soft: #e9ecf1;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; background: var(--paper); }
body:lang(fa), body:lang(ar) { font-family: Estedad, Tahoma, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #ff695f; outline-offset: 6px; }
::selection { background: #e43a30; color: white; }
.plain { border: 0; background: none; padding: 0; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex: none; }
[dir=rtl] .arrow { transform: scaleX(-1); }
.skip { position: absolute; top: -100px; inset-inline-start: 12px; z-index: 20; padding: 10px 16px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; }
.skip:focus { top: 12px; }
.noise {
  position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
/* Bilingual pages (legal): html[data-lang] picks which half is shown */
html[data-lang=en] [data-only=fa], html[data-lang=fa] [data-only=en] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: relative; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 105px; padding: 0 5vw; border-bottom: 1px solid #191d2614; background: var(--paper);
}
.brand { display: flex; direction: ltr; align-items: center; gap: 13px; font-family: Arial, Helvetica, sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.brand svg { width: 31px; color: var(--red); }
.brand .tagline { font-size: 9px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.navlinks { display: flex; gap: 34px; color: #414855; font-size: 13px; }
.navlinks a:hover { color: var(--red); }
.navright { display: flex; gap: 20px; align-items: center; font-size: 12px; color: #414855; }
.tester-tag {
  padding: 8px 14px; border: 1px solid #aeb4bf; border-radius: 30px;
  font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.tester-tag:hover { color: var(--red); border-color: var(--red); }

/* language menu: <details class="lang-menu"> (works without JavaScript) */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  padding: 8px 10px; border-radius: 30px; font-size: 12px; font-weight: 700; color: #414855;
  font-family: Arial, Helvetica, sans-serif;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--red); }
.lang-menu summary .icon { width: 17px; height: 17px; }
.lang-menu ul {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 30; min-width: 150px; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid #e3e7ee; border-radius: 16px; box-shadow: 0 16px 40px #1a24361f;
}
.lang-menu li a { display: block; padding: 9px 14px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.lang-menu li a:lang(fa), .lang-menu li a:lang(ar) { font-family: Estedad, Tahoma, Arial, sans-serif; }
.lang-menu li a:hover { background: var(--paper); color: var(--red); }
.lang-menu li a[aria-current] { font-weight: 700; color: var(--red); }

/* ---------- footer ---------- */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 28px;
  padding: 38px 5vw; border-top: 1px solid var(--line); background: var(--soft); color: #4c596c; font-size: 11px;
}
.site-footer > span { font-family: Arial, Helvetica, sans-serif; }
.footer-links, .footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.footer-langs a:lang(fa), .footer-langs a:lang(ar) { font-family: Estedad, Tahoma, Arial, sans-serif; }
.site-footer a:hover, .site-footer button:hover { color: var(--red); }

@media (max-width: 800px) {
  .topbar { height: 85px; padding: 0 6vw; }
  .navlinks, .brand .tagline { display: none; }
  .brand { font-size: 25px; }
  .navright { gap: 6px; }
  .tester-tag { font-size: 11px; padding: 7px 11px; }
  .site-footer { align-items: start; flex-direction: column; padding: 32px 7vw; gap: 18px; line-height: 1.7; }
  .footer-links, .footer-langs { gap: 8px 16px; }
}
@media (max-width: 360px) {
  .brand { font-size: 22px; gap: 9px; }
  .brand svg { width: 26px; }
  .lang-menu summary { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
