/* -------------------------------------------------------------------------- */
/* CSS Variables & Theme (ZimtLab)
/* -------------------------------------------------------------------------- */
:root {
  --color-bg: #0B0B0B;          /* Midnight Black */
  --color-surface: #FFFFFF;     /* Pure White */
  --color-accent: #A0522D;      /* Zimt Copper */
  --color-accent-hover: #8a4525;
  --color-neutral: #F4F4F4;     /* Soft Grey */
  --color-text-dark: #1a1a1a;
  --color-text-light: #f4f4f4;
  --color-text-muted: #666666;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.1);
  
  --section-padding: 120px 0;
  --container-width: 1200px;
}

/* -------------------------------------------------------------------------- */
/* Reset & Base Styles
/* -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
  background-color: var(--color-surface);
  color: var(--color-text-dark);
}

.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

/* -------------------------------------------------------------------------- */
/* Buttons
/* -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-surface);
  border-color: var(--color-surface);
}

.btn-secondary:hover {
  background-color: var(--color-surface);
  color: var(--color-bg);
}

.btn-outline {
  border-color: var(--color-text-dark);
  color: var(--color-text-dark);
}

.btn-outline:hover {
  background-color: var(--color-text-dark);
  color: var(--color-surface);
}

/* -------------------------------------------------------------------------- */
/* Header Navigation
/* -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition-smooth);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-surface);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu ul {
  display: flex;
  gap: 2rem;
}

.nav-menu ul li a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-menu ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu-toggle span {
  width: 30px;
  height: 2px;
  background-color: var(--color-surface);
  transition: var(--transition-smooth);
}

/* -------------------------------------------------------------------------- */
/* Hero Section
/* -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(160, 82, 45, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Authority Bar (Marquee)
/* -------------------------------------------------------------------------- */
.authority-bar {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--color-bg);
  overflow: hidden;
}

.logos {
  overflow: hidden;
  padding: 0;
  background-color: transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.logos-slide {
  display: inline-flex;
  align-items: center;
  animation: slide 30s infinite linear;
}

.logos-slide img {
  height: 55px;
  margin: 0 40px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.logos-slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.logos:hover .logos-slide {
  animation-play-state: paused;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* -------------------------------------------------------------------------- */
/* Cards
/* -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  padding: 3rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.service-card {
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-neutral);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.service-card p {
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* ZimtLab Business (B2B)
/* -------------------------------------------------------------------------- */
.business-section {
  background-color: var(--color-surface);
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.full-width-card {
  grid-column: 1 / -1;
  text-align: center;
  background-color: var(--color-neutral);
  border: none;
}

/* -------------------------------------------------------------------------- */
/* ZimtLab Academy
/* -------------------------------------------------------------------------- */
.academy-section {
  background-color: var(--color-neutral);
  padding-bottom: 0;
}

.academy-split {
  display: flex;
  margin: 0 -2rem; /* Pull out of container padding */
}

.academy-vertical {
  flex: 1;
  padding: 6rem 4rem;
  background-color: var(--color-surface);
}

.academy-vertical.dark-vertical {
  background-color: var(--color-bg);
  color: var(--color-surface);
}

.academy-vertical.dark-vertical .btn-outline {
  border-color: var(--color-surface);
  color: var(--color-surface);
}

.academy-vertical.dark-vertical .btn-outline:hover {
  background-color: var(--color-surface);
  color: var(--color-bg);
}

.academy-content h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.academy-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  opacity: 0.9;
}

/* -------------------------------------------------------------------------- */
/* Featured Projects
/* -------------------------------------------------------------------------- */
.projects-section {
  background-color: var(--color-surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  padding: 0;
  box-shadow: none;
  overflow: hidden;
}

.project-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info {
  padding: 2rem 0;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.link-arrow {
  font-weight: 600;
  color: var(--color-text-dark);
  display: inline-flex;
  align-items: center;
}

.link-arrow:hover {
  color: var(--color-accent);
}

/* -------------------------------------------------------------------------- */
/* Newsletter
/* -------------------------------------------------------------------------- */
.newsletter-section {
  background-color: var(--color-neutral);
  text-align: center;
}

.newsletter-container {
  max-width: 700px;
}

.newsletter-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.newsletter-section p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 1px solid #ddd;
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--color-accent);
}

/* -------------------------------------------------------------------------- */
/* Contact & Footer
/* -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-bg);
  color: var(--color-surface);
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
  margin-bottom: 4rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  opacity: 0.8;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-surface);
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.08);
}

.footer-info .footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-info p {
  color: var(--color-text-light);
  opacity: 0.7;
  margin-bottom: 2rem;
}

.social-links,
.legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.social-links a:hover,
.legal-links a:hover {
  color: var(--color-accent);
}

.legal-links {
  font-size: 0.875rem;
  opacity: 0.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.5;
}

/* -------------------------------------------------------------------------- */
/* Animations & Utilities
/* -------------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Responsive Design (Mobile First Stacking)
/* -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .grid-2x2,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .academy-split {
    flex-direction: column;
    margin: 0;
  }
  
  .academy-vertical {
    padding: 4rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .logos-slide img {
    height: 40px;
    margin: 0 20px;
  }

  .hero-actions {
    flex-direction: column;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    flex-direction: column;
    padding: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
  }

  .nav-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .nav-menu .btn {
    width: 100%;
    margin-top: 1rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Cookie Banner
/* -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: rgba(11, 11, 11, 0.85); /* Midnight Black with opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-surface);
  line-height: 1.6;
  opacity: 0.95;
  flex: 1;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.btn-reject {
  background-color: #2a2a2a;
  color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-reject:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.cookie-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  margin-left: 0.5rem;
}

.cookie-link:hover {
  color: var(--color-surface);
}

@media (max-width: 900px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
    padding: 1rem;
    text-align: center;
  }
}

/* -------------------------------------------------------------------------- */
/* Legal Elements & Checkbox
/* -------------------------------------------------------------------------- */
.checkbox-group {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.75rem;
  margin-bottom: 2rem !important;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.35rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0 !important;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400 !important;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label a {
  color: var(--color-surface);
  text-decoration: underline;
}

.checkbox-group label a:hover {
  color: var(--color-accent);
}

button:disabled,
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.risk-disclaimer {
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
  opacity: 0.8;
}

.form-error {
  color: #ff8e8e;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 4px;
}


