/* Farger hentet fra logoen: gull-swoosh og svart skrift */
:root {
  --gold: #f4b33e;
  --gold-dark: #e9a63b;
  --ink: #111111;
  --card: #171717;
  --card-2: #222222;
  --text: #1b1b1b;
  --muted: #5f5f5f;
  --line: #e6e4df;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --radius: 4px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  --container: 1240px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.025em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: #ffc457;
}
.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
.btn-light:hover {
  background: #fff;
}
.btn-sm {
  padding: 9px 20px;
  font-size: 0.92rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.text-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover {
  color: var(--gold-dark);
}

/* ---------- 1. Header og hero ---------- */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(24px, calc((100% - var(--container)) / 2 + 24px));
  padding-right: max(24px, calc((100% - var(--container)) / 2 + 24px));
  background: transparent;
  transition: background 0.25s, box-shadow 0.25s;
}
.nav-bar.scrolled {
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.brand img {
  height: 38px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Bakgrunnsbildet er assets/hero.jpg. Mangler bildet, vises
 * fargeovergangen nederst i stedet. */
.hero {
  position: relative;
  /* Nesten hele skjermen, så toppen av tjenestekortene så vidt skimtes */
  min-height: max(560px, calc(100vh - 64px));
  min-height: max(560px, calc(100svh - 64px));
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  color: #fff;
  background-color: #141310;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 28%, transparent 70%, rgba(0, 0, 0, 0.45) 100%),
    url("assets/hero.jpg"),
    linear-gradient(160deg, #1f1d17 0%, #2b2618 50%, #121212 100%);
  background-size: cover;
  background-position: center 62%;
}
.hero-content {
  position: relative;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 800;
  max-width: 11em;
  margin-bottom: 22px;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34em;
  margin: 0 0 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Seksjoner ---------- */
.section {
  padding: 96px 0;
}
.section-tight {
  padding: 72px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
}

/* ---------- 2. Tjenester ---------- */
#tjenester {
  padding-top: 32px;
  padding-bottom: 48px;
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 440px;
  padding: 44px 32px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* Diskrete chevron-striper i bakgrunnen, som en nikk til logo-swooshen */
.svc-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -10% -20%;
  height: 55%;
  z-index: -1;
  opacity: 0.5;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.035) 46px 92px);
  transform: skewY(-8deg);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.svc-card h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.svc-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  max-width: 24em;
}
.svc-media {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 32px 8px 40px;
}
.svc-photo {
  width: 100%;
  max-width: 340px;
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.35s ease;
}
.svc-card:hover .svc-photo {
  transform: scale(1.05);
}
.svc-icon {
  width: 120px;
  height: 120px;
  stroke: var(--gold);
  stroke-width: 2.2;
}
.svc-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: #262626;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.svc-card:hover .svc-arrow {
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-45deg);
}

/* ---------- 3. Vi hjelper deg ---------- */
/* Bilde til venstre, lyst tekstpanel som overlapper bildet til høyre */
.help-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}
.help-img {
  grid-column: 1 / 9;
  grid-row: 1;
  margin: 0;
}
.help-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 40% 30%;
  border-radius: var(--radius);
}
.help-text {
  grid-column: 7 / 13;
  grid-row: 1;
  position: relative;
  z-index: 1;
  padding: 52px 56px;
  border-radius: var(--radius);
  background: rgba(236, 239, 239, 0.94);
  backdrop-filter: blur(4px);
}
.help-text h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 22px;
}
.help-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
  margin: 0 0 16px;
}
.help-text p:last-child {
  margin-bottom: 0;
}

/* ---------- 4. Facebook-slide ---------- */
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.feed-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.feed-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feed-controls .text-link {
  margin-right: 10px;
}
.feed-controls.no-scroll .feed-arrow {
  display: none;
}
.feed-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.feed-arrow:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
}
.feed-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.feed-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.feed-track:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.feed-col {
  flex: none;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-snap-align: start;
}
.feed-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feed-card iframe {
  display: block;
  max-width: 100%;
  border: 0;
}
.feed-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.accent {
  color: var(--gold);
}

/* ---------- 5. Ta kontakt ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.contact-media {
  position: relative;
  min-height: 480px;
  background: #ddd;
}
.contact-media iframe,
.contact-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.contact-panel {
  padding: 56px 56px 48px;
  color: #fff;
}
.contact-panel h2 {
  margin-bottom: 14px;
}
.contact-intro {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32em;
  margin: 0 0 24px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0 0 8px;
}
.contact-links a {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  word-break: break-word;
}
.contact-links a:hover {
  color: var(--gold);
}
.contact-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  margin: 0 0 32px;
}

.contact-form {
  display: grid;
  gap: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field span {
  font-weight: 700;
  font-size: 0.9rem;
}
.field em {
  color: var(--gold);
  font-style: normal;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 11px 13px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #e05555;
}
.hp {
  position: absolute;
  left: -9999px;
}
.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-status {
  margin: 0;
  font-weight: 600;
  flex: 1;
  min-width: 200px;
}
.form-status.ok {
  color: #5ed48c;
}
.form-status.error {
  color: #ff8a80;
}

/* ---------- 6. Samarbeidspartnere (logobånd) ---------- */
.partners-band {
  margin-top: 24px;
  padding: 28px 0 32px;
}
.partners-title {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 20px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee var(--marquee-duration, 30s) linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track li {
  flex: none;
  padding: 0 44px;
}
.marquee-track a,
.marquee-track span {
  display: flex;
  align-items: center;
  height: 56px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
  color: #8a8a8a;
  transition: color 0.2s;
}
.marquee-track img {
  height: auto;
  max-height: 44px;
  max-width: 170px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 0.2s, opacity 0.2s;
}
.marquee-track a:hover img {
  filter: none;
  opacity: 1;
}
.marquee-track a:hover {
  color: var(--ink);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 7. Footer ---------- */
.site-footer {
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 1.2fr 0.8fr;
  gap: 40px;
}
.footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 14px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.site-footer p {
  margin: 0 0 8px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--gold);
}
.muted {
  color: rgba(255, 255, 255, 0.55);
}
.footer-hours {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
}
.footer-hours dt {
  color: rgba(255, 255, 255, 0.6);
}
.footer-hours dd {
  margin: 0;
  white-space: nowrap;
}
.site-footer .muted {
  margin-bottom: 18px;
  max-width: 30em;
}
.social {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, background 0.2s;
}
.social:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink) !important;
}
.social svg {
  width: 20px;
  height: 20px;
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Inngangsanimasjon */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  /* Logobåndet er dekorativt og stopper når man holder musepekeren over,
     så det får rulle (saktere) også her */
  .marquee-track {
    animation: marquee calc(var(--marquee-duration, 30s) * 1.6) linear infinite !important;
  }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .help-text {
    padding: 36px 32px;
  }
  .contact-panel {
    padding: 44px 36px 40px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(17, 17, 17, 0.98);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .site-nav.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav .btn {
    margin-top: 16px;
  }
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-media {
    min-height: 300px;
  }
  .help-img,
  .help-text {
    grid-column: 1 / -1;
  }
  .help-text {
    grid-row: 2;
    margin: -48px 16px 0;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%),
      url("assets/hero.jpg"),
      linear-gradient(160deg, #1f1d17 0%, #2b2618 50%, #121212 100%);
    background-position: 40% center;
  }
  .container {
    padding: 0 16px;
  }
  .nav-bar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand img {
    height: 32px;
  }
  .svc-grid,
  .field-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .svc-card {
    min-height: 340px;
    padding: 36px 24px 28px;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .contact-panel {
    padding: 36px 20px 32px;
  }
  .help-text {
    margin: -32px 8px 0;
    padding: 32px 20px 28px;
  }
  .contact-links a {
    font-size: 1.1rem;
  }
  .marquee-track li {
    padding: 0 28px;
  }
}

/* Hover-løft på tjenestekortene må vinne over inngangsanimasjonen */
.svc-card.reveal {
  transition: opacity 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-card.reveal.visible:hover {
  transform: translateY(-6px);
}

/* Kreditering i footer */
.credit a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}
