/* Lancar Motor - single page
   Mobile-first. No external fonts or frameworks: everything ships from disk,
   so the page renders instantly and works offline. */

:root {
  --red: #e60012;
  --red-dark: #b8000e;
  --ink: #141414;
  --ink-2: #4a4a4f;
  --ink-3: #77777e;
  --line: #e3e3e8;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --wa: #25d366;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .06);
  --shadow-lg: 0 2px 4px rgba(20, 20, 20, .08), 0 16px 40px rgba(20, 20, 20, .12);
  --wrap: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Anchors sit under the sticky header without the title hiding behind it. */
section[id], main[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing. The width/height attributes on an <img> become
   presentational hints, so an image with width="1200" height="900" and a CSS
   width of 100% keeps a hard 900px height and renders squashed. Any element
   that genuinely wants a fixed height (.brand img, .footer__brand img) sets it
   with a class and still wins on specificity. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); }

.section__head { max-width: 640px; margin-bottom: 36px; }
.section__title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
.section__desc { margin: 12px 0 0; color: var(--ink-2); font-size: 1.02rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

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

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .38s cubic-bezier(.22, .61, .36, 1);
}
.header--stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 20, 20, .05); }
/* Scrolling down hands the screen back to the content; scrolling up brings the
   nav straight back. Never applied while the mobile menu is open. */
.header--hide { transform: translateY(-100%); }

.header__bar { display: flex; align-items: center; gap: 16px; height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 26px; width: auto; }

/* Stand-in for the logo until the real Lancar Motor artwork exists. Sized to
   match the 26px .brand img it replaces, so dropping an <img> back in needs no
   other change. */
.brand__mark {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 26px; border-radius: 6px;
  background: var(--red); color: #fff;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em;
}
/* Footer copy of the same mark, matching .footer__brand img. */
.brand__mark--lg {
  width: 40px; height: 30px; border-radius: 7px;
  font-size: .84rem; margin-bottom: 14px;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: .98rem; letter-spacing: -.01em; }
.brand__sub { font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-2);
  padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
/* Underline grows out from the centre on hover. */
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--red); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s cubic-bezier(.22, .61, .36, 1);
}
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 8px; }

.langbtn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .84rem; font-weight: 700;
  background: var(--bg-2); color: var(--ink); border: 1px solid var(--line);
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .14s cubic-bezier(.34, 1.4, .64, 1);
  white-space: nowrap;
}
.langbtn:hover { background: #ececf0; border-color: #d4d4dc; transform: translateY(-1px); }
.langbtn:active { transform: scale(.95); }
/* motion.js turns the globe one full rotation on every press. */
.langbtn svg { width: 15px; height: 15px; flex: none; transition: transform .55s cubic-bezier(.22, .61, .36, 1); }

.burger {
  position: relative; overflow: hidden;
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px; cursor: pointer;
  transition: background .15s, transform .14s cubic-bezier(.34, 1.4, .64, 1);
}
.burger:active { transform: scale(.92); }
.burger svg { width: 20px; height: 20px; display: block; }

/* ---------- buttons ---------- */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .14s cubic-bezier(.34, 1.4, .64, 1), background .15s, border-color .15s, color .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); }
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-dark); box-shadow: 0 10px 24px rgba(230, 0, 18, .3); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #06301a; }
.btn--wa:hover { background: #1fbe5a; box-shadow: 0 10px 24px rgba(37, 211, 102, .38); }
.btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--ghost:hover { background: rgba(255, 255, 255, .24); }
.btn--sm { padding: 9px 16px; font-size: .85rem; width: 100%; }
.btn--xs { padding: 7px 14px; font-size: .8rem; }

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

.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1c1c20 0%, #2a2a31 55%, #3a1114 100%);
}
/* The red glow drifts as you scroll — motion.js writes --par. Parallaxing the
   glow rather than the photo keeps it clear of the hero's reveal transforms. */
.hero::after {
  content: ""; position: absolute; inset: -20% 0;
  background: radial-gradient(ellipse at 78% 18%, rgba(230, 0, 18, .34), transparent 62%);
  pointer-events: none;
  transform: translateY(var(--par, 0px));
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
  padding: 76px 0 84px;
}
.hero__eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: #ffb3b8;
  border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; padding: 6px 13px;
  margin-bottom: 20px;
}
.hero__title { font-size: clamp(2rem, 5.2vw, 3.35rem); font-weight: 800; }
.hero__desc {
  margin: 18px 0 0; font-size: 1.07rem; color: rgba(255, 255, 255, .82); max-width: 50ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__from {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__from span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hero__from strong { font-size: 1.7rem; font-weight: 800; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  50% { transform: translateY(-12px); }
}

/* ---------- trust strip ---------- */

.trust { background: var(--ink); color: #fff; }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 22px 0;
}
.trust__item { text-align: center; padding: 8px 12px; }
.trust__item + .trust__item { border-left: 1px solid rgba(255, 255, 255, .13); }
.trust__big { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.trust__sub { display: block; font-size: .8rem; color: rgba(255, 255, 255, .62); }

/* ---------- filters ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  position: relative; overflow: hidden;
  font: inherit; font-size: .87rem; font-weight: 600; cursor: pointer;
  background: var(--bg); color: var(--ink-2);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 17px;
  transition: background .15s, border-color .15s, color .15s,
              transform .16s cubic-bezier(.34, 1.4, .64, 1);
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); transform: translateY(-2px); }
.chip:active { transform: scale(.94); }
/* Chips are re-rendered on every filter click, so the selected one pops each
   time it is drawn. */
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; animation: chip-pop .34s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes chip-pop {
  0%   { transform: scale(.86); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.count { font-size: .87rem; color: var(--ink-3); margin: 0 0 18px; }

/* ---------- model cards ---------- */

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }

.card__media {
  position: relative; background: var(--bg-2); overflow: hidden;
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14px;
}
.card__media img {
  max-height: 100%; width: auto; object-fit: contain;
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
}
.card:hover .card__media img { transform: scale(1.08); }
.card__tag {
  position: absolute; top: 10px; left: 10px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(255, 255, 255, .92); color: var(--ink-2);
  padding: 4px 9px; border-radius: 999px;
}

.card__body { padding: 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__name { font-size: 1.02rem; font-weight: 700; }
.card__label { margin: 8px 0 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.card__price { margin: 0 0 14px; font-size: 1.18rem; font-weight: 800; color: var(--red); letter-spacing: -.02em; }
.card__body .btn { margin-top: auto; }

.note {
  margin: 26px 0 0; padding: 14px 18px; border-left: 3px solid var(--line);
  color: var(--ink-3); font-size: .87rem; background: var(--bg-2); border-radius: 0 8px 8px 0;
}

/* ---------- category tiles ---------- */

.tiles {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 40px;
}
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); text-decoration: none;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.tile img {
  aspect-ratio: 1; object-fit: cover; width: 100%;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.tile:hover img { transform: scale(1.06); }
.tile span {
  display: block; padding: 13px 16px; font-weight: 700; font-size: .95rem;
}

/* ---------- product cards ---------- */

.pgrid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.pcard {
  position: relative; z-index: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition:
    box-shadow .32s cubic-bezier(.22, .61, .36, 1),
    transform .32s cubic-bezier(.34, 1.4, .64, 1),
    border-color .32s;
}
.pcard__media { background: var(--bg-2); aspect-ratio: 1; display: grid; place-items: center; padding: 12px; overflow: hidden; }
.pcard__media img {
  max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .45s cubic-bezier(.34, 1.4, .64, 1);
}

/* The product card lifts out of the grid on hover: it scales up, throws a
   deeper shadow and rises above its neighbours (hence z-index — without it the
   next card's edge cuts across the growing one). Hover-capable pointers only,
   so a tap on a phone does not leave a card stuck in the popped state. */
@media (hover: hover) {
  .pcard:hover {
    transform: translateY(-8px) scale(1.035);
    box-shadow: 0 6px 14px rgba(20, 20, 20, .08), 0 22px 48px rgba(20, 20, 20, .18);
    border-color: transparent;
    z-index: 3;
  }
  .pcard:hover .pcard__media img { transform: scale(1.12); }
  .pcard:hover .pcard__name { color: var(--red); }
}
.pcard__name { transition: color .2s; }
.pcard:active { transform: translateY(-2px) scale(.99); }
.pcard__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__name { font-size: .92rem; font-weight: 700; line-height: 1.35; }
.pcard__sku { margin: 0; font-size: .72rem; color: var(--ink-3); }
.pcard__row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__price { font-weight: 800; font-size: 1rem; color: var(--ink); }

/* ---------- why us ---------- */

.why { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why__item, .svc__item {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s, border-color .3s;
}
.why__item:hover, .svc__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.why__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: #ffe9ea; color: var(--red); margin-bottom: 14px;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .25s;
}
.why__item:hover .why__icon,
.svc__item:hover .why__icon { transform: scale(1.12) rotate(-6deg); background: #ffdcde; }
.why__icon svg { width: 21px; height: 21px; }
.why__item h3, .svc__item h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.why__item p, .svc__item p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* ---------- service ---------- */

/* Six cards rather than the four in .why, so the track minimum is raised to
   land on three columns at full width and two on a tablet. The .why minimum
   would fit four across and stranded the last row as a pair of stretched
   cards. */
.svc { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.svc__cta {
  margin-top: 24px; padding: 26px 30px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
}
.svc__cta h3 { font-size: 1.12rem; font-weight: 700; }
.svc__cta p { margin: 8px 0 0; color: var(--ink-2); font-size: .94rem; max-width: 56ch; }

/* ---------- credit banner ---------- */

.credit {
  background: linear-gradient(120deg, var(--red) 0%, #9d0010 100%);
  color: #fff; border-radius: 20px; padding: 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.credit h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); font-weight: 800; }
.credit p { margin: 12px 0 0; max-width: 54ch; color: rgba(255, 255, 255, .9); }

/* ---------- branches ---------- */

.branches { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.branch {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s, border-color .3s;
}
.branch:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.branch__type {
  margin: 0 0 8px; font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; color: var(--red);
}
.branch__name { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.branch__addr { font-style: normal; color: var(--ink-2); font-size: .93rem; }
.branch__note { margin: 10px 0 0; font-size: .78rem; color: var(--ink-3); font-style: italic; }
.branch__map {
  margin-top: 16px; align-self: flex-start; font-weight: 700; font-size: .88rem;
  color: var(--red); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
  transition: transform .2s cubic-bezier(.22, .61, .36, 1), color .15s;
}
.branch__map:hover { transform: translateX(4px); color: var(--red-dark); }

/* ---------- opening hours ---------- */

.hours {
  margin-top: 24px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.hours__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.hours__list { margin: 0; display: grid; gap: 0; max-width: 420px; }
.hours__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.hours__row:last-child { border-bottom: none; }
.hours__row dt { color: var(--ink-2); font-size: .94rem; }
.hours__row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.hours__todo {
  margin: 18px 0 0; padding: 13px 16px; border-left: 3px solid #f0b429;
  background: #fff8e6; color: #6b5310; font-size: .85rem; border-radius: 0 8px 8px 0;
}

/* ---------- payment ---------- */

.methods { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.method {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.method h3 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: var(--ink-2); }
.method img { margin: 0 auto; }

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

.footer { background: var(--ink); color: rgba(255, 255, 255, .74); padding: 56px 0 26px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1.6fr 1fr 1fr; margin-bottom: 36px; }
.footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
.footer p { margin: 0 0 8px; font-size: .92rem; }
.footer a { color: rgba(255, 255, 255, .74); text-decoration: none; font-size: .92rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__brand img { height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .9; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255, 255, 255, .5);
}
.footer__legal { max-width: 70ch; margin: 14px 0 0; font-size: .78rem; color: rgba(255, 255, 255, .42); }

/* ---------- floating whatsapp ---------- */

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--wa); color: #06301a; font-weight: 700; font-size: .9rem;
  text-decoration: none; padding: 13px 19px; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .42);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85);
  transition: opacity .3s, transform .38s cubic-bezier(.34, 1.56, .64, 1), visibility .3s, box-shadow .2s;
}
.wa--show { opacity: 1; visibility: visible; transform: none; }
.wa:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(37, 211, 102, .5); }
.wa:active { transform: scale(.96); }
.wa svg { width: 20px; height: 20px; }

/* ---------- back to top ---------- */

/* A plain anchor, so it still works if the motion script never loads —
   the CSS smooth-scroll does the work. */
.totop {
  position: fixed; right: 18px; bottom: 76px; z-index: 90; overflow: hidden;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: saturate(180%) blur(8px);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85);
  transition: opacity .3s, transform .38s cubic-bezier(.34, 1.56, .64, 1), visibility .3s, box-shadow .2s;
}
.totop--show { opacity: 1; visibility: visible; transform: none; }
/* On pages without the floating WhatsApp button (privacy), it drops down into
   the corner on its own. Browsers without :has() just leave it stacked. */
body:not(:has(.wa)) .totop { bottom: 18px; }
.totop:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.totop:active { transform: scale(.92); }
.totop svg { width: 19px; height: 19px; }

/* ---------- privacy page ---------- */

.legal { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.legal h1 { font-size: clamp(1.8rem, 4.4vw, 2.5rem); font-weight: 800; margin-bottom: 10px; }
.legal__meta { color: var(--ink-3); font-size: .88rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.12rem; font-weight: 700; margin: 34px 0 10px; }
.legal p { color: var(--ink-2); margin: 0 0 14px; }
.legal ul { color: var(--ink-2); padding-left: 20px; margin: 0 0 14px; }
.legal li { margin-bottom: 7px; }
.legal__box {
  background: var(--bg-2); border-radius: var(--radius); padding: 22px; margin-top: 12px;
}
.legal__box p { margin: 0 0 6px; }
.legal__todo {
  margin-top: 30px; padding: 14px 18px; border-left: 3px solid #f0b429;
  background: #fff8e6; color: #6b5310; font-size: .87rem; border-radius: 0 8px 8px 0;
}
.back { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-decoration: none; color: var(--red); margin-bottom: 26px; }
.back svg { width: 16px; height: 16px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 54px 0 60px; gap: 34px; }
  .hero__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-left: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .13); }
}

/* Raised from 760px when the Servis link made this a six-item nav: brand +
   six links + the language button need ~770px, so the desktop row overflowed
   in the 760-820px band before the burger took over. */
@media (max-width: 820px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px;
    box-shadow: 0 14px 30px rgba(20, 20, 20, .1);
  }
  .nav--open { display: flex; animation: nav-drop .26s cubic-bezier(.22, .61, .36, 1); }
  .nav a { padding: 12px 14px; font-size: .96rem; }
  .nav a::after { display: none; }
  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-10px); }
  }
  .section { padding: 52px 0; }
  .credit { padding: 32px; }
  .brand__sub { display: none; }
}

@media (max-width: 460px) {
  /* Two columns, stated outright rather than left to auto-fill. A 155px
     minimum needs 323px of track and a 360px phone only has 320px after the
     wrap padding, so auto-fill dropped to a single column on the single most
     common Android width — 25 models one per screen, each photo blown up to
     1.7x its pixels. Explicit columns hold the 2-up grid down to 320px. */
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* Same auto-fit problem: these fell to one column, so four full-width
     squares stacked up and each 600px tile was stretched over ~331px at 3x. */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
  .card__body { padding: 13px; }
  .card__media, .pcard__media { padding: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .wa span { display: none; }
  .wa { padding: 15px; }
  .totop { bottom: 74px; width: 42px; height: 42px; }
  .hero__cta .btn { width: 100%; }

  /* Comfortable thumb targets: these sit at 31–38px by default, under the
     44px guideline. */
  .btn--xs { padding: 10px 14px; font-size: .82rem; }
  .btn--sm { padding: 11px 16px; }
  .chip { padding: 11px 16px; }
}

/* ==========================================================================
   motion layer

   Driven by assets/js/motion.js. Two rules keep it safe:

   1. Nothing is hidden unless JavaScript is actually running. motion.js puts
      .js-motion on <html> from an inline snippet in <head> — before first
      paint, so content never flashes in and then disappears — and if the
      script is missing or blocked the page simply renders fully visible.
   2. prefers-reduced-motion switches the whole layer off: reveals resolve
      immediately and the looping animations stop. The script checks the same
      media query and skips its observers entirely.
   ========================================================================== */

/* ---------- scroll reveal ---------- */

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .6s cubic-bezier(.22, .61, .36, 1),
    transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-motion [data-reveal="left"]  { transform: translateX(-30px); }
.js-motion [data-reveal="right"] { transform: translateX(30px); }
.js-motion [data-reveal="zoom"]  { transform: scale(.93); }
.js-motion [data-reveal="fade"]  { transform: none; }

.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Belt and braces: if the media query is on, or the script bailed out, every
   revealable element is just visible. */
.js-motion.no-motion [data-reveal] { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__media img { animation: none; }
}

/* ---------- touch pointers ---------- */

/* A tap leaves :hover latched on until the next tap elsewhere, so on a phone
   every card you touched would stay lifted. Movement on touch comes from the
   press ripple and the :active state instead. */
@media (hover: none) {
  .card:hover, .tile:hover, .why__item:hover, .svc__item:hover, .branch:hover,
  .btn:hover, .chip:hover, .langbtn:hover, .wa:hover, .totop:hover {
    transform: none;
  }
  .card:hover .card__media img,
  .tile:hover img,
  .why__item:hover .why__icon,
  .svc__item:hover .why__icon { transform: none; }
  .branch__map:hover { transform: none; }
}

/* ---------- press ripple ---------- */

/* motion.js drops one of these into the pressed control and removes it when
   the animation ends. The host needs position:relative + overflow:hidden,
   which every target already has. */
.ink {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .26; transform: scale(0);
  animation: ink-out .6s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes ink-out {
  to { transform: scale(2.5); opacity: 0; }
}

/* ---------- scroll progress ---------- */

.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--red), #ff6b73);
  transform: scaleX(0); transform-origin: 0 50%;
  opacity: 0; transition: opacity .25s;
}
.header--stuck .progress { opacity: 1; }
