/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #1E3345;
  --navy-dk:   #152535;
  --accent:    #3D9B8F;
  --accent-dk: #2F7D73;
  --accent-lt: #6BBFB5;
  --white:     #FFFFFF;
  --gray-50:   #F7F9FA;
  --gray-100:  #EDF1F3;
  --gray-400:  #94A3B8;
  --gray-600:  #475569;
  --gray-800:  #1E293B;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(30, 51, 69, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

address { font-style: normal; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typografi ── */
h1, h2, h3 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.logo-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.logo-icon-sm {
  width: 36px;
  height: 36px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--white);
}

.logo-tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}

/* ── Knapper ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
  border: none;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(61, 155, 143, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dk);
  box-shadow: 0 6px 20px rgba(61, 155, 143, 0.45);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
}

.btn-large {
  font-size: 1.1rem;
  padding: 1rem 2.2rem;
  margin-top: 2rem;
}

/* ── Flytende ring-knapp ── */
.call-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(61, 155, 143, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.call-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61, 155, 143, 0.5);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center;
  background:
    url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1600&q=80&auto=format&fit=crop') center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 37, 53, 0.82) 0%,
    rgba(30, 51, 69, 0.65) 55%,
    rgba(30, 51, 69, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 600px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-lt);
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ── Seksjoner ── */
.section {
  padding: 5rem 0;
}

.services {
  background: var(--gray-50);
}

/* ── Tjenestekort ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.13);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── Galleri ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--gray-100);
}

.gallery-item {
  aspect-ratio: 4 / 3;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ── Hvorfor oss ── */
.why {
  background: var(--navy);
  color: var(--white);
}

.why h2 {
  color: var(--white);
}

.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-check {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 2px;
}

.why-list strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.why-list span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

/* ── Kontakt ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 0.4rem;
}

.contact-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

a.contact-value:hover,
.contact-link:hover {
  color: var(--accent);
}

/* ── Footer ── */
.footer {
  background: var(--navy-dk);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.footer-logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.footer-meta {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.footer-demo {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
}

/* ── Responsivt ── */
@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
    min-height: 220px;
  }

  .hero {
    min-height: 65vh;
  }

  .section {
    padding: 3.5rem 0;
  }

  .call-float {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
  }
}
