@font-face {
  font-family: 'Lemon';
  src: url('fonts/LEMONMILK-Regular.otf') format('opentype');
}

#bg-video {
  position: fixed;
  top: -200px;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.5; /* Valfritt: gör videon lite subtilare */
}


body {
  margin: 0;
  font-family: 'Lemon', sans-serif;
  color: #002b45;
  ;
}

header {
  padding: 2rem;
  text-align: center;
  background-color: #006994;
  color: white;
  opacity: 0.9;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

section.hero {
  text-align: center;
  padding: 4rem 2rem;
  opacity: 1;
}

section.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

section.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.cta-button {
  display: inline-block;
  background-color: #006994;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.gallery-button {
  display: inline-block;
  background-color: #006994;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 1rem;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: #004e6e;
;
}

.gallery-button:hover {
  background-color: #00334d;
}

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background-color: #f0f8ff;
  color: #004e6e;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.8;
}

.wave {
  position: relative;
  width: 100%;
  height: 100px;
  background: url('https://svgshare.com/i/11tx.svg') repeat-x;
  background-size: cover;
  transform: rotate(180deg);
  
}

/* Blog styles */

.main-header {
  background: #12729b;
  color: white;
  text-align: center;
  padding: 3rem 2rem 4rem 2rem;
  position: relative;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  overflow: hidden;
}

.header-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: url('https://svgshare.com/i/11tx.svg') repeat-x;
  background-size: cover;
  transform: rotate(180deg);
  opacity: 0.3;
}

.menu-wrapper {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.hamburger {
  font-size: 2rem;
  cursor: pointer;
  color: white;
}

.menu-items {
  display: none;
  position: absolute;
  top: 2.5rem;
  right: 0;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}

.menu-items a {
  display: block;
  margin: 0.5rem 0;
  text-decoration: none;
  color: #006994;
  font-weight: bold;
}

.menu-wrapper:hover .menu-items {
  display: block;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.blog-post {
  background-color: #ffffffcc;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.3s ease;
  border: 2px solid #006994;
}

.blog-post h3 {
  margin-top: 0;
  text-transform: uppercase;
}

.read-more {
  margin-top: 1rem;
  display: inline-block;
  background-color: #006994;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.expanded-post {
  position: fixed;
  top: 10%;
  left: 10%;
  width: 80vw;
  height: 80vh;
  background: #ffffff;
  padding: 3rem;
  overflow-y: auto;
  z-index: 9999;
  box-sizing: border-box;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  animation: expandAnim 0.3s ease-out;
}

@keyframes expandAnim {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #006994;
  font-weight: bold;
}

/* Contact form styles */

.contact-section {
      max-width: 600px;
      margin: 5rem auto;
      padding: 2rem;
      border-radius: 20px;
      background-color: #f9f9f9;
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .contact-section h2 {
      text-align: center;
      margin-bottom: 2rem;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 1rem;
      border: 2px solid #006994;
      border-radius: 50px;
      margin-bottom: 1.5rem;
      font-size: 1rem;
      font-family: inherit;
    }

    .contact-form textarea {
      height: 150px;
      border-radius: 30px;
      resize: vertical;
    }

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
      color: #999;
    }

    .send-button {
      background-color: #006994;
      color: white;
      padding: 0.75rem 2rem;
      border: none;
      border-radius: 40px;
      font-size: 1rem;
      font-weight: bold;
      cursor: pointer;
      transition: all 0.4s ease;
      position: relative;
      overflow: hidden;
    }

    .send-button.fly {
      animation: sailAway 1.2s forwards;
    }

    @keyframes sailAway {
      0% { transform: translateX(0) rotate(0); }
      30% { transform: translateX(50px) rotate(-5deg); }
      60% { transform: translateX(150px) rotate(10deg); opacity: 1; }
      100% { transform: translateX(300px) rotate(-10deg); opacity: 0; }
    }