/* ============================================
   BRYN TAKST — style.css
   Mobile-first · WCAG 2.2 AA · Premium design
   ============================================ */

   /* ==========================================================================
   OUTFIT - ALLE VEKTER (100-900)
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   CORMORANT GARAMOND - ALLE VEKTER OG STILER
   ========================================================================== */

/* Light (300) */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Regular (400) */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium (500) */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* SemiBold (600) */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold (700) */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
/* ─── TOKENS ─── */
:root {
  --midnight:    #0A0E1A;
  --midnight-2:  #0F1525;
  --midnight-3:  #151C30;
  --midnight-4:  #1C2540;

  --gold:        #C9A84C;
  --gold-light:  #E2C47A;
  --gold-pale:   #F0DDA8;
  --gold-frost:  rgba(201,168,76,0.12);

  --frost:       rgba(255,255,255,0.06);
  --frost-2:     rgba(255,255,255,0.10);
  --frost-3:     rgba(255,255,255,0.15);
  --frost-border:rgba(255,255,255,0.10);

  --text-primary:   #F0EDE6;
  --text-secondary: rgba(240,237,230,0.88);
  --text-muted:     rgba(240,237,230,0.85); /* Økt for bedre UU-kontrast (WCAG AA) */

  --radius:    12px;
  --radius-sm: 6px;

  --nav-h: 68px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--midnight);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 18px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── ACCESSIBILITY (UU) ─── */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: -100px; left: 20px;
  background: var(--gold);
  color: var(--midnight);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 18px;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 20px; }

/* ─── BG MESH ─── */
.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-mesh::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -150px; right: -150px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 65%);
  animation: meshFloat 12s ease-in-out infinite alternate;
}
.bg-mesh::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  bottom: 10%; left: -100px;
  background: radial-gradient(circle, rgba(100,140,255,0.05) 0%, transparent 65%);
  animation: meshFloat 16s ease-in-out infinite alternate-reverse;
}
@keyframes meshFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,20px) scale(1.08); }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid var(--frost-border);
  transition: background 0.3s;
}
nav.scrolled { background: rgba(10,14,26,0.96); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  animation: rotateClock 0s linear infinite;
  flex-shrink: 0;
  width: 90px;  
  height: 80px;
}

/* ─── NYTT: UU-KRAV FOR ANIMASJON ─── */
/* 1. Pause-funksjon når musepekeren er over */
.nav-logo-icon:hover,
.nav-logo-icon:focus {
  animation-play-state: paused;
}

/* 2. Slår av alle animasjoner for brukere med innstilling for redusert bevegelse */
@media (prefers-reduced-motion: reduce) {
  .nav-logo-icon,
  .hero-badge-dot,
  .bg-mesh::before,
  .bg-mesh::after {
    animation: none !important;
  }
}

@keyframes rotateClock {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}
.nav-logo-text span { color: var(--gold); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,237,230,0.85);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 17px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--gold);
  color: var(--midnight);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--midnight);
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  z-index: 201;
}
.hamburger:hover { background: var(--frost-2); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  height: 100vh !important; /* Tvinger menyen til å fylle høyden, dreper 68px-regelen */
  z-index: 190;
  background: var(--midnight);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Setter listen fra toppen og ned */
  align-items: center;
  padding: 120px 5% 40px; /* 120px på toppen dytter lenkene ned under nav-baren */
  gap: 20px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0) !important;
 }

.mobile-drawer a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; /* Betydelig større for bedre UU/mobil-oversikt */
  font-weight: 300;
  color: var(--text-primary);
  text-decoration: none;
  padding: 15px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--frost-border);
  transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--gold); }
.mobile-drawer a:last-child { border: none; }

.mobile-drawer-cta {
  margin-top: 32px;
  background: var(--gold) !important;
  color: var(--midnight) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  text-align: center;
  padding: 20px !important;
  border-radius: 4px;
  width: 100%;
  max-width: 320px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-lang {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.mobile-lang-btn {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  color: var(--text-secondary);
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.2s;
}
.mobile-lang-btn.active {
  background: var(--gold-frost);
  border-color: rgba(201,168,76,0.3);
  color: var(--gold);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--midnight);
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(201,168,76,0.25);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.35);
}
.btn-primary svg { transition: transform 0.2s; flex-shrink: 0; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 16px 24px;
  border: 1px solid var(--frost-border);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  color: var(--gold);
  border-color: rgba(201,168,76,0.3);
  background: var(--gold-frost);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--gold);
  padding: 16px 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid rgba(201,168,76,0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-call:hover {
  background: var(--gold-frost);
  border-color: rgba(201,168,76,0.6);
  transform: translateY(-1px);
}

/* ─── SECTION SHARED ─── */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5%;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 8vw, 58px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-title em {
  color: var(--gold);
  font-style: italic;
  display: block;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  padding-left: 5%;
  padding-right: 5%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../images/floyen-bakgrunn.webp');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0.33;
  filter: saturate(0.7) brightness(1);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(10,14,26,0.7) 0%,
      rgba(10,14,26,0.35) 50%,
      rgba(10,14,26,0.7) 100%),
    linear-gradient(to right,
      rgba(10,14,26,0.6) 0%,
      transparent 60%);
}

.hero-content {
  order: 1;
  position: relative;
  z-index: 2;
}

/* ─── HERO REKKEFØLGE MOBIL FIX ─── */
@media (max-width: 959px) {
  .hero-content {
    /* Fjerner boksen for .hero-content så barna kan sorteres internt i .hero */
    display: contents; 
  }
  
  /* Beholder reveal-animasjonen ved å flytte effekten over til barna på mobil */
  .hero-content.visible > * {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.7s var(--ease-out);
  }
  .hero-content > * {
    opacity: 0;
    transform: translateY(20px);
    position: relative; 
    z-index: 2;
  }

  /* Riktig rekkefølge på mobil */
  
  .hero h1         { order: 1; }
  
  .hero-image-wrap { order: 2; margin: 30px auto; } /* Bildet flyttes under sub-teksten */
  .hero-actions    { order: 3; width: 100%; }
  .hero-sub        { order: 4; }
   .hero-badge      { order: 5; margin-top: 20px; }
  .hero-trust      { order: 6; width: 100%; }
  
 .hero {
  gap: 28px;
  padding-top: calc(var(--nav-h) + 18px);
  padding-bottom: 48px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero-image-wrap {
  margin: 12px auto;
}

.hero-sub {
  margin-bottom: 20px;
}

.hero-actions {
  margin-bottom: 24px;
  gap: 10px;
}

.hero-badge {
  margin-top: 8px;
  margin-bottom: 0;
}

.hero-trust {
  padding-top: 20px;
}
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-frost);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.75); }
}
.hero-badge span {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold-pale);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 11vw, 82px);
  font-weight: 300;
  line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-actions .btn-primary,
.hero-actions .btn-ghost { width: 100%; }

.hero-trust {
  display: flex;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--frost-border);
}
.trust-item {
  flex: 1;
  text-align: center;
  padding: 0 10px;
  border-right: 1px solid var(--frost-border);
}
.trust-item:first-child { padding-left: 0; text-align: left; }
.trust-item:last-child  { border: none; }
.trust-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.trust-label {
  font-size: clamp(12px, 3vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ─── HERO IMAGE ─── */
.hero-image-wrap { 
  order: 2; 
  position: relative;
  width: 100%;
  max-width: 320px; 
  margin: 0 auto; 
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  width: 100%;
}
.hero-image-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg,
    rgba(201,168,76,0.35),
    rgba(255,255,255,0.04),
    rgba(201,168,76,0.12));
  z-index: 0;
}
.hero-image-frame img {
  position: relative;
  width: 100%; 
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 3/4;
  z-index: 1;
  filter: brightness(0.93) contrast(1.04);
}

/* Nedskalert profil-kort */
.hero-float-card {
  position: absolute;
  bottom: -10px; 
  left: -10px;
  background: rgba(15,21,37,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  z-index: 3;
  width: auto;
  min-width: 140px;
}

@media (max-width: 480px) {
  .hero-float-card {
    min-width: 120px;
    padding: 8px 12px;
    left: -5px;
    bottom: -5px;
  }
  .hero-float-card-name { font-size: 13px; }
  .hero-float-card-title { font-size: 9px; }
  .cert-badge { font-size: 8px; padding: 2px 5px; }
}

.hero-float-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px; /* Skalert ned */
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.hero-float-card-title {
  font-size: 10px; /* Skalert ned */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.cert-badges { display: flex; gap: 6px; }
.cert-badge {
  background: var(--gold-frost);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.05em; 
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-ntf-badge {
  position: absolute;
  top: -10px; 
  right: -10px;
  background: rgba(15,21,37,0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: var(--radius);
  padding: 8px 12px;
  text-align: center;
  z-index: 3;
}
.hero-ntf-badge-title {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.hero-ntf-badge-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ─── SERVICES ─── */
#tjenester { background: var(--midnight-2); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 52px;
}
.service-card {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.service-card:hover {
  background: var(--frost-2);
  border-color: rgba(201,168,76,0.22);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--gold-frost);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
}
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-secondary);
}

/* ─── ABOUT (FIXED IMAGE) ─── */
#om-oss { background: var(--midnight); }
/* ─── ABOUT (FIXED IMAGE) ─── */
#om-oss { background: var(--midnight); }

.about-image-wrap {
  position: relative;
  margin-bottom: 40px; /* Strammet inn marginen litt for mobil */
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 6; /* Tvinger bildet inn i et kompakt og pent mobilformat */
  max-height: 500px; /* Sikrer at det aldri blir for høyt, selv på store skjermer */
}

.about-image-wrap img {
  width: 100%;
  height: 100%; /* Ber bildet fylle den nye 4/3-boksen helt */
  object-fit: cover; /* Magien som fjerner svarte striper ved å fylle rammen! */
  object-position: center 60%; /* Løfter fokuspunktet litt opp slik at David ikke havner for langt ned */
  display: block;
  filter: brightness(0.88);
}

.about-image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(10,14,26,0.9), transparent);
}
.about-image-caption {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.about-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}
.about-feature {
  display: flex;
  gap: 14px;
  background: var(--frost);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--frost-border);
}
.about-feature-icon { color: var(--gold); flex-shrink: 0; }
.about-feature-text strong {
  display: block;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 44px;
}

/* Gullramme for logo i Om oss — "Henger på veggen"-effekt */
.about-logo-frame {
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2 / 1;
  
  background: var(--gold); /* Fyller hele rammen med gullfargen */
  border-radius: var(--radius-sm); /* Skarpere hjørner for en mer realistisk ramme-look */
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* En mørk og tung skygge som kastes rett nedover, som i virkeligheten */
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.about-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: fill; 
  
  /* DETTE ER TYKKELSEN PÅ GULLRAMMEN DIN: */
  /* Siden logoen din har blå bakgrunn, vil denne paddingen "skyve" bildet inn, slik at gullet bak vises som en ramme */
  padding: 6px; 
  
  display: block;
}

.stat-card {
  background: var(--frost);
  border: 1px solid var(--frost-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-card.featured { grid-column: span 2; background: var(--gold-frost); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  color: var(--gold);
  line-height: 1;
}

/* ─── PRICES ─── */
#priser { background: var(--midnight-2); }
.price-group { margin-bottom: 36px; }
.price-group-title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--frost-border);
  padding-bottom: 10px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.price-row-val {
  color: var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;

  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
  text-align: right;
}
.price-cta-card {
  background: var(--gold-frost);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 32px;
  border-radius: var(--radius);
}
.price-kontor-img { width: 75%; border-radius: var(--radius); margin-top: 24px; }

/* ─── CONTACT ─── */
.contact-call-banner {
  background: var(--gold-frost);
  padding: 28px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.contact-call-num { font-family: 'Cormorant Garamond', serif; font-size: 32px; }
.contact-item { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--frost-border); }
.contact-item-icon { width: 44px; height: 44px; background: var(--gold-frost); display: flex; align-items: center; justify-content: center; color: var(--gold); border-radius: var(--radius-sm); }
.contact-form-wrap { background: var(--frost); padding: 32px; border-radius: var(--radius); border: 1px solid var(--frost-border); }
.form-group { margin-bottom: 18px; }
/* Fikser boksene og gjør teksten hvit */
.form-group input, .form-group select, .form-group textarea { 
  width: 100%; 
  padding: 14px; 
  background: rgba(255,255,255,0.05); 
  border: 1px solid var(--frost-border); 
  color: #ffffff; 
  border-radius: var(--radius-sm); 
}

/* NY: Tvinger selve nedtrekkslisten til å være mørk med hvit tekst */
.form-group select option {
  background-color: #0a0e1a; /* En mørk farge som matcher designet ditt */
  color: #ffffff; 
}

/* ─── FAQ ─── */
#faq { background: var(--midnight-2); }
.faq-grid { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--frost); border: 1px solid var(--frost-border); border-radius: var(--radius); }
.faq-question { width: 100%; padding: 20px 24px; background: transparent; border: none; color: white; display: flex; justify-content: space-between; align-items: center; text-align: left; font-size: 16px; font-weight: 500; cursor: pointer; }
.faq-icon { color: var(--gold); transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: all 0.4s ease-out; }
.faq-item.open .faq-answer { max-height: 800px; border-top: 1px solid var(--frost-border); padding: 20px 24px; }

/* ─── FOOTER (REBALANCED) ─── */
footer { background: var(--midnight-2); border-top: 1px solid var(--frost-border); padding: 60px 0 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: grid; gap: 40px; }
.footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 24px; }
.footer-brand-name span { color: var(--gold); }
.footer-bottom { 
  border-top: 1px solid var(--frost-border); 
  margin-top: 40px; 
  padding: 20px 5% 0; 
  display: flex; 
  flex-direction: row; 
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap;
  gap: 15px; 
  font-size: 14px; 
  color: var(--text-muted); 
}

/* ─── GOOGLE MAPS ─── */
.maps-outer { margin-top: 40px; border-radius: var(--radius); border: 1px solid rgba(201,168,76,0.22); overflow: hidden; }
.maps-header { padding: 12px 20px; background: var(--midnight-3); display: flex; justify-content: space-between; align-items: center; }
.maps-open-btn { color: var(--gold); text-decoration: none; border: 1px solid var(--gold); padding: 4px 12px; border-radius: 100px; font-size: 13px; }
.maps-footer { background: var(--midnight-3); padding: 12px 20px; display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); }

/* Behold din gamle CSS for .maps-outer, .maps-header osv. */

/* Legg til dette for innholdet i kartet: */
.maps-wrap {
  position: relative;
  width: 100%;
  height: 440px; /* Matcher høyden du hadde på iFramen */
  background: var(--midnight-3);
  overflow: hidden;
}

.map-facade {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0.5; /* Gjør bildet mørkere så knappen synes godt */
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.map-facade:hover .map-placeholder-img {
  transform: scale(1.05);
  opacity: 0.7;
}

.map-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
}

.map-btn {
  background: var(--gold); /* Bruker din eksisterende gullvariabel */
  color: var(--midnight-3);
  border: none;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.map-privacy-text {
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  margin-top: 12px;
  opacity: 0.8;
}

/* Mobil-justering */
@media (max-width: 768px) {
  .maps-wrap {
    height: 300px;
  }
}


/* ─── SERTIFISERINGER ─── */
#sertifiseringer { background: var(--midnight-3); padding: 30px 0; border-y: 1px solid var(--frost-border); }
.cert-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; align-items: center; padding: 0 5%; }
.cert-logo-img { height: 60px; filter: grayscale(1) brightness(1.5); transition: 0.3s; opacity: 0.7; }
.cert-logo-img:hover { filter: none; opacity: 1; }
.cert-logo-img.color { filter: none; opacity: 1; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── LANGUAGE TOGGLE ─── */
.en, .en-inline { display: none; }
body.lang-en .nb, body.lang-en .nb-inline { display: none; }
body.lang-en .en { display: block; }
body.lang-en .en-inline { display: inline; }

/* ============================================
   TABLET & DESKTOP ADJUSTMENTS
   ============================================ */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hamburger { display: none; }
  .nav-links { display: flex; }
  
  /* Din originale trygge oppstilling for Hero */
  .hero { 
    flex-direction: row; 
    align-items: center; 
    gap: 80px; 
    text-align: left;
  }
  .hero-content { flex: 1; }
  .hero-image-wrap { 
    flex: 0 0 35%; 
    max-width: 380px;
    margin: 0;
  }
  
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .price-layout { display: grid; grid-template-columns: 1fr 380px; gap: 60px;}
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
  .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
.price-kontor-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin-top: 24px;
}

@media (max-width: 959px) {
  .lang-toggle {
    margin-left: auto;
    margin-right: 20px;
  }

  .nav-cta {
    display: none;
  }
}
@media (max-width: 959px) {
  .nav-logo-text {
    display: none;
  }

  .nav-logo-icon {
    width: 56px;
    height: 50px;
  }

  .lang-toggle {
    margin-left: auto;
    margin-right: 10px;
  }

  .nav-cta {
    display: none;
  }
}