/* Sniper Expert website: the game's own look (src/ui/ui_style.gd) - dark olive glass, gold
   highlights, the Rubik font. One sheet for both languages: [dir=rtl] flips what needs it. */

@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #0b0e0b;
  --panel: rgba(12, 15, 12, 0.78);
  --panel-solid: #121612;
  --line: rgba(255, 255, 255, 0.08);
  --text: #efefe6;
  --muted: #a8ad9e;
  --dim: #737869;
  --gold: #e0bd61;
  --olive: #8ca861;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Rubik", "Segoe UI", Arial, sans-serif;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* --- top bar ------------------------------------------------------------------------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: 0.5px; color: var(--text); direction: ltr; }
.logo span { font-weight: 300; color: var(--gold); }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav .lang { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; color: var(--text); }

/* --- hero ---------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: center;
  background: url("img/hero.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 5, 0.94) 0%, rgba(5, 7, 5, 0.75) 38%, rgba(5, 7, 5, 0) 70%),
              linear-gradient(0deg, rgba(11, 14, 11, 1) 0%, rgba(11, 14, 11, 0) 30%);
}
[dir=rtl] .hero::before {
  background: linear-gradient(90deg, rgba(5, 7, 5, 0.94) 0%, rgba(5, 7, 5, 0.75) 38%, rgba(5, 7, 5, 0) 70%),
              linear-gradient(0deg, rgba(11, 14, 11, 1) 0%, rgba(11, 14, 11, 0) 30%);
}
.hero .wrap { position: relative; width: 100%; }
.hero-text { max-width: 520px; }
.hero h1 { margin: 0; font-size: clamp(44px, 7vw, 76px); line-height: 1.02; font-weight: 800; direction: ltr; text-align: start; }
[dir=rtl] .hero h1 { text-align: right; }
.hero h1 span { font-weight: 300; color: var(--gold); }
.tagline { font-size: 21px; color: var(--muted); margin: 14px 0 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.facts li { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(56, 48, 23, 0.9); border: 1px solid var(--gold); color: var(--gold);
  border-radius: 10px; padding: 16px 26px; font-weight: 700; font-size: 20px;
}
.btn:hover { background: rgba(80, 68, 30, 0.95); text-decoration: none; }
.btn svg { width: 22px; height: 22px; }
.btn-note { display: block; margin-top: 12px; font-size: 13px; color: var(--dim); }

/* --- sections ------------------------------------------------------------------------ */
section { padding: 80px 0; }
section h2 { font-size: 34px; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 720px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .body { padding: 18px 22px 22px; }
.card h3 { margin: 0 0 6px; font-size: 21px; color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 28px; padding: 0; list-style: none; }
.steps li {
  counter-increment: step; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(224, 189, 97, 0.15);
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}
.steps h3 { margin: 0 0 4px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.note {
  background: rgba(224, 189, 97, 0.07); border: 1px solid rgba(224, 189, 97, 0.25);
  border-radius: var(--radius); padding: 18px 22px; color: var(--muted); font-size: 15px;
}
.note b { color: var(--text); }
.note + .note { margin-top: 14px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.box h3 { margin: 0 0 10px; font-size: 20px; }
.box ul { margin: 0; padding-inline-start: 20px; color: var(--muted); }
.box li { margin: 4px 0; }

.log { border-inline-start: 2px solid var(--line); padding-inline-start: 22px; }
.log h3 { margin: 0; font-size: 19px; }
.log .when { color: var(--dim); font-size: 14px; margin-bottom: 8px; }
.log ul { margin: 0 0 26px; padding-inline-start: 20px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .features, .steps, .two { grid-template-columns: 1fr; }
  .top nav a:not(.lang) { display: none; }
  .hero { min-height: min(84vh, 760px); background-position: 88% center; }
  .hero::before, [dir=rtl] .hero::before { background: linear-gradient(0deg, rgba(11, 14, 11, 1) 0%, rgba(5, 7, 5, 0.65) 100%); }
  section { padding: 56px 0; }
}

/* Hebrew: the hero text stays on the left too (the soldier lies on the right of the picture) */
[dir=rtl] .hero-text { margin-right: auto; }

/* narrow phones: nothing may overflow the screen */
html, body { overflow-x: hidden; }
@media (max-width: 860px) {
  .facts li { white-space: normal; }
  .hero-text, .lead, .card, .box, .note, .steps li { max-width: 100%; min-width: 0; }
  .features > *, .steps > *, .two > * { min-width: 0; }
  .tagline { font-size: 18px; }
}
