/* BehindBuild marketing site — plain CSS, no build step, no external dependencies. */

:root {
  --navy: #16232f;
  --navy-mid: #1c2b3a;
  --charcoal: #111b26;
  --amber: #d9711c;
  --amber-dark: #b25a13;
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #20242a;
  --ink-soft: #4c525a;
  --line: #ddd6c8;
  --radius: 3px;
  --radius-sm: 2px;
  --max-width: 1160px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;

  /* Spacing scale — generous, intentional, not "content stacked on a page" */
  --space-section: 7rem;
  --space-section-sm: 3.75rem;
  --space-stack: 1.75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.35em; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.section-lede {
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 2rem;
}

a { color: var(--amber-dark); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.wrap-narrow { max-width: 760px; }

.center { text-align: center; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9em 1.7em;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease;
  letter-spacing: 0.01em;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--amber);
  color: #fff;
}
.btn-primary:hover { background: var(--amber-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-lg { padding: 1.05em 2.4em; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.brand {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.4rem;
  white-space: nowrap;
}

.primary-nav a {
  color: #ccd3da;
  text-decoration: none;
  font-size: 0.92rem;
}
.primary-nav a:hover { color: #fff; }

.nav-cta {
  background: var(--amber);
  color: #fff !important;
  padding: 0.55em 1.2em;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--amber-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

/* ---------- Hero (flat navy, no gradient — illustrative visual, not a fake photo) ---------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding: var(--space-section) 0 var(--space-section-sm);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text { max-width: 620px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.eyebrow-dark { color: var(--amber-dark); }

.hero h1 { color: #fff; }

.hero-sub {
  color: #ccd3da;
  font-size: 1.15rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 2.1rem 0 1.25rem;
}

.hero .btn-ghost {
  border-color: #ccd3da;
  color: #fff;
}
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }

.hero-note {
  color: #8b97a2;
  font-size: 0.9rem;
  margin: 0;
}

.hero-visual {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal);
}

.hero-visual-svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual-caption {
  font-size: 0.75rem;
  color: #6d7b87;
  text-align: center;
  padding: 0.6rem 0.75rem;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-section) 0;
}

.section.alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.subhead {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-close {
  font-weight: 600;
  color: var(--navy);
  margin-top: 2.25rem;
}

.lead-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin: 1.75rem 0 2.5rem;
}

/* ---------- Industries (five-niche visual section) ---------- */

.industries h2 { max-width: 620px; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin: 2.75rem 0 2.25rem;
}

.industry-tile { text-align: center; }

.tile-visual {
  aspect-ratio: 1 / 1;
  background: var(--navy);
  color: var(--amber);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: background 0.15s ease;
}

.tile-visual svg { width: 60%; height: 60%; }

.industry-tile:hover .tile-visual { background: var(--charcoal); }

.tile-label {
  margin: 1rem 0 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  color: var(--navy);
}

.industries-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 1.5rem;
  max-width: 62ch;
}

/* ---------- Problem section layout ---------- */

.problem-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3.5rem;
  align-items: start;
}

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.4rem;
}

.pain-list li {
  position: relative;
  padding-left: 1.35rem;
  border-left: 3px solid var(--amber);
  padding-left: 1.1rem;
  color: var(--ink);
  font-size: 1.02rem;
}

.photo-frame {
  background: var(--navy);
  color: var(--amber);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.photo-frame-tall { aspect-ratio: 3 / 4; min-height: 320px; }

.frame-icon { width: 30%; height: 30%; opacity: 0.85; }

/* ---------- Outcome / check lists ---------- */

.outcome-list, .check-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.15rem;
}

.check-list.two-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem 2rem;
}

.outcome-list li, .check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink);
}

.outcome-list li::before, .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--amber);
}

.fine-note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 1.5rem;
  margin-top: 2.25rem;
}

.offer-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}
.offer-cta p { margin-bottom: 1.1rem; }

/* ---------- Flow diagram (Pipeline Foundation) ---------- */

.flow-diagram {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0 2.75rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.flow-step span {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.flow-step-final span { background: var(--amber); }

.flow-arrow {
  color: var(--amber);
  font-size: 1.3rem;
  padding: 0 0.15rem;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 2.1rem;
}

.steps li {
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: bold;
}

.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ccd3da; margin-bottom: 2rem; }

/* ---------- Contact form ---------- */

/* Netlify Forms honeypot — visually hidden from real visitors, left in the DOM for bots that
   ignore CSS. Not display:none via the `hidden` attribute, since some bots skip fields marked
   that way outright; this keeps it a normal field that only humans reliably never see or fill in. */
.hidden-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.35rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75em 0.85em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: #adb7c0;
  padding: 3.5rem 0 1.75rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid #263442;
  margin-bottom: 1.75rem;
}

.brand-footer {
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
}

.tagline-footer { margin: 0; color: #7c8791; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-nav a {
  color: #adb7c0;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }

.copyright { margin: 0; color: #5c6770; }

/* ---------- Tablet ---------- */

@media (max-width: 980px) {
  :root {
    --space-section: 5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual { max-width: 460px; }

  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .problem-layout {
    grid-template-columns: 1fr;
  }

  .photo-frame-tall {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }
}

/* ---------- Nav collapse ----------
   Collapses well before the nav's 7 items would ever get cramped against
   the brand mark — verified against real viewport rendering, not just
   assumed pixel math. */

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.75rem 1.75rem;
    gap: 1.1rem;
    white-space: normal;
    display: none;
  }

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

  .nav-cta { align-self: flex-start; }
}

/* ---------- Mobile ---------- */

@media (max-width: 780px) {
  :root {
    --space-section: 3.5rem;
    --space-section-sm: 2.75rem;
  }

  body { font-size: 16px; }

  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }

  .flow-diagram {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0.1rem 0;
  }
}

@media (max-width: 480px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .tile-label { font-size: 0.78rem; }
}
