/* Alvo Marketing – fælles styles for alle sider */

:root {
  --navy: #142638;
  --cream: #F7F4ED;
  --lime: #D5F36B;
  --lime-hover: #E3F89A;
  --line: #EAE7E0;

  --page-max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-box: 18px;
  --radius-btn: 8px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Ankermål, der får fokus fra site.js (anker i en ramme): ingen fokusramme om hele sektionen,
   som ved et almindeligt ankerlink */
[tabindex="-1"]:focus-visible { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn);
}
.skip-link:focus-visible { top: 12px; outline-color: var(--lime); }

/* ---------- Header ---------- */
.site-header { position: relative; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 88px;
}

/* Tekst-placeholder indtil logofilen foreligger */
.logo {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  color: var(--navy);
  padding: 6px 0;
}

.logo { display: inline-block; }
.logo-img { display: block; height: 28px; width: auto; }
@media (max-width: 820px) {
  .site-header .logo-img { height: 24px; }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--navy);
  padding: 6px 0;
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}
.nav-list a:hover { text-decoration-line: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-header {
  font-size: 15px;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--cream);
}
.btn-header:hover { background: #22394F; }

/* Mobilmenu */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  cursor: pointer;
}
.menu-toggle:hover { border-color: #D6D2C9; }

.menu-icon {
  position: relative;
  width: 16px;
  height: 10px;
}
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.15s ease, top 0.15s ease;
}
.menu-icon::before { top: 1px; }
.menu-icon::after { top: 7.5px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 4.25px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.nav-mobile[hidden] { display: none !important; }

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.nav-mobile li + li { border-top: 1px solid var(--line); }
.nav-mobile ul a {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--navy);
}
.nav-mobile .btn-header {
  width: 100%;
  margin: 8px 0 20px;
  padding: 14px 20px;
  font-size: 16px;
}

/* ---------- Ydelser-dropdown i headeren ---------- */
/* Desktop: knap med pil; menuen åbner ved hover og klik og ligger over indholdet (absolut placeret).
   Uden JavaScript åbner den ved hover. Mobil: fold-ud-liste i mobilmenuen. */
.nav-services { position: relative; }
/* Knappen nulstilles og får samme typografi og linjehøjde som navigationslinkene.
   Linkenes padding er inline og påvirker ikke højden, så knappen har ingen lodret padding –
   ellers bliver dens boks højere end linkenes, og teksten står lavere. */
.nav-services-toggle,
.nav-m-services-toggle {
  -webkit-appearance: none;
          appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: inherit;
  color: var(--navy);
  cursor: pointer;
}
.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
}
.nav-services-toggle[aria-expanded="true"] .nav-chevron,
.nav-m-services-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-services-toggle:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

.nav-services-menu {
  display: none;
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 0 10px 30px rgba(20, 38, 56, 0.12), 0 1px 3px rgba(20, 38, 56, 0.08);
}
/* Usynlig bro over mellemrummet, så menuen bliver åben, mens markøren bevæger sig ned til den */
.nav-services-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-services.is-open .nav-services-menu,
.nav-services:not(.is-enhanced):hover .nav-services-menu { display: block; }
.nav-list .nav-services-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.nav-list .nav-services-menu a:hover,
.nav-list .nav-services-menu a:focus-visible {
  text-decoration: none;
  background: rgba(20, 38, 56, 0.06);
}
.nav-list .nav-services-menu a:focus-visible { outline-offset: 0; }

/* Aktuel ydelsesside: diskret limegrøn prik */
.nav-services-menu a[aria-current="page"]::after,
.nav-m-services-list a[aria-current="page"]::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(20, 38, 56, 0.25);
  vertical-align: 0.1em;
}

/* Mobil og tablet: fold-ud-knap i mobilmenuen, links indrykket nedenunder */
.nav-m-services-toggle {
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-size: 17px;
  text-align: left;
}
.nav-m-services-toggle .nav-chevron { width: 14px; height: 14px; }
.nav-mobile .nav-m-services-list {
  margin: 0 0 8px;
  padding: 0 0 0 16px;
}
.nav-mobile .nav-m-services-list li + li { border-top: 0; }
.nav-mobile .nav-m-services-list a {
  padding: 10px 0;
  font-size: 16px;
}

@media (max-width: 820px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-mobile { display: block; }
  .header-inner { min-height: 72px; }
}

/* ---------- Hero ---------- */
.hero-wrap {
  padding-top: 8px;
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-box);
  padding: clamp(32px, 7.5vw, 96px);
}

.hero :focus-visible { outline-color: var(--cream); }

.eyebrow {
  margin: 0 0 24px;
  color: var(--lime);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 14em;
  overflow-wrap: break-word;
}

.hero-text {
  margin: 32px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(247, 244, 237, 0.84);
}

.btn-primary {
  margin-top: 40px;
  font-size: 17px;
  padding: 17px 28px;
  background: var(--lime);
  color: var(--navy);
}
.btn-primary:hover { background: var(--lime-hover); }

@media (max-width: 560px) {
  .eyebrow { font-size: 14px; margin-bottom: 20px; }
  .hero-text { margin-top: 24px; }
  .btn-primary { margin-top: 32px; width: 100%; }
}

/* ---------- Hero-grafik (isoleret – kan fjernes sammen med .hero-art i HTML) ---------- */
.hero { position: relative; overflow: hidden; }
.hero > :not(.hero-art):not(.hero-lines) { position: relative; z-index: 1; }

.hero-art {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  /* Mobil/tablet: dekorativt baggrundslag nederst til højre bag indholdet */
  right: -16%;
  bottom: -8%;
  width: min(560px, 88%);
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 72% 72%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 70% at 72% 72%, #000 35%, transparent 78%);
}
.hero-art svg { display: block; width: 100%; height: auto; }

/* Desktop: i den ledige højre side, uden for tekst og knap */
@media (min-width: 1280px) {
  .hero-art {
    top: 50%;
    bottom: auto;
    right: -36px;
    width: 420px;
    opacity: 1;
    transform: translateY(-50%);
    -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 58%, transparent 100%);
            mask-image: radial-gradient(ellipse 62% 58% at 50% 50%, #000 58%, transparent 100%);
  }
}
/* Diskrete stregforløb på tværs af heroen (del af det dekorative lag) */
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 45%, #000 80%);
          mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.5) 45%, #000 80%);
}
.hero-lines svg { display: block; width: 100%; height: 100%; }
@media (max-width: 1279px) {
  .hero-lines {
    -webkit-mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.55) 50%, #000 100%);
            mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.55) 50%, #000 100%);
  }
}
/* ---------- /Hero-grafik ---------- */

/* ---------- Ydelser ---------- */
.services {
  padding-bottom: clamp(64px, 8vw, 112px);
  scroll-margin-top: 24px;
}

.section-title {
  margin: 0 0 clamp(32px, 4vw, 48px);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--line);
  color: var(--navy);
  border-radius: 12px;
  padding: 32px;
  transition: background-color 0.15s ease;
}
.service:hover { background: #E3DFD6; }

.service-icon {
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0 0 24px;
  color: var(--navy);
}

.service h3 {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.service p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.service-link {
  margin-top: auto;
  padding-top: 32px;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}
a.service-link { text-decoration: none; text-underline-offset: 4px; }
a.service-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .service { padding: 24px; }
  .service h3 { font-size: 22px; }
  .service-link { padding-top: 24px; }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hvorfor vælge os ---------- */
.why {
  padding-bottom: clamp(64px, 8vw, 112px);
  scroll-margin-top: 24px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.why-grid > li { min-width: 0; }

/* Ingen boks: kun en bundstreg, der flugter på tværs af rækken */
.why-card {
  --why-rule: 4px;
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 0 0 calc(30px + var(--why-rule)); /* 30 px luft + stregens tykkelse */
  background: transparent;
  color: var(--navy);
}
/* Bundstreg: 70 % bred, lodret venstre ende, skrå (45°) højre ende */
.why-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70%;
  height: var(--why-rule);
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--why-rule)) 100%, 0 100%);
}
.why-card--lime::after { background: var(--lime); }

.why-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 0 22px;
  color: var(--navy);
}

.why-card h3 {
  margin: 0 0 10px;
  font-weight: 500;
  font-size: clamp(24px, 1.8vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.why-card p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
}

/* CTA under kolonnerne – samme mål som de øvrige kontaktknapper */
.why-action {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.btn-why {
  max-width: 100%;
  font-size: 16px;
  padding: 15px 24px;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  white-space: normal;
}
.btn-why:hover { background: #22394F; }
.btn-why:focus-visible { outline-color: var(--navy); }

@media (max-width: 1023px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-card h3 { font-size: 26px; }
}

@media (max-width: 639px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
  .why-card h3 { font-size: 24px; }
  .why-action { margin-top: 32px; }
}

/* ---------- Cases ---------- */
.cases {
  padding-bottom: clamp(64px, 8vw, 112px);
  scroll-margin-top: 24px;
}


.case {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 440px;
  padding: 32px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

/* Casebillede som baggrund (indsættes som <img class="case-bg">) */
.case-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mørkeblåt overlay, kraftigst nederst hvor teksten står */
.case::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(20, 38, 56, 0.90) 0%,
    rgba(20, 38, 56, 0.84) 50%,
    rgba(20, 38, 56, 0.92) 100%
  );
}

.case-label {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 244, 237, 0.78);
}

.case-client {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--cream);
}

.case h3 {
  margin: 0;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.case-figure {
  background: var(--lime);
  color: var(--navy);
  padding: 0 0.14em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.case-text {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
}

.case-points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.case-points li {
  display: grid;
  grid-template-columns: 16px 1fr;
  column-gap: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream);
}
.case-points li + li { margin-top: 8px; }
.case-points svg {
  width: 16px;
  height: 16px;
  margin-top: 0.3em;
  color: var(--lime);
}

.case-action {
  margin-top: auto;
  padding-top: 32px;
}

.btn-outline {
  font-size: 15px;
  padding: 11px 18px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247, 244, 237, 0.55);
}
.btn-outline:not(:disabled):hover {
  background: rgba(247, 244, 237, 0.1);
  border-color: var(--cream);
}
.case :focus-visible { outline-color: var(--lime); }

/* Knapper uden destination endnu: deaktiverede, ikke navigation */
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-dark {
  font-size: 16px;
  padding: 14px 24px;
  background: var(--navy);
  color: var(--cream);
}
.btn-dark:not(:disabled):hover { background: #22394F; }

@media (max-width: 900px) {
  .case { min-height: 0; }
}

@media (max-width: 560px) {
  .case { padding: 24px; }
  .case-action { padding-top: 28px; }
  .case h3 { font-size: 23px; }
}

/* ---------- Cases: layout + kortspil ---------- */
.cases-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}

.cases-intro,
.cases-deck-wrap { min-width: 0; }

.section-eyebrow,
.cases-eyebrow {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}
.cases-intro .section-title { margin-bottom: 32px; }

.cases-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.cases-actions .btn { min-width: 220px; }

.btn-outline-dark {
  font-size: 16px;
  padding: 13px 23px;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline-dark:hover { background: rgba(20, 38, 56, 0.06); }

/* Desktop: udfoldet hånd. Alle kort i samme grid-celle = samme højde */
.case-deck {
  display: grid;
  padding-top: 44px;
}
.deck-card {
  grid-area: 1 / 1;
  position: relative;
  justify-self: center;
  width: 54%;
  z-index: 1;
  transform-origin: 50% 100%;
  transition: transform 300ms ease;
}
.deck-card[data-slot="center"] { z-index: 2; }
.deck-card[data-slot="left"]  { transform: translateX(-40%) rotate(-4deg); }
.deck-card[data-slot="right"] { transform: translateX(40%) rotate(4deg); }
.deck-card.is-active { z-index: 3; }
.deck-card[data-slot="left"].is-active  { transform: translateX(-40%); }
.deck-card[data-slot="right"].is-active { transform: translateX(40%); }

.case-deck .case {
  min-height: 0;
  padding: 28px;
  border: 1px solid #345064;
  /* Kun let jordforbindelse; adskillelsen kommer fra sideskyggerne nedenfor */
  box-shadow: 0 10px 18px -14px rgba(20, 38, 56, 0.35);
}
.case-deck .case-action { padding-top: 28px; }
.case-deck .case-points { margin-top: 14px; }

/* Kundelabel langs kortets synlige overkant – rigtig valgknap */
.case-tab {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 20px;
  z-index: 2;
  margin: 0;
  padding: 8px 14px 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--cream);
  background: var(--navy);
  border: 1px solid #345064;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}
.deck-card[data-slot="center"] .case-tab { left: 50%; transform: translateX(-50%); }
.deck-card[data-slot="right"] .case-tab { left: auto; right: 20px; }
.case-tab[aria-pressed="true"] { color: var(--lime); cursor: default; }
.case-tab:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-tab[aria-pressed="true"]:hover { text-decoration: none; }
.case-tab:focus-visible { outline-color: var(--navy); outline-offset: 2px; }

.deck-card[data-slot="center"] .case,
.deck-card.is-active .case {
  box-shadow:
    -16px 0 24px -16px rgba(6, 14, 24, 0.65),
    16px 0 24px -16px rgba(6, 14, 24, 0.65),
    0 10px 18px -14px rgba(20, 38, 56, 0.35);
}

/* LMK Service: fast limefarve, uafhængig af hvilket kort der er aktivt */
.deck-card--lime .case {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}
.deck-card--lime .case::after { display: none; }
.deck-card--lime .case-label,
.deck-card--lime .case-client,
.deck-card--lime .case h3,
.deck-card--lime .case-points li,
.deck-card--lime .case-points svg { color: var(--navy); }
.deck-card--lime .case-figure {
  background: var(--navy);
  color: var(--lime);
}
.deck-card--lime .btn-outline {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.deck-card--lime .btn-outline:not(:disabled):hover { background: #22394F; border-color: #22394F; }
.deck-card--lime .case :focus-visible { outline-color: var(--navy); }
.deck-card--lime .case-tab,
.deck-card--lime .case-tab[aria-pressed="true"] {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}

.case-dots { display: none; }

/* Tablet og mobil: tekst øverst, ét kort ad gangen med swipe */
@media (max-width: 1023px) {
  /* Tablet: eyebrow + overskrift til venstre, knapper til højre, slider i fuld bredde nedenunder.
     .cases-intro opløses (display: contents), så dens børn placeres direkte i grid-områderne. */
  .cases-layout {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "eyebrow actions"
      "title   actions"
      "deck    deck";
    column-gap: 48px;
    row-gap: 0;
    align-items: start;
  }
  .cases-intro { display: contents; }
  .cases-eyebrow { grid-area: eyebrow; }
  .cases-intro .section-title {
    grid-area: title;
    margin-bottom: 0;
  }
  .cases-actions {
    grid-area: actions;
    align-self: center;
    align-items: stretch; /* ens bredde: begge knapper får den bredeste knaps bredde */
  }
  .cases-actions .btn { min-width: 0; }
  .cases-deck-wrap {
    grid-area: deck;
    margin-top: 40px;
  }

  .cases-deck-wrap { min-width: 0; }

  /* Almindelig vandret slider: ingen grid-stak, transforms eller rotationer */
  .case-deck {
    position: relative; /* kortenes offsetLeft måles i forhold til slideren */
    display: flex;
    align-items: stretch;
    gap: 16px;
    min-width: 0;
    padding-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .case-deck::-webkit-scrollbar { display: none; }

  .cases .case-deck .deck-card,
  .cases .case-deck .deck-card[data-slot],
  .cases .case-deck .deck-card[data-slot].is-active {
    grid-area: auto;
    justify-self: auto;
    flex: 0 0 89%;
    width: 89%;
    min-width: 0;
    transform: none;
    transition: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    z-index: auto;
  }
  /* Sidste kort flugter med højre kant, så lidt af kort nummer to ses til venstre */
  .cases .case-deck .deck-card:last-child { scroll-snap-align: end; }
  .case-deck .case,
  .deck-card.is-active .case,
  .deck-card[data-slot="center"] .case { box-shadow: none; border: 0; height: 100%; }
  .case-tab { display: none; }

  .case-dots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 8px;
  }
  .case-dot {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .case-dot:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: -4px;
  }
  .case-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    border: 1.5px solid var(--navy);
    box-sizing: border-box;
  }
  .case-dot[aria-pressed="true"]::after { background: var(--navy); }
}

/* Mobil: overskrift, slider, prikker, derefter knapperne */
@media (max-width: 639px) {
  .cases-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "deck"
      "actions";
  }
  .cases-deck-wrap { margin-top: 28px; }
  .cases-actions {
    align-self: start;
    justify-self: center; /* centreret under prikkerne; bredde = bredeste knap */
    max-width: 100%;
    margin-top: 10px;     /* + prikkernes trykområde ≈ 28 px synlig afstand */
  }
  .cases-actions .btn { max-width: 100%; }
}

@media (max-width: 560px) {
  .case-deck .case { padding: 24px; }
  .case-deck .case-action { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .deck-card { transition: none; }
  .case-deck,
  .cases .case-deck { scroll-behavior: auto; }
}

/* ---------- Anmeldelser ---------- */
.reviews {
  padding-bottom: clamp(64px, 8vw, 112px);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--navy);
  color: var(--cream);
  border-radius: 12px;
}

.review-stars {
  display: flex;
  gap: 4px;
  margin: 0 0 20px;
  color: #F5C451;
}
.review-stars svg {
  display: block;
  width: 20px;
  height: 20px;
}

.review blockquote {
  margin: 0;
}
.review blockquote p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
  font-weight: 400;
}

.review figcaption {
  margin-top: auto;
  padding-top: 32px;
  font-size: 15px;
  line-height: 1.5;
}
.review-name {
  display: block;
  font-size: 17px;
  font-weight: 600;
}
.review-meta {
  display: block;
  color: rgba(247, 244, 237, 0.78);
}
.review-source {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 244, 237, 0.16);
  color: rgba(247, 244, 237, 0.78);
}
.review-source a {
  color: var(--lime);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.review-source a:hover { text-decoration-thickness: 2px; }
.review :focus-visible { outline-color: var(--lime); }

@media (max-width: 760px) {
  .review-grid { grid-template-columns: 1fr; }
}

/* ---------- Om Alvo ---------- */
.about {
  padding-bottom: clamp(64px, 8vw, 112px);
  scroll-margin-top: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
  align-items: center;
}

.about-media {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}
.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-eyebrow {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}

.about .section-title {
  margin-bottom: 28px;
}

.about-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  max-width: 34em;
}
.about-text p + p { margin-top: 20px; }

.btn-cta-dark {
  margin-top: 36px;
  max-width: 100%;
  font-size: 16px;
  padding: 15px 24px;
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  white-space: normal;
}
.btn-cta-dark:hover { background: #22394F; }

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }
  .about-media { max-width: 480px; }
}

@media (max-width: 560px) {
  .about-text p { font-size: 17px; }
  .btn-cta-dark { margin-top: 28px; }
}

/* ---------- Afsluttende CTA ---------- */
.final-cta {
  padding-bottom: clamp(48px, 6vw, 80px);
}

.cta-box {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-box);
  padding: clamp(30px, 6vw, 76px);
}
.cta-box :focus-visible { outline-color: var(--cream); }

.cta-box .section-eyebrow {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--lime);
}

.cta-box h2 {
  margin: 0;
  max-width: 700px;
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--cream);
}

/* Større H2-sektionsoverskrifter på tablet og mobil (desktop uændret) */
@media (max-width: 1023px) {
  .section-title,
  .cta-box h2 {
    font-size: clamp(44px, calc(28px + 2.5vw), 52px); /* 44 px ved 640 → 52 px ved 960+ */
    line-height: 1.15;
    overflow-wrap: break-word;
  }
}
@media (max-width: 639px) {
  .section-title,
  .cta-box h2 {
    font-size: clamp(36px, calc(28px + 2.5vw), 40px); /* 36 px ved 320 → 40 px ved 480+ */
  }
}

.cta-box p {
  margin: 24px 0 0;
  max-width: 700px;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(247, 244, 237, 0.84);
}

.cta-box .btn-primary {
  margin-top: 28px;
}

@media (max-width: 560px) {
  .cta-box p { margin-top: 18px; }
  .cta-box .btn-primary { margin-top: 24px; width: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(16px, 3vw, 40px);
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
}

.footer-top {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.35fr;
  gap: 40px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-logo .logo-img { width: 180px; height: auto; }

.footer-brand p {
  margin: 0;
  max-width: 26em;
}
.footer-brand .footer-company {
  margin-top: 12px;
  font-weight: 600;
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-list li + li { margin-top: 8px; }

.site-footer a:not(.logo) {
  color: var(--navy);
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.site-footer a:not(.logo):hover { text-decoration-line: underline; }

.footer-contact-col { scroll-margin-top: 24px; }
.footer-contact { font-style: normal; }
.footer-contact .footer-cvr {
  margin: 12px 0 0;
  color: rgba(20, 38, 56, 0.78);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 32px;
  font-size: 14px;
  color: rgba(20, 38, 56, 0.78);
}
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}

@media (max-width: 560px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Fælles grow-effekt for kontaktknapper */
.btn-grow {
  transition: background-color 0.15s ease, transform 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .btn-grow:hover { transform: scale(1.03); }
}
.btn-grow:active { transform: scale(0.99); }

@media (prefers-reduced-motion: reduce) {
  .btn-grow,
  .btn-grow:hover,
  .btn-grow:active { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
