/* Klart Studio — shared stylesheet */

:root {
  --bg: #FAFAF7;
  --bg-alt: #F2F1EC;
  --ink: #0F0F0F;
  --muted: #6B6B66;
  --line: #E5E3DC;
  --accent: #FF8C5C;
  --accent-ink: #0F0F0F;        /* mørk tekst PÅ orange flader — WCAG AA (8.36:1) */
  --accent-text: #B5461C;       /* orange-tone til tekst/links på lys bund (5.21:1) */
  --radius: 4px;
  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-text); }

/* Synlige keyboard-focus-states (WCAG) */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.btn:focus-visible { outline-color: var(--accent); outline-offset: 3px; }
/* Lys fokus-outline på mørke sektioner (ink-på-ink ville være usynlig) */
.cta :focus-visible { outline-color: var(--bg); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink); }
.muted { color: var(--muted); }

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

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.lang-toggle:hover { border-color: var(--ink); color: var(--ink); }
.lang-toggle .active-lang { color: var(--ink); font-weight: 600; }

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  padding: clamp(60px, 12vw, 140px) 0 clamp(60px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero h1 { max-width: 14ch; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 56ch;
  color: var(--muted);
  margin-top: 24px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: transform 160ms cubic-bezier(0.23,1,0.32,1), background 0.15s, color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Sections */
section { padding: clamp(60px, 9vw, 110px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-head p { max-width: 48ch; color: var(--muted); margin: 0; }

/* Grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 200ms cubic-bezier(0.23,1,0.32,1), background 200ms cubic-bezier(0.23,1,0.32,1);
}
.card:hover { transform: translateY(-4px); background: #EBEAE3; }
.card .num {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
  letter-spacing: 0.1em;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.work {
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.work-cover {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}
.work:hover .work-cover { transform: scale(1.01); }
.work-cover svg { width: 70%; height: 70%; }
.work-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 0.95rem;
}
.work-meta .tag { color: var(--muted); }

/* Stats / strip */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip > div {
  padding: 40px 24px;
  border-right: 1px solid var(--line);
}
.strip > div:last-child { border-right: 0; }
.strip .big {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.strip .label-sm {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 320px;
}
.photo-strip > div {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
@media (max-width: 720px) {
  .photo-strip { grid-template-columns: 1fr 1fr; height: 360px; }
  .photo-strip > div:nth-child(3) { display: none; }
}

.feature-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  background: var(--bg-alt);
}

/* CTA banner */
.cta {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(60px, 8vw, 100px) 0;
}
.cta h2 { color: var(--bg); max-width: 16ch; }
.cta p { color: rgba(250, 250, 247, 0.7); max-width: 48ch; }
.cta .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cta .btn:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

/* Forms */
.form { display: grid; gap: 20px; max-width: 560px; }
.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }

/* Pricing list */
.price-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.price-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.price-row h3 { margin: 0; }
.price-row p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.price-row .price {
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
}

/* About / two-col */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col h2 { margin-bottom: 24px; }
.two-col p { color: var(--muted); }

/* Process */
.process { display: grid; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step .step-num {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-text);
}
.process-step h3 { margin: 0 0 8px; }
.process-step p { color: var(--muted); margin: 0; }

/* Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink); font-size: 0.95rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* Sticky mobile CTA bar */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  z-index: 40;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}
.mobile-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 48px;
}
.mobile-cta a.primary {
  background: var(--ink);
  color: var(--bg);
}
.mobile-cta a.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.mobile-cta a.draft {
  background: var(--accent);
  color: var(--accent-ink);
}
/* Fix #11: kort sommer-bar paa mobil */
.offer-mobile { display: none; }
@media (max-width: 600px) {
  .offer-desktop { display: none; }
  .offer-mobile { display: inline; }
}
.lang-toggle {
  padding: 10px 16px;
  min-height: 44px;
}

/* Form field mobile fix - prevent iOS zoom */
.field input, .field textarea, .field select {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(2) { border-right: 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .price-row { grid-template-columns: 1fr; gap: 8px; }
  .process-step { grid-template-columns: 60px 1fr; gap: 16px; }

  .hero h1 { line-height: 1.12; }
  .mobile-cta { display: block; }
  main { padding-bottom: 88px; }

  .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px var(--pad);
    gap: 16px;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 160ms cubic-bezier(0.23,1,0.32,1), transform 160ms cubic-bezier(0.23,1,0.32,1), visibility 160ms;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a { display: block; padding: 12px 0; }   /* større tap-targets på mobil */
  .mobile-toggle { display: block; }
}

@media (max-width: 540px) {
  .strip { grid-template-columns: 1fr; }
  .strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip > div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 760px) {
  .guarantee-grid { grid-template-columns: 1fr !important; gap: 32px !important; padding: 36px 28px !important; }
  .founder-card { grid-template-columns: 1fr !important; gap: 28px !important; padding: 32px 24px !important; justify-items: center !important; text-align: center; }
  .founder-photo { width: 160px !important; height: 160px !important; }
}

/* Language visibility */
[data-lang] { display: none; }
html[lang="da"] [data-lang="da"] { display: inline; }
html[lang="en"] [data-lang="en"] { display: inline; }
[data-lang].block { display: none; }
html[lang="da"] [data-lang="da"].block { display: block; }
html[lang="en"] [data-lang="en"].block { display: block; }

/* Skip-to-content (a11y) */
.skip-link{position:absolute;left:-9999px;top:0;z-index:2000;background:var(--ink);color:#fff;padding:10px 16px;border-radius:0 0 6px 0;font-weight:600;text-decoration:none;}
.skip-link:focus{left:0;}
