@charset "utf-8";
/* CSS Document */
:root {
  --bg-light: #ffffff;
  --blue-light: #e8f3ff;
  --blue-main: #2a6fb0; /* IKOM-blå */
  --accent: #f2b66d; /* varm brytfärg */
  --text-main: #2a3a4a;
  --text-muted: #6b7280;
  --blue-soft: #3b7fbf;

  --radius: 10px;
 --shadow-soft: 0 10px 24px rgba(0,0,0,0.04);

}

/* 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;
}
.logo-link {
  display: inline-block; /* eller block om du vill */
  text-decoration: none!important;
  color: inherit;
}



/* HEADER FÖR UNDERSIDOR */
.sub-header {
  background: linear-gradient(
    to right,
    rgba(42,111,176,0.15),
    rgba(255,255,255,1)
  );
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(42,111,176,0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sub-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sub-logo {
  height: 48px;
}

.sub-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--blue-main);
  letter-spacing: 0.5px;
}

/* UNDERSIDA LAYOUT */
.subpage-content {
  margin-top: 2rem;
}

.subpage-heading {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--blue-main);
}

.subpage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.subpage-text {
  font-size: 1.1rem;
  line-height: 1.6;
}

.subpage-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* MOBILANPASSNING */
@media (max-width: 900px) {
  .subpage-layout {
    grid-template-columns: 1fr;
  }

  .sub-header-inner {
    flex-direction: column;
    text-align: center;
  }

  .sub-title {
    font-size: 1.1rem;
  }
}

/* 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;
  }
}


/* 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 */
/* ========================= */

/* Själva videobehållaren */
.hero-video {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 2rem;
  background: none;
  box-shadow: var(--shadow-soft);
}

/* Videon */
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1; /* videon ligger längst bak */
}

/* 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: 2; /* gradient ovanpå videon */
  pointer-events: none;
}

/* Text + knappar ovanpå videon */
.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2.5rem;
  z-index: 3; /* ← viktig: texten över gradienten */
  color: #fff;
display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 3rem;
  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;
  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;
}

/* ========================= */
/*       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-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);
 }


.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);
}
.ikom-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.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%);
  }
}
/* IKOM – GRID FÖR TRE BOXAR */
.ikom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.intro-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.2px;
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.intro-text p {
  font-size: 1.15rem;
  line-height: 1.65;
  letter-spacing: 0.1px;
}

/*********NY för boka boxen med knappar************/
.ikom-buttons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.ikom-btn {
  background: rgba(0,0,0,0.45); /* mörk bakgrund */
  color: #ffffff;               /* vit text */
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: 0.15s ease-out;
  display: inline-block;
}

.ikom-btn:hover {
  background: rgba(0,0,0,0.65);
  transform: translateY(-2px);
}

/*Slut*/
@media (max-width: 900px) {
  .ikom-grid {
    grid-template-columns: 1fr; /* en kolumn i mobilen */
  }
}
/****Fix overlay i box*****/
.ikom-overlay {
  min-height: 80px; /* justera höjden här */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ikom-overlay h3 {
  margin-bottom: 0.3rem;
}

.ikom-overlay p {
  margin-bottom: 0.4rem;
}

/******/
/*FOT****/
.site-footer {
  background: #f5faff;
  padding: 3rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid #d0e0f5;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  margin-bottom: 0.5rem;
  color: #003366;
  font-size: 1.1rem;
}

.footer-col p {
  margin: 0.2rem 0;
  color: #003366;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.social-icon svg {
  width: 28px;
  height: 28px;
  fill: #003366;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover svg {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: #003366;
  font-size: 0.9rem;
}

/* Mobil */
@media (max-width: 800px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-columns {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
