/* ============================================================
   REGNSKABSBUREAUET ApS — fælles stylesheet ("Den mørke")
   Palette (fra brandguide):
   Navy      #123B73  (primær)
   Mørk navy #0B2447
   Dyb navy  #081A38  (baggrund)
   Lys blå   #4E8FD6  (accent)
   ============================================================ */

:root {
  --navy: #123B73;
  --navy-dark: #0B2447;
  --navy-deep: #081A38;
  --blue: #4E8FD6;
  --white: #FFFFFF;
  --line: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.82);
  --textdim: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(255, 255, 255, 0.02);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-deep);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Typografi ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--white); line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px;
  background: var(--blue); display: inline-block;
}

.lead { font-size: 1.15rem; color: var(--textdim); max-width: 62ch; }

a { color: var(--blue); }

/* ---------- Knapper ---------- */
.btn {
  display: inline-block; padding: 14px 30px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--blue); color: var(--white); background: transparent;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--blue); color: var(--navy-deep); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.btn--solid { background: var(--blue); color: var(--navy-deep); }
.btn--solid:hover { background: var(--white); border-color: var(--white); }

.btn--light { border-color: var(--blue); color: var(--white); }
.btn--light:hover { background: var(--blue); color: var(--navy-deep); }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 26, 56, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 52px; width: auto; display: block; }
.site-footer .logo-img { height: 48px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--blue); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--white);
  width: 44px; height: 44px; cursor: pointer; color: var(--white);
  font-size: 1.3rem; line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    background: var(--navy-deep); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .logo-img { height: 42px; }
}

/* ---------- Hero (forside) ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  background:
    linear-gradient(rgba(11, 36, 71, 0.88), rgba(8, 26, 56, 0.94)),
    url("billeder/hero-baggrund.jpg") center 60% / cover no-repeat;
}
.hero .wrap {
  position: relative; z-index: 1;
  padding-top: 130px; padding-bottom: 130px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p {
  font-size: 1.2rem; color: var(--text);
  max-width: 54ch; margin: 0 auto;
}
.hero .est {
  margin-top: 48px; font-size: 0.8rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--textdim);
}

@media (max-width: 860px) {
  .hero .wrap { padding-top: 80px; padding-bottom: 90px; }
}

/* ---------- Sektioner ---------- */
.section { padding: 100px 0; }
.section--paper { background: var(--navy-dark); }
.section--navy { background: var(--navy-deep); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { color: var(--textdim); font-size: 1.1rem; margin-top: 14px; }

/* ---------- Kort med ramme-motiv ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.section-cta { text-align: center; margin-top: 52px; }

.card {
  background: var(--card-bg); border: 1px solid var(--line);
  padding: 38px 30px; position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--blue); transform: translateY(-3px); }
.card h3 { margin: 20px 0 10px; }
.card p { color: var(--textdim); font-size: 0.98rem; }
.card-icon {
  width: 46px; height: 46px; background: var(--blue);
  display: grid; place-items: center; color: var(--navy-deep);
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- To-kolonne (om os-teaser mv.) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 44px; } }
.split h2 { margin-bottom: 18px; }
.split p { color: var(--textdim); }
.split p + p { margin-top: 14px; }
.split .btn { margin-top: 30px; }

.framed-figure {
  position: relative; border: 1.5px solid var(--blue); padding: 20px;
}
.framed-figure img {
  width: 100%; height: 100%; min-height: 320px;
  object-fit: cover; display: block;
}
.framed-figure .inner {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  min-height: 320px; display: grid; place-items: center;
  color: var(--textdim); font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; padding: 20px;
}

/* ---------- Nøgletal ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }
.stat { border: 1px solid var(--line); padding: 46px 20px; }
.stat strong {
  display: block; font-family: var(--serif); font-weight: 600;
  font-size: 3.4rem; color: var(--blue); line-height: 1;
}
.stat span {
  display: block; margin-top: 12px; font-size: 0.8rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--textdim);
}

/* ---------- Ydelses-bokse (undersiden) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 820px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--card-bg); border: 1px solid var(--line);
  padding: 40px 34px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.service-card h3 { font-size: 1.5rem; margin: 20px 0 10px; }
.service-card > p { color: var(--textdim); }
.service-card ul { list-style: none; margin-top: 20px; }
.service-card li {
  position: relative; padding: 8px 0 8px 26px; color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; background: var(--blue);
}
.service-card--wide { grid-column: 1 / -1; }
@media (min-width: 821px) {
  .service-card--wide { display: grid; grid-template-columns: auto 1fr; gap: 0 34px; align-items: start; }
  .service-card--wide .card-icon { grid-row: 1 / 4; margin-top: 6px; }
  .service-card--wide h3 { margin-top: 0; }
}

/* ---------- Medarbejdere ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { background: var(--card-bg); border: 1px solid var(--line); transition: border-color 0.2s; }
.team-card:hover { border-color: var(--blue); }
.team-photo {
  aspect-ratio: 4 / 5; background: rgba(255,255,255,0.04);
  display: grid; place-items: center; color: var(--textdim);
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
img.team-photo { width: 100%; object-fit: cover; display: block; }
.team-info { padding: 22px 24px 26px; }
.team-info h3 { font-size: 1.25rem; }
.team-info .role { color: var(--blue); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 4px 0 10px; }
.team-info p { color: var(--textdim); font-size: 0.95rem; }
.team-info a { font-size: 0.95rem; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin-top: 30px; }
.contact-list li {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 1rem;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); padding-top: 3px;
}

.contact-form { background: var(--navy-dark); border: 1px solid var(--line); padding: 40px; }
@media (max-width: 640px) { .contact-form { padding: 26px 20px; } }
.contact-form h3 { margin-bottom: 8px; }
.contact-form .form-note { color: var(--textdim); font-size: 0.95rem; margin-bottom: 26px; }

.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font-family: var(--sans); font-size: 1rem;
  border: 1px solid var(--line); background: rgba(255,255,255,0.05); color: var(--white);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.map-frame {
  margin-top: 72px; border: 1.5px solid var(--blue); padding: 18px;
}
.map-frame iframe { filter: grayscale(0.2); }
.map-link { margin-top: 18px; text-align: center; }
.map-link a { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; }
.map-link a:hover { text-decoration: underline; }

/* ---------- CTA-bånd ---------- */
.cta-band {
  text-align: center;
  background: radial-gradient(ellipse 70% 90% at 50% 100%, var(--navy) 0%, var(--navy-deep) 75%);
}
.cta-band .wrap { padding: 100px 24px; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.cta-band p { color: var(--textdim); max-width: 52ch; margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--textdim); font-size: 0.95rem; }
.site-footer .wrap {
  padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
}
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 32px; } }

.site-footer h4 {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white); margin-bottom: 16px;
}
.site-footer a { color: var(--textdim); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 8px 0; }
.footer-brand p { margin-top: 20px; max-width: 40ch; }

.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 24px; font-size: 0.85rem; color: rgba(255,255,255,0.45);
}

/* ---------- Undersidernes topfelt ---------- */
.page-hero {
  background:
    linear-gradient(rgba(11, 36, 71, 0.9), rgba(8, 26, 56, 0.95)),
    url("billeder/underside-baggrund.jpg") center / cover no-repeat;
  text-align: center;
}
.page-hero--kontakt {
  background:
    linear-gradient(rgba(11, 36, 71, 0.9), rgba(8, 26, 56, 0.95)),
    url("billeder/kontakt-baggrund.jpg") center / cover no-repeat;
}
.page-hero--omos {
  background:
    linear-gradient(rgba(11, 36, 71, 0.9), rgba(8, 26, 56, 0.95)),
    url("billeder/omos-baggrund.jpg") center 35% / cover no-repeat;
}
.page-hero .wrap { padding-top: 110px; padding-bottom: 110px; max-width: 900px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.page-hero p, .page-hero .lead {
  margin: 22px auto 0; color: var(--text); font-size: 1.25rem;
  max-width: 58ch;
}
@media (max-width: 860px) {
  .page-hero .wrap { padding-top: 72px; padding-bottom: 72px; }
}

/* ---------- Diverse ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue); color: var(--navy-deep);
  padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Formular-fejlbesked ---------- */
.form-fejl {
  background: rgba(200, 60, 60, 0.15); border: 1px solid rgba(220, 90, 90, 0.5);
  color: #F0B9B9; padding: 12px 16px; font-size: 0.95rem; margin-bottom: 22px;
}
