/* =========================================================================
   /css/site.css — shared chrome (header, footer, nav, promo, buttons).
   Loaded by every page that uses the partials header/footer.
   Page-specific content styles live in /css/news.css (or in a page's <style>).
   ========================================================================= */

:root {
  --bg: #0a0d10; --bg-2: #11151a; --surface: #161b22; --surface-2: #1d242d;
  --line: #2a323c; --text: #0a0d10; --text-invert: #f4f6f8;
  --muted: #9aa4af; --muted-invert: #b8c2cc;
  --accent: #114172; --accent-2: #e01030; --steel: #5b8bd0; --ok: #2fb672;
  --radius: 14px; --radius-lg: 22px; --maxw: 1200px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.55);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.45);
  --shadow-md: 0 14px 40px -16px rgba(0,0,0,.35);
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.skip-link { position:absolute; left:-999px; top:0; background:var(--accent); color:#000; padding:10px 16px; z-index:100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  padding: 14px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 10px 26px -10px rgba(17,65,114,.55); }
.btn-primary:hover { background: #0d335c; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-on-dark { color: var(--text-invert); }
.btn-on-dark:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: #0a0d10; color: #fff; }
.btn-dark:hover { background: #1d242d; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-top { position: sticky; top: 0; z-index: 50; }
header.site {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e7eaee;
  color: var(--text);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand .logo-h { height: clamp(26px, 3.4vw, 34px); width: auto; display:block; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--accent); transition: color .15s; }
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active { color: var(--accent-2); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display:none; background:none; border:0; color: var(--text); font-size:26px; cursor:pointer; }

/* Dropdown (Products) */
.nav-item { position: relative; }
.nav-links .caret {
  display: inline-block; width: 7px; height: 7px; margin-left: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .75;
  transition: transform .2s ease, opacity .2s ease;
}
.has-dropdown.open .caret { transform: rotate(225deg) translateY(-2px); opacity: 1; }
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 232px; margin-top: 14px; padding: 8px;
  list-style: none; background: #fff;
  border: 1px solid #e7eaee; border-radius: 16px;
  box-shadow: 0 22px 50px -20px rgba(10,13,16,.30);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dropdown li { margin: 0; }
.dropdown a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--text); font-size: 15px; font-weight: 500;
  transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.dropdown a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: .35; flex: 0 0 auto;
  transition: opacity .15s ease, transform .15s ease;
}
.dropdown a:hover,
.dropdown a:focus-visible { background: rgba(17,65,114,.08); color: var(--accent); padding-left: 18px; }
.dropdown a:hover::before,
.dropdown a:focus-visible::before { opacity: 1; transform: scale(1.35); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
  transition-delay: 0s;
}

/* ---------- Promo banner (news ticker) ---------- */
.tgw-promo { position: relative; z-index: 1; overflow: hidden; display: flex; align-items: center; padding: 9px 14px; background: linear-gradient(90deg, var(--accent) 0%, #0e3258 50%, var(--accent) 100%); color: #fff; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); transition: opacity .4s ease, visibility .4s ease; }
.tgw-promo-ticker { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.tgw-promo-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: promoScroll 30s linear infinite; }
.tgw-promo-item { display: inline-flex; align-items: center; gap: 9px; padding: 0 4px; }
.tgw-promo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px rgba(255,255,255,.18); flex: none; }
.tgw-promo-sep { padding: 0 22px; opacity: .45; }
@keyframes promoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tgw-promo-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .tgw-promo-ticker { overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 620px) { .tgw-promo { font-size: 12.5px; padding: 8px 10px; } }

/* ---------- Footer ---------- */
footer.site { background:#070a0c; color: var(--muted); padding: 64px 0 30px; border-top:1px solid var(--line); }
.foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:36px; }
.foot-brand .brand { color:#fff; margin-bottom:14px; }
.foot-brand .brand.foot-logo { background:#ffffff; padding:10px 14px; border-radius:12px; display:inline-flex; align-items:center; margin-bottom:16px; max-width: 100%; }
.foot-brand .brand.foot-logo .logo-h { height:34px; width:auto; max-width: 100%; max-height: 44px; object-fit: contain; }
.foot-brand p { font-size:14.5px; max-width: 38ch; }
.foot-col h4 { color:#fff; font-size:14px; letter-spacing:.08em; text-transform:uppercase; margin:0 0 16px; font-family:var(--font-body); font-weight:700; }
.foot-col a { display:block; font-size:14.5px; padding:6px 0; color: var(--muted); transition: color .15s; }
.foot-col a:hover { color:#fff; }
.foot-bot { margin-top:48px; padding-top:24px; border-top:1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; font-size:13px; }
.foot-social { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:24px; margin-top:36px; padding-top:28px; border-top:1px solid var(--line); }
.socials { display:flex; flex-wrap:wrap; gap:12px; }
.social { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); color: var(--muted-invert); transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.social svg { width:18px; height:18px; fill: currentColor; display:block; }
.social:hover { transform: translateY(-3px); background: var(--accent); color:#fff; border-color: var(--accent); }
.foot-legal { display:flex; flex-direction:column; align-items:flex-start; gap:6px; font-size:13px; color: var(--muted); }
.foot-legal .legal-item { display:inline-flex; align-items:center; }
.foot-legal a { color: var(--muted-invert); border-bottom:1px solid transparent; transition: color .15s, border-color .15s; }
.foot-legal a:hover { color:#fff; border-color: rgba(255,255,255,.4); }
.foot-legal .cert-badge { color: var(--muted-invert); text-decoration:none; border-bottom:none; }
.foot-legal .cert-badge:hover { color:#fff; border-color: transparent; }
.foot-bot-left { display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; }
.foot-bot-left a { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.foot-bot-left a:hover { color:#fff; }
.foot-partners { display:flex; flex-wrap:wrap; align-items:center; gap:24px; }
.foot-partner { display:inline-flex; align-items:center; }
.foot-partner img { height:105px; width:auto; }

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid #e7eaee;
    box-shadow: var(--shadow-sm);
    padding: 6px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 15px 22px;
    color: var(--accent);
    font-size: 16px;
    border-bottom: 1px solid #f0f2f5;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display:block; }
  .has-dropdown.open .dropdown,
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; border: 0; margin: 0; padding: 0 0 4px; background: transparent; }
  .dropdown a { padding: 11px 22px 11px 40px; border-bottom: 1px solid #f0f2f5; color: var(--accent); font-size: 15px; }
  .dropdown li:last-child a { border-bottom: 0; }
  .nav-links .caret { transition: transform .15s ease; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .foot-grid { grid-template-columns: 1fr; }
}
