/* ---------------------- Global / body ---------------------- */
body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: #111;
  color: #eee;
}

a {
  color: #5795db;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #fdfdfd;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------------------- Header ---------------------- */
.site-header {
  background: #000;
  padding: 1rem 0;
  border-bottom: 1px solid #333;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand img.logo {
  height: 50px;
  width: auto;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav ul li a {
  color: #eee;
  font-weight: 500;
}

.nav ul li a:hover {
  color: #5795db;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #eee;
  border-radius: 2px;
}

/* ---------------------- Hero ---------------------- */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  text-align: center;
  color: #fff;
}

.hero-background {
  position: absolute;
  top: 0; left: 0; right:0; bottom:0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  opacity: 0.5; /* lysere bakgrunn */
  z-index: -1;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p.lead {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-actions a.btn {
  margin: 0 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary {
  background: #5795db;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #065bbd;
}

.btn-ghost {
  background: transparent;
  border: 2px solid #5795db;
  color: #5795db;
}

.btn-ghost:hover {
  background: #065bbd;
  color: #fff;
}

/* ---------------------- Seksjoner ---------------------- */
section {
  padding: 3rem 1rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  overflow: hidden;
  border-radius: 8px;
}

.project-card img {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.project-card img:hover {
  transform: scale(1.05);
}

/* ---------------------- Kontakt ---------------------- */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #eee;
}

.contact-form textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------------------- Footer ---------------------- */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 3rem 1rem 1rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  max-height: 50px;   /* Setter en maks høyde */
  height: auto;
  width: auto;        /* Viktig: behold riktig bredde */
  margin-bottom: 0.5rem;
  border-radius: 6px;
  object-fit: contain; /* Hindrer strekking */
}


.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social .social-icons {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  font-size: 1.4rem;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #0f9d58;
}

/* Til toppen knapp */
.scroll-top-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  background: #5795db;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.scroll-top-btn:hover {
  background: #065bbd;
}

/* Footer bottom linje */
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #777;
}

/* ---------------------- Personvern spesifikk ---------------------- */
main.personvern {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

main.personvern h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

main.personvern section h2 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
}

/* ---------------------- Fade-in animation ---------------------- */
.fade-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------- Responsiv ---------------------- */
@media screen and (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand, .footer-links, .footer-social, .footer-top-btn {
    align-items: center;
  }

  .cards-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
}

html {
  scroll-behavior: smooth;
}

.card,
.project-card,
.contact {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.card,
.project-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.75)
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

