/* =========================
   DNA Profiler shared styles
   Extracted from demo.html
   ========================= */

:root {
  --brand-dark: #0a2a22;
  --brand-accent: #18d26e;
  --brand-muted: #eef4f2;
}

/* Base */
body {
  scroll-behavior: smooth;
  padding-top: 78px; /* keep in sync with fixed header height */
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
}

.meta {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Header */
header#header {
  background: rgba(0, 0, 0, 0.9);
  height: 80px;
}

header#header .logo {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 3px;
  padding-left: 10px;
  border-left: 4px solid var(--brand-accent);
}

header#header .logo a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* Navbar (desktop-first) */
#header .navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

#header .navbar li {
  position: relative;
  white-space: nowrap;
}

#header .navbar a {
  display: flex;
  align-items: center;

  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;

  color: #fff;
  padding: 10px 0 10px 30px;
  text-decoration: none;
}

#header .navbar a:hover,
#header .navbar .active,
#header .navbar li:hover > a {
  color: var(--brand-accent);
}

/* Dropdown (desktop hover) */
#header .navbar .dropdown > ul {
  position: absolute;
  left: 14px;
  top: calc(100% + 30px);

  min-width: 200px;
  background: #fff;
  box-shadow: 0 0 30px rgba(127, 137, 161, 0.25);
  border: 0;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

#header .navbar .dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
  top: 100%;
}

#header .navbar .dropdown ul a {
  color: #666666;
  padding: 10px 20px;
  text-transform: none;
}

#header .navbar .dropdown ul a:hover {
  color: var(--brand-accent);
}

/* Mobile toggle icon */
.mobile-nav-toggle {
  color: #fff;
  cursor: pointer;
}

/* Navbar (mobile) */
@media (max-width: 991px) {
  #header .navbar ul {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 0.25rem;
  }

  #header .navbar ul.show {
    display: flex !important;
  }

  #header .navbar a {
    color: #333;
    padding: 10px 16px;
  }

  #header .navbar a:hover,
  #header .navbar .active {
    color: var(--brand-accent);
  }

  #header .navbar .dropdown > ul {
    position: static;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  /* optional: supports your current “tap-to-open” idea if you add .show on the li */
  #header .navbar .dropdown.show > ul {
    display: block;
  }
}

/* Sections */
.hero {
  background: linear-gradient(180deg, var(--brand-muted), #fff);
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.hero h1 {
  font-weight: 800;
  color: var(--brand-dark);
}

.hero .lead {
  color: #334;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-title {
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

/* Buttons */
.btn-brand {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.btn-brand:hover {
  background: #083126;
  color: #fff;
}

.btn-accent {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

.btn-accent:hover {
  background: #18d36e;
  color: #fff;
}

/* Pills / micro-badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #dee2e6;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #495057;
  background: #fff;
}

/* Card / CTA hover */
.card-cta:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease;
}

/* Footer */
footer {
  border-top: 1px solid #eaeaea;
}
