/*
 * Vecter: additions to the mockup stylesheet (app.css, kept verbatim).
 * Everything here exists because the static mockup did not need it: self-hosted
 * fonts, real links in the language switch, mobile navigation, tooltips, server
 * side form states, legal pages.
 */

/* ---- Fonts: self-hosted variable fonts (latin), no third-party request ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

/* ---- Scroll reveal: content stays visible without JavaScript (crawlers, no-JS) ---- */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-md);
  background: var(--coral); color: #fff; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---- Language switch: links instead of the mockup's buttons ---- */
.lang a {
  padding: 4px 10px; border-radius: 999px; color: var(--ink-muted);
  transition: all .15s ease;
}
.lang a.on { background: var(--bg); color: var(--ink); box-shadow: var(--sh-1); }
header.site .lang a { color: rgba(255,255,255,.6); }
header.site .lang a.on { background: #fff; color: #121a24; }
header.site .lang a:hover { color: #fff; }
header.site .lang a.on:hover { color: #121a24; }

/* ---- Tooltip for icon-only buttons (data-tooltip), on hover and keyboard focus ---- */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translate(-50%, -4px);
  padding: 6px 10px; border-radius: var(--r-sm);
  background: #121a24; color: #fff;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; white-space: nowrap;
  box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
  z-index: 60;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* ---- Mobile navigation (the mockup has none; its 7-entry nav wraps below ~1100px) ---- */
header.site .burger { display: none; }
@media (max-width: 1100px) {
  header.site .burger { display: inline-flex; }
  header.site nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px;
    background: rgba(11,22,34,.98); border-bottom: 1px solid rgba(255,255,255,.08);
  }
  header.site nav.open { display: flex; }
  header.site nav a { padding: 12px 8px; }
  header.site nav a.active::after { display: none; }
  header.site .wrap { position: relative; }
}
@media (max-width: 560px) {
  header.site .right .btn { display: none; }
}

/* ---- Footer: classes replacing the mockup's inline styles ---- */
footer.site .h5 {
  font-family: var(--font-display); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(244,241,238,.5);
  margin: 0 0 16px; font-weight: 600;
}
footer.site .footer-group-title { margin-top: 24px; }
footer.site .footer-pitch {
  margin-top: 20px; font-size: 14px; color: rgba(244,241,238,.7);
  max-width: 30ch; line-height: 1.55;
}
footer.site .footer-tags { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
footer.site .footer-address { color: rgba(244,241,238,.5); font-size: 13px; line-height: 1.55; }
footer.site .footer-legal { display: flex; gap: 20px; }
footer.site .bottom a { font-size: 13px; }
@media (max-width: 920px) {
  footer.site .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.site .bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  footer.site .grid { grid-template-columns: 1fr; }
}

/* ---- Contact form: server-side states ---- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form .form-alert {
  background: var(--coral-50); border: 1px solid var(--coral-100);
  padding: 14px 18px; border-radius: var(--r-md);
  color: var(--coral-600); font-size: 14px; font-weight: 500;
  font-family: var(--font-sans); text-transform: none; letter-spacing: 0;
}
form label ul { list-style: none; margin: 0; padding: 0; }
form label ul li {
  color: var(--coral-600); font-family: var(--font-sans); font-size: 13px;
  text-transform: none; letter-spacing: 0;
}
form .form-notice {
  margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-muted);
}
form .form-notice a { color: var(--coral); text-decoration: underline; }
[data-page="contact"] .diag-form select {
  padding: 12px 14px; border: 1px solid var(--border-strong); background: var(--bg);
  border-radius: var(--r-md); font-family: inherit; font-size: 15px; color: var(--ink);
}
[data-page="contact"] .diag-form select:focus {
  outline: 0; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(234,80,83,.08);
}
[data-page="contact"] .thanks { max-width: 640px; padding: 48px 0 96px; }

/* ---- Legal pages ---- */
.legal-doc { padding: 24px 0 96px; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 22px; margin: 40px 0 12px; }
.legal-body p, .legal-body li { color: var(--ink-muted); line-height: 1.65; }
.legal-body ul { padding-left: 20px; }
.legal-body a { color: var(--coral); text-decoration: underline; }
.legal-body .legal-updated { margin-top: 40px; font-size: 13px; color: var(--ink-soft); }
