/* =========================================================================
   BioGeoFlux Analytics — stylesheet
   Edit brand colors, spacing, and typography from the :root variables below.
   ========================================================================= */

:root {
  /* ---- Brand palette (pulled from the logo) ---- */
  --green:        #4a9b3c;   /* "BioGeo" green       */
  --green-deep:   #2f7d33;   /* deep forest green    */
  --blue:         #1d6fa5;   /* "Flux" blue          */
  --blue-deep:    #0f4c75;   /* deep water/ocean     */
  --teal:         #2a9d8f;   /* flux / accent teal   */
  --earth:        #9c6b3f;   /* earth-tone accent    */

  /* ---- Neutrals ---- */
  --ink:          #15232b;   /* primary text         */
  --ink-soft:     #45565f;   /* secondary text       */
  --line:         #e3e9ec;   /* hairline borders     */
  --bg:           #ffffff;   /* page background      */
  --bg-soft:      #f5f8f7;   /* alternating sections */
  --bg-tint:      #eef4f3;   /* tinted cards/chips   */

  /* ---- Derived ---- */
  --grad-hero: linear-gradient(135deg, #eef5f1 0%, #e6f0f5 55%, #eaf3ee 100%);
  --grad-brand: linear-gradient(90deg, var(--green) 0%, var(--teal) 50%, var(--blue) 100%);

  /* ---- Type & layout ---- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1140px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(21,35,43,.06), 0 2px 8px rgba(21,35,43,.05);
  --shadow-md: 0 8px 30px rgba(21,35,43,.10);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--green-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #266b2a; box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.btn--light:hover { background: rgba(255,255,255,.24); }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 88px; padding-top: 10px; padding-bottom: 10px; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 12px; }

/* Full horizontal logo image (logo2.png already contains the wordmark + tagline) */
.brand--image { text-decoration: none; min-width: 0; }
.brand--image img {
  display: block;
  width: clamp(220px, 28vw, 390px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
}
@media (max-width: 900px) {
  .brand--image img { width: clamp(190px, 48vw, 300px); max-height: 64px; }
  .nav { min-height: 76px; }
}
@media (max-width: 520px) {
  .brand--image img { width: 210px; max-height: 58px; }
  .nav { min-height: 68px; }
}
.brand__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1; }
.brand__name .b { color: var(--green); }
.brand__name .f { color: var(--blue); }
.brand__sub { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--ink-soft); text-transform: uppercase; margin-top: 3px; white-space: nowrap; }

/* Header logo: emblem + wordmark */
.brand__mark { height: 52px; width: 52px; display: block; flex: 0 0 auto; }
.site-header .brand__name { font-size: clamp(1.4rem, 3.2vw, 1.85rem); }
.site-header .brand__sub { font-size: clamp(.58rem, 1.2vw, .68rem); margin-top: 5px; }
@media (max-width: 520px) {
  .brand__mark { height: 42px; width: 42px; }
  .site-header .brand__name { font-size: 1.28rem; }
}

.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.nav__links a:hover { color: var(--green-deep); text-decoration: none; }
.nav__cta { margin-left: 8px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav__links.open { max-height: 460px; }
  .nav__links li { padding: 0 24px; }
  .nav__links a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__cta { margin: 8px 24px; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; background: var(--grad-hero); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; padding: 96px 0 104px; max-width: 760px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: 1.18rem; color: var(--ink-soft); max-width: 660px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__tagline {
  margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-weight: 700; color: var(--blue-deep); letter-spacing: .02em;
}
.hero__tagline span { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.hero__tagline span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* decorative satellite/flux backdrop */
.hero__art { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .9; }
.hero__art svg { position: absolute; right: -40px; top: 0; height: 100%; width: auto; }
@media (max-width: 900px) { .hero__art { opacity: .35; } }

/* =========================================================================
   Service / card grids
   ========================================================================= */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d5e2dd; }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--bg-tint); color: var(--green-deep);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Applications — checklist style */
.app-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 680px) { .app-list { grid-template-columns: 1fr; } }
.app-list li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.app-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.app-list li strong { color: var(--ink); font-weight: 600; }

/* Methods — chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-tint); color: var(--ink); border: 1px solid #dbe7e2;
  padding: 10px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500;
}
.chip svg { width: 16px; height: 16px; color: var(--teal); }

/* =========================================================================
   About
   ========================================================================= */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.about__card h3 { margin-bottom: 16px; }
.placeholder-list { list-style: none; margin: 0; padding: 0; }
.placeholder-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.placeholder-list li:last-child { border-bottom: 0; }
.placeholder-list .label { color: var(--ink-soft); font-weight: 600; }
.placeholder-list .val { color: var(--ink); text-align: right; }
.tag-edit { font-size: .72rem; background: var(--bg-tint); color: var(--green-deep); padding: 2px 8px; border-radius: 6px; font-weight: 600; }

.about__card p { color: var(--ink-soft); font-size: .96rem; }
.credential-list { list-style: none; margin: 16px 0 0; padding: 0; }
.credential-list li { position: relative; padding: 8px 0 8px 28px; font-size: .94rem; color: var(--ink); border-top: 1px solid var(--line); }
.credential-list li:first-child { border-top: 0; }
.credential-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border-radius: 5px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* =========================================================================
   Who we support — client strip
   ========================================================================= */
.section--compact { padding: 40px 0; }
.client-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 14px 16px;
}
.client-strip span {
  display: inline-flex; align-items: center; font-size: .92rem; font-weight: 600;
  color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact__item .ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-tint); color: var(--blue-deep); display: grid; place-items: center; }
.contact__item .ico svg { width: 20px; height: 20px; }
.contact__item .t { font-weight: 600; }
.contact__item .v { color: var(--ink-soft); font-size: .96rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: .96rem; margin-bottom: 18px; background: #fdfdfd; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,155,60,.15); }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }
.form__note { font-size: .8rem; color: var(--ink-soft); margin-top: 14px; }

.disclaimer { font-size: .82rem; color: var(--ink-soft); border-left: 3px solid var(--line); padding: 4px 0 4px 16px; margin-top: 28px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--ink); color: #c7d2d6; padding: 56px 0 32px; }
.site-footer a { color: #c7d2d6; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name .b { color: #7ec96e; }
.footer__brand .brand__name .f { color: #5fb4e6; }
.footer__brand p { color: #9fb0b5; font-size: .92rem; max-width: 320px; margin-top: 14px; }
.footer__col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 10px; font-size: .94rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #8c9da2; }

/* =========================================================================
   Scroll-reveal animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   Why BioGeoFlux
   ========================================================================= */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }
.why li { position: relative; padding-left: 46px; }
.why li .why__ico {
  position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; background: var(--bg-tint); color: var(--green-deep);
}
.why li .why__ico svg { width: 18px; height: 18px; }
.why li h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.why li p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--green-deep); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }
