/* ===== Design tokens ===== */
:root {
  --navy-deep: #081826;
  --navy: #0d2b46;
  --blue-accent: #2d6cdf;
  --blue-accent-light: #6fa1f2;
  --ink: #10243c;
  --paper: #ffffff;
  --pale-blue: #eef3fb;
  --pale-blue-2: #dbe7f9;
  --line: #d7e2f2;
  --text-on-dark: #eaf2ff;
  --text-on-dark-dim: #b7c9e8;
  --muted: #4d5f7a;

  --font-heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.placeholder-image {
  background: repeating-linear-gradient(
    135deg,
    var(--pale-blue-2),
    var(--pale-blue-2) 14px,
    #f5f9fd 14px,
    #f5f9fd 28px
  );
  position: relative;
}
.placeholder-image::after {
  content: "BILDE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--muted);
  opacity: .55;
}

/* ===== Buttons & links ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .95em 1.7em;
  border-radius: var(--radius-pill);
  transition: transform .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: var(--pale-blue); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--blue-accent);
  padding-bottom: .15em;
}
.text-link .arrow { transition: transform .18s ease; }
.text-link:hover .arrow { transform: translateX(4px); }
.text-link.small { font-size: .75rem; }
.text-link.centered { display: flex; justify-content: center; margin-top: 2.5rem; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: .8rem;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .01em;
  color: var(--text-on-dark);
  margin-right: auto;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--text-on-dark);
  color: var(--navy);
  font-size: 1rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .86rem;
  letter-spacing: .02em;
  color: var(--text-on-dark);
  position: relative;
  padding: .25em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transition: right .2s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { right: 0; }

.header-cta { flex-shrink: 0; }

.lang-switch {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--navy);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: .3em .7em;
  line-height: 1;
  transition: opacity .15s ease;
}
.lang-switch:hover { opacity: .6; }

/* Default header = solid (used on every page except the homepage hero) */
.site-header {
  background: var(--paper);
  box-shadow: 0 2px 18px rgba(13, 43, 70, .08);
  padding: .7rem 0;
}
.logo, .main-nav a { color: var(--navy); }
.logo-mark { background: var(--navy); color: var(--text-on-dark); }
.header-cta.btn-light { background: var(--navy); color: var(--text-on-dark); }
.header-cta.btn-light:hover { background: var(--blue-accent); }
.menu-toggle span { background: var(--navy); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
}

/* Homepage only: transparent header over the hero photo until scrolled */
body.has-hero .site-header:not(.is-scrolled) {
  background: transparent;
  box-shadow: none;
  padding: 1.1rem 0;
}
body.has-hero .site-header:not(.is-scrolled) .logo,
body.has-hero .site-header:not(.is-scrolled) .main-nav a {
  color: var(--text-on-dark);
}
body.has-hero .site-header:not(.is-scrolled) .logo-mark {
  background: var(--text-on-dark);
  color: var(--navy);
}
body.has-hero .site-header:not(.is-scrolled) .lang-switch { color: var(--text-on-dark); }
body.has-hero .site-header:not(.is-scrolled) .header-cta.btn-light {
  background: var(--paper);
  color: var(--navy);
}
body.has-hero .site-header:not(.is-scrolled) .header-cta.btn-light:hover { background: var(--pale-blue); }
body.has-hero .site-header:not(.is-scrolled) .menu-toggle span { background: var(--text-on-dark); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 32%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 24, 38, .92) 0%, rgba(8, 24, 38, .55) 42%, rgba(8, 24, 38, .25) 100%),
    linear-gradient(100deg, rgba(8, 24, 38, .55) 0%, rgba(8, 24, 38, 0) 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.hero-content .hero-heading,
.hero-content .hero-credentials,
.hero-content .hero-cta { max-width: 34rem; }
.hero-heading {
  display: flex;
  flex-direction: column;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-on-dark);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.hero-affiliation {
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  letter-spacing: .01em;
  margin: 0 0 1.2rem;
}
.hero-credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.8rem;
  color: var(--text-on-dark);
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 34rem;
}
.hero-credentials li {
  padding-left: 1.4rem;
  position: relative;
}
.hero-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--text-on-dark);
  opacity: .85;
}

/* ===== Bio section ===== */
.section { padding: 6.5rem 0; }
.bio-grid {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.bio-media .bio-image {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bio-text h2 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.05;
}
.bio-text .lede {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.1rem;
}
.bio-text p:not(.lede):not(.eyebrow) {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.8rem;
  max-width: 46ch;
}

/* ===== Articles ===== */
.section-articles { background: var(--pale-blue); }
.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2.8rem;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}
.article-card { display: flex; flex-direction: column; }
.article-image {
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.3rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* ===== Testimonials ===== */
.section-testimonials { background: var(--navy); }
.testimonial-carousel { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 9.5rem; }
.testimonial {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
}
.testimonial.is-active { opacity: 1; visibility: visible; position: relative; }
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-on-dark);
  margin-bottom: 1.3rem;
}
.testimonial cite {
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
}
.testimonial cite a {
  color: var(--text-on-dark-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.testimonial cite a:hover { color: var(--text-on-dark); }
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.2rem;
}
.testimonial-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(234, 242, 255, .3);
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.testimonial-arrow:hover { background: rgba(234, 242, 255, .1); border-color: var(--text-on-dark); }
.testimonial-dots { display: flex; gap: .5rem; }
.testimonial-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(234, 242, 255, .3);
  cursor: pointer;
  padding: 0;
}
.testimonial-dots button.is-active { background: var(--text-on-dark); }

/* ===== Subpage header band ===== */
.page-header {
  padding: 10.5rem 0 3.5rem;
  background: var(--pale-blue);
}
.page-header h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.05;
}
.page-header .eyebrow { margin-bottom: .9rem; }

.narrow { max-width: 760px; }

/* ===== Services (Tjenester) ===== */
.services-grid {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.services-media .services-image {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  position: sticky;
  top: 6.5rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.service-item .plus {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--pale-blue-2);
  color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.services-outro {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.services-outro p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.6rem;
  max-width: 50ch;
}
.cta-row { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }

/* ===== Priser ===== */
.price-groups { display: flex; flex-direction: column; gap: 3.2rem; }
.price-group h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blue-accent);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1.1rem;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px dashed var(--line);
}
.price-name { color: var(--ink); font-weight: 500; }
.price-value { font-family: var(--font-heading); font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-block-row { display: grid; grid-template-columns: .8fr 1fr; gap: 4.5rem; align-items: start; margin-bottom: 3.5rem; }
.price-block-row:last-child { margin-bottom: 0; }
.price-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }

/* ===== Kontakt ===== */
.contact-grid {
  display: grid;
  grid-template-columns: .75fr 1fr;
  gap: 4.5rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2.1rem; }
.contact-block h2 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue-accent);
  margin-bottom: .5rem;
}
.contact-block a, .contact-block p { font-size: 1.05rem; color: var(--ink); line-height: 1.5; }
.contact-block a:hover { color: var(--blue-accent); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.form-field input, .form-field textarea {
  border: none;
  border-bottom: 2px solid var(--line);
  padding: .6rem .1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue-accent); }
.form-note {
  font-size: .85rem;
  color: var(--muted);
  background: var(--pale-blue);
  padding: 1rem 1.2rem;
  border-radius: 6px;
  line-height: 1.5;
}
.submit-btn { align-self: flex-start; border: none; cursor: pointer; background: var(--navy); color: var(--text-on-dark); }
.submit-btn:hover { background: var(--blue-accent); }

/* ===== Biografi ===== */
.bio-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: flex; flex-direction: column; gap: .65rem; }
.bio-list li { position: relative; padding-left: 1.4rem; color: var(--muted); line-height: 1.6; }
.bio-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-accent);
}

/* ===== Aktuelt (blogglisting) ===== */
.article-date {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: .6rem;
}

/* ===== Booking ===== */
.booking-box {
  border: 2px dashed var(--pale-blue-2);
  border-radius: 12px;
  padding: 4.5rem 2rem;
  text-align: center;
  background: var(--pale-blue);
}
.booking-box h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: .9rem; }
.booking-box p { color: var(--muted); max-width: 50ch; margin: 0 auto 1.9rem; line-height: 1.6; }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.location-card {
  background: var(--pale-blue);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.location-card h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: .5rem; }
.location-card p { color: var(--muted); margin-bottom: 1.6rem; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark-dim); padding: 5rem 0 2rem; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(234, 242, 255, .12);
}
.footer-brand { display: flex; flex-direction: column; gap: .8rem; }
.footer-brand .logo-text { font-size: 1.2rem; font-weight: 800; color: var(--text-on-dark); }
.footer-brand .logo-mark { background: var(--text-on-dark); color: var(--navy-deep); width: 26px; height: 26px; font-size: .9rem; }
.footer-tagline { font-size: .9rem; line-height: 1.5; max-width: 24ch; margin-top: .3rem; }
.footer-col { display: flex; flex-direction: column; gap: .75rem; }
.footer-col h4 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: .4rem;
}
.footer-col a, .footer-col p { font-size: .92rem; line-height: 1.5; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-hours-label { margin-top: .6rem; color: var(--text-on-dark); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-bottom { padding-top: 2rem; font-size: .8rem; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--navy-deep);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s ease, opacity .35s ease, visibility .35s;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { color: var(--text-on-dark); font-size: 1.3rem; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; position: relative; z-index: 101; }
  .menu-toggle.is-open span { background: var(--text-on-dark); }
  .bio-grid, .services-grid, .contact-grid, .location-grid, .price-block-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .bio-media .bio-image { aspect-ratio: 16 / 10; }
  .services-media .services-image { position: static; aspect-ratio: 16 / 10; }
  .article-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { padding: 8rem 0 2.5rem; }
}

@media (max-width: 560px) {
  .section { padding: 4.5rem 0; }
  .footer-top { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-content { padding-bottom: 4rem; }
  .hero-heading { font-size: clamp(1.5rem, 7.4vw, 3rem); }
}
