/* ============================================================
   AltSikkert — style.css
   Animasjoner styres utelukkende via CSS-klasser som JS toggler.
   Ingen element.style-manipulasjon (CSP: style-src 'self').
   ============================================================ */

/* === 1. FONTER ============================================= */

@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-400.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-serif-display-400i.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}

/* === 2. VARIABLER ========================================== */

:root {
  /* Farger (maks 5 + linjefarge avledet) */
  --clr-bg:     #FAFAF8;   /* varm offwhite — bakgrunn */
  --clr-white:  #FFFFFF;   /* hvit — kort/skjema */
  --clr-navy:   #13283F;   /* dyp marineblå — primærtekst og elementer */
  --clr-steel:  #3B7CA8;   /* dempet stålblå — aksent, lenker, CTA */
  --clr-grey:   #6E7E8E;   /* varmgrå — sekundærtekst */
  --clr-line:   #DDD9D3;   /* linje- og kantfarge */

  /* Typografi */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, Helvetica, Arial, sans-serif;

  /* Størrelseskala */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Layout */
  --nav-h:   68px;
  --max-w:   1100px;
  --radius:  8px;
  --radius-lg: 16px;

  /* Skygger */
  --shadow-sm: 0 1px 3px rgba(19,40,63,.06), 0 1px 2px rgba(19,40,63,.04);
  --shadow:    0 4px 16px rgba(19,40,63,.08), 0 2px 4px rgba(19,40,63,.04);

  --transition: 0.22s ease;
}

/* === 3. RESET ============================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--clr-navy);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--clr-steel);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === 4. LAYOUT ============================================= */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 6rem;
}

.section--alt {
  background: var(--clr-white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-steel);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 1.25rem;
  height: 1px;
  background: var(--clr-steel);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 400;
  line-height: 1.12;
  color: var(--clr-navy);
  margin-bottom: 1.25rem;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--clr-grey);
  max-width: 54ch;
  line-height: 1.7;
}

/* === 5. NAVIGASJON ========================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--clr-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-color: var(--clr-line);
  box-shadow: 0 1px 20px rgba(19,40,63,.07);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Ordmerke */
.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--clr-navy);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
  color: var(--clr-navy);
}

.nav-logo-accent {
  color: var(--clr-steel);
}

/* Desktop-lenker */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-grey);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--clr-navy);
  text-decoration: none;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Hamburger-knapp (kun mobil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--clr-navy);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* iOS scroll-lås — settes av main.js (openMenu/closeMenu) */
body.menu-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
}

/* Mobilmeny-overlay */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-bg);
  z-index: 99;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2rem 1.5rem 4rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-mobile-links {
  margin-bottom: 2rem;
}

.nav-mobile-links li {
  border-bottom: 1px solid var(--clr-line);
}

.nav-mobile-links a {
  display: block;
  padding: 1rem 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--clr-navy);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-mobile-links a:hover {
  color: var(--clr-steel);
  text-decoration: none;
}

/* === 6. KNAPPER ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform 0.15s ease;
  border: 2px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--clr-navy);
  color: var(--clr-white);
  border-color: var(--clr-navy);
}

.btn-primary:hover {
  background: #1a3452;
  border-color: #1a3452;
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(19,40,63,.22);
}

.btn-outline {
  background: transparent;
  color: var(--clr-navy);
  border-color: var(--clr-line);
}

.btn-outline:hover {
  border-color: var(--clr-navy);
  background: transparent;
  color: var(--clr-navy);
}

.btn-steel {
  background: var(--clr-steel);
  color: var(--clr-white);
  border-color: var(--clr-steel);
}

.btn-steel:hover {
  background: #2d6490;
  border-color: #2d6490;
  color: var(--clr-white);
  box-shadow: 0 4px 16px rgba(59,124,168,.28);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: var(--text-base);
}

.btn-full {
  width: 100%;
}

/* === 7. SIGNATURGREPET: AVHUKET-LISTE ====================== */
/*
   Gjennomgående motiv: en sirkel med hake i stålblå.
   Brukes i tjenestebeskrivelser, trust-linje og andre sjekklister.
   SVG er inline i CSS som data-URI — tillatt av img-src 'self' data:
*/

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: var(--text-sm);
  color: var(--clr-navy);
  line-height: 1.55;
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8.5' stroke='%233B7CA8' stroke-width='1.5'/%3E%3Cpath d='M6.5 10.5l2.5 2.5 4.5-5' stroke='%233B7CA8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* === 8. HERO =============================================== */

.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: 6rem 5rem;
  position: relative;
}

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-steel);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-steel);
  opacity: 0.55;
  flex-shrink: 0;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--clr-navy);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-heading em {
  font-style: italic;
  color: var(--clr-steel);
}

.hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--clr-grey);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Tillitslinje under hero-CTA */
.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--clr-line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-grey);
}

.trust-item::before {
  content: '';
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8.5' stroke='%233B7CA8' stroke-width='1.5'/%3E%3Cpath d='M6.5 10.5l2.5 2.5 4.5-5' stroke='%233B7CA8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* === 9. HVORFOR NÅ ========================================= */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.why-card {
  padding: 2rem;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-lg);
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.why-card:hover {
  border-color: rgba(59,124,168,.35);
  box-shadow: var(--shadow);
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--clr-steel);
  opacity: 0;
  transition: opacity var(--transition);
}

.why-card:hover::before {
  opacity: 1;
}

.why-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--clr-line);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.why-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.why-desc {
  font-size: var(--text-sm);
  color: var(--clr-grey);
  line-height: 1.65;
}

/* === 10. TJENESTER ========================================= */

.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

/* Gjennomgang-kortet */
.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--clr-line);
}

.service-card-meta {
  flex: 1;
}

.service-card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--clr-navy);
  margin-bottom: 0.375rem;
}

.service-card-sub {
  font-size: var(--text-sm);
  color: var(--clr-grey);
}

.service-price {
  text-align: right;
  flex-shrink: 0;
}

.service-price-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--clr-navy);
  display: block;
  line-height: 1.2;
}

.service-price-note {
  font-size: var(--text-xs);
  color: var(--clr-grey);
}

.service-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-line);
}

.service-deliverable {
  font-size: var(--text-sm);
  color: var(--clr-grey);
  line-height: 1.5;
}

.service-deliverable strong {
  display: block;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.2rem;
}

/* Løpende-driftskortet */
.addon-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.addon-card-meta {
  flex: 1;
}

.addon-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.375rem;
}

.addon-card-desc {
  font-size: var(--text-sm);
  color: var(--clr-grey);
  line-height: 1.6;
  max-width: 48ch;
}

.addon-price {
  flex-shrink: 0;
  text-align: right;
}

.addon-price-amount {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--clr-navy);
  display: block;
  line-height: 1.2;
}

.addon-price-note {
  font-size: var(--text-xs);
  color: var(--clr-grey);
}

/* === 11. SLIK FUNGERER DET ================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: calc(16.666% + 1.5rem);
  right: calc(16.666% + 1.5rem);
  height: 1px;
  background: var(--clr-line);
  pointer-events: none;
}

.step {
  padding: 0 2.5rem;
  text-align: center;
}

.step:first-child { padding-left: 0; }
.step:last-child  { padding-right: 0; }

.step-number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1.5px solid var(--clr-line);
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--clr-steel);
  position: relative;
  z-index: 1;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.step:hover .step-number {
  background: var(--clr-steel);
  border-color: var(--clr-steel);
  color: var(--clr-white);
}

.step-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.625rem;
  line-height: 1.4;
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--clr-grey);
  line-height: 1.65;
}

/* === 12. OM ================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  align-items: start;
}

/* Portrettplassholder */
.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #DDD9D3 0%, #C5C0B8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--clr-grey);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portrait-placeholder svg {
  width: 3rem;
  height: 3rem;
  opacity: 0.4;
  margin: 0 auto;
}

/* Bilde — skiftes inn når portrett leveres */
.about-portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: none; /* skjules inntil bilde er tilgjengelig */
}

.about-content {
  padding-top: 0.5rem;
}

.about-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--clr-navy);
  margin-bottom: 0.25rem;
}

.about-title-tag {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-steel);
  margin-bottom: 1.75rem;
}

.about-text {
  color: var(--clr-grey);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-text strong {
  color: var(--clr-navy);
  font-weight: 600;
}

.about-quote {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--clr-steel);
  background: rgba(59,124,168,.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--clr-navy);
  line-height: 1.65;
  font-size: var(--text-sm);
}

/* === 13. REFERANSER (skjult til data finnes) =============== */

.testimonials {
  display: none;
}

/* === 14. FAQ =============================================== */

.faq-list {
  max-width: 720px;
  margin-top: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--clr-line);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-navy);
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--clr-steel);
}

/* +/× ikon som roterer ved åpning */
.faq-icon {
  flex-shrink: 0;
  width: 1.375rem;
  height: 1.375rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E7E8E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* .js settes av main.js på <html> — FAQ-svar er fullt synlige
   uten JS (progressiv forbedring). Med JS kollapser de. */
.js .faq-answer {
  max-height: 0;
}

.js .faq-item.is-open .faq-answer {
  max-height: 600px;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: var(--text-sm);
  color: var(--clr-grey);
  line-height: 1.75;
}

/* === 15. KONTAKT =========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 5rem;
  align-items: start;
}

.contact-info-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--clr-navy);
  margin-bottom: 1rem;
}

.contact-info-sub {
  font-size: var(--text-sm);
  color: var(--clr-grey);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 40ch;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.875rem;
}

.contact-detail a {
  color: var(--clr-navy);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-detail a:hover {
  color: var(--clr-steel);
  text-decoration: none;
}

.contact-detail::before {
  content: '';
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233B7CA8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4' width='15' height='12' rx='2'/%3E%3Cpath d='M2.5 7l7.5 4.5 7.5-4.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* === 16. SKJEMA ============================================ */

.form-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.375rem;
}

.form-required {
  color: var(--clr-steel);
  margin-left: 0.125rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--clr-line);
  border-radius: var(--radius);
  background: var(--clr-white);
  color: var(--clr-navy);
  font-size: var(--text-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--clr-steel);
  box-shadow: 0 0 0 3px rgba(59,124,168,.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--clr-grey);
  opacity: 0.65;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot — skjult for brukere, synlig for bots */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Skjuler skjemafeltene etter suksess */
.form-fields.is-hidden {
  display: none;
}

/* Status-meldinger — vises/skjules via JS-klasser */
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
}

.form-status.is-success {
  display: block;
  background: rgba(59,124,168,.08);
  color: #2d6490;
  border: 1px solid rgba(59,124,168,.2);
}

.form-status.is-error {
  display: block;
  background: rgba(160,30,30,.06);
  color: #9b2020;
  border: 1px solid rgba(160,30,30,.18);
}

/* Knapp-tilstand under innsending */
.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Turnstile-wrapper */
.cf-turnstile {
  margin-bottom: 1.25rem;
}

/* === 17. FOOTER ============================================ */

.footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--clr-line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--clr-navy);
  text-decoration: none;
}

.footer-logo:hover {
  text-decoration: none;
  color: var(--clr-navy);
}

.footer-logo-accent {
  color: var(--clr-steel);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--clr-grey);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--clr-navy);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-line);
  font-size: var(--text-xs);
  color: var(--clr-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* === 18. SCROLL-ANIMASJONER (kun via klasser) ============== */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Forsinkelse for kaskadeeffekt i gridder */
.fade-up-d1 { transition-delay: 0.08s; }
.fade-up-d2 { transition-delay: 0.16s; }
.fade-up-d3 { transition-delay: 0.24s; }

/* === 19. RESPONSIV ========================================= */

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile-menu {
    display: block;
  }

  .services-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-portrait-wrap {
    max-width: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps::before {
    display: none;
  }

  .step {
    padding: 0;
    text-align: left;
    display: grid;
    grid-template-columns: 4rem 1fr;
    column-gap: 1.25rem;
    align-items: start;
  }

  .step-number {
    margin: 0;
  }

  .step-body {
    padding-top: 0.75rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding-block: 4rem;
  }

  .hero {
    padding-block: 3.5rem 3rem;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card-header {
    flex-direction: column;
    gap: 0.875rem;
  }

  .service-price {
    text-align: left;
  }

  .addon-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .addon-price {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === 20. REDUSERT BEVEGELSE ================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  /* Elementer med fade-up vises umiddelbart uten animasjon */
  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* === 21. FOKUS (tastatur-navigasjon) ======================= */

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

/* === 22. PERSONVERNERKLÆRING ================================
   Brukes kun på personvern.html.
   Separate klasser for å unngå kollisjon med seksjonsstiler
   fra index.html, og fordi style="" er CSP-blokkert.
   ============================================================ */

.privacy-content {
  max-width: 68ch;
  margin-top: 2.5rem;
}

.privacy-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--clr-line);
}

.privacy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.privacy-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 0.75rem;
}

.privacy-section p {
  color: var(--clr-grey);
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section a {
  color: var(--clr-steel);
}

.privacy-list {
  margin-top: 0.5rem;
}

.privacy-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--clr-grey);
  line-height: 1.75;
  margin-bottom: 0.3rem;
}

.privacy-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--clr-steel);
}
