@charset "utf-8";
/* CSS Document */
:root {
  --bg-light: #ffffff;
  --blue-light: #e8f3ff;
  --blue-main: #2a6fb0; /* IKOM-blå */
  --accent: #f2b66d; /* varm brytfärg */
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border-soft: #dde5f0;
  --radius: 10px;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* CONTAINER MED LJUSBLÅ RAM */
.page-container {
max-width: 1600px;
  margin: 1rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e8f3ff;
  box-shadow: 0 18px 38px rgba(42, 111, 176, 0.08);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #f7f9fc;
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-main);
  letter-spacing: 0.5px;
}

.logo img {
  max-height: 50px;
}

/* DESKTOP NAV */

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--blue-main);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

/*nytt*/
/* DROPDOWN DESKTOP */
.has-dropdown {
  position: relative;
  z-index: 9999;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-light);
  box-shadow: var(--shadow-soft);
  padding: 0.6rem 0;
  border-radius: 8px;
  min-width: max-content;
  padding-right: 1rem;
  z-index: 9999;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-main);
}

.dropdown a:hover {
  background: var(--blue-light);
}

/* Se till att inget klipper dropdownen */
.site-header {
  overflow: visible;
  position: relative;
  z-index: 1000;
}

.page-container {
  overflow: visible;
}



/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--blue-main);
  border-radius: 3px;
  transition: 0.3s ease;
}

/* ----------------------------- */
/*          MOBILMENY            */
/* ----------------------------- */
@media (max-width: 900px) {

  /* Dölj desktopmeny */
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 20px;
    background: #1a1a1a; /* mörk bakgrund */
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 100;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav a {
    color: #ffffff;
  }

  /* MÖRK DROPDOWN (nivå 1) */
  .has-dropdown .dropdown {
    display: none;
    position: static;
    background: #2a2a2a;
    padding: 0.5rem 0;
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .dropdown a {
    color: #ffffff;
    padding: 0.6rem 1rem;
  }

  .dropdown a:hover {
    background: #333333;
  }

  /* Visa dropdown på tryck/hover */
  .has-dropdown:hover .dropdown {
    display: block;
  }

  /* Visa hamburgaren */
  .hamburger {
    display: flex;
  }

  .site-header {
    position: relative;
  }
}

/* HERO VIDEO */

.hero-wrapper {
  width: 100%;
  max-width: 1800px; /* eller 95% om du vill ha lite luft */
  margin: 0 auto 2rem;
}

.hero-video {
border-radius: 16px;
width: 100%;
 position: relative;
  margin: 1rem 0 2rem;
 /* border-radius: var(--radius);*/
  overflow: hidden;
  height: 450px; /* styr höjden */ 
  margin: 0 0 2rem; /* ingen luft ovanför */ 
  background: none; /* ingen gradient bakom */
  box-shadow: var(--shadow-soft);
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.hero-video::before {
  z-index: 0;
}


.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  max-width: 60%;
}

.hero-overlay h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.hero-overlay p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}
@media (min-width: 1200px) {
  .hero-video {
    height: 450px;
  }
}

@media (max-width: 900px) {
  .hero-overlay,
  .video-overlay {
    max-width: 100%;
    padding: 1.5rem;
  }

  .hero-overlay h1,
  .video-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p,
  .video-overlay p {
    font-size: 1rem;
  }
}


/* BUTTON */
.btn-primary {
  display: inline-block;
  background: var(--blue-main);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(42, 111, 176, 0.35);
  transition: 0.15s ease-out;
}

.btn-primary:hover {
  background: #1f5688;
  transform: translateY(-1px);
}

/* INTRO SECTION */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.intro-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
}


.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

.intro-text {
  padding: 1.8rem 1.6rem;
}

.intro-text h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
@media (max-width: 900px) {
  .intro-section {
    grid-template-columns: 1fr;
  }

  .intro-image img {
    height: auto;
  }
}
.intro-section > div {
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
  border-radius: var(--radius);
}


/* SERVICES */
.services-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 24, 61, 0.75),
    rgba(42, 111, 176, 0.65)
  );
}

.service-card .overlay {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}



@media (max-width: 1200px) {
  .services-section {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .services-section {
    grid-template-columns: 1fr;
  }
}


/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: linear-gradient(
    to bottom,
    rgba(42,111,176,0.06),
    rgba(42,111,176,0.14)
  );
border-bottom-left-radius: 18px; border-bottom-right-radius: 18px;
}

.footer-social {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer-social .social-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-main);
  opacity: 0.8;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-social .social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-social .social-icon:hover {
  opacity: 1;
  transform: scale(1.12);
}




/* ========================= */
/*   HERO VIDEO – REN VERSION */
/* ========================= */

/* Text + knappar ovanpå videon */
.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2.5rem;
  z-index: 2;
  color: #fff;

  display: flex;
  justify-content: flex-start;   /* ← viktig */
  align-items: flex-end;
  gap: 3rem;                      /* ← avstånd mellan text och knappar */
  text-align: left;
}


/* Vänster textblock */
.video-text { 
max-width: 60%; 
text-align: left; }

.video-text h1 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.video-text h2 {
  margin: 0.3rem 0 0.5rem;
  font-size: 1.6rem;
  font-weight: 400;
  opacity: 0.9;
}

.video-text p {
  margin: 0.3rem 0 0;
  font-size: 1.1rem;
  opacity: 0.85;
}

/* Knappar till höger */
.video-buttons {
  display: flex;
  flex-direction: row; /* knapparna bredvid varandra */
  gap: 0.6rem;
}

.btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: var(--blue-main);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: 0.15s ease-out;
}

.btn-secondary:hover {
  background: #e8f3ff;
}

/* Gradient bakom texten */
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

/* ========================= */
/*       MOBILANPASSNING     */
/* ========================= */

@media (max-width: 900px) {
  .video-overlay {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .video-text {
    max-width: 100%;
  }

  .video-text h1 {
    font-size: 1.9rem;
  }

  .video-text h2 {
    font-size: 1.3rem;
  }

  .video-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}
.ikom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (max-width: 900px) {
  .ikom-grid {
    grid-template-columns: 1fr;
  }
}

.ikom-card {
  position: relative;
  height: 260px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0,0,0,0.10);
  /* Lägg till detta */ 
   /*border: 3px solid var(--blue-main); mörk blå */
/* border: 2px solid rgba(42,111,176,0.6);*/  


}


.ikom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.6rem 1.2rem;
  color: #fff;
  z-index: 2;

  background: rgba(0,0,0,0.4); /* jämn mörk botten */
}
.ikom-overlay h3 {
  margin: 0 0 0.2rem; /* mindre avstånd */
}

.ikom-overlay p {
  margin: 0; /* ingen extra luft */
}
.ikom-card-wrapper {
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.blue-line {
  width: 220px; /* längre linje */
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    rgba(42,111,176,0.2),
    var(--blue-main),
    rgba(42,111,176,0.2)
  );
  margin: 0.8rem 0 1.2rem;
}


/*======================REF==========*/
.ref-carousel {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
  position: relative;
  mask-image: linear-gradient(to right,
    rgba(42,111,176,0),      /* helt transparent blå */
    rgba(42,111,176,0.8) 15%, /* tonad blå fade in */
    rgba(42,111,176,0.8) 85%, /* tonad blå fade ut */
    rgba(42,111,176,0)        /* helt transparent blå */
  );
}


.ref-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 25s linear infinite;
  will-change: transform;
}

.ref-box {
  min-width: 260px;
  min-height: 130px;
  background: linear-gradient(
    135deg,
    rgba(42,111,176,0.10),
    rgba(255,255,255,1) 70%
  );
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 
    0 8px 18px rgba(0,0,0,0.08),
    inset 0 0 12px rgba(42,111,176,0.12);
  border: 2px solid rgba(42,111,176,0.25);
}

/* Paus vid hover */
.ref-carousel:hover .ref-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

