/* ============================================================
   ROC Sales AB — rocsales.se
   Mörk krom med röda accenter (samma familj som redneckengineering.se)
   ============================================================ */

:root {
  --bg: #050507;
  --bg-2: #0b0b10;
  --panel: #101018;
  --panel-2: #15151e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --red: #e0202c;
  --red-bright: #ff2d3a;
  --red-deep: #8f0f18;
  --chrome: linear-gradient(180deg, #ffffff 0%, #c9c9d2 45%, #8a8a96 55%, #e6e6ee 100%);
  --text: #f4f4f7;
  --muted: #a3a3b3;
  --muted-2: #6d6d7c;
  --nav-h: 68px;
  --radius: 16px;
  --font-head: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(224, 32, 44, 0.55); color: #fff; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; text-wrap: balance; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(5, 5, 7, 0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.scrolled { background: rgba(5, 5, 7, 0.9); border-bottom-color: var(--line); }
.nav-inner { width: min(1240px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.brand {
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  letter-spacing: .04em; text-transform: uppercase; font-style: italic;
}
.brand .roc { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .sales { color: var(--red-bright); text-transform: lowercase; }
.brand .ab { font-size: 12px; color: var(--muted); margin-left: 4px; font-style: normal; letter-spacing: .1em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang-btn {
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .08em;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
}
.lang-btn:hover { border-color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .04em;
  padding: 13px 24px; border-radius: 10px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-red { background: linear-gradient(180deg, var(--red-bright), var(--red)); color: #fff; box-shadow: 0 8px 26px rgba(224, 32, 44, .35); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(224, 32, 44, .5); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(224, 32, 44, .22), transparent 70%),
    radial-gradient(40% 30% at 85% 90%, rgba(143, 15, 24, .25), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-logo {
  width: min(980px, 100%); margin: 0 auto;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 70%, transparent 100%);
  animation: rise 1s ease both;
}
.hero-lead {
  max-width: 640px; margin: 28px auto 0; color: var(--muted); font-size: 18px;
  animation: rise 1s .15s ease both;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; animation: rise 1s .3s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.speed-line {
  height: 2px; width: min(520px, 70%); margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
  box-shadow: 0 0 12px rgba(255, 45, 58, .6);
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 14px;
}
.section h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 17px; max-width: 680px; }
.section-head { margin-bottom: 52px; }

/* ---------- About grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 64px;
  background: linear-gradient(90deg, var(--red-bright), transparent);
}
.card:hover { border-color: rgba(224, 32, 44, .4); transform: translateY(-3px); }
.card .num { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--red-bright); letter-spacing: .12em; }
.card h3 { font-size: 22px; margin: 10px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Redneck Engineering block ---------- */
.re-wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.re-logo { width: min(360px, 80%); filter: drop-shadow(0 0 30px rgba(224, 32, 44, .25)); }
.app-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.app-row a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; font-size: 12px; color: var(--muted); text-align: center; }
.app-row img { width: 60px; height: 60px; border-radius: 14px; border: 1px solid var(--line); transition: transform .2s; }
.app-row a:hover img { transform: translateY(-3px) scale(1.04); }
.app-row a:hover { color: var(--text); }

/* ---------- Company facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel);
}
.fact { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-last-child(-n+2) { border-bottom: none; }
.fact dt { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); font-weight: 600; margin-bottom: 4px; }
.fact dd { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.fact dd a:hover { color: var(--red-bright); }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 52px; border-radius: 22px; border: 1px solid rgba(224, 32, 44, .25);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(224, 32, 44, .16), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.contact-wrap .lead { margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02);
  font-weight: 500; transition: border-color .2s, background .2s; overflow-wrap: anywhere;
}
.contact-list a:hover { border-color: rgba(224, 32, 44, .45); background: rgba(224, 32, 44, .06); }
.ci { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(224, 32, 44, .14); color: var(--red-bright); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { width: 200px; mix-blend-mode: lighten; margin-bottom: 10px; }
.footer-meta { color: var(--muted-2); font-size: 14px; line-height: 1.8; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--text); }
.footer-flag { color: var(--muted); font-size: 14px; }

/* ---------- Legal page ---------- */
.legal { padding: calc(var(--nav-h) + 70px) 0 100px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--muted-2); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal a { color: var(--red-bright); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .re-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { padding: 32px 22px; }
  .section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .lang-btn { margin-left: auto; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: none; }
  .fact:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .hero-lead { font-size: 16px; }
}

/* ---------- Portfolio ---------- */
.portfolio { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pcard {
  display: block; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); transition: border-color .25s, transform .25s;
}
.pcard:hover { border-color: rgba(224, 32, 44, .45); transform: translateY(-3px); }
.pcard-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pcard-head img { width: 54px; height: 54px; border-radius: 13px; border: 1px solid var(--line); flex: none; }
.pcard h3 { font-size: 20px; }
.ptag { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-bright); font-weight: 600; }
.pcard p { color: var(--muted); font-size: 14.5px; }

/* ---------- Footer badge (Speeed_Freeak) ---------- */
.footer-badge { display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; }
.footer-badge img {
  width: 144px; height: 144px; border-radius: 50%;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%);
  filter: drop-shadow(0 0 18px rgba(255, 90, 30, .25));
  transition: transform .3s;
}
.footer-badge img:hover { transform: scale(1.06) rotate(-2deg); }
