/* ==========================================================================
   SkoleIndsigt — hjemmeside-mockup
   Fælles stilark. Moderne, skarpt, minimalistisk.
   Palet hentet fra logoet (se project_logo_brand).
   ========================================================================== */

:root {
  /* Brand */
  --blue:        #1a68c8;
  --blue-bright: #2E7DE0;
  --blue-soft:   #EEF4FD;
  --navy:        #1A2540;
  --green:       #0d7a52;
  --green-soft:  #E8F5EF;

  /* Neutraler */
  --ink:      #12172a;
  --body:     #414a5e;
  --muted:    #6b7488;
  --line:     #E3E7EF;
  --line-soft:#EFF2F7;
  --paper:    #ffffff;
  --paper-2:  #FAFBFD;

  /* Rytme */
  --wrap: 1160px;
  --pad: 28px;
  --r: 14px;
  --r-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(18,23,42,.04), 0 2px 8px rgba(18,23,42,.04);
  --shadow-md: 0 2px 4px rgba(18,23,42,.04), 0 12px 32px rgba(18,23,42,.07);
  --shadow-lg: 0 4px 8px rgba(18,23,42,.05), 0 28px 64px rgba(18,23,42,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color: var(--body);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -0.034em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.4; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- layout */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.wrap--narrow { max-width: 780px; }

section { position: relative; }

.band       { padding: 104px 0; }
.band--tight{ padding: 72px 0; }
.band--tint { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.band--blue { background: var(--blue-soft); border-block: 1px solid #DDE8FA; }
.band--dark { background: var(--navy); }
.band--dark h1, .band--dark h2, .band--dark h3 { color: #fff; }
.band--dark p { color: #b9c2d6; }

/* ------------------------------------------------------------ typografi */

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.band--dark .eyebrow { color: #7FB2F0; }

.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--body);
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; }

.small { font-size: 15px; }
.muted { color: var(--muted); }

/* --------------------------------------------------------------- knapper */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(26,104,200,.28), 0 6px 18px rgba(26,104,200,.22);
}
.btn--primary:hover { background: #1558ab; transform: translateY(-1px); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: #C9D3E4; transform: translateY(-1px); }

.btn--onDark {
  background: #fff; color: var(--navy); box-shadow: none;
}
.btn--onDark:hover { background: #EEF4FD; transform: translateY(-1px); }

.btn--sm { padding: 9px 17px; font-size: 14.5px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15.5px;
}
.arrow-link svg { transition: transform .18s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad);
  height: 68px; display: flex; align-items: center; gap: 22px;
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none !important; }
.brand__word {
  font-size: 20px; font-weight: 400; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1;
}
.brand__word b { font-weight: 700; color: var(--blue); }

.nav__links { display: flex; gap: 13px; margin-left: auto; align-items: center; }
.nav__links a {
  font-size: 13.5px; font-weight: 500; color: var(--body); white-space: nowrap;
  text-decoration: none !important; position: relative; padding: 4px 0;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); font-weight: 600; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--blue); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__cta .btn--sm { padding: 8px 14px; font-size: 13.5px; }

.nav__burger { display: none; }

/* Ekstra menupunkt der kun findes i mobilmenuen */
.nav__mobile-cta { display: none; }

/* -------------------------------------------------------------- kort/grid */

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #D6DEEC;
}
.card h3 { margin-bottom: 11px; }
.card p { font-size: 15.5px; line-height: 1.6; }

.card__num {
  font-size: 13px; font-weight: 700; color: var(--blue);
  letter-spacing: .08em; margin-bottom: 16px; display: block;
}

.icon-box {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--blue-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-box--green { background: var(--green-soft); }

/* -------------------------------------------------------- scroll-reveal */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ hero-figur */

.figure-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.figure-frame__bar {
  height: 38px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 6px; padding: 0 14px;
  background: #FCFDFE;
}
.figure-frame__dot { width: 8px; height: 8px; border-radius: 50%; background: #DDE3EC; }
.figure-frame__label {
  margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 500;
  letter-spacing: .01em;
}
.figure-frame__body { padding: 22px; }

/* --------------------------------------------------------------- footer */

.footer {
  background: var(--navy);
  color: #9aa5bd;
  padding: 68px 0 34px;
  font-size: 15px;
}
.footer a { color: #cfd8ea; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand .brand__word { color: #fff; }
.footer__brand .brand__word b { color: #7FB2F0; }
.footer h3 { color: #fff; font-size: 14px; margin-bottom: 14px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer__base {
  padding-top: 26px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #9aa5bd;
}

/* ------------------------------------------------------------ hjælpere */

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500; color: var(--body);
  box-shadow: var(--shadow-sm);
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.stat__n {
  font-size: 34px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px;
}

/* Ren liste med checkmark */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 28px; margin-bottom: 11px;
  font-size: 15.5px; line-height: 1.55;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 15px; height: 9px; border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green); transform: rotate(-45deg);
  border-radius: 1px;
}

/* --------------------------------------------------------------- mobil */

@media (max-width: 940px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .band { padding: 76px 0; }
}

/* Nav collapser tidligere end resten: seks links + to knapper kræver ~1020 px
   med den kompakte spacing herunder, så burger-menuen slår først ind ved
   1050 px (med margin til scrollbar-bredden). Sat lavt bevidst — mange
   bærbare på 1366 px fysisk bredde viser kun ~1093 CSS-px ved 125% Windows-
   skalering, og skal stadig se den fulde menu, ikke burgermenu. */
@media (max-width: 1050px) {
  .nav__inner { gap: 10px; }
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 18px var(--pad) 24px; gap: 16px; margin: 0;
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a { white-space: normal; }
  .nav__links.is-open .nav__mobile-cta {
    display: block; font-weight: 600; color: var(--blue);
  }
  .nav__burger {
    display: flex; order: 3; margin-left: 2px; background: none; border: 0;
    padding: 8px; cursor: pointer; color: var(--ink);
  }
  /* Log ind bliver stående; den lange CTA flytter ned i menuen */
  .nav__cta { order: 2; margin-left: auto; }
  .nav__cta .btn--primary { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .band { padding: 62px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .brand__word { font-size: 18px; }
}
