:root {
  /* Corporate Palette based on the logo (Dark Blue) */
  --primary: #001f5f; /* Deep Navy from logo */
  --primary-light: #2d5fa8; /* Lighter accent blue */
  --text-main: #1f2a2e;
  --text-light: #5d6d74;
  --bg-body: #ffffff;
  --bg-light: #f4f6fa;
  --bg-accent: #eef2f8;
  --white: #ffffff;
  
  /* UI Elements */
  --border-radius: 8px; /* More professional, less rounded than before */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 31, 95, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 31, 95, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  width: min(60vw, 560px);
  height: min(60vw, 560px);
  left: 50%;
  top: 50%;
  background: url("Bilder/Logo.PNG") no-repeat center / contain;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
}

body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Merriweather", serif;
  color: var(--primary);
  margin-top: 0;
  line-height: 1.3;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* --- Header & Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth slide effect */
}

/* Class added by JS to hide header */
header.hide {
  transform: translateY(-100%);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 100px; /* Fixed small height for the white bar */
  position: relative;
  overflow: visible; /* Allow logo to hang out */
}

/* Link wrapper - acts as the spacer in the flex flow */
.brand {
  position: relative; /* Restored to flow */
  display: block;
  width: 320px; /* Slightly wider spacer for the even larger logo */
  height: 100%;
}

/* Logo Sizing - hanging out of the wrapper */
.nav-logo {
  height: 700px; /* Increased to 600px */
  width: auto;
  display: block;
  object-fit: contain;
  
  /* Absolute positioning relative to .brand */
  position: absolute;
  top: 50%;
  left: -120px; /* Adjusted left offset for the bigger size */
  transform: translateY(-50%); /* Center vertically */
  z-index: 101;
  pointer-events: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 8px 0;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* --- Hero Section --- */
.hero {
  padding: 100px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-light);
  margin-bottom: 16px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--primary);
  margin-bottom: 24px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 540px;
}

.cta-row {
  display: flex;
  gap: 16px;
}

.button {
  display: inline-flex;
  padding: 14px 28px;
  border-radius: 6px; /* slightly squared */
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.button.primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.button.primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:not(.primary) {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.button:not(.primary):hover {
  background-color: var(--bg-light);
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section.light {
  background-color: var(--bg-light);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 31, 95, 0.1);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 16px;
}

.card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-light);
}

.card p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
  flex-grow: 1;
}

.pitch-cta {
  margin: 32px 0 16px;
  color: var(--text-main);
  font-weight: 600;
}

.references {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.references-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  font-weight: 600;
  text-align: center;
}

.reference-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.reference-logo-link {
  display: inline-flex;
}

.reference-logo {
  height: 64px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* --- Lists --- */
.list-clean {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.list-clean li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.list-clean li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: bold;
}

/* --- Contact Form --- */
.contact-panel {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

form {
  display: grid;
  gap: 20px;
}

input, textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 31, 95, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* --- Footer --- */
footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0;
  margin-top: auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

.footer-credit {
  margin-top: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-credit small {
  font-size: 0.8rem;
}

.footer-credit a {
  color: var(--white);
  opacity: 0.9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-row a {
  color: var(--white);
  opacity: 0.8;
}

.footer-row a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .navbar {
    height: auto;
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
  }
  
  .hero, .split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero {
    padding-top: 40px;
    gap: 40px;
  }
  
  .eyebrow {
    margin: 0 auto 16px;
  }
  
  .lead {
    margin: 0 auto 32px;
  }
  
  .cta-row {
    justify-content: center;
  }
  
  .card h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .nav-logo {
    max-height: 60px;
  }
}
