/* Stone Lab replica styles – updated with official logos */

:root {
  --navy: #1a365d;
  --dark-navy: #0f2444;
  --red: #c41e3a;
  --light-red: #e63946;
  --text: #2d3748;
  --muted: #4a5568;
  --bg: #ffffff;
  --light-bg: #f7fafc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.university-brand {
  flex: 0 0 auto;
}

.uni-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.lab-brand {
  flex: 0 0 auto;
}

.lab-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  background: url("images/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0.5) 45%, rgba(255,255,255,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.hero-left {
  flex: 1;
  max-width: 560px;
}

.hero-logo {
  height: 100px;
  width: auto;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

.hero h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.05;
  margin-bottom: 0.25rem;
}

.hero-subtitle {
  font-size: 1.45rem;
  color: var(--navy);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.hero-right {
  flex: 0 0 420px;
}

.research-diagram {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  background: white;
}

/* Intro & Highlights */
.intro {
  padding: 4rem 0 2rem;
  background: white;
}

.intro h2,
.highlights h2 {
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.intro p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 800px;
}

.highlights {
  padding: 2rem 0 4rem;
  background: var(--light-bg);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.highlight-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.highlight-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.highlight-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Footer */
.site-footer {
  background: var(--dark-navy);
  color: #e2e8f0;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .uni-logo-img {
    height: 40px;
  }
  .lab-logo-img {
    height: 34px;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
    gap: 0.5rem;
    font-size: 0.9rem;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-right {
    flex: none;
    width: 100%;
    max-width: 380px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-left {
    max-width: 100%;
  }
  .hero-logo {
    height: 80px;
  }
}

/* Centered hero logo */
.hero-centered {
  min-height: 420px;
  justify-content: center;
}
.hero-centered::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0.35) 100%);
}
.hero-content-centered {
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.hero-logo-centered {
  height: auto;
  width: min(720px, 92vw);
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.18));
}
@media (max-width: 900px) {
  .hero-centered {
    min-height: 320px;
  }
  .hero-logo-centered {
    width: min(560px, 94vw);
    max-height: 180px;
  }
}
