/* ==========================================================================
   FREELANCE BENJIE — STYLESHEET v10 (facelift + fully responsive)
   Kun CSS: ingen endringer i HTML/JS nødvendig.
   ========================================================================== */

:root {
  --bg: #07070b;
  --bg-soft: #0d0d14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(0, 212, 255, 0.35);
  --text: #f6f6fb;
  --muted: rgba(246, 246, 251, 0.68);
  --violet: #8b5cf6;
  --cyan: #00d4ff;
  --indigo: #5c67f2;
  --accent-2: var(--cyan);
  --accent-gradient: linear-gradient(135deg, var(--violet), var(--cyan));
  --text-gradient: linear-gradient(90deg, #a78bfa, var(--cyan) 60%, #ffffff);

  --container-max: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 9vw, 110px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /* Tvinger Inter på alle sider (noen sider overstyrer ellers med system-ui) – flagg-emoji beholdes */
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Twemoji Country Flags' !important;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* Atmosfærisk glød */
body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}
body::before {
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  left: -30%;
  top: -25%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.26), transparent 68%);
  filter: blur(50px);
}
body::after {
  width: min(700px, 100vw);
  height: min(700px, 100vw);
  right: -25%;
  bottom: -25%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16), transparent 68%);
  filter: blur(60px);
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--container-max), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typografi ---------- */
h1, h2, h3 { text-wrap: balance; }

h1 {
  font-size: clamp(2.1rem, 1.2rem + 4.6vw, 4.5rem);
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* Overstyrer inline-størrelser i HTML */
h2[style*="font-size"] { font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3rem) !important; }
.container > p[style*="font-size:20px"],
.container > p[style*="font-size: 20px"] {
  font-size: clamp(1.02rem, .95rem + .45vw, 1.25rem) !important;
  line-height: 1.8 !important;
  max-width: 62ch;
}
.container > p[style*="font-size:18px"] { font-size: clamp(1rem, .95rem + .3vw, 1.15rem) !important; }

p { color: inherit; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(0, 212, 255, .7);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.section-heading { margin-bottom: 8px; }

.gradient-text {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
}

/* ---------- Header / navigasjon ---------- */
.site-header {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--container-max), calc(100% - 2 * var(--gutter)));
  background: rgba(14, 14, 22, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  z-index: 100;
}

.site-header .container {
  width: 100%;
  padding: 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 26px);
}

.brand { text-decoration: none; flex-shrink: 0; }
.brand__text {
  display: block;
  font-weight: 900;
  font-size: clamp(18px, 1.4vw + 12px, 22px);
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}
.brand__text span { color: var(--indigo); margin-left: 2px; }
.brand__logo { display: block; height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 10px);
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  opacity: .72;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  margin: 0;
  border-radius: 10px;
  display: inline-block;
  white-space: nowrap;
  transition: opacity .25s ease, background .25s ease, color .25s ease;
}
.nav-links a:hover { opacity: 1; background: rgba(255, 255, 255, .06); }
.nav-links a.active {
  opacity: 1;
  color: #fff;
  background: rgba(92, 103, 242, .18);
  box-shadow: inset 0 0 0 1px rgba(92, 103, 242, .4);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .06); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  margin: 5px 0;
}

@media (max-width: 1020px) {
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 4px;
    padding: 10px 0 4px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 16px;
    padding: 13px 14px;
    white-space: normal;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: clamp(120px, 16vw, 160px) 0 clamp(40px, 6vw, 70px);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-left { text-align: left; min-width: 0; }
.hero-left h1 { margin-bottom: 26px; }
.hero-left p {
  font-size: clamp(1rem, .92rem + .45vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 34px;
  max-width: 58ch;
}

.hero-right { min-width: 0; position: relative; }
.hero-right::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  background: var(--accent-gradient);
  filter: blur(70px);
  opacity: .22;
  z-index: -1;
  border-radius: 50%;
}
.hero-right img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5));
}

.buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; }

/* ---------- Knapper ---------- */
.button.button--primary {
  padding: 17px 34px;
  font-size: 16px;
  font-family: inherit;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  background: var(--accent-gradient);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, .25);
  transition: transform .3s var(--ease), box-shadow .3s ease, filter .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.button.button--primary:active { transform: translateY(0) scale(.98); }

/* ---------- Seksjoner & kort ---------- */
.section { padding: var(--section-y) 0; }

/* Overstyrer inline-padding på toppseksjoner */
.section[style*="padding-top:140px"] {
  padding-top: clamp(120px, 15vw, 160px) !important;
  padding-bottom: clamp(40px, 6vw, 80px) !important;
}
.section[style*="padding-bottom:0px"] { padding-bottom: 0 !important; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 3vw, 30px);
  margin-top: clamp(32px, 5vw, 50px);
}

.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3.5vw, 35px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  transition: transform .45s var(--ease), background .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 18px;
  color: rgba(255, 255, 255, .7);
  transition: all .3s ease;
}

.card-icon { font-size: 40px; line-height: 1; margin-bottom: 18px; display: block; }
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.card h2, .card h3 { color: #fff; }

/* Hover kun på enheter som faktisk har hover (ingen "sticky" hover på mobil) */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-8px);
    background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
    border-color: var(--border-hover);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .5), 0 0 40px rgba(0, 212, 255, .14);
  }
  .card:hover .card-arrow {
    transform: translate(4px, -4px) scale(1.08);
    background: rgba(0, 212, 255, .12);
    border-color: rgba(0, 212, 255, .35);
    color: var(--cyan);
  }
  .button.button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 212, 255, .5), 0 0 60px rgba(139, 92, 246, .3);
    filter: brightness(1.06);
  }
}
/* Tekstkort (ikke lenker) skal ikke løfte seg unødvendig */
@media (hover: hover) and (pointer: fine) {
  .split-section .card:hover,
  .contact-copy .card:hover,
  .contact-grid > .card:hover,
  .service-card:hover { transform: none; }
}

/* ---------- Lister i kort ---------- */
.service-card ul,
.bundle-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
}
.service-card li,
.bundle-card li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15.5px;
}
.service-card li::before,
.bundle-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.5px);
  mask: radial-gradient(circle, transparent 3px, #000 3.5px);
}
.service-card strong,
.bundle-card strong { color: #fff; font-weight: 700; }
.service-card em { color: #fff; }

/* ---------- Tjenester ---------- */
.cards.services {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 35px);
  max-width: 1150px;
  margin: clamp(32px, 5vw, 50px) auto 0;
}

.service-card__split {
  display: flex;
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}
.service-card__text { flex: 1; min-width: 0; }
.service-card__text > p:first-of-type { margin-bottom: 6px; }

.service-card__image-wrapper {
  position: relative;
  flex: 0 0 clamp(220px, 28%, 300px);
  min-height: 320px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
}
.service-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Pakker / bundles ---------- */
.bundle-card { display: flex; flex-direction: column; }
.bundle-card h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }

.bundle-card--highlight {
  border-color: transparent;
  background:
    linear-gradient(#0f0f18, #0f0f18) padding-box,
    var(--accent-gradient) border-box;
  box-shadow: 0 0 50px rgba(139, 92, 246, .18);
}
.bundle-card--highlight::after {
  content: "Best value";
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
}
.bundle-card--highlight h3 { padding-right: 90px; }

/* ---------- Om meg / portefølje (split) ---------- */
.split-section { min-width: 0; }
.split-section > div { min-width: 0; }
.split-section > div:first-child p { color: var(--muted); line-height: 1.85; }
.split-section > div:first-child p strong { color: #fff; }
.split-section .card p { color: var(--muted); }

@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Portefølje-bokser (inline-stilte) */
.split-section a[target="_blank"] {
  display: inline-block;
  padding: 6px 0;
  transition: color .25s ease;
}
@media (hover: hover) {
  .split-section a[target="_blank"]:hover { color: var(--cyan) !important; }
}

hr { border: none; }

/* ---------- FAQ ---------- */
.faq-list { padding-left: 0; padding-right: 0; }
.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(14px, 2.5vw, 22px) clamp(16px, 3vw, 26px);
  background: var(--surface);
  transition: background .3s ease, border-color .3s ease;
}
.faq-item:hover { border-color: rgba(255, 255, 255, .17); }
.faq-item.open { background: var(--surface-hover); border-color: var(--border-hover); }

.faq-question {
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  min-height: 44px;
  color: #fff;
  font-family: inherit;
  text-align: left;
  font-weight: 700;
  font-size: clamp(15.5px, 1.5vw + 11px, 17.5px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  -webkit-tap-highlight-color: transparent;
}
.faq-question span {
  color: var(--cyan);
  font-size: 1.7rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .35s ease;
}
.faq-item.open .faq-question span { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
}
.faq-item.open .faq-answer { max-height: 3000px; opacity: 1; margin-top: 14px; }
.faq-answer p { margin-bottom: 12px; line-height: 1.8; }
.faq-answer ul { padding-left: 20px; margin-top: 8px; }
.faq-answer li { margin-bottom: 8px; line-height: 1.75; }
.faq-answer strong { color: #fff; }

/* FAQ har en nøstet .section — fjern dobbel padding */
main .section .section { padding: clamp(24px, 4vw, 40px) 0 0; }
main .section .section > .container { padding-left: 0; padding-right: 0; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3.5vw, 40px);
  align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.contact-copy h2,
.contact-copy h3 { color: #fff; margin-bottom: 18px; }
.contact-copy h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
.contact-copy strong { color: #fff; }
.contact-copy p { line-height: 1.8; }
.contact-copy .check-list p { color: var(--muted); }

.contact-grid > .card:last-child { min-width: 0; }

@media (min-width: 951px) {
  .contact-grid > .card:last-child { position: sticky; top: 110px; }
}
@media (max-width: 950px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 16px; /* 16px hindrer iOS-zoom ved fokus */
  font-weight: 400;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.contact-form select {
  padding-right: 44px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2300d4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.contact-form select option { background: #12121a; color: #fff; }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, .13);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, .38); }

.contact-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  flex-shrink: 0;
  accent-color: var(--violet);
}
.contact-form label a { color: var(--cyan) !important; }

.cf-turnstile {
  margin: 6px 0 8px;
  max-width: 100%;
  overflow: hidden;
}


.contact-form button { width: 100%; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(40px, 7vw, 72px) 0 calc(clamp(40px, 7vw, 72px) + env(safe-area-inset-bottom));
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-wrap { color: var(--muted); font-size: 14.5px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  gap: 6px clamp(14px, 3vw, 26px);
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: .7;
  font-size: 15px;
  padding: 8px 4px;
  display: inline-block;
  transition: color .25s ease, opacity .25s ease;
}
.footer-links a:hover { opacity: 1; color: var(--indigo); }
.footer-wrap p { order: 2; }
.footer-wrap { display: flex; flex-direction: column; }
.footer-wrap .footer-links { order: 1; }

/* ---------- Responsivt: nettbrett ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; padding-bottom: 20px; }
  .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
  .hero-left { text-align: center; }
  .hero-left p { margin-left: auto; margin-right: auto; }
  .buttons { justify-content: center; }
  .hero-right { max-width: 560px; margin: 0 auto; width: 100%; }
  .tag-index { display: none; }

  .service-card__split { flex-direction: column; }
  .service-card__image-wrapper {
    order: -1;
    flex: none;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Responsivt: mobil ---------- */
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .site-header { top: max(10px, env(safe-area-inset-top)); border-radius: 18px; }
  .nav-wrap { padding: 10px 14px 10px 18px; }
  .card { border-radius: 20px; padding: 24px 20px; }
  .card-arrow { top: 14px; right: 14px; width: 36px; height: 36px; }
  .card-icon { font-size: 36px; }
  .buttons { width: 100%; }
  .buttons .button { width: 100%; }
  .tag { font-size: 11.5px; letter-spacing: .1em; }
  .bundle-card--highlight h3 { padding-right: 0; padding-top: 28px; }
  .bundle-card--highlight::after { top: 16px; left: 20px; right: auto; }
  .faq-item { border-radius: 14px; }
  .service-card__image-wrapper { aspect-ratio: 4 / 3; }
}

/* ---------- Store skjermer ---------- */
@media (min-width: 1600px) {
  :root { --container-max: 1320px; }
  body { font-size: 17px; }
}

/* ---------- Tilgjengelighet ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::before, body::after, .site-header { display: none; }
  body { background: #fff; color: #000; }
}
/* Flytter hero-innholdet litt høyere */
.hero {
  padding-top: clamp(100px, 10vw, 120px);
  padding-bottom: clamp(90px, 12vw, 150px);
}

@media (max-width: 900px) {
  .hero {
    padding-top: 105px;
    padding-bottom: 20px;
  }
}
/* Litt kortere mellomrom før "Three steps" */
.hero + .section {
  padding-top: clamp(40px, 6vw, 80px);
}
/* Litt høyere meny + mer gjennomsiktig glasseffekt */
.nav-wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-header {
  background: rgba(14, 14, 22, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

@media (max-width: 600px) {
  .nav-wrap {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
/* Intro-tekst følger samme bredde som innholdet under */
.container > p[style*="font-size:20px"] {
  max-width: 900px;
}
/* ---------- Fikser ---------- */

/* Tjenestekort på samme bredde som resten */
.cards.services { max-width: none; }

/* Kontaktskjema: ikke avkuttet på lave skjermer */
@media (min-width: 951px) {
  .contact-grid > .card:last-child {
    max-height: calc(100dvh - 130px);
    overflow-y: auto;
  }
}

/* Turnstile: ikke avkuttet på smale mobiler */
.cf-turnstile { overflow: visible; }
@media (max-width: 400px) {
  .cf-turnstile {
    width: 300px;
    transform: scale(.82);
    transform-origin: left top;
    margin-bottom: -12px;
  }
}

/* Mobilmeny: fallback for eldre nettlesere */
@media (max-width: 1020px) {
  .nav-links { max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
}
.contact-grid > .card:last-child {
  position: static;
  max-height: none;
  overflow: hidden;
}