/* =========================================================
   GLOBAL RESET
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   TYPOGRAPHY & BASE
   Academic / Pharmaceutical tone
   ========================================================= */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f6f8fb;
  color: #0f172a;
  line-height: 1.75;
  font-size: 16px;
}

/* =========================================================
   LINKS
   ========================================================= */
a {
  color: #1d4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================================================
   HEADER (SAFE, NEUTRAL)
   ========================================================= */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo – large but restrained */
.site-logo {
  height: 160px;
}

/* Navigation */
.main-nav a {
  margin-left: 28px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.main-nav a:hover {
  color: #1d4ed8;
}

/* =========================================================
   HERO SECTIONS
   ========================================================= */
.hero {
  background: none;
  padding: 0;
}

.hero.small {
  padding: 64px 32px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
}

.hero p {
  margin-top: 20px;
  font-size: 18px;
  max-width: 700px;
  color: #c7d2fe;
}

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 32px;
}

.section.light {
  background-color: #ffffff;
}

.section h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 18px;
}

.section p {
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 18px;
}

/* =========================================================
   CARD BLOCKS (USED FOR MODEL / PRINCIPLES)
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.card p {
  font-size: 15px;
  color: #374151;
}

/* =========================================================
   TIMELINE / PROGRESS
   ========================================================= */
.timeline {
  margin-top: 32px;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.step span {
  background-color: #1d4ed8;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step p {
  font-size: 15px;
  color: #1f2937;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background-color: #0f172a;
  color: #cbd5f5;
  text-align: center;
  padding: 48px 20px;
  font-size: 13px;
}

/* =========================================================
   RESPONSIVE (SAFE)
   ========================================================= */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav a {
    margin-left: 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 56px 24px;
  }
}
/* ===== IMAGE SECTIONS ===== */
.image-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.image-section img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.image-section.reverse {
  direction: rtl;
}

.image-section.reverse > * {
  direction: ltr;
}

/* ===== VISUAL GRID ===== */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.visual-item img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}

.visual-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
/* ===== HERO SPLIT LAYOUT (OVERRIDE) ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: flex-start; /* viktig: inte center */
}

/* TVINGAR loggan att bete sig rätt */
.hero-split .hero-logo {
  width: 100% !important;
  max-width: 240px !important;   /* mindre, mer corporate */
  margin-left: auto !important;
  margin-top: -60px !important;  /* flyttar upp loggan tydligt */
  background: transparent !important;
  box-shadow: none !important;
  display: block !important;
}

/* Flyttar upp hela hero-innehållet något */
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 0 !important;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-split .hero-logo {
    margin: 24px auto 0 !important;
  }
}
/* ===== HERO WITH IMAGE BACKGROUND ===== */
.hero-image {
  position: relative;
  min-height: 520px;
  background-image: url("/assets/img/hero-production.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

/* Mörk overlay för läsbar text */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 25, 55, 0.92) 0%,
    rgba(5, 25, 55, 0.75) 45%,
    rgba(5, 25, 55, 0.35) 100%
  );
  z-index: 1;
}

.hero-image .hero-inner {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.hero-image h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  max-width: 640px;
  margin-bottom: 24px;
}

.hero-image p {
  font-size: 1.15rem;
  max-width: 620px;
  opacity: 0.95;
}

/* Logga i hero */
.hero-logo {
  max-width: 280px;
  margin-left: auto;
  margin-top: -30px;
}

/* Mobil */
@media (max-width: 900px) {
  .hero-image .hero-inner {
    padding: 80px 20px;
  }

  .hero-logo {
    margin: 40px auto 0;
    display: block;
  }
}

/* ===== HERO – IMAGE BACKGROUND (ALLA SIDOR) ===== */
.hero {
  position: relative;
  min-height: 520px;
  background-image: url("/assets/img/hero-production.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

/* Overlay för läsbar text */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 25, 55, 0.92) 0%,
    rgba(5, 25, 55, 0.75) 45%,
    rgba(5, 25, 55, 0.35) 100%
  );
  z-index: 1;
}

/* Innehåll ovanpå overlay */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

/* Mindre hero-varianter (About, Capabilities, Contact) */
.hero.small .hero-inner {
  padding: 90px 24px 60px;
}
.hero-cta {
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  margin: 8px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.btn-primary {
  background-color: #0a2c4f;
  color: #ffffff;
}

.btn-secondary {
  border: 2px solid #0a2c4f;
  color: #0a2c4f;
}
/* HERO CTA STACKED BUTTONS */
.hero-cta {
  margin-top: 35px;
  display: flex;
  flex-direction: column;   /* Gör knapparna vertikala */
  align-items: center;      /* Centrerar dem */
  gap: 16px;                /* Avstånd mellan knappar */
}

.btn {
  display: inline-block;
  padding: 16px 34px;
  min-width: 260px;         /* Samma bredd */
  text-align: center;
  font-weight: 700;         /* TJOCKARE TEXT */
  font-size: 16px;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-radius: 6px;
}

/* Primary CTA */
.btn-primary {
  background-color: #0a2c4f;
  color: #ffffff;
}

/* Secondary CTA */
.btn-secondary {
  border: 2px solid #0a2c4f;
  color: #0a2c4f;
  background: transparent;
}
/* =========================================================
   HERO CTA – FINAL OVERRIDE (STRATO SAFE)
   ========================================================= */

.hero .hero-cta {
  margin-top: 40px !important;
  display: flex !important;
  flex-direction: column !important;   /* Knappar under varandra */
  align-items: flex-start !important;  /* Vänsterlinjerad = mer corporate */
  gap: 18px !important;
}

/* CTA buttons – force styling */
.hero .hero-cta .btn {
  display: block !important;
  min-width: 280px !important;
  padding: 18px 36px !important;
  font-weight: 800 !important;          /* TJOCK TEXT */
  font-size: 16px !important;
  letter-spacing: 0.6px !important;
  text-align: center !important;
  border-radius: 6px !important;
  text-decoration: none !important;
}

/* Primary */
.hero .hero-cta .btn-primary {
  background-color: #0a2c4f !important;
  color: #ffffff !important;
  border: none !important;
}

/* Secondary */
.hero .hero-cta .btn-secondary {
  background: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

/* Hover – disable underline globally for CTA */
.hero .hero-cta a:hover {
  text-decoration: none !important;
  opacity: 0.92;
}
/* =========================
   GLOBAL MOBILE SAFETY
   ========================= */
img {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* =========================
   HEADER & NAV MOBILE
   ========================= */
@media (max-width: 768px) {

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .main-nav a {
    font-size: 14px;
  }
}

/* =========================
   HERO MOBILE
   ========================= */
@media (max-width: 768px) {

  .hero-inner h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .hero-inner p {
    font-size: 16px;
  }
}

/* =========================
   IMAGE SECTIONS MOBILE
   ========================= */
@media (max-width: 768px) {

  .image-section,
  .image-section.reverse {
    flex-direction: column;
    gap: 24px;
  }

  .image-section img {
    width: 100%;
  }
}

/* =========================
   VISUAL GRID MOBILE
   ========================= */
@media (max-width: 768px) {

  .visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================
   SECTION PADDING MOBILE
   ========================= */
@media (max-width: 768px) {

  .section {
    padding: 40px 16px;
  }
}
