/* MoveIL marketing site — design system.
   Shared by /, /en/, /ru/ and /movers/.

   Direction-agnostic: logical properties only (inline-start/end), so one rule
   set serves RTL Hebrew and LTR English/Russian.

   The look is deliberately restrained: one ink colour, one metal accent used in
   hairlines and small marks only, a single typeface at a wide weight range, and
   space doing the work that borders and gradients used to do. Nothing here uses
   a full-colour gradient, a pill button or an emoji — those read as cheap at
   any size. */

:root {
  /* ink + paper */
  --ink: #0c1420;          /* near-black navy — headings, dark sections */
  --ink-2: #16233a;
  --body: #4a5769;         /* body copy */
  --muted: #7b8798;
  --paper: #fbfaf8;        /* warm off-white, never pure #fff */
  --paper-2: #f4f1ec;
  --line: rgba(12, 20, 32, .10);
  --line-soft: rgba(12, 20, 32, .06);

  /* accent — copper. Hairlines, rules, small marks. Never a background. */
  --accent: #a97440;
  --accent-soft: rgba(169, 116, 64, .16);

  /* on dark */
  --on-dark: #f3f1ee;
  --on-dark-muted: rgba(243, 241, 238, .62);
  --on-dark-line: rgba(243, 241, 238, .16);

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Heebo", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display sizes lean on weight 300–400 at large sizes: light type set big
   reads considered, heavy type set big reads like a discount banner. */
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; font-weight: 400; }
h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.022em;
  font-weight: 300;
}
h2 {
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: -.018em;
  font-weight: 300;
}
h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -.005em;
  font-weight: 500;
}
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }

/* Small caps label above a heading — the cheapest way to buy editorial
   structure without adding another colour or box. */
.eyebrow {
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow::after {
  content: ""; flex: 0 0 34px; height: 1px; background: var(--accent);
  opacity: .5;
}
.hero .eyebrow { color: rgba(200, 160, 116, .95); }
.hero .eyebrow::after { background: rgba(200, 160, 116, .6); }

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky; inset-block-start: 0; z-index: 30;
  background: rgba(12, 20, 32, .82);
  backdrop-filter: saturate(140%) blur(14px);
  border-block-end: 1px solid var(--on-dark-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }

.brand {
  display: inline-flex; align-items: baseline; gap: .1rem;
  color: var(--on-dark); text-decoration: none;
  font-size: 1.18rem; font-weight: 500; letter-spacing: .06em;
}
.brand .dot { color: var(--accent); }

.nav { display: flex; gap: 1.75rem; margin-inline-start: auto; }
.nav a {
  position: relative; color: var(--on-dark-muted); text-decoration: none;
  font-size: .875rem; font-weight: 400; letter-spacing: .01em; padding-block: .35rem;
}
.nav a::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline: 0;
  height: 1px; background: var(--accent); transform: scaleX(0);
  transition: transform .28s ease;
}
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; margin-inline-start: 1.25rem; }

/* Cross-audience link (customer page -> movers, and back). Quiet on purpose and
   always visible, including on mobile where .nav is hidden: switching audience
   is a context change, not a second call to action. */
.alt-audience {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--on-dark-muted); text-decoration: none;
  font-size: .82rem; letter-spacing: .01em; white-space: nowrap;
  padding-block: .3rem;
  border-block-end: 1px solid transparent;
}
.alt-audience:hover { color: var(--on-dark); border-block-end-color: var(--accent); }
.alt-audience .arrow { font-size: .9em; opacity: .8; }

/* Language picker — the same control the app uses: a bordered pill showing the
   current language, opening a list of native names. <details> handles the
   open/close; a few lines of inline script close it on outside click/Escape. */
.lang { position: relative; }
.lang summary {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid rgba(243, 241, 238, .45);
  color: var(--on-dark); font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  cursor: pointer; list-style: none; user-select: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--on-dark); background: rgba(243, 241, 238, .06); }
.lang summary svg {
  width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3;
  opacity: .8;
}

.lang-menu {
  position: absolute; inset-block-start: calc(100% + .6rem); inset-inline-end: 0;
  z-index: 40; min-width: 168px; padding: .35rem;
  background: var(--ink); border: 1px solid var(--on-dark-line); border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .75rem; border-radius: 2px;
  color: var(--on-dark-muted); text-decoration: none; font-size: .92rem;
  letter-spacing: 0;
}
.lang-menu a:hover { background: rgba(243, 241, 238, .07); color: var(--on-dark); }
.lang-menu a[aria-current="true"] { color: var(--on-dark); }
/* copper dot marks the active language, matching the app's radio */
.lang-menu a[aria-current="true"]::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* --- buttons ------------------------------------------------------------ */
/* Rectangular with a 2px radius. Pills and drop shadows are the two fastest
   ways to look like a template. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: 1rem 1.9rem; border-radius: 2px; border: 1px solid transparent;
  /* <button> defaults to the platform's grey buttonface; every .btn until the
     consent gate was an <a>, which hid it. */
  background: transparent;
  font-family: inherit; font-size: .9375rem; font-weight: 500; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-sm { padding: .6rem 1.15rem; font-size: .82rem; }

/* on dark */
.btn-primary { background: var(--on-dark); color: var(--ink); }
.btn-primary:hover { background: #fff; }
.btn-outline { border-color: var(--on-dark-line); color: var(--on-dark); }
.btn-outline:hover { border-color: var(--on-dark); }

/* on paper */
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* --- hero --------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  padding-block: clamp(4.5rem, 10vw, 9rem) clamp(4rem, 9vw, 8rem);
}
/* Two very low-contrast radial washes + a hairline grid. Reads as depth in
   print; a flat two-stop gradient reads as a slide template. */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90rem 40rem at 78% -10%, rgba(52, 92, 148, .30), transparent 60%),
    radial-gradient(60rem 34rem at 8% 108%, rgba(169, 116, 64, .16), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--on-dark-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--on-dark-line) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .22;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--on-dark); max-width: 17ch; }
.hero .lead {
  font-size: clamp(1.02rem, .95rem + .35vw, 1.24rem);
  line-height: 1.75; max-width: 54ch; color: var(--on-dark-muted);
  margin-block-start: 1.4rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-block: 2.5rem 3rem; }

/* Trust line: small text separated by hairlines. No green ticks. */
.hero-points {
  display: flex; flex-wrap: wrap; gap: 0 1.6rem;
  padding: 0; margin: 0; list-style: none;
  font-size: .82rem; letter-spacing: .02em; color: var(--on-dark-muted);
  border-block-start: 1px solid var(--on-dark-line); padding-block-start: 1.5rem;
}
.hero-points li { display: flex; align-items: center; gap: 1.6rem; }
.hero-points li + li::before {
  content: ""; width: 1px; height: 12px; background: var(--on-dark-line);
}

/* --- sections ----------------------------------------------------------- */

section { padding-block: clamp(4rem, 8vw, 7rem); }
section.soft { background: var(--paper-2); }
.section-head { max-width: 58ch; margin-block-end: clamp(2.5rem, 5vw, 3.75rem); }
.section-head p { color: var(--muted); margin: 0; }

/* Cards share hairlines instead of each carrying their own border and shadow —
   one continuous rule, like a table in a printed report. The rules live on the
   cards (block-end / inline-end) rather than on a coloured grid background, so
   a row that does not divide evenly leaves clean paper instead of a grey block. */
.grid {
  display: grid;
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }
/* 4-up rows: steps and any four-card comparison, so nothing is left dangling */
@media (min-width: 980px) { .grid.steps { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: transparent;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  border-block-end: 1px solid var(--line);
  border-inline-end: 1px solid var(--line);
  transition: background-color .3s ease;
}
.card:hover { background: rgba(255, 255, 255, .7); }
.card h3 { margin-block-end: .5rem; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.7; }

.card .ico { display: block; width: 26px; height: 26px; margin-block-end: 1.5rem; color: var(--accent); }
.card .ico svg { width: 100%; height: 100%; display: block; }

/* Steps: thin oversized numerals, no filled circles. */
.steps .card { position: relative; }
.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block; font-size: 1.5rem; font-weight: 300; letter-spacing: .04em;
  color: var(--accent); opacity: .85; margin-block-end: 1.4rem;
}

/* Cities: a typeset list, not a bag of chips. Plain text, no links — those
   pages do not exist yet and thin city pages would do more harm than good. */
.cities {
  columns: 2; column-gap: 3rem; padding: 0; margin: 0; list-style: none;
  font-size: .95rem;
}
@media (min-width: 720px) { .cities { columns: 3; } }
@media (min-width: 1020px) { .cities { columns: 4; } }
.cities li {
  break-inside: avoid; padding-block: .6rem;
  border-block-end: 1px solid var(--line-soft); color: var(--ink);
}

/* --- band --------------------------------------------------------------- */

.band {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem;
  border-inline-start: 2px solid var(--accent);
}
.band h2 { color: var(--on-dark); margin: 0 0 .5rem; }
.band p { margin: 0; color: var(--on-dark-muted); max-width: 46ch; }

/* --- faq ---------------------------------------------------------------- */

.faq-list { border-block-start: 1px solid var(--line); }
details.faq { border-block-end: 1px solid var(--line); padding: 0; }
details.faq summary {
  cursor: pointer; list-style: none; padding-block: 1.5rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  color: var(--ink); font-size: 1.0625rem; font-weight: 500; letter-spacing: -.005em;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; color: var(--accent); font-weight: 300; font-size: 1.3rem;
  line-height: 1; transition: transform .25s ease;
}
details.faq[open] summary::after { content: "−"; }
details.faq p {
  margin: 0 0 1.6rem; max-width: 72ch; font-size: .97rem; color: var(--muted);
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
  background: var(--ink); color: var(--on-dark-muted);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem;
  font-size: .9rem;
}
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.footer-grid h3 {
  color: var(--on-dark); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; margin-block-end: 1.1rem;
}
.footer-grid p { color: var(--on-dark-muted); font-size: .9rem; max-width: 34ch; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-block-end: .6rem; }
.footer-bottom {
  border-block-start: 1px solid var(--on-dark-line);
  margin-block-start: 3rem; padding-block-start: 1.5rem;
  font-size: .8rem; letter-spacing: .04em; color: rgba(243, 241, 238, .4);
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .hero-points { gap: .4rem 1.2rem; }
  .hero-points li { gap: 1.2rem; }
}

/* --- consent gate ------------------------------------------------------- */
/* Fixed to the bottom rather than a full-screen modal: this is a notice, not a
   decision worth blocking the page for. */
.consent {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  background: var(--ink); color: var(--on-dark-muted);
  border-block-start: 1px solid var(--on-dark-line);
}
.consent p { margin: 0; font-size: .88rem; max-width: 74ch; line-height: 1.6; }
.consent a { color: var(--on-dark); text-decoration: underline; }
.consent-actions { display: flex; gap: .6rem; flex-shrink: 0; }
