/* ==========================================================================
   mbiomics – Clean Rebuild
   Fonts: Halyard Display (Typekit), DM Sans (Google)
   Colors: Orange #f16432, BG #f8f8f8, Dark #000, Text #797C7F, Light #9FA0A7
   ========================================================================== */

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

:root {
  --color-primary: #f16432;
  --color-bg: #f8f8f8;
  --color-dark: #000000;
  --color-text: rgb(28, 28, 28);
  --color-text-light: #9FA0A7;
  --color-content: #1C1C1C;
  --color-teal: #33cccc;
  --color-footer-bg: #0c0c0c;
  --color-footer-overlay: #1c1c1c;
  --color-section-alt: #eeeeee;
  --font-heading: "halyard-display", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --max-width: 1290px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
  color: var(--color-dark);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-header .logo {
  flex-shrink: 0;
  margin-left: 2rem;
}

.site-header .logo img {
  height: 35px;
  width: auto;
}

/* Desktop nav */
.main-nav {
  margin-right: 2rem;
}

.main-nav ul {
  display: flex;
  gap: 1.8rem;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-dark);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.main-nav a:hover {
  border-bottom-color: var(--color-primary);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-right: 2rem;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  position: absolute;
  left: 0;
  right: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle::before { top: 0; }
.menu-toggle span { top: 9px; }
.menu-toggle::after { bottom: 0; }

.menu-toggle.active::before { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span { opacity: 0; }
.menu-toggle.active::after { transform: translateY(-9px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  text-transform: none;
  color: #fff;
  letter-spacing: 0;
}

.mobile-menu a:hover { color: var(--color-primary); }

.mobile-menu .close-btn {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-poster {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.353em);
  font-weight: 500;
  color: #fff;
  line-height: 1em;
}

/* --- Sections --- */
.section {
  padding: 3rem 0;
}

#approach {
	padding: 3rem 0 0 0;
}

#approach-detail {
	padding: 1rem 0 3rem 0;
}

#approach-detail .section-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 28px;
}

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

.section--parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 3rem 0;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.765em;
  line-height: 1.021em;
  margin-bottom: 0.56em;
}

.section-title--primary { color: var(--color-primary); }
.section-title--dark { color: var(--color-content); }

.section-text {
  color: var(--color-text);
  line-height: 1.68em;
}

.section-text a {
  text-decoration: underline;
}

/* --- Approach --- */
.approach-intro {
  max-width: 100%;
}

.approach-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.approach-detail .section-title {
  font-size: 2.059em;
  line-height: 1.029em;
}

.approach-subtitle {
  font-size: 1.647em;
  line-height: 1.036em;
}

.science-img {
  margin-top: 2rem;
}

/* --- Team --- */
.team-heading {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 500;
  line-height: 0.6em;
  -webkit-text-stroke: 1px var(--color-primary);
  color: transparent;
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 0;
  padding-bottom: 20px;
  will-change: transform;
  transition: transform 0.1s linear;
}

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

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: filter 0.4s;
}

.team-card img:hover {
  filter: brightness(1.1);
}

.team-card-name {
  margin-top: 0.875rem;
  font-size: 1rem;
  line-height: 1em;
  color: var(--color-text);
}

.team-card-name strong { color: var(--color-dark); }

.team-card-linkedin {
  margin-top: 1rem;
}

.team-card-linkedin a {
  color: var(--color-text);
  font-size: 1rem;
  transition: color 0.2s;
}

.team-card-linkedin a:hover { color: var(--color-primary); }

/* LinkedIn icon inline SVG */
.icon-linkedin {
  display: inline-block;
  width: 16px;
  height: 16px;
}

/* --- News & Events --- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.news-grid h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.765em;
  line-height: 1.021em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.news-grid a {
  font-weight: 700;
  color: var(--color-dark);
}

.news-grid a:hover {
  color: var(--color-primary);
}

.news-grid p {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.event-item {
  margin-bottom: 1rem;
}

.event-item strong a {
  color: var(--color-dark);
}

.event-item strong a:hover {
  color: var(--color-primary);
}

/* --- Career & Contact --- */
.career-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.career-grid h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.765em;
  line-height: 1.021em;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.career-grid .section-text a {
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--color-dark);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-dark);
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--color-dark);
  color: #fff;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-footer-bg);
  color: #fff;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-footer-overlay);
  opacity: 0.5;
  pointer-events: none;
}

.footer-spacer {
  height: 50px;
}

.footer-main {
  position: relative;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-addresses strong {
  display: block;
  margin-bottom: 0.25rem;
}

.footer-contact {
  text-align: center;
  margin-top: 1.5rem;
}

.footer-contact a { color: #fff; text-decoration: underline; }
.footer-contact a:hover { color: var(--color-teal); }

.footer-links strong {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #fff;
  text-decoration: underline;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-links a:hover { color: var(--color-teal); }

.footer-social strong {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-social a {
  display: inline-block;
}

.footer-social img {
  width: 32px;
  height: 32px;
  transition: opacity 0.2s;
}

.footer-social a:hover img { opacity: 0.7; }

.footer-bottom {
  position: relative;
  padding: 0 0 3rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid #fff;
  margin: 2rem 0;
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Legal Pages (imprint, privacy) --- */
.legal-content {
  padding-top: 120px;
  padding-bottom: 4rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.765em;
  line-height: 1.021em;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.118em;
  font-weight: 500;
  margin-top: 1.75em;
  margin-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
  line-height: 1.68em;
}

.legal-content a {
  color: var(--color-teal);
  text-decoration: underline;
}

.legal-content ul, .legal-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--color-text);
}

.legal-content li {
  list-style: disc;
  margin-bottom: 0.25rem;
  line-height: 1.68em;
}

.legal-content ol li { list-style: decimal; }
.legal-content ol ol li { list-style: lower-alpha; }

.legal-content strong { color: var(--color-dark); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .section--parallax {
    background-attachment: scroll;
  }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 768px) {
  .about-grid,
  .approach-detail,
  .news-grid,
  .career-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .team-heading {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 2rem;
    padding-top: 1rem;
  }

  .section-title {
    font-size: 2em;
    line-height: 1.05em;
  }

  .news-grid h2,
  .career-grid h2 {
    font-size: 2em;
  }

  .footer-addresses {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    text-align: left;
  }

  .section {
    padding: 2.5rem 0;
  }

  .footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .site-header .logo {
    margin-left: 0;
  }

  .menu-toggle {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .footer-right {
    grid-template-columns: 1fr;
  }
}
