/* =========================================================================
   VT Group — stylesheet
   Palette: bordeaux + flødehvid + guld (bevidst IKKE "AI-blå/lilla")
   ========================================================================= */

:root {
  --bordeaux:        #6E1423;
  --bordeaux-dark:   #4E0D18;
  --bordeaux-deep:   #3a0a12;
  --bordeaux-light:  #8E2433;
  --gold:            #C9A24B;
  --gold-soft:       #Dcc078;
  --copper:          #B87333;
  --cream:           #F6F1E9;
  --cream-2:         #EFE7D8;
  --cream-3:         #E7DCC7;
  --ink:             #2A1A1D;
  --ink-soft:        #5b4a4d;
  --line:            #e2d6c4;
  --white:           #fffdfa;

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow:    0 18px 40px -24px rgba(58, 10, 18, 0.45);
  --shadow-lg: 0 30px 60px -30px rgba(58, 10, 18, 0.55);
  --container: 1140px;
  --ease:      cubic-bezier(.22, .61, .36, 1);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bordeaux); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--bordeaux-light); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--bordeaux-dark); letter-spacing: -.01em; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--bordeaux); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----- Top progress bar (AJAX) ----- */
.page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  z-index: 300; opacity: 0; transition: width .3s var(--ease), opacity .3s var(--ease);
}
.page-progress.is-active { opacity: 1; }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--bordeaux);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; line-height: 1;
  background: var(--btn-bg); color: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  box-shadow: 0 10px 24px -14px rgba(58,10,18,.6);
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 30px -14px rgba(58,10,18,.7); }
.btn:active { transform: translateY(0); }
.btn--gold { --btn-bg: linear-gradient(135deg, var(--gold), var(--copper)); color: #2a1a05; }
.btn--gold:hover { color: #2a1a05; }
.btn--ghost { background: transparent; border-color: rgba(110,20,35,.28); color: var(--bordeaux); box-shadow: none; }
.btn--ghost:hover { background: rgba(110,20,35,.06); color: var(--bordeaux); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,241,233,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(58,10,18,.5); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 42px; height: 42px; filter: drop-shadow(0 6px 12px rgba(58,10,18,.25)); }
.brand__text { font-family: var(--font-head); font-size: 1.42rem; font-weight: 600; color: var(--bordeaux-dark); letter-spacing: -.01em; }
.brand__text strong { color: var(--bordeaux); font-weight: 700; }
.brand--light .brand__text { color: var(--cream); }
.brand--light .brand__text strong { color: var(--gold-soft); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav__link {
  position: relative; padding: 9px 14px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 500; font-size: .98rem;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.site-nav__link:hover { color: var(--bordeaux); background: rgba(110,20,35,.06); }
.site-nav__link.is-active { color: var(--bordeaux); }
.site-nav__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--copper)); border-radius: 2px;
}
.site-nav__cta { margin-left: 10px; color: #2a1a05; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--bordeaux); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----- Hero ----- */
.hero { position: relative; overflow: hidden; }
.hero--home {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,162,75,.18), transparent 60%),
    linear-gradient(160deg, var(--bordeaux) 0%, var(--bordeaux-dark) 55%, var(--bordeaux-deep) 100%);
  color: var(--cream);
  padding: clamp(72px, 12vw, 150px) 0 clamp(60px, 9vw, 120px);
}
.hero--home .hero__title { color: var(--cream); }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 12% 110%, rgba(201,162,75,.16), transparent 70%),
    radial-gradient(360px 360px at 95% 30%, rgba(142,36,51,.5), transparent 70%);
}
.hero__inner { position: relative; max-width: 820px; }
.hero__eyebrow {
  display: inline-block; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  font-size: .76rem; color: var(--gold-soft); margin-bottom: 22px;
  padding: 7px 14px; border: 1px solid rgba(201,162,75,.4); border-radius: 999px;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 600; letter-spacing: -.02em; }
.hero__subtitle { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.32rem); max-width: 620px; color: rgba(246,241,233,.85); }
.hero--home .hero__subtitle { color: rgba(246,241,233,.82); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero--page {
  background:
    radial-gradient(900px 400px at 85% -40%, rgba(201,162,75,.14), transparent 60%),
    linear-gradient(165deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  color: var(--cream); padding: clamp(64px, 9vw, 110px) 0 clamp(50px, 7vw, 84px);
}
.hero--page .hero__title { color: var(--cream); }
.hero--page .hero__eyebrow { color: var(--gold-soft); }

/* ----- Sections ----- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section__eyebrow { font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; color: var(--copper); }
.section__title { margin-top: 10px; font-size: clamp(1.8rem, 4vw, 2.7rem); }

/* ----- Grid + cards ----- */
.grid { display: grid; gap: 22px; }
.grid--cards { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 14px; color: var(--bordeaux); margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(201,162,75,.18), rgba(110,20,35,.08));
  border: 1px solid rgba(201,162,75,.35);
}
.card__title { font-size: 1.24rem; margin-bottom: 8px; }
.card__text { color: var(--ink-soft); font-size: .98rem; }

/* ----- Prose ----- */
.prose { max-width: 760px; margin: 0 auto; }
.prose--cols { max-width: 920px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose p.lead { font-size: 1.2rem; color: var(--ink); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.prose ul.ticks { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 12px; }
.prose ul.ticks li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat;
}

.prose--cols .prose-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.prose--cols .prose-block h2 { margin-top: 0; font-size: 1.4rem; color: var(--bordeaux); }
.prose--cols .prose-block p { margin-bottom: 0; }

/* ----- Steps (forside-brødtekst) ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.steps .step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.steps .step__no { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold); display: block; margin-bottom: 6px; }
.steps .step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps .step p { color: var(--ink-soft); margin: 0; }

/* ----- CTA ----- */
.cta__inner {
  text-align: center; max-width: 720px; margin: 0 auto;
  background: linear-gradient(160deg, var(--bordeaux), var(--bordeaux-dark));
  color: var(--cream); padding: clamp(40px, 6vw, 64px); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta__inner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 90% 0%, rgba(201,162,75,.22), transparent 65%);
  pointer-events: none;
}
.cta__title { color: var(--cream); font-size: clamp(1.6rem, 4vw, 2.4rem); position: relative; }
.cta__text { color: rgba(246,241,233,.82); margin: 14px 0 26px; position: relative; }
.cta .btn { position: relative; }

/* ----- Kontakt ----- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact__list li { display: grid; gap: 2px; }
.contact__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--copper); font-weight: 600; }
.contact__list a, .contact__list span { font-size: 1.08rem; }

.contact__form-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lg);
}

/* ----- Forms ----- */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--bordeaux); background: var(--white);
  box-shadow: 0 0 0 4px rgba(110,20,35,.1);
}
.field.has-error input, .field.has-error textarea { border-color: #b3261e; box-shadow: 0 0 0 4px rgba(179,38,30,.1); }
.field__err { color: #b3261e; font-size: .82rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: .95rem; font-weight: 500; margin: 0; }
.form__status.is-ok { color: #1c7c43; }
.form__status.is-err { color: #b3261e; }
.form.is-sending .btn { opacity: .65; pointer-events: none; }

/* ----- Footer ----- */
.site-footer { background: linear-gradient(180deg, var(--bordeaux-dark), var(--bordeaux-deep)); color: rgba(246,241,233,.78); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding: clamp(48px, 7vw, 80px) 24px; }
.site-footer__tag { margin-top: 16px; max-width: 320px; font-size: .96rem; }
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a, .site-footer__contact a { color: rgba(246,241,233,.8); }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: var(--gold-soft); }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer__bar { border-top: 1px solid rgba(246,241,233,.12); }
.site-footer__bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; font-size: .85rem; color: rgba(246,241,233,.6); flex-wrap: wrap; }
.site-footer__admin { color: rgba(246,241,233,.55); }
.site-footer__admin:hover { color: var(--gold-soft); }

/* ----- Reveal on scroll (kun når JS er aktivt, så no-JS/crawlere ser alt) ----- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
#app.is-loading { opacity: .35; transition: opacity .2s var(--ease); }

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

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .grid--cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .28s var(--ease), opacity .28s var(--ease);
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav__link { padding: 13px 12px; font-size: 1.05rem; }
  .site-nav__link.is-active::after { display: none; }
  .site-nav__cta { margin: 8px 0 0; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .grid--cards { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}
