/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.bg-gray { background-color: #f7f9fc; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #123e6b;
  color: #ffffff;
  border-color: #123e6b;
}

.btn-primary:hover { background-color: #0b2949; }

.btn-offert-transparency {
  background-color: rgba(192, 209, 229, 0.4);
  color: #123e6b;
}

.btn-offert-transparency:hover {
  background-color: rgba(192, 209, 229, 0.65);
}

.btn-accent {
  background-color: #00b050;
  color: #ffffff;
  font-weight: 600;
  padding: 14px 32px;
  font-size: 16px;
}

.btn-accent:hover { background-color: #008d40; }

/* LOGOS */
.logo-link {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 48px;
  width: auto;
  display: block;
}

.cta-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.cta-logo { height: 62px; }

/* NAVBAR */
.navbar {
  height: 104.65px;
  background-color: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(238, 241, 245, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.2s ease;
}

/* Solid white backdrop while the page is scrolled all the way to the top,
   so the navbar stays legible against the hero photo behind it. */
.navbar.at-top {
  background-color: #ffffff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

/* NAVBAR DESKTOP CONTENT */
.nav-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 21.6px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  text-decoration: none;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.nav-links a:hover { opacity: 0.7; }

.nav-arrow {
  width: 15px;
  height: 15px;
  stroke: #0f172a;
}

.nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.nav-buttons .btn {
  padding: 8px 24px;
}

/* HAMBURGER BUTTON (Hidden on Desktop) */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 101;
}

.hamburger-btn .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #123e6b;
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: center;
}

/* HERO SECTION */
.hero {
  min-height: calc(100vh - 104.65px);
  display: flex;
  align-items: center;
  background: url('images/hero-bg2.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 25px;
}

.hero-content p {
  max-width: 850px;
  margin: 0 auto 25px auto;
  font-size: 20px;
  color: #d0e1f9;
}

.hero-cta {
  margin-top: 10px;
  margin-bottom: 45px !important;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 620px;
  width: 100%;
  align-items: stretch;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 14px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  height: 100%;
  min-height: 75px;
  line-height: 1.25;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.hero-card-icon {
  width: 22px;
  height: 22px;
  stroke: #38bdf8;
  flex-shrink: 0;
}

/* SECTIONS COMMON */
.section { padding: 80px 0; }

.section h2 {
  font-size: 26px;
  color: #111827;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 15px;
  color: #6b7280;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

/* PROCESS GRID */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.process-item {
  position: relative;
}

.circle-icon {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #123e6b;
  background-color: #123e6b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
}

.circle-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.84; /* 30% thinner than the previous 2.625 */
}

/* Connector line from this circle to the next one */
.process-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23.25px; /* vertical centre of the 50px circle, minus half the 3.5px line */
  left: calc(50% + 25px);
  width: calc(100% - 30px); /* column width + 20px gap - 50px (two circle radii) */
  height: 3.5px;
  background-color: #123e6b;
}

.process-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-item p {
  font-size: 12px;
  color: #6b7280;
}

/* FEATURE HIGHLIGHT BOX */
.feature-box {
  background-color: #f3f6fa;
  border-radius: 8px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
  align-items: center;
}

.feature-text h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #111827;
}

.feature-text p {
  font-size: 14px;
  color: #4b5563;
}

.feature-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

/* GRIDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gap-large { gap: 40px 20px; }

/* SERVICES CARDS */
.card-white {
  background: #ffffff;
  border-radius: 8px;
  padding: 40px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
}

.card-white h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

/* WHY US ICON BLOCKS */
.round-placeholder {
  width: 50px;
  height: 50px;
  background-color: #e5e7eb;
  color: #6b7280;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
}

.round-placeholder svg {
  width: 24px;
  height: 24px;
}

.icon-block h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.icon-block p {
  font-size: 13px;
  color: #6b7280;
}

/* CONTACT FORM SECTION */
.start-project-section {
  background-color: #0d2e4d;
  color: #ffffff;
}

.start-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.start-project-grid h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.start-project-desc {
  color: #c0d1e5;
  font-size: 14px;
  margin-bottom: 25px;
}

.check-list { list-style: none; }

.check-list li {
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00b050;
  font-weight: bold;
}

.start-project-form-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-form .form-group {
  margin-bottom: 18px;
  text-align: left;
}

.project-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-form input,
.project-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s ease;
}

.project-form input:focus,
.project-form textarea:focus { border-color: #123e6b; }

.btn-submit {
  float: right;
  margin-top: 5px;
  padding: 10px 30px;
}

/* CTA SECTION */
.cta-desc {
  font-size: 18px;
  color: #374151;
  margin-bottom: 47px;
}

.cta-btn {
  font-size: 17px;
  padding: 14px 34px;
}

/* FOOTER */
.footer {
  background-color: #123e6b;
  color: #ffffff;
  padding: 80px 0 35px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto 90px auto;
}

.footer-col h4 {
  color: #6bbbe3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 16px; }

.footer-col a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-col a:hover { opacity: 0.8; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #e2e8f0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1050px) {
  .hamburger-btn { display: flex; }

  /* Mobile Slide-down Dropdown Styling */
  .nav-content {
    position: absolute;
    top: 104.65px;
    left: 0;
    right: 0;
    background-color: #123e6b;
    flex-direction: column;
    padding: 0 20px;
    gap: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
  }

  .navbar.nav-open .nav-content {
    max-height: 400px;
    opacity: 1;
    padding: 30px 20px;
  }

  .nav-links {
    position: static;
    transform: none;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .nav-links a {
    color: #ffffff;
    font-size: 16px;
  }

  .nav-arrow { stroke: #ffffff; }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-left: 0;
  }

  .nav-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 10px 24px;
  }

  .nav-buttons .btn-offert-transparency {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
  }

  .nav-buttons .btn-primary {
    background-color: #ffffff;
    color: #123e6b;
    border-color: #ffffff;
  }

  /* Hamburger Bars 'X' Animation */
  .navbar.nav-open .hamburger-btn .bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }

  .navbar.nav-open .hamburger-btn .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar.nav-open .hamburger-btn .bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }
}

@media (max-width: 900px) {
  /* Responsive Grid Adjustments */
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .grid-3, .start-project-grid, .feature-box, .footer-grid { grid-template-columns: 1fr; }

  .process-item:not(:last-child)::after { display: none; }

  .footer-grid { gap: 30px; margin-bottom: 50px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 600px) {
  .hero-cards { grid-template-columns: 1fr; }
}

/* LARGE SCREEN OVERRIDE (Width > 2000px) */
@media (min-width: 2001px) {
  /* Increase hero section container vertical padding by 15% */
  .hero {
    padding: 92px 0;
  }

  /* Increase hero main title by 15% (45px -> ~52px) */
  .hero-content h1 {
    font-size: 52px;
    margin-bottom: 29px;
  }

  /* Increase hero paragraph subtitle by 15% (20px -> 23px) */
  .hero-content p {
    max-width: 980px;
    font-size: 23px;
    margin-bottom: 29px;
  }

  /* Increase CTA button size by 15% */
  .btn-accent.hero-cta {
    font-size: 18.5px;
    padding: 16px 37px;
    margin-bottom: 52px !important;
  }

  /* Increase hero card grid container width and gap by 15% */
  .hero-cards {
    max-width: 713px;
    gap: 14px;
  }

  /* Increase individual hero cards and text size by 15% */
  .hero-card {
    padding: 16px 11.5px;
    font-size: 13.2px;
    min-height: 86px;
    border-radius: 11.5px;
  }

  /* Increase card SVG icons by 15% (22px -> ~25px) */
  .hero-card-icon {
    width: 25px;
    height: 25px;
  }
}

/* DROPDOWN WRAPPER: Anchors positioning relative to button */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* TJÄNSTER BUTTON (Matches 'Kompetens' and 'Om oss') */
.nav-dropdown-btn {
  background: transparent;
  border: none;
  color: #0f172a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-btn .nav-arrow {
  stroke: #0f172a;
  transition: stroke 0.2s ease;
}

/* DARK BLUE BACKGROUND ON HOVER OR CLICK/ACTIVE */
.nav-dropdown-btn:hover,
.nav-dropdown.active .nav-dropdown-btn {
  background-color: #123e6b;
  color: #ffffff;
}

.nav-dropdown-btn:hover .nav-arrow,
.nav-dropdown.active .nav-dropdown-btn .nav-arrow {
  stroke: #ffffff;
}

/* DROPDOWN MENU BOX (Centered & 10% Smaller: 368px -> 330px) */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 325px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

/* DISPLAY ONLY WHEN CLICKED (.active class) */
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* DROPDOWN ITEMS */
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14.4px; /* +20% from 12px */
  padding: 10px 16px;
  color: #1e293b;
  font-size: 11.9px; /* -15% from 14px */
  font-weight: 500;
  text-decoration: none;
  background: transparent;
}

/* FIXED ICON SIZES */
.dropdown-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  stroke: #123e6b;
  flex-shrink: 0;
}
/* MOBILE DROPDOWNS (Kompetenser / Applikationer / Om oss): placed last in the
   file on purpose so these overrides win the cascade over the unconditional
   desktop dropdown rules above, instead of being silently overridden by them. */
@media (max-width: 1050px) {
  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    color: #ffffff;
    font-size: 16px;
    padding: 10px 0;
  }

  .nav-dropdown-btn:hover,
  .nav-dropdown.active .nav-dropdown-btn {
    background-color: transparent;
    color: #ffffff;
  }

  .nav-dropdown-btn .nav-arrow,
  .nav-dropdown-btn:hover .nav-arrow,
  .nav-dropdown.active .nav-dropdown-btn .nav-arrow {
    stroke: #ffffff;
    transition: transform 0.25s ease;
  }

  .nav-dropdown.active .nav-dropdown-btn .nav-arrow {
    transform: rotate(180deg);
  }

  /* Slides down in place instead of floating over the page, 30% darker
     than the mobile menu's navy background (#123e6b -> #0d2b4b) */
  .nav-dropdown-menu {
    position: static;
    width: 100%;
    max-width: none;
    background-color: #0d2b4b;
    border: none;
    box-shadow: none;
    border-radius: 6px;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    max-height: 600px;
    padding: 6px 0;
    transform: none;
  }

  /* No icon box next to each link on mobile */
  .dropdown-icon {
    display: none !important;
  }

  .dropdown-item {
    color: #ffffff;
    padding: 10px 16px;
  }

  .dropdown-item:hover {
    opacity: 0.8;
  }
}
