/*
  RRS Group AB
  Lighter graphite / corporate profile v2
  Full replacement stylesheet
*/

:root {
  --bg: #181b20;
  --bg-deep: #14171b;
  --surface: #22272d;
  --surface-soft: #2a3037;
  --header: #23272d;

  --text: #f4f1eb;
  --muted: rgba(244, 241, 235, 0.72);
  --muted-soft: rgba(244, 241, 235, 0.54);
  --quiet: rgba(244, 241, 235, 0.40);

  --line: rgba(244, 241, 235, 0.14);
  --line-strong: rgba(244, 241, 235, 0.22);

  --blue: #95c7ec;
  --blue-soft: rgba(149, 199, 236, 0.18);
  --blue-deep: #4c91c8;

  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.wrap {
  width: min(100% - 56px, var(--max));
  margin: 0 auto;
}

.wrap.slim,
.slim {
  max-width: 900px;
}

/* Header */

.site-header {
  min-height: 92px;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
  border-bottom: 1px solid rgba(244, 241, 235, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand img {
  width: 185px;
  height: auto;
  opacity: 0.96;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-bottom-color: var(--blue);
}

/* Shared typography */

.eyebrow {
  margin: 0 0 24px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  max-width: 900px;
  color: var(--text);
  font-size: clamp(42px, 4.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 800;
}

h2 {
  max-width: 760px;
  color: var(--text);
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

h3 {
  color: var(--text);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}

p {
  color: var(--muted);
  font-size: 18px;
}

.lead,
.lead-line {
  color: rgba(244, 241, 235, 0.88);
  font-size: clamp(19px, 1.45vw, 24px);
  line-height: 1.5;
}

.muted {
  color: var(--muted-soft);
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

.text-link:hover {
  color: var(--text);
}

/* Buttons */

.actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.actions.compact {
  margin-top: 34px;
}

.btn {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--blue);
  color: #11161b;
  border: 1px solid var(--blue);
}

.btn.primary:hover {
  background: #b4d7f1;
  border-color: #b4d7f1;
}

.btn.secondary {
  color: var(--text);
  border: 1px solid rgba(244, 241, 235, 0.26);
  background: transparent;
}

.btn.secondary:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* Hero / page hero */

.hero,
.page-hero {
  background:
    radial-gradient(circle at 72% 24%, rgba(149, 199, 236, 0.16), transparent 35%),
    linear-gradient(135deg, #181b20 0%, #1d2228 52%, #27303a 100%);
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
}

.hero-inner {
  padding: 72px 0 92px;
}

.hero p {
  max-width: 690px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.6;
}

.page-hero {
  min-height: 48vh;
  display: flex;
  align-items: center;
  padding: 90px 0 95px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.55;
}

.contact-hero {
  padding-bottom: 100px;
}

/* Sections */

.section {
  padding: 88px 0;
  background: var(--bg);
}

.intro-section,
.company-section,
.contact-section {
  background: #1b1f25;
}

.route-section,
.environments,
.cta-section {
  background: var(--surface);
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 82px;
  align-items: start;
}

.copy-block {
  display: grid;
  gap: 24px;
}

.copy-block p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

/* Route list */

.route-list,
.company-list {
  border-top: 1px solid var(--line);
}

.route-item {
  display: grid;
  grid-template-columns: 250px minmax(360px, 0.9fr) minmax(420px, 1.35fr);
  gap: 46px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, padding-left 0.18s ease;
}

.route-item:hover {
  background: rgba(244, 241, 235, 0.035);
  padding-left: 14px;
}

.route-kicker {
  color: var(--muted-soft);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-item strong {
  color: var(--text);
  font-size: clamp(20px, 1.55vw, 26px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.route-item:hover strong {
  color: var(--blue);
}

.route-item span:last-child {
  max-width: 560px;
  color: rgba(244, 241, 235, 0.68);
  font-size: 16px;
  line-height: 1.55;
}

.tkab-name {
  white-space: nowrap;
  font-size: 0.95em;
  letter-spacing: -0.02em;
}

/* Companies page */

.company-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.logo-panel {
  min-height: 170px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 18px;
}

.logo-panel.dark-logo {
  border: none;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.logo-panel.dark-logo img {
  max-width: 300px;
  opacity: 0.74;
}

.logo-panel.light-logo {
  min-height: 170px;
  padding: 26px;
  background: rgba(248, 246, 241, 0.96);
  border-radius: 2px;
  justify-content: center;
  align-items: center;
}

.logo-panel.light-logo img {
  max-width: 250px;
}

.company-content {
  max-width: 820px;
}

.company-content h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 3.6vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.company-content .lead-line,
.company-content .company-lead {
  margin-bottom: 28px;
  color: rgba(244, 241, 235, 0.92);
  font-weight: 700;
}

.company-content p:not(.eyebrow):not(.lead-line):not(.company-lead) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.company-content .muted strong {
  color: var(--text);
}

/* Environments */

.environments .muted {
  margin-top: 34px;
  color: var(--muted-soft);
  font-size: 17px;
  line-height: 1.8;
}

/* CTA */

.cta-panel {
  padding: 62px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-panel p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
}

/* Contact */

.contact-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.contact-row h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.contact-row p {
  margin-top: 10px;
}

.contact-meta {
  display: grid;
  gap: 14px;
  justify-items: start;
  color: var(--muted);
}

.primary-contact {
  padding: 46px 0;
}

/* Footer */

.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(244, 241, 235, 0.12);
  padding: 46px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.7;
}

.footer-inner strong {
  color: var(--text);
}

.footer-inner a {
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--blue);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
    min-height: 86px;
  }

  .brand img {
    width: 160px;
  }

  .nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .page-hero {
    padding: 68px 0 78px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(38px, 10vw, 58px);
    line-height: 1.05;
  }

  .two-col,
  .company-row,
  .contact-row,
  .route-item {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .route-item:hover {
    padding-left: 0;
    background: transparent;
  }

  .tkab-name {
    white-space: normal;
  }

  .company-row {
    gap: 28px;
  }

  .logo-panel {
    max-width: 360px;
    min-height: 140px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 30px, var(--max));
  }

  .section {
    padding: 68px 0;
  }

  .btn {
    width: 100%;
  }

  .actions {
    width: 100%;
  }

  .route-item {
    padding: 26px 0;
  }

  .company-row {
    padding: 44px 0;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
