/* ===========================
   Liragen - Global Styles
   Font: DM Sans
   Primary: #003AA5
   Secondary: #000815
   Tertiary: #569290
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

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

:root {
  --color-primary: #003AA5;
  --color-secondary: #000815;
  --color-tertiary: #569290;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-contrast: #0C0C0C;
  --color-btn-hover: #3c76a5;
  --color-btn-text: #f2f2f2;
  --color-link: #f9f9f9;
  --color-link-alt: #c5c7ff;
  --color-link-accent: #0079a6;
  --font-family: 'DM Sans', sans-serif;
  --font-small: clamp(0.6rem, 0.6rem + 0.522vw, 0.9rem);
  --font-medium: 1.05rem;
  --font-large: clamp(1.39rem, 1.39rem + 0.8vw, 1.85rem);
  --font-xlarge: clamp(1.563rem, 1.563rem + 1.847vw, 2.625rem);
  --gap: 1.2rem;
  --padding-x: clamp(1.5rem, 6.5vw, 6.5rem);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-medium);
  color: var(--color-contrast);
  line-height: 1.6;
  background: var(--color-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

/* ===========================
   Header / Navigation
   =========================== */
.site-header {
  background: var(--color-secondary);
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-img {
  height: 90px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 30px;
  font-weight: 700;
  color: #c5c7ff;
}

.logo-tagline {
  font-size: 16px;
  color: var(--color-white);
  font-weight: 400;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-white);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link:hover {
  color: var(--color-link-alt);
}

.nav-link.active {
  color: var(--color-link-alt);
}

/* Dropdown arrow */
.nav-link .arrow {
  font-size: 0.6rem;
  transition: transform 0.3s;
}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a2e;
  min-width: 240px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  color: #ccc;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0.5rem var(--padding-x) 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 21, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}

.hero-home h1 {
  color: #008CC9;
}

.hero p {
  font-size: var(--font-medium);
  color: var(--color-link);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===========================
   Section Defaults
   =========================== */
.section {
  padding: 4rem var(--padding-x);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: var(--font-large);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--font-medium);
  color: #555;
  margin-bottom: 2rem;
  max-width: 700px;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   Why Liragen Section
   =========================== */
.why-section {
  background: var(--color-white);
  padding: 4rem var(--padding-x);
}

.why-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.why-inner h2 {
  font-size: var(--font-large);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 2.5rem;
}

.why-items {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.why-item img {
  width: 28px;
  height: 28px;
  margin-top: 4px;
  flex-shrink: 0;
}

.why-item div h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.3rem;
}

.why-item div p {
  font-size: var(--font-medium);
  color: #444;
}

/* ===========================
   Services Cards
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.service-card {
  background: var(--color-white);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0,58,165,0.12);
  transform: translateY(-4px);
}

.service-card img {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* ===========================
   About / Content Sections
   =========================== */
.content-section {
  padding: 4rem var(--padding-x);
}

.content-inner {
  max-width: 900px;
  margin: 0 auto;
}

.content-inner h2 {
  font-size: var(--font-large);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.content-inner h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.content-inner p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #333;
}

/* Features list */
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.4rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
}

/* ===========================
   Insights Section
   =========================== */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.insight-card {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.insight-card:hover {
  box-shadow: 0 8px 24px rgba(0,58,165,0.1);
}

.insight-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}

.insight-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.insight-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.2rem;
}

/* ===========================
   RNA / scRNA Content Pages
   =========================== */
.topic-section {
  padding: 3rem var(--padding-x);
}

.topic-inner {
  max-width: 900px;
  margin: 0 auto;
}

.topic-inner h2 {
  font-size: var(--font-large);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.topic-inner h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.topic-inner p {
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.7;
}

.topic-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.topic-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: #f7f9fc;
  border-radius: 10px;
}

.topic-item-content h3 {
  margin-top: 0;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-link);
  padding: 3rem var(--padding-x) 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  height: 36px;
  margin-bottom: 0.8rem;
}

.footer-brand .footer-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-brand .footer-tagline {
  font-size: 0.85rem;
  color: var(--color-tertiary);
  margin-bottom: 1rem;
}

.footer-brand .footer-address {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0.3rem;
}

.footer-brand a {
  color: var(--color-link-alt);
  font-size: 0.85rem;
}

.footer-brand a:hover {
  color: var(--color-white);
}

.footer-nav {
  display: flex;
  gap: 3rem;
  justify-content: flex-end;
}

.footer-nav-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.8rem;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav-col a {
  font-size: 0.85rem;
  color: #bbb;
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
  color: #777;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 782px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-secondary);
    box-shadow: -4px 0 16px rgba(0,0,0,0.3);
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .nav-link {
    padding: 0.75rem 0;
    width: 100%;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    display: none;
  }

  .nav-item.dropdown-open .dropdown {
    display: block;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .why-items {
    flex-direction: column;
    gap: 2rem;
  }

  .hero {
    min-height: 400px;
    padding: 3rem var(--padding-x);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}

/* Menu close button */
.menu-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-white);
}

@media (max-width: 782px) {
  .menu-close {
    display: block;
  }
}

/* Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

/* ---- Insights report catalog (pages/insights.html) ---- */
.report-catalog {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--padding-x);
  background: #f6f8fc;
  border-top: 1px solid #e2e6ef;
}

.report-catalog-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.report-catalog-title {
  font-size: var(--font-xlarge);
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.report-catalog-sub {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
  color: #3a4256;
  font-size: var(--font-medium);
}

.report-catalog-sub a {
  color: var(--color-link-accent);
  text-decoration: underline;
}

.report-catalog-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.report-group {
  background: var(--color-white);
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  padding: 1.4rem 1.5rem 1.6rem;
}

.report-group-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-secondary);
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--color-primary);
}

.report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.report-chip {
  display: inline-block;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: #eef2fb;
  border: 1px solid #d7deef;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.report-chip:hover,
.report-chip:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
