/* ===============================
   Enhetslageret – forbedret design
   =============================== */

:root {
  --primary: #5A8AFF;
  --primary-hover: #4677FF;
  --accent: #ffba08;
  --dark: #1a1a1a;
  --light: #ffffff;
  --grey: #f5f7fa;
}

/* Reset & global -------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--grey);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header ---------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  background-color: var(--light);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
}

nav a {
  margin-left: 2rem;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.25s ease;
}

nav a:hover,
nav a:focus {
  color: var(--primary);
}

/* Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Lys gradient med ny primærfarge */
  background: linear-gradient(135deg, var(--primary) 0%, #3f6dff 100%);
  color: var(--light);
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent; /* Ingen overlay */
}

/* Dekorativ diagonal på bunnen av hero */
.hero::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--light);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem 1rem;
  animation: fadeInUp 0.8s ease-out forwards;
  transform: translateY(20px);
  opacity: 0;
}

.hero h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--light);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover,
.cta-btn:focus {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
}

/* About ----------------------------------------------------------- */
.about {
  background-color: var(--light);
  padding: 5rem 0;
  text-align: center;
}

.about h3 {
  font-size: 2.1rem;
  margin-bottom: 1.2rem;
}

.about p {
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto;
  color: #555;
}

/* Contact --------------------------------------------------------- */
.contact {
  background-color: var(--primary);
  color: var(--light);
  padding: 5rem 0;
  text-align: center;
}

.contact h3 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.email-link {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
}

.email-link:hover,
.email-link:focus {
  text-decoration: underline;
}

/* Mailing-form */
.mailing-form {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.mailing-form input {
  flex: 1 1 220px;
  max-width: 350px;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.mailing-form button {
  background-color: var(--accent);
  color: var(--dark);
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.mailing-form button:hover {
  background-color: #ffaa00;
  transform: translateY(-2px);
}

.feedback {
  display: block;
  width: 100%;
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

/* Footer ---------------------------------------------------------- */
footer {
  background-color: var(--light);
  border-top: 1px solid #eaeaea;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

/* Animations ------------------------------------------------------ */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries --------------------------------------------------- */
@media (max-width: 768px) {
  nav a {
    margin-left: 1.2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .cta-btn {
    width: 100%;
  }
  .mailing-form {
    flex-direction: column;
    align-items: stretch;
  }
  .mailing-form button {
    width: 100%;
  }
} 