/* ============================================================
   Busted Eye — Shared design system (plain CSS)
   Used by: POV blog, AI Strategy, Machine Learning, What We Do
   ============================================================ */

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

/* Light-only. Stops Firefox and Chrome from force-inverting the page. */
:root { color-scheme: only light; }

/* ---- Base ---- */
body {
  background: #ffffff;
  color: #1a1a1a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ---- Utility classes ---- */
.hairline   { border-top:    1px solid #e0e0e0; }
.hairline-b { border-bottom: 1px solid #e0e0e0; }
.hairline-all { border: 1px solid #e0e0e0; }

.label-caps {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}

.detail-sm {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* ---- Layout container ---- */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 760px) {
  .container { padding: 0; }
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
}
.nav-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 760px) {
  .nav-inner { padding: 18px 0; }
}
.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-right .sep {
  color: #e0e0e0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  user-select: none;
}
.nav-link { transition: opacity 0.15s ease; }
.nav-link:hover { opacity: 0.7; }
.nav-link.muted  { color: #474747; }
.nav-link.accent { color: #3d7a4f; }

/* ---- Desktop dropdown (What We Do) ---- */
.nav-item {
  position: relative;
  /* stretch the hover target to the full height of the bar, so the
     pointer never crosses dead space on its way to the menu */
  padding: 18px 0;
  margin: -18px 0;
  display: flex;
  align-items: center;
}
.nav-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-menu-link {
  display: block;
  padding: 11px 20px;
  font-size: 15px;
  line-height: 1.4;
  color: #474747;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-menu-link:hover,
.nav-menu-link:focus-visible {
  color: #1a1a1a;
  background: #fafafa;
}
.nav-menu-link[aria-current="page"] { color: #3d7a4f; }

/* keyboard: tabbing into the trigger or any menu link opens it */
.nav-item:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* pointer: only on devices that actually hover */
@media (hover: hover) {
  .nav-item:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu { transition: none; }
}
@media (max-width: 560px) {
  .nav-menu { display: none; }
}
@media (max-width: 560px) {
  .nav-right { gap: 12px; }
  .nav-right .sep { display: none; }
}

/* ---- Main ---- */
main { padding-top: 96px; }

/* ---- Page header (index) ---- */
.page-header {
  margin-top: 128px;
  margin-bottom: 64px;
}
.page-eyebrow {
  color: #3d7a4f;
  margin-bottom: 16px;
}
h1.page-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: #1a1a1a;
}
.page-lede {
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 560px;
  color: #474747;
  font-size: 17px;
  line-height: 1.6;
}

/* ---- Post list (index) ---- */
.post-list { list-style: none; padding: 0; margin: 0; }

.post {
  border-bottom: 1px solid #e0e0e0;
  padding: 40px 0;
}
.post-date {
  color: #474747;
  margin: 0;
}
h2.post-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 12px 0 8px 0;
}
.post-title a {
  color: #1a1a1a;
  transition: opacity 0.15s ease;
}
.post-title a:hover { opacity: 0.6; }

.post-excerpt {
  margin: 0 0 16px 0;
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
}

.read-more {
  color: #3d7a4f;
  transition: opacity 0.15s ease;
  display: inline-block;
}
.read-more:hover { opacity: 0.7; }

/* ---- Individual post ---- */
.post-header {
  margin-top: 128px;
  margin-bottom: 48px;
}
.post-eyebrow {
  color: #3d7a4f;
  margin-bottom: 16px;
}
h1.post-title-lg {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}
.post-lede {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #474747;
  margin: 0;
}

/* ---- Post body content ---- */
.post-body { padding: 56px 0; }

.post-body h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 56px 0 24px 0;
  color: #1a1a1a;
}
.post-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 8px 0;
  color: #1a1a1a;
}
.post-body p {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0 0 20px 0;
}
.post-body strong {
  color: #1a1a1a;
  font-weight: 600;
}
.post-body hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 40px 0;
}
.post-body ul,
.post-body ol {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  padding-left: 24px;
  margin: 0 0 20px 0;
}
.post-body li { margin-bottom: 8px; }

.post-body blockquote {
  border-left: 2px solid #3d7a4f;
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: #474747;
}

/* Callout boxes (replicates hairline-all + fafafa pattern) */
.post-body .callout {
  border: 1px solid #e0e0e0;
  background: #fafafa;
  padding: 24px;
  margin: 0 0 24px 0;
}
.post-body .callout h3 {
  margin-top: 0;
}

/* ---- Post body tables ---- */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  color: #474747;
  margin: 0 0 32px 0;
}
.post-body thead th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: #1a1a1a;
  text-align: left;
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid #1a1a1a;
}
.post-body tbody td {
  padding: 16px 16px 16px 0;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}
.post-body tbody tr:last-child td {
  border-bottom: none;
}
.post-body tbody td:first-child {
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* ---- Back link ---- */
.back-link {
  display: inline-block;
  color: #474747;
  margin: 40px 0;
  transition: opacity 0.15s ease;
}
.back-link:hover { opacity: 0.7; }

/* ---- CTA section ---- */
.cta {
  padding: 56px 0;
  margin-bottom: 80px;
}
.cta h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px 0;
  color: #1a1a1a;
}
.cta-lede {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0 0 40px 0;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.cta-field { display: block; }
.cta-field label {
  color: #3d7a4f;
  display: block;
  margin-bottom: 8px;
}
.cta-field input,
.cta-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
  font-size: 17px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  line-height: 1.5;
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s ease;
}
.cta-field textarea {
  resize: none;
  display: block;
}
.cta-field input::placeholder,
.cta-field textarea::placeholder {
  color: #9a9a9a;
}
.cta-field input:focus,
.cta-field textarea:focus {
  border-bottom-color: #3d7a4f;
}
.cta-submit {
  width: 100%;
  background-color: #3d7a4f;
  color: #ffffff;
  border: 0;
  padding: 18px 24px;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  transition: opacity 0.15s ease;
}
.cta-submit:hover { opacity: 0.8; }
.cta-hp { display: none; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 80px;
  padding: 56px 0 64px 0;
  text-align: center;
}
.footer-brand {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-bottom: 16px;
  transition: opacity 0.15s ease;
}
.footer-brand:hover { opacity: 0.7; }
.footer-copy {
  color: #474747;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   MARKETING / PRODUCT PAGES
   Additive layer for plain-HTML pages: What We Do, AI Strategy,
   Machine Learning. Nothing above this line changes, so the
   blog is untouched. Every value matches the tokens already
   defined above.
   ============================================================ */

/* ---- Section rhythm ---- */
.section { padding: 56px 0; }

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: #1a1a1a;
}
.section-intro {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0 0 40px 0;
  max-width: 620px;
}

/* ---- Hero ---- */
.hero { margin: 64px 0; }
.hero-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}
.hero-sub {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #474747;
  margin: 0 0 40px 0;
}
.hero-lede {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #474747;
  margin: 0 0 40px 0;
  max-width: 620px;
}

/* ---- Buttons (inline links) ---- */
.btn {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  padding: 16px 32px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.8; }
.btn-primary {
  background-color: #3d7a4f;
  color: #ffffff;
}

/* ---- Numbered list (Who This Is For) ---- */
.qlist { list-style: none; padding: 0; margin: 0; }
.qlist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.qlist li:last-child { margin-bottom: 0; }
.qnum {
  color: #3d7a4f;
  flex-shrink: 0;
  padding-top: 2px;
}
.qtext {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

/* ---- Feature blocks (How We Work / How It Works) ---- */
.features {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}
.feature-text {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0;
}

/* ---- Engagement stages ---- */
.stage { margin-bottom: 56px; }
.stage:last-child { margin-bottom: 0; }
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.stage-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.stage-meta {
  color: #474747;
  flex-shrink: 0;
}
.stage-text {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0 0 32px 0;
}
.stage-note {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 24px 0 0 0;
}

/* ---- Spec / deliverables box ---- */
.spec {
  border: 1px solid #e0e0e0;
  background: #fafafa;
  padding: 24px;
}
.spec-label {
  color: #3d7a4f;
  display: block;
  margin-bottom: 16px;
}
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.spec-list li:last-child { margin-bottom: 0; }

/* ---- Product cards (What We Do overview) ---- */
.products { list-style: none; padding: 0; margin: 0; }
.product {
  border-bottom: 1px solid #e0e0e0;
  padding: 40px 0;
}
.product:first-child { padding-top: 0; }
.product:last-child { border-bottom: none; }
.product-eyebrow {
  color: #3d7a4f;
  margin-bottom: 12px;
}
.product-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 8px 0;
  color: #1a1a1a;
}
.product-title a {
  color: #1a1a1a;
  transition: opacity 0.15s ease;
}
.product-title a:hover { opacity: 0.6; }
.product-text {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0 0 16px 0;
}

/* ---- Body text (marketing pages) ---- */
.body-text {
  font-size: 17px;
  line-height: 1.6;
  color: #474747;
  margin: 0 0 20px 0;
}
.body-text:last-child { margin-bottom: 0; }

/* ============================================================
   MOBILE NAV (hamburger)
   Append to style.css, after the existing ---- Nav ---- block.
   Desktop is unchanged. Panel and toggle only appear below 560px.
   ============================================================ */

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  width: 22px;
  color: #1a1a1a;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle-bar + .nav-toggle-bar { margin-top: 6px; }
.nav-toggle.is-open .nav-toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-panel { display: none; }
.nav-panel[hidden] { display: none; }

.nav-panel-item {
  display: block;
  color: #1a1a1a;
  font-size: 13px;
  padding: 18px 0;
  border-bottom: 1px solid #e0e0e0;
}
.nav-panel-sub {
  display: block;
  color: #474747;
  font-size: 15px;
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.nav-panel-cta {
  display: block;
  text-align: center;
  background: #3d7a4f;
  color: #ffffff;
  padding: 16px;
  margin-top: 24px;
}

@media (max-width: 560px) {
  #nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .nav-panel:not([hidden]) {
    display: block;
    padding: 8px 24px 24px;
    border-top: 1px solid #e0e0e0;
  }
}
