/* Arvika Liftutbildning – en sida, mobil först */

:root {
  --navy: #062f62;
  --navy-deep: #041e42;
  --navy-mid: #0a3a75;
  --navy-soft: #143c72;
  --yellow: #ffd024;
  --yellow-hover: #ffe056;
  --yellow-press: #e8bc12;
  --text: #123056;
  --text-muted: #3a506c;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --white: #ffffff;
  --focus: #ffd024;
  --radius: 8px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(4, 22, 50, 0.12);
  --header-h: 6rem;
  --font: "Barlow", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --content: 72rem;
  --pad: clamp(1.15rem, 4vw, 2rem);
}

@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("fonts/barlow-800.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlowcond-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlowcond-800.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.container {
  width: min(100% - var(--pad) * 2, var(--content));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.8em 1.25em;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn .i { flex-shrink: 0; }
.btn-lg { padding: 0.95em 1.5em; font-size: 1rem; }
.btn-sm { padding: 0.55em 0.95em; font-size: 0.88rem; letter-spacing: 0.01em; font-weight: 700; }
.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn-yellow:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-phone {
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.55em 1em 0.55em 0.7em;
  white-space: nowrap;
}
.btn-phone:hover {
  background: var(--yellow-hover);
  border-color: var(--yellow-hover);
}
.btn-upper { text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--white);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(4, 22, 50, 0.08);
}

.header-inner {
  width: min(100% - 1rem, var(--content));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: var(--header-h);
  padding: 0.55rem 0;
}
.header-inner > .logo { order: 1; }
.header-inner > .header-phone { order: 2; margin-left: auto; }
.header-inner > .nav-toggle { order: 3; margin-left: 0; }
.header-inner > .site-nav { order: 4; flex: 1 1 100%; }

.logo {
  display: block;
  width: max-content;
  max-width: 100%;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  color: var(--navy);
}
.site-footer .logo {
  justify-self: start;
}
.logo img {
  display: block;
  height: 4.6rem; /* ~74px on mobile, navy plate on white */
  width: auto;
  max-width: none;
  border-radius: 5px;
}
@media (min-width: 700px) {
  .logo img { height: 5.8rem; } /* 93px */
}
@media (min-width: 1000px) {
  .logo img { height: 6.75rem; } /* 108px, +50% */
}
.site-footer .logo img {
  height: 5rem; /* 80px */
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  flex: 1 1 auto;
}
.site-nav.is-open {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 0.2rem;
  background: var(--white);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-list a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.7rem 0.2rem;
}
.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
  color: var(--navy-deep);
  box-shadow: inset 0 -3px 0 var(--yellow);
}
.nav-list > li > a[aria-current="page"],
.nav-list > li > a.is-active {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.has-sub { position: relative; }
.sub-toggle { display: none; }
.caret { display: none; }
.sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0.4rem 0.8rem;
  display: none;
}
.has-sub.is-open > .sub,
.has-sub:focus-within > .sub { display: block; }
.sub a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.45rem 0.2rem;
}
.sub a:hover,
.sub a:focus-visible {
  background: var(--bg-soft);
}

.header-phone { display: inline-flex; }
.header-phone .phone-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (min-width: 480px) {
  .header-phone .phone-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background-color: #0a2a4e;
  background-image:
    linear-gradient(90deg, rgba(5, 22, 50, 0.78) 0%, rgba(5, 22, 50, 0.55) 28%, rgba(5, 22, 50, 0.22) 55%, rgba(5, 22, 50, 0.10) 75%, rgba(5, 22, 50, 0.16) 100%),
    url("images/hero.jpg");
  background-image:
    linear-gradient(90deg, rgba(5, 22, 50, 0.78) 0%, rgba(5, 22, 50, 0.55) 28%, rgba(5, 22, 50, 0.22) 55%, rgba(5, 22, 50, 0.10) 75%, rgba(5, 22, 50, 0.16) 100%),
    image-set(
      url("images/hero.webp") type("image/webp"),
      url("images/hero.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center 42%;
  min-height: 28rem;
  padding: 3.2rem 0 4.5rem;
  overflow: hidden;
}
.hero-inner {
  width: min(100% - var(--pad) * 2, var(--content));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.15rem, 7vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 14ch;
  margin: 0 0 0.7em;
  text-wrap: balance;
}
.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.4;
  max-width: 29em;
  margin: 0 0 1.6em;
  color: rgba(255, 255, 255, 0.94);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}
.hero-actions .btn-lg {
  padding: 1.05em 1.9em;
  font-size: 1.08rem;
}
.hero-more {
  display: inline-block;
  color: var(--white);
  font-weight: 700;
  margin: 0.2rem 0 0;
  text-underline-offset: 3px;
}
.hero-more:hover { color: var(--yellow); }
.hero-tagline {
  font-family: var(--font-script);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 1.5rem 0 0;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* ---------- Trust ---------- */
.trust {
  background: var(--white);
  padding: 2.4rem 0 2.2rem;
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  gap: 1.6rem;
}
.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
}
.trust-icon {
  box-sizing: border-box;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  color: var(--navy);
  flex-shrink: 0;
}
img.trust-icon,
.lur-symbol {
  display: block;
  width: 3.6rem;
  height: 3.6rem;
  max-width: 3.6rem;
  max-height: 3.6rem;
  object-fit: contain;
  object-position: center;
}
.trust-item h2,
.trust-item .trust-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.25em;
  color: var(--navy);
}
.trust-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Courses ---------- */
.courses {
  padding: 3.2rem 0 3.6rem;
  background: var(--white);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0;
}
.course-grid {
  display: grid;
  gap: 1.35rem 1.1rem;
  grid-template-columns: 1fr;
}
.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.course-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, #1a3a62, #0a2444);
  border-radius: 2px;
}
@media (min-width: 800px) {
  .course-card__image { aspect-ratio: 4 / 3; }
}
@media (min-width: 1200px) {
  .course-card__image { aspect-ratio: 4 / 5; }
}
.course-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.45s ease;
}
.course-card:hover .course-card__image img { transform: scale(1.04); }
.course-card h3 {
  font-size: 1.08rem;
  margin: 0.85rem 0 0.35rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.course-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
  line-height: 1.45;
  flex: 1;
}
.course-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Scaffolding ---------- */
.scaffold {
  background: var(--navy);
  color: var(--white);
  padding: 3.2rem 0 3.4rem;
}
.scaffold h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0 0 0.45em;
}
.scaffold-lead {
  font-size: 1.12rem;
  margin: 0 0 1.3em;
  color: rgba(255, 255, 255, 0.95);
  max-width: 32em;
}
.scaffold-layout {
  display: grid;
  gap: 1.6rem;
}
.scaffold-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}
.scaffold-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.7rem;
  align-items: start;
}
.scaffold-list .check {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-top: 0.15em;
}
.scaffold-list strong { font-weight: 700; }
.scaffold-photos {
  display: grid;
  gap: 0.75rem;
}
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  min-height: 12rem;
  background: var(--navy-deep);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.photo-card figcaption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4em 0.75em;
}

/* ---------- About / USP ---------- */
.about {
  padding: 3.2rem 0 1.2rem;
  background: var(--white);
}
.about h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0 0 0.5em;
}
.about-intro {
  max-width: 46rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 2.2rem;
}

.usp {
  padding: 1rem 0 3.2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.usp-grid {
  display: grid;
  gap: 1.6rem;
}
.usp-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
}
.usp-icon {
  width: 3.1rem;
  height: 3.1rem;
  color: var(--navy);
}
.usp-item h3 {
  font-size: 1.12rem;
  margin: 0 0 0.2em;
}
.usp-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ---------- Contact ---------- */
.contact {
  padding: 3.4rem 0 3.8rem;
  background: var(--bg-soft);
}
.contact h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  margin: 0 0 0.4em;
}
.contact-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 36em;
  margin: 0 0 1.4em;
}
.contact-layout {
  display: grid;
  gap: 2rem;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}
.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.contact-details a,
.contact-details span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}
.contact-details a:hover { text-decoration: underline; }
.contact-details svg { flex-shrink: 0; color: var(--navy); }

.contact-form {
  background: var(--white);
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-size: 1.15rem;
  margin: 0 0 0.3em;
}
.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.form-grid {
  display: grid;
  gap: 0.85rem;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.field input,
.field textarea {
  border: 1.5px solid #c9d3e0;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: var(--white);
  color: var(--text);
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(255, 208, 36, 0.55);
  outline-offset: 0;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.form-status {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  color: var(--navy);
  display: none;
}
.form-status.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--navy);
  padding: 2.4rem 0 2rem;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(4, 22, 50, 0.06);
}
.footer-grid {
  display: grid;
  gap: 1.6rem;
  align-items: start;
}
.footer-person { margin: 0; }
.footer-person strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25em;
}
.footer-person p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-links a {
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--navy-deep);
  text-decoration: underline;
}

.footer-map {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.varmland {
  width: 4.6rem;
  height: auto;
  flex-shrink: 0;
  color: #7e96b4;
  overflow: visible;
}
.footer-map p {
  font-family: var(--font-script);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}
.footer-copy {
  margin: 1.8rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Tablet + ---------- */
@media (min-width: 640px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scaffold-photos { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid.two .field-full { grid-column: 1 / -1; }
}

@media (min-width: 800px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .usp-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scaffold-layout {
    grid-template-columns: minmax(16rem, 0.95fr) 1.25fr;
    gap: 2rem;
    align-items: center;
  }
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.2fr auto;
    gap: 2rem;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .header-inner { gap: 1.4rem; flex-wrap: nowrap; }
  .header-inner > .logo { order: 1; }
  .header-inner > .site-nav {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    order: 2;
    flex: 1 1 auto;
  }
  .header-inner > .header-phone { order: 3; margin-left: 0; }
  .header-phone .phone-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.35rem;
    padding: 0;
  }
  .nav-list > li > a {
    padding: 1.5rem 0 1.4rem;
    font-size: 0.98rem;
  }
  .sub-toggle { display: none; }
  .caret {
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.2em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }
  .sub {
    display: block;
    position: absolute;
    top: calc(100% - 0.6rem);
    left: 0;
    min-width: 17rem;
    background: var(--white);
    color: var(--navy);
    padding: 0.45rem 0;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(4, 22, 50, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    z-index: 20;
  }
  .has-sub:hover > .sub,
  .has-sub:focus-within > .sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .sub a {
    color: var(--navy);
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
  }
  .sub a:hover,
  .sub a:focus-visible {
    background: #eef3f9;
  }
  .hero {
    min-height: 34rem;
    padding: 5.5rem 0 6.5rem;
  }
  .hero-more {
  display: inline-block;
  color: var(--white);
  font-weight: 700;
  margin: 0.2rem 0 0;
  text-underline-offset: 3px;
}
.hero-more:hover { color: var(--yellow); }
.hero-tagline {
    position: absolute;
    right: 0;
    bottom: 0.5rem;
    margin: 0;
    text-align: right;
    transform: rotate(-8deg);
    max-width: 10em;
  }
}

@media (min-width: 1000px) {
  .course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .courses .container {
    width: min(100% - var(--pad) * 2, 87.5rem); /* ~1400px, only courses */
  }
  .course-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1.15rem 0.8rem;
  }
  .course-card h3 {
    font-size: 0.92rem;
    margin: 0.7rem 0 0.3rem;
    text-wrap: balance;
  }
  .course-card p {
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
  }
  .course-card .btn-sm {
    padding: 0.5em 0.75em;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}



.hero-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: #fff !important;
  font-weight: 700;
  margin: 0.9rem 0 0;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 0.12em;
  width: fit-content;
}
.hero-more:hover { color: var(--yellow) !important; border-bottom-color: var(--yellow); }

@media (max-width: 999px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(5, 22, 50, 0.62) 0%, rgba(5, 22, 50, 0.72) 45%, rgba(5, 22, 50, 0.80) 100%),
      url("images/hero.jpg");
    background-image:
      linear-gradient(180deg, rgba(5, 22, 50, 0.62) 0%, rgba(5, 22, 50, 0.72) 45%, rgba(5, 22, 50, 0.80) 100%),
      image-set(
        url("images/hero.webp") type("image/webp"),
        url("images/hero.jpg") type("image/jpeg")
      );
    background-position: 78% 40%;
  }
}

@media (min-width: 800px) {
  .scaffold-layout {
    grid-template-columns: minmax(16rem, 0.9fr) 1.35fr;
  }
}

/* Förtroenderaden: 7 punkter på totalt 2 rader (4 + 3) på dator */
@media (min-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1.6rem 1.4rem; }
  .trust-grid > .trust-item { grid-column: span 2; }
  .trust-grid > .trust-item:nth-child(5) { grid-column: 3 / span 2; }
}

/* Standarder/ISO i kortens rubrik */
.course-card .course-std {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8em;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.75;
  letter-spacing: 0;
}
.course-card p { margin-bottom: 0; }

/* Hero: växer med skärmbredden så bilden inte beskärs i helskärm */
@media (min-width: 1200px) {
  .hero {
    min-height: max(34rem, min(42vw, calc(100vh - 7rem)));
    background-position: center 55%;
    display: flex;
    align-items: center;
  }
  .hero-inner { width: min(100% - var(--pad) * 2, var(--content)); }
}

/* ID06-ruta bland utbildningskorten */
.course-card__logo {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.course-card__logo img {
  width: 62%;
  height: auto;
  object-fit: contain;
}
.course-card--id06:hover .course-card__logo img { transform: none; }
