/* ================================================================
   ChaosBio — styles.css
   Clean, minimal design for a life sciences consulting website
   ================================================================ */

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

:root {
  --navy:       #1B3A6B;   /* primary brand color */
  --teal:       #1A8F8A;   /* accent */
  --teal-light: #E6F4F4;   /* teal tint for backgrounds */
  --ink:        #1A1A2E;   /* main text */
  --ink-light:  #5A6070;   /* secondary text */
  --border:     #E2E8F0;   /* dividers */
  --bg:         #FFFFFF;
  --bg-alt:     #F7F9FC;   /* alternate section background */

  --font:       'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);

  --max-w:      1100px;
  --section-py: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Layout Helpers ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-py);
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 17px;
  color: var(--ink-light);
  line-height: 1.75;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--teal);
}

.btn-primary:hover {
  background: #157A75;
  border-color: #157A75;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,143,138,0.3);
}

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

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--bg-alt);
}

.btn-large {
  padding: 16px 40px;
  font-size: 17px;
  border-radius: var(--radius-sm);
}

/* ─── Header / Nav ─────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--navy);
}

.btn-nav {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.btn-nav:hover {
  background: #152E55 !important;
  transform: translateY(-1px);
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding-block: 100px 80px;
  background: linear-gradient(160deg, #EEF3FA 0%, #FFFFFF 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-light);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Badge visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  position: relative;
}

.badge-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0%, var(--navy) 60%, var(--teal-light) 100%);
  padding: 6px;
  box-shadow: var(--shadow-md);
}

.badge-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.badge-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.badge-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-light);
  line-height: 1.4;
  margin-top: 4px;
}

/* ─── About ────────────────────────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-light);
}

.about-photo-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}

.placeholder-note {
  font-size: 13px;
  color: var(--ink-light);
}

.about-content > p {
  font-size: 16.5px;
  color: var(--ink-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-content > p:last-child {
  margin-bottom: 0;
}

.about-content .section-title {
  margin-bottom: 24px;
}

/* ─── Services ─────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: box-shadow 0.25s, transform 0.25s;
}

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

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 14px;
  color: var(--ink-light);
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ─── Why ChaosBio ─────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}

.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  align-items: start;
}

.why-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  padding-top: 5px;
}

.why-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  grid-column: 2;
}

.why-item p {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.75;
  grid-column: 2;
}

/* ─── Contact ──────────────────────────────────────────────────── */
.contact-inner {
  text-align: center;
}

.contact-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-light);
}

.contact-note a {
  color: var(--teal);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-note a:hover {
  color: var(--navy);
}

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-light);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding-block: 10px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 16px;
  }

  .nav-links a {
    font-size: 15px;
  }

  .btn-nav {
    width: 100%;
    display: block;
    text-align: center;
  }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .badge-ring {
    width: 140px;
    height: 140px;
  }

  .badge-number {
    font-size: 34px;
  }

  /* About */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap {
    max-width: 240px;
    margin-inline: auto;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-content .section-eyebrow {
    text-align: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  /* Why */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-py: 56px;
  }

  .hero {
    padding-block: 72px 56px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .why-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .why-number {
    font-size: 12px;
  }

  .why-item h3,
  .why-item p {
    grid-column: 1;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
