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

/* ==========================
   BASE STYLES
========================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  background: #fff;
  color: #222;
}

/* ==========================
   NAVIGATION
========================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #8bb4d9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  background-color: #8bb4d9;
  padding: 1rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-icon {
  background-color: #4a92d1;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.4rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo-img {
  height: 60px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

.navbar a:hover {
  color: #4a92d1;
}

/* ==========================
   HERO
========================== */
.hero {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 30%;
  left: 20%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
}

/* ==========================
   INTRO
========================== */
.intro-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.intro-image img {
  width: 100%;
  max-width: 820px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.intro-text {
  flex: 1;
}

.intro-text h2 {
  color: #4a92d1;
  margin-bottom: 1rem;
}

.intro-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ==========================
   SERVICES
========================== */
.services {
  display: flex;
  justify-content: space-around;
  padding: 3rem 2rem;
  background-color: #f5f5f5;
  text-align: center;
}

.service {
  flex: 1;
  max-width: 300px;
  margin: 0 1rem;
}

.service h2 {
  color: #4a92d1;
  margin-bottom: 1rem;
}

/* ==========================
   ABOUT
========================== */
.about {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.about h2 {
  margin-bottom: 1rem;
  color: #4a92d1;
}

/* ==========================
   OM PAGE
========================== */
.om-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.om-text {
  flex: 1 1 55%;
}

.om-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #4a92d1;
}

.om-text h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.om-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.om-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: left;
}

.om-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ==========================
   Exempel 2-styles Om
========================== */
.exempel2 {
  font-family: Arial, sans-serif;
  margin: 40px auto;           
  background: #ffffff;
  max-width: 900px;            
}

.exempel2 h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #4a92d1;
}

.exempel2 p {
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

.exempel2 .container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;         
}

.exempel2 .row {
  display: grid;
  grid-template-columns: 200px 60px auto; 
  align-items: center;
  justify-content: center;    
  width: 100%;
  max-width: 800px;            
}

.exempel2 .left {
  text-align: right;
  font-weight: bold;
  font-size: 18px;
  padding-right: 10px;
  color: #004a80;
}

.exempel2 .arrow {
  position: relative;
  height: 2px;
  background: #000000;
}

.exempel2 .arrow::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -5px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #000000;
}

.exempel2 .right {
  display: inline-block;
  background: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: fit-content;
  border: 2px solid #4a92d1;
  text-align: left;
}

.exempel2 .right ul {
  margin: 0;
  padding-left: 20px;
}


/* ==========================
   PERSONAL PAGE
========================== */
.scroll-wrapper {
  max-width: 800px;
  height: 500px;
  margin: 2rem auto;
  overflow-y: auto;
  border: 2px solid #ccc;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.staff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid #8bb4d9;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #eaf4fb;
  text-align: center;
}

.staff-cards .card img {
  width: 200px !important;
  height: 200px !important;
  object-fit: cover;
  border-radius: 12px !important;
  margin-bottom: 1rem;
  border: 2px solid #8bb4d9;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #005a9c;
}
/* ==========================
   PERSONAL IMAGE HOVER (fixad)
========================== */
.profile-image {
  position: relative;
  width: 200px;
  height: 200px;
}

.profile-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #8bb4d9;
  transition: opacity 0.3s ease;
}

/* den andra bilden börjar osynlig men ligger ovanpå */
.profile-image img.hover {
  opacity: 0;
  z-index: 2;
}

/* den första ligger under */
.profile-image img.default {
  z-index: 1;
}

/* hover-effekt */
.profile-image:hover img.hover {
  opacity: 1;
}

.profile-image:hover img.default {
  opacity: 0;
}


/* ==========================
   PROJEKT-SIDA
========================== */
.projects-section {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

/* Aktuella Projekt */
.current-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.current-left {
  flex: 1 1 55%;
}

.current-left h2 {
  color: #4a92d1;
  margin-bottom: 1rem;
}

.current-left ul {
  list-style: none;
  padding: 0;
}

.current-left li {
  border-bottom: 1px solid #ddd;
  padding: 0.6rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.current-left a {
  color: #004a80;
  text-decoration: underline;
}

.current-right {
  flex: 1 1 40%;
}

.current-right img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Referens Projekt */
.reference-projects h2 {
  color: #4a92d1;
  margin-bottom: 1.5rem;
}

.reference-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.reference-columns h3 {
  color: #004a80;
  margin-bottom: 0.5rem;
}

.reference-columns ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.reference-columns li {
  border-bottom: 1px solid #ddd;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}

/* Mobilanpassning */
@media (max-width: 768px) {
  .current-projects {
    flex-direction: column;
  }

  .reference-columns {
    flex-direction: column;
  }
}


/* ==========================
   JOBB
========================== */
.top-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Vänsterkolumn innehåller båda bilderna och listan */
.left-column {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Högerkolumn innehåller rubrik + text + knapp */
.right-column {
  flex: 1 1 40%;
  text-align: left;
}

.right-column h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.right-column p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* Bild + text i rad */
.image-with-text {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.extra-image {
  width: 45%;
  max-width: 200px;
  border-radius: 8px;
}

.side-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Första lilla bilden + lista */
.image-top img {
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
}

.image-caption {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.image-caption ul {
  padding-left: 1.2rem;
}

.punkt {
  margin-bottom: 0.3rem;
}

/* Ansökan-knapp */
.apply-button {
  display: inline-block;
  background-color: #8bb4d9;
  color: white;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.apply-button:hover {
  background-color: #6b9fc5;
}

/* Popup-overlay */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Popup-innehåll */
.popup-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* Stäng-knapp */
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================
   ARBETSOMRÅDE
========================== */
.content-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.left-text {
  flex: 1 1 55%;
}

.left-text h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.left-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.right-images {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.right-images img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ==========================
   VA-PROJEKT
========================== */
.center-info {
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
}

.center-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.center-info img {
  max-width: 200px;
  height: auto;
}

/* Skrollbar personalruta */
.scroll-wrapper {
  max-width: 800px;
  height: 800px;
  margin: 2rem auto;
  overflow-y: auto;
  border: 2px solid #ccc;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.staff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid #8bb4d9;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #eaf4fb;
  text-align: center;
}

.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid #8bb4d9;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: #005a9c;
}

/* Logotypdel */
.logo-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.logo-block {
  text-align: center;
  max-width: 200px;
}

.logo-block img {
  max-width: 100%;
  height: auto;
}

/* ==========================
   VVS
========================== */
/* Text */
.center-info {
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
}

.center-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #005a9c;
}

.center-info img {
  max-width: 200px;
  height: auto;
}

/* Innehållssektion */
.personal-card {
  background-color: #f2f2f2;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 2rem auto;
  text-align: center;
}

.personal-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.personal-card h3 {
  margin-bottom: 0.3rem;
  color: #005a9c;
}

.personal-card p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}


/* ==========================
   FOOTER
========================== */
.site-footer {
  background-color: #8bb4d9;
  color: #ffffff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  height: 120px
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 250px;
  height: auto;
  object-fit: contain;
}

.footer-extra-images {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 5px;
}

.footer-extra-images img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.footer-contact {
  max-width: 300px;
  margin-top: 20px;
}

.footer-contact p {
  margin: 5px 0;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  color: #ffffff;
  font-size: 20px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #0c008e;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  border-top: 0px solid #4a92d1;
  padding-top: 15px;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */
/* ==========================
   ANIMERADE MENYLÄNKAR MED FÖRDRÖJNING
========================== */

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background-color: #8bb4d9;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
    opacity: 1;
    transform: translateX(0);
  }

  /* Gör att varje länk glider in mjukt */
  .nav-links li {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
  }

  /* När menyn aktiveras — fadea in länkarna sekventiellt */
  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Fördröjning för varje länk (sekventiell effekt) */
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.6s;
  }

  /* Overlay med mjuk fade */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 900;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Hamburgarikonen med snygg snurr */
  .menu-toggle {
    transition: transform 0.3s ease, color 0.3s ease;
  }

  .menu-toggle.open {
    transform: rotate(90deg);
    color: #004a80;
  }
}
/* ==========================
   MOBILANPASSNING: PERSONAL-SIDAN
========================== */
@media (max-width: 768px) {
  /* Gör hero-bilden kortare */
  .hero {
    height: 250px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  /* Personalrutan */
  .scroll-wrapper {
    max-width: 95%;
    height: auto;
    border: none;
    box-shadow: none;
    padding: 1rem 0.5rem;
  }

  /* Grid för personal-korten */
  .staff-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Varje kort */
  .card {
    padding: 0.8rem;
    border-radius: 8px;
    background-color: #eaf4fb;
  }

  .card img,
  .profile-image img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
  }

  .card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
}

/* Mindre mobiler (iPhone SE, t.ex.) */
@media (max-width: 480px) {
  .staff-cards {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card {
    max-width: 300px;
    margin: 0 auto;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .profile-image img {
    width: 140px !important;
    height: 140px !important;
  }
}


/* ==========================
   EXTRA MOBILANPASSNING (max 480px)
========================== */
@media (max-width: 480px) {
  /* 🔹 Navigation justeringar */
  .nav-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .logo-img {
    height: 45px;
  }

  .menu-toggle {
    font-size: 1.8rem;
  }

  /* Text och spacing */
  body {
    line-height: 1.7;
  }

  p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  /* Hero */
  .hero-text h1 {
    font-size: 1.6rem;
  }

  /* Intro / Services */
  .intro-section,
  .services {
    padding: 1.5rem 1rem;
  }

  /* Footer-bilder i kolumn */
  .footer-extra-images {
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo img {
    width: 100px;
  }

  .footer-extra-images img {
    width: 100px;
  }

  .footer-contact {
    font-size: 0.9rem;
  }
}

/* ==========================
   FÖRBÄTTRAD HAMBURGERMENY-STIL
========================== */

/* Dölj menyknapp på desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1001;
}

/* Visa menyknappen endast på små skärmar */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  /* Menyn flyger in från höger */
  .nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #8bb4d9;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
    opacity: 1;
  }

  .nav-links a {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  .menu-toggle.open {
    transform: rotate(90deg);
  }
}