/* Klartnkt.no - enkel statisk side. Ingen tredjeparts-avhengigheter, ingen cookies. */

:root {
  --navy: #19354b;
  --navy-dark: #10222f;
  --pink: #e75180;
  --pink-soft: #f7dbe4;
  --blue-soft: #a9c9e2;
  --text: #19354b;
  --text-muted: #4d6072;
  --bg: #ffffff;
  --radius: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Century Gothic", CenturyGothic, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  min-width: 0;
}

/* Header */

.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo img {
  height: 60px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: #f2e9ec;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: rgba(242, 233, 236, 0.5);
}

.site-nav a.active {
  border-bottom-color: var(--pink);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("images/portrett bakgrunn_v2.jpg");
  background-size: cover;
  background-position: right center;
  transform: scale(1);
  will-change: transform;
}

.hero .container {
  position: relative;
}

.hero-text {
  max-width: 480px;
  width: 100%;
  padding: 190px 0;
}

.hero-text h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--navy);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
}

/* Sections */

section {
  padding: 72px 0;
}

h2 {
  font-size: 1.8rem;
  margin: 0 0 40px;
  color: var(--navy);
}

/* Tjenesteomrader */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.service-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Filosofi */

.philosophy {
  background-image: linear-gradient(rgba(16, 34, 47, 0.55), rgba(16, 34, 47, 0.55)), url("images/filosofi_bakgrunn.jpg");
  background-size: cover;
  background-position: center;
  padding: 96px 0;
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  padding: 44px;
  max-width: 620px;
}

.philosophy-card h2 {
  margin-bottom: 24px;
}

.philosophy-card p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

.philosophy-card p:last-child {
  margin-bottom: 0;
}

.philosophy-card strong {
  color: var(--navy);
}

/* Kontakt */

.contact-info p {
  color: var(--text-muted);
  margin: 0 0 8px;
}

.contact-details {
  margin-top: 24px;
}

.contact-details a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--pink);
}

.btn {
  display: inline-block;
  margin-top: 28px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--pink);
}

/* Footer */

.site-footer {
  background: var(--navy-dark);
  color: rgba(242, 233, 236, 0.7);
  padding: 32px 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner img {
  height: 22px;
  opacity: 0.85;
}

/* Erfaring page */

.erfaring-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.erfaring-photo img {
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.erfaring-photo h3 {
  margin: 20px 0 12px;
  font-size: 1.3rem;
  color: var(--navy);
}

.erfaring-photo ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.erfaring-photo li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.erfaring-photo li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
}

.erfaring-body h2 {
  font-size: 1.4rem;
  margin: 0 0 20px;
}

.exp-block {
  margin-bottom: 48px;
}

.exp-block:last-child {
  margin-bottom: 0;
}

.exp-block ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.exp-block li {
  margin-bottom: 10px;
}

.page-header {
  padding-top: 56px;
}

/* Responsive */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .erfaring-layout {
    grid-template-columns: 1fr;
  }

  .erfaring-photo img {
    max-width: 240px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .site-nav {
    gap: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 75% center;
  }

  .hero-text {
    padding: 220px 0 32px;
    max-width: none;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-card {
    padding: 28px;
  }

  section {
    padding: 48px 0;
  }

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