/* ================================
   Bas / Reset / Layout
==================================*/
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)),
    url("Robot_background_Image 17 okt. 2025 11_44_05.png") center/cover no-repeat fixed;
  color: #fff;
  text-align: center;
  min-height: 100vh;
}

/* ================================
   Index: Hero-header
==================================*/
header {
  position: relative;
  background: url("Robot_background_Image 17 okt. 2025 11_44_05.png") center/cover no-repeat;
  height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Topplänk / CTA */
.topbar {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
  box-sizing: border-box;
  z-index: 2;
}
.contact-link {
  background: #d10000;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid #b00000;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.contact-link:hover {
  background: #ff3030;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

/* Logga i index-headern */
.header-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  z-index: 1;
}
.header-overlay img.logo {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.6));
}

/* ================================
   UNDERSIDOR: Header (ny version)
==================================*/
.inner-header {
  background: rgba(16,16,16,0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 2px solid #d10000;
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 10;
  height: auto;
}

/* Logga */

.inner-header .logo-link img {
  height: 60px;
  width: auto;
margin-left: 1.5rem; /* liten luft så den inte nuddar kanten helt */
  transition: transform 0.3s ease;
}
.inner-header .logo-link img:hover { transform: scale(1.05); }

/* HAMBURGER-MENY */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px; cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* NAV – mobil */
.inner-header nav {
  position: absolute;
  top: 100%;
  right: 2rem;
  background: rgba(0,0,0,0.9);
  border: 1px solid #d10000;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  min-width: 220px;
  text-align: right;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}
.inner-header nav a {
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  font-weight: bold;
  border-bottom: 1px solid #333;
  transition: background 0.3s ease;
}
.inner-header nav a:hover { background: #d10000; }
.inner-header nav a:last-child { border-bottom: none; }

.inner-header nav.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* NAV – desktop */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .inner-header nav {
    display: flex !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    flex-direction: row;
  }
  .inner-header nav a {
    border: none;
    margin-left: 1.2rem;
    padding: 0;
    font-size: 1rem;
  }
  .inner-header nav a:hover { background: none; color: #ff3030; }
}

/* ================================
   Main / Undersidor
==================================*/
.page-narrow {
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-title {
  margin-top: 0;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  letter-spacing: 0.5px;
}
.page-narrow p {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
}
.page-narrow ul {
  list-style-position: inside;
  display: inline-block;
  text-align: left;
  padding: 0;
  margin: 1.5rem 0;
}
nav a.active-page { color: #ff3030; }

.btn {
  background: #d10000;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
}
.btn:hover { background: #a80000; }

.footer--glass {
  background: rgba(17,17,17,0.8);
  color: #aaa;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

/* ================================
   Introtext (index)
==================================*/
.intro {
  max-width: 850px;
  margin: 3rem auto 1rem;
  padding: 0 1.5rem;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
}
.intro strong { color: #fff; }

/* ================================
   Index: Knappkort / Grid
==================================*/
.buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  row-gap: 3rem;
  padding: 5rem 8rem 5rem;
  justify-items: center;
}

/* Mörkgrå bakgrund bakom knappar (endast index) */
body.index-page .buttons {
  background: rgba(16,16,16,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 2px solid #d10000;
  border-bottom: 2px solid #d10000;
}

/* Kort */
.button-card-link {
  text-decoration: none;
  color: inherit;
  width: 430px;
  max-width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  border-radius: 15px;
}
.button-card {
  background-color: #1a1a1a;
  border: 2px solid #333;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}
.button-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(209, 0, 0, 0.6);
}
.button-card h3 {
  margin: 0;
  padding: 1rem 0;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
  text-align: center;
  background: none;
}
.button-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.button-card .card-content {
  padding: 1.2rem 1.2rem 0;
  background: none;
}
.button-card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.2rem;
  text-align: left;
}
.button-card button {
  width: 100%;
  background: #d10000;
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
  border-radius: 0 0 12px 12px;
}
.button-card button:hover { background: #a80000; }

body.index-page .intro strong {
  color: #fff;
}

/* ================================
   Bildstilar för undersidor
==================================*/
img.machine {
  width: 70%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(128, 0, 32, 0.6);
  margin-bottom: 2rem;
  transition: box-shadow 0.4s ease;
}
img.machine:hover {
  box-shadow: 0 0 55px rgba(179, 0, 45, 0.8);
}

.machine--small {
  width: 55%;
  max-width: 500px;
  box-shadow: 0 0 30px rgba(128, 0, 32, 0.5);
}
.machine--small:hover {
  box-shadow: 0 0 45px rgba(179, 0, 45, 0.75);
}

/* Två bilder sida vid sida (kap.html) */
.image-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  background: none;
  border: none;
  margin-bottom: 2rem;
}

.image-box {
  overflow: hidden;
  border-radius: 15px;
  border: 2px solid #333;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* Mindre beskärning med responsiv höjd */
.image-box--pair {
  height: clamp(220px, 36vw, 360px);
}

/* Fyll rutan och styr fokus */
.image-box img,
.image-box--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.image-box--tsune img { object-position: 50% 42%; }
.image-box--behringer img { object-position: 50% 50%; }
.image-box img:hover { transform: scale(1.05); }

/* ================================
   Responsivt
==================================*/
@media (max-width: 768px) {
  .image-pair {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
  img.machine { width: 100%; max-width: 100%; }

  .image-box--pair {
    height: clamp(180px, 45vw, 280px);
  }
}
