/* Karo Consult – design A i logoets farver */

@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --brand: #034968;
  --brand-dark: #02344b;
  --ink: #142b37;
  --muted: #46525a;
  --muted-2: #5a666d;
  --bg: #f6f8f9;
  --surface: #ffffff;
  --tint: #e7eff3;
  --tint-2: #dce8ee;
  --line: #d3dee4;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --wrap: 1200px;
  --space: 64px; /* luft over og under hver sektion – ret her */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: var(--space); padding-bottom: var(--space); }
.section--white { background: var(--surface); }
.section--tint { background: var(--tint); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.lead { font-size: 19px; color: var(--muted); max-width: 600px; }
.h2 { font-size: clamp(32px, 4vw, 42px); margin-bottom: 12px; }
.section-intro { color: var(--muted); max-width: 620px; margin-bottom: 36px; }

/* Knapper */
.btn { display: inline-block; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.3; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(246,248,249,.96); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--brand); }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav .btn--primary, .nav .btn--primary:hover { color: #fff; }
.nav .btn--primary[aria-current="page"] { color: #fff; background: var(--brand-dark); text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 12px; width: 48px; height: 48px; cursor: pointer; color: var(--ink); align-items: center; justify-content: center; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); flex-direction: column; align-items: stretch; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20,43,55,.08); }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--tint); }
  .nav .btn { margin-top: 16px; text-align: center; }
}

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: var(--space); }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 5.6vw, 66px); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.hero-media { flex: 1 1 380px; min-width: 0; height: 480px; border-radius: 200px 200px 24px 24px; overflow: hidden; background: var(--tint-2); display: flex; align-items: center; justify-content: center; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.hero-media .placeholder-logo { width: 46%; height: auto; opacity: .9; }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--bg); border-radius: var(--radius); padding: 36px; }
.section--tint .card, .card--white { background: var(--surface); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 20px 0 10px; }
.card p { color: var(--muted); margin-bottom: 20px; }
.card a { font-weight: 600; }
.card ul { margin: 0 0 20px; padding: 0; list-style: none; }
.card li { padding: 8px 0 8px 26px; position: relative; color: var(--ink); border-bottom: 1px solid var(--line); }
.card li:last-child { border-bottom: 0; }
.card li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.icon { width: 32px; height: 32px; color: var(--brand); }

/* Værdier */
.values { display: flex; flex-wrap: wrap; gap: 48px; }
.values > h2 { flex: 1 1 300px; min-width: 0; font-size: clamp(32px, 4vw, 42px); line-height: 1.15; }
.values-grid { flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.values-grid h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.values-grid p { color: var(--muted); }

/* Udtalelser – karrusel */
.testimonials { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.testimonials-side { flex: 1 1 260px; min-width: 0; }
.testimonials-side .h2 { margin-bottom: 32px; }
.carousel-controls { display: flex; align-items: center; gap: 16px; }
.carousel-count { font-size: 15px; font-weight: 600; color: var(--muted-2); min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.carousel-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel-btn:hover { background: var(--ink); color: #fff; }
.carousel-btn--solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.carousel-btn--solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.slides { flex: 3 1 560px; min-width: 0; display: grid; }
.slide { grid-area: 1 / 1; margin: 0; background: var(--surface); border-radius: var(--radius); padding: 48px; display: flex; gap: 40px; align-items: flex-start; }
.slide-person { flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: var(--tint-2); }
.avatar--initials { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 44px; color: var(--brand); }
.person-text { display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; }
.person-text strong { color: var(--ink); }
.person-text span { color: var(--muted-2); margin-top: 2px; }
.slide-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.js .slide { visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility 0s linear .35s; }
.js .slide.is-active { visibility: visible; opacity: 1; transition: opacity .35s ease; }
html:not(.js) .slides { gap: 24px; }
html:not(.js) .slide { grid-area: auto; }
.quote-mark { display: block; font-family: var(--serif); font-size: 96px; line-height: .7; height: 44px; color: var(--brand); margin-bottom: 12px; }
.slide blockquote { margin: 0 0 20px; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.slide blockquote p + p { margin-top: .9em; }
.js .slide blockquote { max-height: 220px; overflow: hidden; position: relative; }
.js .slide.is-clamped blockquote::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.js .slide.is-expanded blockquote { max-height: none; }
.js .slide.is-expanded blockquote::after { display: none; }
.more-btn { display: none; align-self: flex-start; margin: -12px 0 0; padding: 8px 0; background: none; border: 0; font: inherit; font-weight: 600; font-size: 16px; color: var(--brand); cursor: pointer; }
.more-btn::after { content: " ↓"; }
.more-btn[aria-expanded="true"]::after { content: " ↑"; }
.more-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.js .slide.is-clamped .more-btn { display: inline-block; }
@media (max-width: 720px) {
  .slide { flex-direction: column; gap: 24px; }
  .slide-person { flex: none; flex-direction: row; text-align: left; gap: 16px; }
  .avatar { width: 64px; height: 64px; }
  .avatar--initials { font-size: 24px; }
}
@media (max-width: 600px) { .slide { padding: 28px; } .slide blockquote { font-size: 19px; } .js .slide blockquote { max-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .js .slide, .js .slide.is-active { transition: none; } }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(36px, 4.5vw, 48px); margin-bottom: 16px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; }

/* Undersider */
.page-head { padding-top: 48px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(42px, 5vw, 60px); margin-bottom: 16px; }
.prose { max-width: 720px; }
.prose p { margin-bottom: 1.1em; color: var(--ink); }
.prose h2 { font-size: 32px; margin: 1.6em 0 .5em; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split > * { flex: 1 1 380px; min-width: 0; }
.portrait { border-radius: 200px 200px 24px 24px; overflow: hidden; background: var(--tint-2); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.empty-state { background: var(--surface); border-radius: var(--radius); padding: 48px; text-align: center; }
.empty-state h2 { font-size: 30px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 24px; }
.signature { font-family: var(--serif); font-size: 28px; color: var(--brand); margin-top: 8px; }

/* Kontakt */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { flex: 0 0 28px; margin-top: 2px; }
.contact-list strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.contact-list a, .contact-list address { font-style: normal; font-size: 19px; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }
.form { background: var(--surface); border-radius: var(--radius); padding: 40px; display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; min-height: 48px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(3,73,104,.18); }
.field .hint { font-size: 14px; color: var(--muted-2); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 16px 20px; font-weight: 500; }
.alert--ok { background: #e3f1ea; color: #14532d; }
.alert--err { background: #fbe9e7; color: #7f1d1d; }
.alert ul { margin: 8px 0 0; padding-left: 20px; font-weight: 400; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 15px; color: var(--muted-2); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; margin-bottom: 32px; }
.site-footer h2 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer .bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; font-size: 14px; }
.footer-brand img { width: 64px; margin-bottom: 12px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  :root { --space: 48px; }
  .hero .wrap { padding-top: 32px; gap: 40px; }
  .hero-media { height: 340px; }
  .brand span { font-size: 19px; }
  .brand img { width: 44px; height: 44px; }
  .card, .form, .quote { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.portrait-wrap { margin: 0; }
.photo-credit { margin-top: 10px; font-size: 13px; color: var(--muted-2); text-align: right; }
.photo-credit a { color: inherit; }
