/* ==========================================================================
   BioPoints Technologies — Design Tokens & Base Styles
   Brand system: approved logo package — navy serif B + gold radial hub.
   Palette and type locked to web/biopoints-brand.css from the brand package.
   ========================================================================== */

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

:root {
  /* Color tokens — locked to approved brand package */
  --color-primary: #0F2D52;        /* BioPoints Navy */
  --color-primary-light: #1B4776;
  --color-secondary: #3E5876;
  --color-accent: #C89B3C;         /* BioPoints Gold — connection/highlight color */
  --color-accent-dark: #A47D28;
  --color-gold: #C89B3C;
  --color-gold-dark: #A47D28;
  --color-background: #F2F1EE;     /* BioPoints Light Grey */
  --color-surface: #FFFFFF;
  --color-foreground: #0F2D52;
  --color-muted: #5C6B7E;
  --color-muted-bg: #E8E6E0;
  --color-border: #DEDBD3;
  --color-destructive: #C0392B;
  --color-on-primary: #FFFFFF;

  /* Typography — Playfair Display (editorial display) + Montserrat (UI/body) */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-heading: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 45, 82, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 45, 82, 0.10);
  --shadow-lg: 0 20px 48px rgba(15, 45, 82, 0.16);
  --transition: 200ms ease;
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0A1830;
    --color-surface: #0F2242;
    --color-foreground: #F2F1EE;
    --color-muted: #A9B7C8;
    --color-muted-bg: #142E54;
    --color-border: #234269;
    --color-on-primary: #FFFFFF;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0 0 var(--space-4); color: var(--color-foreground); letter-spacing: -0.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
h3, h4 { font-family: var(--font-heading); font-weight: 600; }
p { margin: 0 0 var(--space-4); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.hero :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible,
.page-header :focus-visible {
  outline-color: var(--color-gold);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-8); }
.section--muted { background: var(--color-muted-bg); }
.section--dark {
  background: var(--color-primary);
  color: #E2E8F0;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #FFFFFF; }
.section--dark p { color: #CBD5E1; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-7); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}
.hero .eyebrow, .page-header .eyebrow, .section--dark .eyebrow { color: var(--color-gold); }

.section-head { max-width: 640px; margin-bottom: var(--space-7); }
.section-head--center { max-width: 680px; margin-inline: auto; text-align: center; }
.lede { font-size: 1.125rem; color: var(--color-muted); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-light); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--color-gold); color: var(--color-primary); }
.btn-gold:hover { background: var(--color-gold-dark); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-foreground); }
.btn-outline:hover { border-color: var(--color-gold); color: var(--color-primary); background: rgba(200,155,60,0.08); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 250ms ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08); }
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(11, 18, 32, 0.85); }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-foreground);
}
.brand-mark { flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
.site-footer .footer-logo { width: min(220px, 55vw); height: auto; object-fit: contain; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links a {
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-2) 0;
  position: relative;
}
@media (prefers-color-scheme: dark) { .nav-links a { color: #CBD5E1; } }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-foreground); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
    gap: var(--space-4);
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-cta .btn-outline { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(3,105,161,0.35), transparent 60%),
              linear-gradient(180deg, var(--color-primary) 0%, #0B1524 100%);
  color: #fff;
  padding-block: var(--space-9) var(--space-8);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); color: #fff; }
.hero p.lede { color: #CBD5E1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }
.hero-stats {
  display: flex;
  gap: var(--space-7);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-gold);
}
.hero-stat span { font-size: 0.85rem; color: #94A3B8; }

.hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(6px);
}
.hero-panel-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(201,162,74,0.15);
  color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-panel-row h4 { color: #fff; margin-bottom: var(--space-1); font-size: 1rem; }
.hero-panel-row p { color: #94A3B8; margin: 0; font-size: 0.9rem; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-muted-bg);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
  transition: transform 300ms var(--ease-pop), background 300ms ease, color 300ms ease;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-4deg); background: var(--color-primary); color: var(--color-gold); }
.card h3 { font-size: 1.15rem; margin-bottom: var(--space-3); }
.card p { color: var(--color-muted); margin: 0; }
.card-list { margin-top: var(--space-4); }
.card-list li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  color: var(--color-secondary);
  font-size: 0.92rem;
  padding-block: var(--space-1);
}
.card-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--color-primary); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-muted-bg);
  color: var(--color-secondary);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--space-6); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-3);
}
.step h4 { font-size: 1rem; margin-bottom: var(--space-2); }
.step p { color: var(--color-muted); font-size: 0.9rem; margin: 0; }

/* ==========================================================================
   Industries strip
   ========================================================================== */
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pill {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 999px;
  padding: var(--space-2) var(--space-5);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--color-secondary);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--color-primary), #0B2A45);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-band p { color: #CBD5E1; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-primary);
  color: #94A3B8;
  padding-block: var(--space-8) var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-7);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-4); }
.site-footer a { color: #94A3B8; }
.site-footer a:hover { color: var(--color-gold); }
.site-footer li { margin-bottom: var(--space-3); font-size: 0.92rem; }
.footer-brand p { color: #94A3B8; font-size: 0.92rem; max-width: 320px; }
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.social-row { display: flex; gap: var(--space-3); }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.social-row a:hover { border-color: var(--color-gold); background: rgba(201,162,74,0.12); }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-header {
  background: linear-gradient(180deg, var(--color-primary) 0%, #0B1524 100%);
  color: #fff;
  padding-block: var(--space-8) var(--space-7);
}
.page-header h1 { color: #fff; margin-bottom: var(--space-3); }
.page-header p { color: #CBD5E1; max-width: 640px; margin: 0; }
.breadcrumb { display: flex; gap: var(--space-2); font-size: 0.85rem; color: #94A3B8; margin-bottom: var(--space-4); }
.breadcrumb a { color: #94A3B8; }
.breadcrumb a:hover { color: var(--color-gold); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.8rem; color: var(--color-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-foreground);
  min-height: 44px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15,45,82,0.15);
}
.field-error { font-size: 0.82rem; color: var(--color-destructive); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--color-destructive); }
.field.has-error .field-error { display: block; }
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: var(--space-3); }
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  font-weight: 600;
}
.form-success.is-visible { display: flex; }

/* ==========================================================================
   Contact info cards
   ========================================================================== */
.info-row { display: flex; gap: var(--space-4); align-items: flex-start; padding-block: var(--space-4); border-bottom: 1px solid var(--color-border); }
.info-row:last-child { border-bottom: none; }
.info-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--color-muted-bg); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-row h4 { margin-bottom: 2px; font-size: 0.95rem; }
.info-row p { margin: 0; color: var(--color-muted); font-size: 0.92rem; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Scroll-triggered reveals (cards, steps, CTA bands) — pops in with slight overshoot */
.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 450ms var(--ease-pop), transform 450ms var(--ease-pop);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* Hero entrance — plays on load, no scrolling required */
.hero-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.hero-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-reveal { opacity: 1; transform: none; transition: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
