:root {
  --primary-color: #CC0000;
  --primary-dark: #a30000;
  --primary-light: #ffeded;
  --text-color: #2d3436;
  --text-light: #636e72;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image: linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)), url('images/sidebakgrunn.gif');
  background-attachment: fixed;
}

.container {
  max-width: 1100px;
  margin: 20px auto;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}

header {
  padding: 30px;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.02);
}

nav {
  background: var(--primary-color);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 18px 25px;
  display: block;
  transition: background 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav ul li a:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

main {
  padding: 40px;
  flex: 1;
}

h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

h2, h3 {
  color: var(--primary-color);
  margin: 30px 0 15px 0;
  font-weight: 700;
}

p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Hero section on front page */
.hero {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.image-grid img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.content-flex {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.card {
  background: var(--bg-color);
  padding: 25px;
  border-radius: var(--radius);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.content-flex > div {
  flex: 1;
  min-width: 320px;
}

/* List styles with icons */
ul.product-list {
  list-style: none;
  margin-bottom: 25px;
}

ul.product-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: flex-start;
  color: var(--text-color);
  font-weight: 500;
  transition: padding-left 0.2s ease;
}

ul.product-list li:hover {
  padding-left: 5px;
}

ul.product-list li i {
  color: var(--primary-color);
  margin-right: 15px;
  margin-top: 5px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

ul.product-list li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

ul.product-list li a:hover {
  color: var(--primary-color);
}

/* Map responsiveness */
.map-container {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 20px;
}

.map-container iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: 0;
}

/* Professional footer enhancements */
.footer-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-info span {
  color: var(--white);
  font-weight: 500;
}

.footer-info span i {
  margin-right: 8px;
  color: var(--white);
}

/* Footer */
footer.footer-nav {
  background: #2d3436;
  color: var(--white);
  text-align: center;
  padding: 30px;
  font-size: 0.95rem;
}

footer.footer-nav p {
  color: var(--white);
  opacity: 0.9;
  margin-bottom: 5px;
}

footer.footer-nav a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

footer.footer-nav a:hover {
  opacity: 1;
}

.tagline {
  font-weight: 700;
  text-align: center;
  padding: 30px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: var(--radius);
  margin: 40px 0;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .container {
    margin: 0;
    border-radius: 0;
  }
  
  nav ul li {
    width: 50%;
  }
  
  nav ul li a {
    padding: 15px;
    text-align: center;
    font-size: 0.85rem;
    border: 1px solid rgba(255,255,255,0.1);
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  main {
    padding: 20px;
  }
}

/* Contact Specific */
address {
  font-style: normal;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}
