/* ── Sentral Etterforskning — shared styles ────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --black:    #0D0D0D;
  --gun:      #161410;
  --gold:     #C9A84C;
  --gold-d:   #A0853A;
  --cream:    #E8E0D0;
  --muted:    rgba(232,224,208,0.55);
  --border:   rgba(201,168,76,0.22);
  --border-w: rgba(232,224,208,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black); color: var(--cream);
  font-family: 'Jost', sans-serif; font-weight: 300;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.08; }

/* ── UTILITIES ─────────────────────────────── */
.label {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; font-family: 'Jost', sans-serif;
}
.gold-rule { width: 48px; height: 1px; background: var(--gold); margin: 1.25rem auto; }
.gold-rule.left { margin-left: 0; }

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--gold); color: var(--black); border: none; border-radius: 100px;
  padding: 0.7rem 2rem; font-family: 'Jost', sans-serif;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
  cursor: pointer; text-decoration: none;
  transition: background 0.18s, transform 0.15s; white-space: nowrap;
}
.btn-gold:hover { background: var(--gold-d); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--cream); border: 1px solid var(--border-w);
  border-radius: 100px; padding: 0.7rem 2rem; font-family: 'Jost', sans-serif;
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.05em;
  cursor: pointer; text-decoration: none; transition: border-color 0.18s, color 0.18s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.55;
}

/* ── NAV ───────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: linear-gradient(to bottom, rgba(13,13,13,0.98) 0%, rgba(13,13,13,0.92) 70%, transparent 100%);
  backdrop-filter: blur(4px);
}
.nav-logo { height: 48px; width: auto; object-fit: contain; }
.nav-center { display: flex; list-style: none; gap: 2.5rem; align-items: center; }
.nav-center a, .nav-btn-text {
  color: var(--cream); text-decoration: none;
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0.04em;
  transition: color 0.18s; background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; display: flex; align-items: center; gap: 3px;
}
.nav-center a:hover, .nav-btn-text:hover { color: var(--gold); }
.nav-center a.active { color: var(--gold); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #131210; border: 1px solid var(--border);
  min-width: 210px; opacity: 0; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  padding-top: 0.6rem;
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -0.6rem; left: 0; right: 0; height: 0.6rem;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block; padding: 0.65rem 1.25rem; font-size: 0.82rem;
  border-bottom: 1px solid rgba(201,168,76,0.08); transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: rgba(201,168,76,0.07); color: var(--gold); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: all 0.25s; }

/* ── MOBILE MENU ───────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(13,13,13,0.98); flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 400;
  color: var(--cream); text-decoration: none; background: none; border: none;
  cursor: pointer; transition: color 0.18s;
}
.mobile-menu a:hover, .mobile-menu button:hover { color: var(--gold); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 2.5rem;
  font-size: 1.5rem; color: var(--muted); cursor: pointer; background: none; border: none;
}

/* ── HERO (homepage) ───────────────────────── */
.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 5rem 2rem 5.5rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 110% 80% at 50% 110%, rgba(160,133,58,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(201,168,76,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 85% 50%, rgba(201,168,76,0.04) 0%, transparent 50%),
    linear-gradient(185deg, #111009 0%, #0D0D0D 45%);
}
.hero-watermark {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 90%; width: auto; opacity: 0.055;
  object-fit: contain; object-position: bottom; pointer-events: none; z-index: 1;
}
.hero > *:not(.hero-bg):not(.grain):not(.hero-watermark) { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; margin-bottom: 1.5rem;
  background: rgba(201,168,76,0.08); border: 1px solid var(--border);
  color: var(--gold); font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; padding: 0.45rem 1.4rem; border-radius: 100px; font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem); max-width: 820px;
  line-height: 1.06; margin-bottom: 1.25rem;
}
.hero p {
  max-width: 500px; line-height: 1.75; letter-spacing: 0.03em;
  color: var(--muted); font-size: 0.95rem; margin-bottom: 2.25rem; font-weight: 300;
}

/* ── PAGE HERO (inner pages) ───────────────── */
.page-hero {
  position: relative; padding: 5rem 2rem 4rem;
  text-align: center; border-bottom: 1px solid var(--border); overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 120% at 50% 100%, rgba(160,133,58,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .label { margin-bottom: 1rem; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0.5rem 0 1rem; position: relative; z-index: 1; }
.page-hero p { max-width: 580px; margin: 0 auto 2rem; color: var(--muted); line-height: 1.75; font-size: 0.95rem; position: relative; z-index: 1; }

/* ── SOLUTIONS GRID ────────────────────────── */
.solutions-wrap { display: grid; grid-template-columns: 5fr 8fr; max-width: 1320px; margin: 0 auto; padding: 0 2rem; }
.solutions-img { position: relative; overflow: hidden; min-height: 540px; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.solutions-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: brightness(0.7) sepia(0.3); transition: transform 6s ease; padding: 3rem; }
.solutions-img:hover img { transform: scale(1.04); }
.solutions-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--black) 100%), linear-gradient(to top, rgba(13,13,13,0.4) 0%, transparent 40%);
}
.solutions-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1.2rem; padding-left: 1.4rem; }
.sol-card {
  border: 2px solid var(--cream); padding: 1.75rem 1.75rem 1.5rem;
  display: flex; flex-direction: column; transition: border-color 0.2s, background 0.2s;
}
.sol-card:hover { border-color: var(--gold); background: rgba(201,168,76,0.03); }
.sol-card h2 { font-size: 1.9rem; margin-bottom: 0.65rem; }
.sol-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 1.4rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--cream); text-decoration: none; font-size: 0.9rem; transition: color 0.18s; margin-top: auto; }
.card-link:hover { color: var(--gold); }
.card-arrow { background: var(--gold); border-radius: 50%; padding: 5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.18s; }
.card-link:hover .card-arrow { background: var(--gold-d); }

/* ── ABOUT BOX ─────────────────────────────── */
.about-box { max-width: 1240px; margin: 5rem auto; padding: 0 2rem; }
.about-inner { border: 1px solid var(--border); position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.corner { position: absolute; width: 36px; height: 36px; border-color: var(--gold); border-style: solid; opacity: 0.45; }
.c-tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.c-tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.c-bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.c-br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.about-left { background: #0f0e0c; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 3rem; }
.about-left-bg { position: absolute; inset: 0; opacity: 0.06; background: radial-gradient(ellipse at center, var(--gold) 0%, transparent 70%); }
.about-left img { width: 180px; height: 180px; object-fit: contain; position: relative; z-index: 1; }
.about-left-monogram { position: absolute; font-family: 'Cormorant Garamond', serif; font-size: 12rem; font-weight: 300; color: var(--gold); opacity: 0.05; line-height: 1; pointer-events: none; top: 50%; left: 50%; transform: translate(-50%,-50%); white-space: nowrap; }
.about-right { padding: 3.5rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.about-right h2 { font-size: 2.3rem; margin: 1rem 0 0.9rem; line-height: 1.15; }
.about-right p { color: var(--muted); font-size: 0.875rem; line-height: 1.75; max-width: 400px; }
.slide-dots { display: flex; gap: 8px; margin-top: 2rem; }
.dot { width: 28px; height: 2px; border: none; cursor: pointer; transition: background 0.2s; }
.dot.active { background: var(--gold); }
.dot.inactive { background: rgba(201,168,76,0.25); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── SERVICES ──────────────────────────────── */
.services-section { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.8rem; margin: 0.5rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { border: 1px solid var(--border); padding: 2rem; transition: border-color 0.2s, background 0.2s; }
.svc-card:hover { border-color: rgba(201,168,76,0.5); background: rgba(201,168,76,0.025); }
.svc-icon { color: var(--gold); margin-bottom: 1rem; display: block; }
.svc-card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.svc-card p { font-size: 0.855rem; color: var(--muted); line-height: 1.7; }

/* ── PROCESS ───────────────────────────────── */
.process-section { background: var(--gun); padding: 5.5rem 2rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-inner { max-width: 1100px; margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.process-steps::before { content: ''; position: absolute; top: 2.2rem; left: 12.5%; right: 12.5%; height: 1px; background: var(--border); z-index: 0; }
.step { text-align: center; padding: 0 1.5rem; position: relative; z-index: 1; }
.step-num { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--gold); font-weight: 500; letter-spacing: 0.12em; margin-bottom: 1.25rem; background: var(--gun); display: inline-block; padding: 0 0.5rem; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.83rem; color: var(--muted); line-height: 1.65; }

/* ── STATS ─────────────────────────────────── */
.stats-row { display: flex; justify-content: center; align-items: center; max-width: 800px; margin: 0 auto; padding: 4.5rem 2rem; }
.stat { text-align: center; flex: 1; }
.stat-divider { width: 1px; height: 60px; background: var(--border); flex-shrink: 0; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 3.8rem; color: var(--gold); line-height: 1; font-weight: 300; }
.stat-lbl { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }

/* ── TESTIMONIALS ──────────────────────────── */
.testi-section { max-width: 820px; margin: 0 auto; padding: 4.5rem 2rem; text-align: center; border-top: 1px solid var(--border); }
.testi-quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.55; color: var(--cream); margin: 1.5rem 0 1.25rem; }
.testi-author { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2rem; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; transition: background 0.2s; }
.t-dot.on { background: var(--gold); }
.t-dot.off { background: rgba(201,168,76,0.25); }

/* ── CTA / CONTACT ─────────────────────────── */
.cta-section { background: var(--gun); padding: 5.5rem 2rem; border-top: 1px solid var(--border); }
.cta-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: 3rem; margin: 0.5rem 0; }
.cta-inner > p { color: var(--muted); font-size: 0.88rem; line-height: 1.75; margin-top: 1rem; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.75rem; text-align: left; }
.cf-full { grid-column: 1 / -1; }
.cf-field { display: flex; flex-direction: column; gap: 0.35rem; }
.cf-field label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cf-field input, .cf-field textarea, .cf-field select {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--cream); padding: 0.75rem 1rem;
  font-family: 'Jost', sans-serif; font-size: 0.875rem; font-weight: 300;
  outline: none; transition: border-color 0.18s; border-radius: 3px;
  -webkit-appearance: none;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: rgba(232,224,208,0.2); }
.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus { border-color: var(--gold); }
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-field select option { background: #161410; }

/* ── FEATURE LIST (løsninger pages) ───────── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.feature-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; border: 1px solid var(--border); transition: border-color 0.2s; }
.feature-list li:hover { border-color: rgba(201,168,76,0.45); }
.feature-list .fi-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.feature-list h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; margin-bottom: 0.25rem; }
.feature-list p { font-size: 0.845rem; color: var(--muted); line-height: 1.65; }

/* ── TWO-COL LAYOUT ────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.two-col-img { position: relative; overflow: hidden; }
.two-col-img img { width: 100%; height: 400px; object-fit: cover; filter: brightness(0.6) sepia(0.15); display: block; }
.two-col-img::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--border); pointer-events: none; }

/* ── FOOTER ────────────────────────────────── */
footer { padding: 3.5rem 2rem 2.5rem; text-align: center; border-top: 1px solid var(--border); }
.footer-logo { height: 64px; width: auto; margin: 0 auto 0.75rem; display: block; object-fit: contain; }
.footer-tagline { font-size: 0.62rem; letter-spacing: 0.28em; color: var(--gold); text-transform: uppercase; margin-bottom: 1.75rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.18s; }
.footer-links a:hover { color: var(--gold); }
.footer-socials { display: flex; justify-content: center; gap: 1.1rem; margin-bottom: 1.5rem; }
.footer-socials a { color: var(--muted); transition: color 0.18s; }
.footer-socials a:hover { color: var(--gold); }
.footer-copy { font-size: 0.72rem; color: rgba(232,224,208,0.3); line-height: 1.8; }

/* ── SCROLL REVEAL ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── CONTACT LAYOUT ────────────────────────── */
.contact-layout {
  max-width: 1100px; margin: 0 auto; padding: 5rem 2rem;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .solutions-wrap { grid-template-columns: 1fr; }
  .solutions-img { display: none; }
  .solutions-grid { padding-left: 0; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col-img { display: none; }
  .about-inner { grid-template-columns: 1fr; }
  .about-left { display: none; }
}
@media (max-width: 960px) {
  .nav-center { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  nav { padding: 0.85rem 1.25rem; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .process-steps::before { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 1.25rem; }
  .solutions-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 3.5rem 1.25rem 2.5rem; }
  .page-hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
  .cta-section { padding: 3.5rem 1.25rem; }
  .cta-inner h2 { font-size: 2.2rem; }
  .services-section { padding: 3.5rem 1.25rem; }
  .about-box { margin: 3rem auto; }
  .about-right { padding: 2.5rem 1.5rem; }
  .about-right h2 { font-size: 1.9rem; }
}
@media (max-width: 640px) {
  .hero { padding: 2.5rem 1.25rem 3rem; }
  .hero-watermark { height: 45%; opacity: 0.03; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero p { font-size: 0.875rem; }
  .sol-card { padding: 1.25rem; }
  .sol-card h2 { font-size: 1.5rem; }
  .feature-list li { padding: 1rem 1.1rem; }
  .feature-list h4 { font-size: 1.1rem; }
  section[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 2rem; }
  .stat-divider { display: none; }
  .footer-links { gap: 1rem; }
  .process-section { padding: 3.5rem 1.25rem; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 2rem; }
}
