/* Peoplematter A/S | stylesheet
   Farver er hentet fra logoet: blå #007BA5 og navy #002F52. */

@font-face { font-family: "Lato"; src: url("../fonts/lato-normal.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #002F52;
  --navy-deep: #00223D;
  --brand: #007BA5;
  --brand-dark: #00668A;
  --bg: #FFFFFF;
  --bg-alt: #F3F6F8;
  --text: #1D2733;
  --muted: #51606E;
  --line: #DCE3E8;
  --line-strong: #9AA8B4;
  --on-dark: #E8EEF3;
  --on-dark-muted: #A9BACA;
  --on-dark-line: #1D4A6D;
  --skeleton: #E4EAEE;
  --skeleton-hi: #F0F4F6;
  --radius: 4px;
  --wrap: 1160px;
  --gutter: 20px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-weight: 700; color: var(--navy); line-height: 1.15; letter-spacing: -0.012em; margin: 0 0 .55em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: 1.1; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }
address { font-style: normal; }
strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }
.nw { white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.kicker { font-weight: 700; color: var(--brand-dark); margin-bottom: .8em; }

/* ---------- Knapper ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.3em; border-radius: var(--radius); font-family: var(--font); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 44px; padding: .55em 1.05em; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .85em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; min-height: 44px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: block; line-height: 0; }
.brand img { width: auto; height: 36px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { display: none; align-items: center; gap: .4em; font-weight: 700; color: var(--navy); text-decoration: none; min-height: 44px; padding: 0 6px; }
.header-actions .btn-sm { display: none; }
.menu-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform .2s; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
.main-nav a[aria-current="page"] { color: var(--brand-dark); }
.nav-cta-mobile { display: grid; gap: 10px; margin-top: 16px; }

@media (max-width: 400px) { .brand img { height: 30px; } }
@media (min-width: 1000px) {
  .menu-toggle, .nav-cta-mobile { display: none; }
  .main-nav { display: block; position: static; padding: 0; border: 0; background: none; }
  .main-nav ul { display: flex; gap: 2px; }
  .main-nav li a { border: 0; padding: 0 12px; font-size: .98rem; }
  .main-nav li a:hover { color: var(--brand-dark); }
  .main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
  .header-phone, .header-actions .btn-sm { display: inline-flex; }
}

/* ---------- Sektioner ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.section-link { margin: 32px 0 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 660px; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

/* Hero med formular */
.hero { background: var(--bg-alt); padding: 40px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 36px; align-items: start; }
.hero-text .lead { color: #3A4653; }
.byline { display: flex; align-items: center; gap: 16px; margin: 28px 0 0; }
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.byline p { margin: 0; line-height: 1.45; font-size: .97rem; }
.byline span { color: var(--muted); }
.byline a { font-weight: 700; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; font-size: .97rem; color: var(--muted); }
.trust li, .ticks li, .tick-grid li, .cta-proof { display: flex; align-items: flex-start; gap: .55em; }
.trust svg, .ticks svg, .tick-grid svg, .cta-proof svg { flex: none; margin-top: .32em; color: var(--brand); }
.hero-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.hero-form h2 { font-size: 1.45rem; margin-bottom: .3em; }
.hero-form > p { color: var(--muted); font-size: .98rem; }
.hero-form .form { gap: 14px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; }
  .hero-form { padding: 36px 34px; }
}

.page-hero { padding: 56px 0 44px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero.tall { padding: 96px 0; }
@media (min-width: 768px) { .page-hero { padding: 88px 0 72px; } }
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 28px 0 0; align-items: center; }

/* Problem */
.problem { background: var(--navy); color: var(--on-dark); }
.problem h2 { color: #fff; }
.problem p { color: var(--on-dark); font-size: 1.1rem; }
.problem-grid { display: grid; gap: 40px; }
.problem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--on-dark-line); }
.problem-list li { padding: 20px 0; border-bottom: 1px solid var(--on-dark-line); }
.problem-list strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.problem-list span { color: var(--on-dark-muted); }
@media (min-width: 960px) { .problem-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }

/* Sammenligning: ansøgning vs. screening */
.compare { border-top: 2px solid var(--navy); }
.compare-row { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.compare-row p { margin: 0; }
.compare-row p:first-child { color: var(--muted); }
.compare-row p:last-child strong { color: var(--navy); font-size: 1.08rem; }
.compare-head { display: none; }
@media (min-width: 760px) {
  .compare-row { grid-template-columns: 1fr 1.7fr; gap: 40px; padding: 22px 0; }
  .compare-head { display: grid; padding: 14px 0; }
  .compare-head p { font-weight: 700; color: var(--navy) !important; font-size: .95rem; }
}
.result { margin-top: 36px; max-width: 760px; }
.result > p { font-size: 1.12rem; }

/* Kort (flade, med hårlinje) */
.cols-3 { display: grid; gap: 36px 40px; }
@media (min-width: 760px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border-top: 2px solid var(--navy); padding-top: 22px; }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.stack { display: grid; gap: 32px; }

/* Split-layout */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } .split-media { align-items: center; } }
.split > *, .hero-grid > *, .contact-grid > *, .problem-grid > * { min-width: 0; }
.about { margin-top: 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.4fr; } }

.role-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.role-list li { font-weight: 700; color: var(--navy); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); padding: 16px 0; border-bottom: 1px solid var(--line); }

.tick-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px 32px; font-weight: 700; color: var(--navy); }
@media (min-width: 640px) { .tick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tick-grid { grid-template-columns: repeat(3, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }

/* Proces */
.steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.step { display: grid; gap: 4px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step h3 { display: flex; gap: .7em; align-items: baseline; margin-bottom: .3em; }
.step p { margin: 0; color: var(--muted); max-width: 700px; }
.step-when { font-size: .95rem; font-weight: 700; color: var(--brand-dark) !important; }
.step-no { font-size: .9rem; color: var(--muted); }
@media (min-width: 760px) { .step { grid-template-columns: 150px 1fr; } .step-when { padding-top: .15em; } }

/* Fakta og udtalelser */
.facts { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--navy); }
.facts li { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--line); }
.facts strong { display: block; color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.1; margin-bottom: 6px; }
.facts span { font-size: .95rem; color: var(--muted); }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.quote p { color: var(--navy); font-weight: 700; font-size: 1.05rem; line-height: 1.5; }
.quote footer { font-size: .93rem; color: var(--muted); }
.quote.placeholder { border-style: dashed; border-color: var(--line-strong); }

/* FAQ */
.faq { border-top: 2px solid var(--navy); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; padding: 14px 0; font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 18px; color: var(--muted); max-width: 700px; }

/* CTA-band */
.cta-band { background: var(--navy); color: var(--on-dark); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); }
.cta-inner { display: grid; gap: 28px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-proof { flex-basis: 100%; font-size: .95rem; margin: 6px 0 0; color: var(--on-dark-muted) !important; }
.cta-proof svg { color: #7CC4E0; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* Brødtekst-sider */
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul:not(.ticks) { padding-left: 1.2em; }

/* Billeder med skeleton loader */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--skeleton); }
.media img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity .35s ease; }
.media.is-loading img { opacity: 0; }
.media.is-loading::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, var(--skeleton-hi) 50%, transparent 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.media-missing { display: none; position: absolute; inset: 0; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: .92rem; color: var(--muted); }
.media.is-missing::before { display: none; }
.media.is-missing .media-missing { display: flex; }
.media.is-missing img { display: none; }
.media.wide { aspect-ratio: auto !important; width: 100%; height: clamp(280px, 40vw, 500px); }
.media.wide img { object-position: 35% 22%; }

@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.page-hero .media { max-width: 420px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .page-hero .media { justify-self: end; } }

/* Formularer */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 72px; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; font-size: .97rem; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 11px 14px; min-height: 48px; width: 100%; }
.field input::placeholder { color: #75828E; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(0,123,165,.35); outline-offset: 0; border-color: var(--brand); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.form .btn:not(.btn-block) { justify-self: start; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-error { color: #B3261E; font-weight: 700; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { border-top: 2px solid var(--navy); padding-top: 24px; }
.contact-info h2 { font-size: 1.45rem; }
.contact-big { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1.5rem; color: var(--navy); text-decoration: none; min-height: 44px; }
.contact-info address { margin-bottom: 1em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); padding: 56px 0 24px; font-size: .97rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand { margin-bottom: 1em; }
.footer-brand img { height: 34px; width: auto; }
.footer-h { font-size: .95rem; color: #fff; margin-bottom: .9em; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-in { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; }
.footer-bottom { border-top: 1px solid var(--on-dark-line); margin-top: 40px; padding-top: 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Mobil kontaktbar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.mobile-bar .btn { min-height: 48px; padding: .6em .8em; font-size: .97rem; }
body { padding-bottom: 76px; }
@media (min-width: 1000px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

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