/* Ahlsell Workwear – verktyg
   Tokens from the Ahlsell You design system (ahlsell-group/ahlsell-you). */

@font-face {
  font-family: "Ahlsell Sans";
  src: url("fonts/ahlsellsans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ahlsell Sans";
  src: url("fonts/ahlsellsans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Ahlsell Sans";
  src: url("fonts/ahlsellsans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Ahlsell Sans";
  src: url("fonts/ahlsellsans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Ahlsell You, light */
  --background: #f4f8fc;
  --surface: #ffffff;
  --surface-light: #fafafa;
  --surface-hover: #f5f5f8;
  --text: #29292d;
  --text-secondary: #52555c;
  --text-muted: #727277;
  --primary-main: #0073b6;
  --primary-dark: #094c7c;
  --brand-secondary: #023d62;
  --primary-cyan: #009fe3;
  --primary-light: #b5def3;
  --border: #d7d7da;
  --ring: #023d62;
  --on-gradient: #fafafa;
  --gradient: linear-gradient(180deg, #0073b6 58%, #094c7c 100%);
  --gradient-wide: linear-gradient(90deg, #0073b6 58%, #023d62 100%);
  --shadow-card: 0 0 10px 3px rgba(82, 85, 92, 0.12);
  --shadow-header: 0 6px 25px 0 rgba(0, 0, 0, 0.15);
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Ahlsell You, dark */
    --background: #0b1623;
    --surface: #1c304b;
    --surface-light: #1c304b;
    --surface-hover: #12476a;
    --text: #fafafa;
    --text-secondary: #d7d7da;
    --text-muted: #a7a7a9;
    --primary-main: #73c8eb;
    --primary-dark: #0488d2;
    --primary-cyan: #73c8eb;
    --primary-light: #12476a;
    --border: #727277;
    --ring: #73c8eb;
    --shadow-card: 0 0 10px 3px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: "Ahlsell Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.08px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Top bar: white, carries the Ahlsell Workwear logo */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: 1449px;
  margin-inline: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
}

.topbar__logo {
  display: block;
  border-radius: 2px;
}

.topbar__logo img {
  display: block;
  height: 48px;
  width: auto;
}

@media (min-width: 48rem) {
  .topbar__inner {
    padding-block: 16px;
  }
  .topbar__logo img {
    height: 60px;
  }
}

/* Hero: dusk sky from the Ahlsell catalogue covers */

.hero {
  background: var(--brand-secondary) url("img/banner.jpg") center 85% / cover no-repeat;
  color: var(--on-gradient);
}

.hero__inner {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: 56px 16px 64px;
}

@media (min-width: 48rem) {
  .hero__inner {
    padding: 96px 24px 104px;
  }
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 1px 12px rgba(2, 61, 98, 0.35);
}

@media (min-width: 48rem) {
  .hero h1 {
    font-size: 40px;
    line-height: 44px;
  }
}

.hero p {
  margin: 0;
  max-width: 56ch;
  color: rgba(250, 250, 250, 0.92);
  text-shadow: 0 1px 8px rgba(2, 61, 98, 0.35);
}

/* Footer: the Ahlsell You gradient bar */

.bar {
  background: var(--gradient);
  color: var(--on-gradient);
}

@media (min-width: 48rem) {
  .bar {
    background: var(--gradient-wide);
  }
}

.bar__inner {
  max-width: 1449px;
  margin-inline: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 32px;
  width: auto;
  display: block;
  color: var(--on-gradient);
}

.bar--footer {
  margin-top: auto;
}

.bar--footer .bar__inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-block: 32px;
}

.bar__note {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: rgba(250, 250, 250, 0.85);
}

/* Page */

.page {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: 40px 16px 72px;
}

@media (min-width: 48rem) {
  .page {
    padding: 56px 24px 112px;
  }
}

/* Tools: one Ahlsell You boxed link per tool */

.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tool__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 20px 20px 24px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.tool__link:hover {
  border-color: var(--text-secondary);
}

.tool__link:active,
.tool__link:focus-visible {
  background: var(--surface-hover);
  border-color: var(--text);
}

@media (min-width: 48rem) {
  .tool__link {
    padding: 28px 28px 28px 32px;
  }
}

.tool__logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-right: 16px;
}

@media (min-width: 48rem) {
  .tool__logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-right: 20px;
  }
}

.tool__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tool__name {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  color: var(--primary-main);
}

@media (min-width: 48rem) {
  .tool__name {
    font-size: 24px;
    line-height: 28px;
  }
}

.tool__desc {
  color: var(--text-secondary);
  max-width: 60ch;
}

.tool__arrow {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--primary-main);
}

.tool__envs {
  margin: 8px 0 0 24px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

@media (min-width: 48rem) {
  .tool__envs {
    margin-left: 32px;
  }
}

.tool__envs a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 2px;
}

.tool__envs a:hover {
  color: var(--primary-main);
}

.tool__soon {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .tool__link {
    transition: none;
  }
}

/* Narrow screens: tile and arrow make room for the text */
@media (max-width: 47.99rem) {
  .tool__link {
    align-items: flex-start;
    padding: 16px;
  }
  .tool__logo {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    margin-right: 12px;
  }
  .tool__arrow {
    display: none;
  }
  .tool__envs {
    margin-left: 16px;
  }
}
