/* ============== Design tokens ============== */
:root {
  /* Brand färger */
  --blue-100: #e9edf3;
  --blue-200: #d4ddea;
  --blue-300: #afc2d8;
  --blue-400: #879fc0;
  --blue-500: #5a7da8; /* logga base */
  --blue-600: #4e6e94;
  --blue-700: #405a78;
  --blue-800: #32465d;
  --blue-900: #223043;
  --trynew: #eef1f4;
  --cream-100: #fffdfa;
  --cream-300: #fef6e0;
  --white: #ffffff;

  /* Accent */
  --cta: #c6f000;
  /* --cta: #d0ff00; */
  --cta-hover: #9fe634;

  /* Background */
  --bg-base: var(--trynew);
  --bg-section: var(--trynew);
  --bg-card: var(--white);

  /* Text */
  --text-base: #223043;
  --text-muted: #606b8a;
  --text-invert: #ffffff;

  /* Border */
  --border-light: #e5e7eb;
  --border-base: #d2d6db;

  /* State */
  --state-primary: var(--blue-500);
  --state-primary-hover: var(--blue-600);
  --state-cta: var(--cta);
  --state-cta-hover: var(--cta-hover);

  /* Shadow levels */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.16);

  /* Type & spacing */
  --fs-base: 16px;
  --radius: 18px;
  --radius-lg: 22px;
  --pad: 20px;
  --header-h: 110px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease);
  --transition: 0.35s var(--ease);
}

/* Dark mode */
/* @media (prefers-color-scheme: dark) {
  :root {
    --bg-base: #1c1f24;
    --bg-section: #2a2d33;
    --bg-card: #25282e;
    --text-base: #f5f5f5;
    --text-muted: #b0b3b8;
    --border-base: #3a3d44;
  }
} */

/* ============== Base reset ============== */
* { box-sizing: border-box; }
body {
  min-height: 100%;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; min-height: 100%; }
body#index {
  margin: 0;
  font: var(--fs-base)/1.6 "Inter", -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-base);
  background: var(--blue-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body#career {
  margin: 0;
  font: var(--fs-base)/1.6 "Inter", -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-base);
  background: var(--blue-500);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--state-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 2px solid var(--state-primary);
  outline-offset: 2px;
}
iframe:focus-visible { outline: none; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
h1 {
  font-family: "Montserrat", -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

/* ============== Layout helpers ============== */
.container {
  width: min(100%, 1160px);
  margin-inline: auto;
  padding: 0 var(--pad);
}
.strip { padding: clamp(48px, 8vw, 96px) 0; }
.bg-white { background: var(--bg-card); }
.bg-cream { background: var(--bg-section); }
.bg-darkblue { background: var(--blue-900); }
.round-bottom { border-bottom-left-radius: 3rem; border-bottom-right-radius: 3rem; }
.round-top { border-top-left-radius: 3rem; border-top-right-radius: 3rem; }
/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--bg-card);
  color: var(--text-base);
  padding: 8px 12px;
  border: 1px solid var(--border-base);
  border-radius: 8px;
}

/* ============== Header / Nav ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--trynew);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.site-header.scrolled {
  background: var(--trynew);
  /* border-bottom-color: var(--blue-800); */
  transition: background var(--transition), border-color var(--transition);
}
.navbar {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; }
.logo-img { height: 103px; width: auto; }

/* Meny */
.main-nav { display: flex; justify-content: flex-end; width: 100%; }
.menu {
  display: flex; align-items: center; gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.menu a {
  position: relative;
  font-weight: 600;
  padding: 8px 4px;
  color: var(--blue-900);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--state-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.menu a:hover::after {
  transform: scaleX(1);
}

.menu a[aria-current="page"]::after {
  background: var(--state-cta-hover);
  transform: scaleX(1);
}
/* CTA-knapp i menyn */
.menu-cta { display: flex; align-items: center; margin-left: 12px; }
.menu .button.cta {
  padding: 16px 12px; line-height: 1;
  border: none;
  background: var(--state-cta); color: var(--blue-900);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  transition: background var(--transition-fast);
}
.menu .button.cta:hover { background: var(--state-cta-hover); }

/* Hamburger (mobil) */
.menu-toggle {
  background: none; border: none; color: var(--blue-600);
  font-size: 50px; cursor: pointer; display: none;
}

/* ============== Hero ============== */
.hero { padding: 6rem 1.5rem; }
.hero .container, .hero { max-width: 1200px; margin-inline: auto; }
.hero h1 {
  /* font-family: "Inter", system-ui, sans-serif; */
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300); /* justera nyans vid behov */
  margin: 0 0 1rem 0;
}

.hero h2 {
  font-family: "Montserrat", ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.12;
  margin: 0.25rem 0;
  color: #fff;
  max-width: 100vw;
}

.hero p {
  line-height: 1.65;
  max-width: 56ch;
  margin-top: 2.5rem;
  color: #e9edf3;
  margin-bottom: 20vh;
}
.hero .button {
  background: var(--state-cta);
  color: var(--blue-900);
  border-radius: 10px;
  padding: 14px 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 10vh;
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.hero .button:hover {
    background: var(--state-cta-hover);
  transform: translateY(-2px);
}
.button.cta .arrow {
  font-size: 1.2em;
  transition: transform var(--transition-fast);
}
.button.cta:hover .arrow {
  transform: translateX(4px); /* pilen flyttar sig lite åt höger vid hover */
}
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
  /* .hero-grid { grid-template-columns: 1fr; text-align: center; } */
  /* .hero-image img { margin-top: 20px; } */
  .hero {
    padding-top: 3rem;
  }
  .hero h1 {
    font-size: 0.8rem;
  }

  .hero h2 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
  }

  .hero p {
    margin-top: 1rem;
    margin-bottom: 1.8rem;
  }

  .hero .button {
  padding: 8px 24px;
}
}
section[id] { min-height: 200px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-base);
  background: var(--bg-card); color: var(--text-base);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}
.button:hover {
  transform: translateY(-2px);
  background: var(--blue-100);
}
.button.primary {
  background: var(--state-primary); color: var(--text-invert);
  border-color: var(--blue-700);
}
.button.primary:hover { background: var(--state-primary-hover); }

/* ============== Tjänster (cards) ============== */

#tjanster {
    background: linear-gradient(
    to bottom,
    var(--blue-900) 1%,
    #ffffff 1.7%
  );
}

#tjanster h2 {
  color: var(--text-base);
  text-align: center;
  font-size: 2.5rem;
}
.cards {
  display: grid;
  gap: 40px 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 40px 0;
}
.services-icons .card {
  background: none; border: none; box-shadow: none;
  text-align: center; padding: 0 10px;
}
.services-icons .icon {
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 20px;
}
.services-icons .icon svg {
  width: 50px; height: 50px; stroke-width: 1.8;
}
.services-icons h3 {
  margin: 0 0 12px;
  font-size: 18px; font-weight: 600;
  color: var(--text-base);
}
.services-icons p { margin: 0; color: var(--text-muted); }
@media (max-width: 768px) {
  #tjanster .hero {
    padding: 3rem 0;
  }
}
/* ============== Team ============== */

#personal h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-base);
}

.team-grid {
  display: grid; gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  margin-top: 40px;
}
.team-grid h2 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--text-base);
}
.team-member { text-align: center; 
  transition: transform var(--transition-fast), box-shadow var(--transition-fast); 
border-radius: 50px;
padding-bottom: 50px;}
.team-member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 200px; height: 200px;
  border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow); margin: 0 auto 16px;
}
.team-actions { display: flex; flex-direction: column; margin-top: 12px; }
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; justify-items: center; }
  .team-member {width: 100%;}
  #personal .hero {
    padding: 0;
  }
}

/* ============== Reco ============== */
.reviews {
  padding: 0rem 3rem 6rem 3rem;
  box-shadow:
    inset 0 8px 12px rgba(0,0,0,0.25),   /* mörk kant upptill */
    inset 0 -8px 12px rgba(0,0,0,0.25),  /* mörk kant nertill */
    inset 0 2px 0 rgba(255,255,255,0.15),/* ljus highlight upptill */
    inset 0 -2px 0 rgba(255,255,255,0.15); /* ljus highlight nertill */
}
.reviews h2 {
  text-align: center; color: #fff; font-size: 2.5rem;
}
.reviews iframe {
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.reco-container {
  width: min(100%, 1860px);
  margin-inline: auto; padding: 0 var(--pad);
}
@media (max-width: 768px) {
.reviews {
  padding: 0 0 5rem 0;
}
}
/* ============== Kontakt ============== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 40px; align-items: start; margin: 40px 0;
}
.contact-info p { margin: 0 0 12px; }
.contact-info a:hover { text-decoration: underline; }
.contact-info .socials img { width: auto; height: 35px; }
.contact-map iframe {
  width: 100%; height: 100%; min-height: 350px; border-radius: 12px;
}
.contact-actions { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-actions-mobile { display: none; margin-bottom: 20px; gap: 8px; }
.contact-actions-mobile .button { border: none; }

/* ============== Footer ============== */
.site-footer {
  padding: 1rem;
  color: white;
  min-height: 600px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.2rem; position: relative;
}
.trust-badges {
  display: flex; justify-content: center; align-items: center;
  gap: 6rem; flex-wrap: wrap; padding-top: 2rem;
}
.trust-badges img, #reco--badge-2025 img {
  max-height: 120px; max-width: 120px; object-fit: contain;
  opacity: 0.9; transition: opacity 0.2s ease;
}
.trust-badges img:hover, #reco--badge-2025 img:hover { opacity: 1; }
.site-footer small {
  font-size: 0.9rem; opacity: 0.85; align-self: flex-start;
}

/* ============== Mobil ============== */
@media (max-width: 768px) {
  .navbar { grid-template-columns: auto auto; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-card); border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    flex-direction: column; overflow: hidden;
    max-height: 0; opacity: 0;
    transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .menu-cta { margin-left: 0; }
  .main-nav.open { max-height: 500px; opacity: 1; }
  .menu { flex-direction: column; padding: 20px; gap: 16px; width: 100%; }
  .menu .button.cta { width: 100%; text-align: center;}
  .menu-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map iframe { min-height: 300px; }
    .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
    .footer-grid address {
    margin-top: 1rem;
  }
  .site-footer small { text-align: center; }
  .trust-badges { justify-content: center; flex-wrap: wrap; gap: 1.2rem; padding-top: 2rem; }
  #reco--badge-2025 { justify-content: center; }
}

/* ====== Karriär-sida ====== */
.career-hero {
  color: var(--text-invert);
}
.career-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;            /* vertikalt centrerat */
  padding: 2rem;
  gap: 4rem;
}
.career-hero-grid-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.career-hero-grid-left .button {
  max-width: 50%;
  background-color: var(--cta);
  color: var(--text-base);
  border: 1px solid var(--text-base);
}
.career-hero-grid-left .button:hover {
  background-color: var(--cta-hover);
}
.career-hero h1 {
  font-size: 3.5rem;
  text-align: center;
}

.career-section h2 {
  color: var(--text-base);
  text-align: center;
  font-size: 2.5rem;
}
.career-list {
  list-style: none; padding: 0;
  margin: 2rem auto; max-width: 60ch;
  font-weight: bold; text-align: left;
}
.career-list li {
  position: relative;
  padding-left: 2rem; margin-bottom: 1rem;
  color: var(--text-muted); font-size: 1.05rem;
}
.career-list li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--state-primary); font-weight: bold;
}
.career-hero p {
  padding-bottom: 3rem; margin: 0; max-width: 60ch;
  text-align: center;
}
.lia-container { text-align: center; max-width: 60ch;}
.career-hero-section {
  padding: 1rem 1rem 5rem 1rem;
}
@media (max-width: 768px) {
  .career-hero {
    padding-top: 1rem;
  }
  .career-hero h1 {
    font-size: 2.2rem;
  }
  .career-hero p {
    padding: 0 10px;
  }
  .career-hero-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .career-hero-grid-left .button {
  max-width: 100%;
  margin-top: .5rem;
}
.career-hero-section {
  padding: 0 0 3rem 0;
}
.career-hero-grid .hero-image {
  margin: 0 2rem;
}
}