/* =============================================
   Nete Bøgehøj — Design System
   Aesthetic: Danish Legal Editorial
   Palette:   Parchment · Navy · Brass
   Type:      Cormorant Garamond · DM Sans
   ============================================= */

/* --- Variables -------------------------------- */
:root {
  --cream:      #F3EFE6;
  --cream-dk:   #EAE5DA;
  --navy:       #0E1C2F;
  --navy-lt:    #162438;
  --gold:       #A8874A;
  --gold-lt:    #C4A872;
  --text:       #1A1A1A;
  --muted:      #7C756C;
  --border:     #D8D2C4;
  --white:      #FFFFFF;
  --hh:         72px;
  --w:          1100px;
  --fd:         'Cormorant Garamond', Georgia, serif;
  --fb:         'DM Sans', system-ui, sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Grain overlay ---------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
}

/* --- Container -------------------------------- */
.container {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Scroll reveal ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.32s; }
.reveal-d4 { transition-delay: 0.44s; }

/* --- Type scale ------------------------------- */
h1, h2 { font-family: var(--fd); line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.5rem); font-weight: 300; }
h1 em { font-style: italic; }
h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 400; }
h2 em { font-style: italic; }
h3 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.4rem; }

.eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow-lt { color: var(--gold-lt); }

/* --- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--fb);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  white-space: nowrap;
}
.btn-dark  { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-lt); border-color: var(--navy-lt); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--cream); }
.btn-full  { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--hh);
  background: rgba(243, 239, 230, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 28px rgba(14, 28, 47, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hh);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.75; }

.logo-mono {
  font-family: var(--fd);
  font-style: normal;
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
}

.logo-div {
  width: 1px;
  height: 34px;
  background: var(--border);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--fd);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}

.logo-tag {
  font-family: var(--fb);
  font-size: 0.57rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

.logo-lt .logo-mono { color: var(--gold-lt); }
.logo-lt .logo-div  { background: rgba(255,255,255,0.2); }
.logo-lt .logo-name { color: var(--cream); }
.logo-lt .logo-tag  { color: rgba(255,255,255,0.4); }

.main-nav ul { display: flex; align-items: center; gap: 2.5rem; }
.main-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--navy);
}
.nav-cta:hover { background: var(--navy); color: var(--cream) !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 15px;
  background: none; border: none;
  cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; height: 1.5px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--hh);
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
/* Subtle grid */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 5rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}
.hero-content h1 { margin-bottom: 2rem; }

.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.ornament-line {
  flex: 1;
  max-width: 56px;
  height: 1px;
  background: var(--gold);
}
.ornament-gem {
  font-size: 0.55rem;
  color: var(--gold);
  line-height: 1;
}
.hero-sub {
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 440px;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats card */
.stats-card {
  background: var(--navy);
  padding: 3rem 2.25rem;
  position: relative;
}
.stats-card::before {
  content: '';
  position: absolute;
  inset: 11px;
  border: 1px solid var(--gold);
  opacity: 0.28;
  pointer-events: none;
}
.stat { text-align: center; padding: 1.25rem 0; }
.stat-n {
  display: block;
  font-family: var(--fd);
  font-size: 3.25rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-n sup { font-size: 1.4rem; vertical-align: super; }
.stat-l {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.45);
  margin-top: 0.4rem;
}
.stat-rule { height: 1px; background: rgba(255,255,255,0.07); }

/* =============================================
   STRIP (3 core services)
   ============================================= */
.strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.strip-inner {
  display: flex;
  align-items: stretch;
}
.strip-item {
  flex: 1;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 3rem 2rem;
  transition: background 0.2s;
}
.strip-item:hover { background: #FAFAF7; }
.strip-div { width: 1px; background: var(--border); flex-shrink: 0; }
.strip-num {
  font-family: var(--fd);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.strip-item h3 { color: var(--navy); margin-bottom: 0.35rem; }
.strip-item p { font-size: 0.84rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* =============================================
   ABOUT
   ============================================= */
.about { padding: 8rem 0; background: var(--cream); }
.about-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 6rem;
  align-items: start;
}
.portrait-frame {
  position: relative;
  overflow: hidden;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  top: 14px; right: -14px; bottom: -14px; left: 14px;
  border: 1px solid var(--gold);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.portrait-frame svg { width: 100%; height: auto; }
.portrait-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(168, 135, 74, 0.18) 0%,
    rgba(14, 28, 47, 0.42) 100%
  );
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text > p { font-weight: 300; color: var(--muted); }

.cv {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.cv-row {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}
.cv-row:last-child { border-bottom: none; }
.cv-yr {
  font-family: var(--fd);
  font-size: 1rem;
  color: var(--gold);
  min-width: 58px;
  font-weight: 400;
  flex-shrink: 0;
}
.cv-pl { color: var(--muted); }

/* =============================================
   KOMPETENCER (dark section)
   ============================================= */
.comp { background: var(--navy); padding: 8rem 0; }

.comp-hd { max-width: 580px; margin-bottom: 4rem; }
.comp-hd h2 { color: var(--cream); margin-bottom: 0; }
.comp-sub {
  font-size: 0.92rem;
  font-weight: 300;
  color: rgba(243, 239, 230, 0.45);
  margin-top: 1.25rem;
  line-height: 1.8;
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}
.comp-card {
  background: var(--navy);
  padding: 2.5rem 2rem;
  border-top: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.comp-card:hover { border-color: var(--gold); background: var(--navy-lt); }
.comp-n {
  font-family: var(--fd);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1.25rem;
}
.comp-card h3 { color: var(--cream); font-family: var(--fb); font-size: 0.88rem; font-weight: 500; }
.comp-card p { font-size: 0.83rem; font-weight: 300; color: rgba(243,239,230,0.45); line-height: 1.7; margin: 0; }

/* =============================================
   REFERENCER
   ============================================= */
.refs { padding: 8rem 0; background: var(--white); }
.refs-hd { margin-bottom: 4rem; }
.refs-hd h2 { color: var(--navy); }

.refs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.ref-card {
  background: var(--cream);
  padding: 3.5rem 3rem;
  position: relative;
}
.ref-q {
  font-family: var(--fd);
  font-size: 7rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 0.7;
  margin-bottom: 1rem;
  font-weight: 400;
}
.ref-card > p {
  font-family: var(--fd);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.ref-card footer {
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.ref-card strong { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.ref-card span { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* =============================================
   KONTAKT
   ============================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 600px;
}
.contact-dark {
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 7rem 3.5rem;
}
.contact-dark-body h2 { color: var(--cream); margin-bottom: 1.5rem; }
.contact-dark-body > p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(243, 239, 230, 0.5);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.cinfo { display: flex; flex-direction: column; gap: 1.25rem; }
.cinfo li { display: flex; align-items: center; gap: 1rem; font-size: 0.88rem; }
.cinfo svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.cinfo a { color: rgba(243, 239, 230, 0.65); transition: color 0.2s; font-weight: 400; }
.cinfo a:hover { color: var(--gold-lt); }

.contact-light {
  background: var(--cream);
  display: flex;
  align-items: center;
  padding: 7rem 4rem;
}
.cform { width: 100%; max-width: 440px; }
.form-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}
.fg { margin-bottom: 1.75rem; }
.fg label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.fg input, .fg textarea {
  width: 100%;
  padding: 0.7rem 0;
  border: none;
  border-bottom: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--fb);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}
.fg input:focus, .fg textarea:focus { border-color: var(--navy); }
.fg input.error, .fg textarea.error { border-color: #C0392B; }
.ferr { display: block; font-size: 0.75rem; color: #C0392B; margin-top: 0.4rem; min-height: 1em; }
.fsuccess { font-size: 0.88rem; color: var(--gold); font-weight: 500; text-align: center; margin-top: 1.25rem; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--navy); padding-top: 4rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { font-size: 0.75rem; font-weight: 300; color: rgba(243,239,230,0.3); margin-top: 0.5rem; letter-spacing: 0.06em; }
.footer-nav ul { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-nav a { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(243,239,230,0.35); transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold-lt); }
.footer-btm { padding: 1.5rem 0; }
.footer-btm p { font-size: 0.72rem; color: rgba(243,239,230,0.18); margin: 0; letter-spacing: 0.04em; }

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 42px; height: 42px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top:hover { background: var(--navy-lt); }
.scroll-top svg { width: 16px; height: 16px; }

/* =============================================
   RESPONSIVE — TABLET (≤ 960px)
   ============================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-aside { max-width: 100%; }
  .stats-card { display: flex; flex-direction: row; }
  .stat { flex: 1; }
  .stat-rule { width: 1px; height: auto; }

  .about-inner { grid-template-columns: 1fr; gap: 4rem; }
  .portrait { max-width: 260px; }

  .comp-grid { grid-template-columns: 1fr 1fr; }

  .refs-grid { grid-template-columns: 1fr; gap: 2px; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-dark { padding: 5rem 2.5rem; }
  .contact-light { padding: 5rem 2.5rem; justify-content: flex-start; }

  .strip-inner { flex-direction: column; }
  .strip-div { width: 100%; height: 1px; }
  .strip-item { padding: 2rem 1.5rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .footer-nav ul { justify-content: flex-start; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--hh); left: 0; right: 0;
    background: rgba(243, 239, 230, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 2rem 28px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .nav-cta { padding: 0.5rem 0; border: none; }

  h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.4rem); }

  .hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .stats-card { flex-direction: column; }
  .stat-rule { width: 100%; height: 1px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .about { padding: 5rem 0; }
  .comp { padding: 5rem 0; }
  .refs { padding: 5rem 0; }
  .comp-grid { grid-template-columns: 1fr; }

  .contact-dark { padding: 4rem 1.75rem; }
  .contact-light { padding: 4rem 1.75rem; }
  .cform { max-width: 100%; }

  .scroll-top { bottom: 1.25rem; right: 1.25rem; }
}
