/* ==========================================================================
   JohnTreyJackson Investments LLC — homepage stylesheet
   Theme: LIGHT blueprint paper with PRUSSIAN BLUE #1D4E89 + BURNT ORANGE #C2410C
   ========================================================================== */

:root {
  --paper: #F3F5F7;
  --paper-deep: #EAEEF3;
  --white: #FFFFFF;
  --ink: #16202E;
  --ink-soft: #2A3747;
  --muted: #55606F;
  --prussian: #1D4E89;
  --prussian-dark: #173F6B;
  --prussian-light: #2C6CA9;
  --orange: #C2410C;
  --tan: #E8A87C;
  --line: #C9D5E0;
  --line-soft: #DDE5EE;
  --grid: #D8E2EE;
  --blue-tint: #E8EEF5;
  --mono: "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn--primary:hover {
  background-color: var(--prussian);
  border-color: var(--prussian);
  color: var(--white);
}

.btn--ghost {
  background-color: var(--white);
  color: var(--prussian);
  border-color: var(--prussian);
}
.btn--ghost:hover {
  background-color: var(--prussian);
  color: var(--white);
}

.inline-link {
  color: var(--prussian);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover {
  color: var(--orange);
}

/* ---------- Section scaffolding ---------- */
.section-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 36px;
}

/* ==========================================================================
   FOLDER-TAB NAVIGATION
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--paper);
  transition: box-shadow 0.2s ease;
}
.site-nav.is-scrolled {
  box-shadow: 0 8px 20px #D8E1EA;
}

.nav-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--prussian);
  border: none;
  padding: 10px 11px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
}
.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

.folder-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
}

.folder-nav .tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px 10px;
  background-color: var(--white);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.folder-nav .tab::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 13px 13px 0;
  border-color: transparent var(--line-soft) transparent transparent;
  pointer-events: none;
}

.folder-nav .tab:hover {
  background-color: var(--blue-tint);
  color: var(--prussian);
  transform: translateY(-2px);
}

.folder-nav .tab--brand {
  background-color: var(--prussian);
  color: var(--white);
  border-color: var(--prussian);
  padding-left: 14px;
  padding-right: 18px;
}
.folder-nav .tab--brand::after {
  border-color: transparent var(--prussian-dark) transparent transparent;
}
.folder-nav .tab--brand:hover {
  background-color: var(--prussian-dark);
  color: var(--white);
}

.tab-folder-icon {
  flex: 0 0 auto;
}

.tab-monogram {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* toolbar strip below the tabs */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--prussian);
  color: var(--white);
  padding: 8px 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.breadcrumb {
  color: #C6D6EA;
}
.breadcrumb-sep {
  margin: 0 6px;
  color: var(--tan);
}

.toolbar-phone {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.toolbar-phone:hover {
  color: var(--tan);
}

/* ==========================================================================
   ENGINEERING BLUEPRINT HERO
   ========================================================================== */
.blueprint-hero {
  position: relative;
  background-color: #EAF0F6;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  padding: 72px 24px 84px;
  border-bottom: 2px solid var(--prussian);
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 22px 0;
  max-width: 640px;
}

/* dimension lines with arrowheads */
.dimension {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
}
.dimension--top {
  margin-top: 6px;
}
.dimension--bottom {
  margin-top: 8px;
}

.dim-rule {
  flex: 1;
  height: 1px;
  background-color: var(--orange);
}

.dim-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

.dim-arrow {
  width: 0;
  height: 0;
}
.dim-arrow--left {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 9px solid var(--orange);
}
.dim-arrow--right {
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid var(--orange);
}

.hero-copy {
  max-width: 620px;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 26px 0 30px;
}

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

/* frame corner marks */
.frame-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  z-index: 1;
}
.frame-corner--tl {
  top: 18px;
  left: 18px;
  border-top: 2px solid var(--prussian);
  border-left: 2px solid var(--prussian);
}
.frame-corner--tr {
  top: 18px;
  right: 18px;
  border-top: 2px solid var(--prussian);
  border-right: 2px solid var(--prussian);
}
.frame-corner--bl {
  bottom: 18px;
  left: 18px;
  border-bottom: 2px solid var(--prussian);
  border-left: 2px solid var(--prussian);
}
.frame-corner--br {
  bottom: 18px;
  right: 18px;
  border-bottom: 2px solid var(--prussian);
  border-right: 2px solid var(--prussian);
}

/* spec card */
.spec-card {
  position: absolute;
  top: 64px;
  right: 40px;
  width: 260px;
  background-color: var(--white);
  border: 1px solid var(--prussian);
  box-shadow: 6px 6px 0 var(--prussian);
  padding: 18px;
  z-index: 3;
}

.spec-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.spec-card-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--prussian);
}

.spec-card-rev {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
}

.spec-list {
  list-style: none;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.spec-item:last-child {
  border-bottom: none;
}

.spec-key {
  color: var(--muted);
  font-size: 13px;
}

.spec-val {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--prussian-dark);
}

/* dashed leader lines with labels */
.spec-leader {
  position: absolute;
  height: 0;
  border-top: 1px dashed var(--orange);
}
.spec-leader--one {
  top: -22px;
  left: -40px;
  width: 60px;
}
.spec-leader--two {
  bottom: -20px;
  right: -34px;
  width: 52px;
}
.spec-leader-label {
  position: absolute;
  top: -8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}
.spec-leader--one .spec-leader-label {
  left: 0;
}
.spec-leader--two .spec-leader-label {
  right: 0;
}

/* ==========================================================================
   FULL-WIDTH STATEMENT ROW
   ========================================================================== */
.statement-section {
  background-color: var(--paper);
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.statement-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.statement {
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.statement:last-child {
  border-bottom: none;
}

.statement::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--orange);
  margin-right: 18px;
  vertical-align: middle;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-section {
  background-color: var(--white);
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--prussian);
  background-color: var(--paper);
  padding: 28px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--prussian-dark);
  margin-bottom: 12px;
  font-weight: 800;
}

.service-card p {
  color: var(--muted);
  font-size: 16px;
}

/* ==========================================================================
   BIG-NUMERAL FEATURE COLUMNS
   ========================================================================== */
.capabilities-section {
  background-color: var(--paper);
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.numeral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.numeral-item {
  display: flex;
  gap: 16px;
  padding: 6px 0;
}

.numeral {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
}

.numeral-body h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 800;
}

.numeral-body p {
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================================
   NUMBERED PROCESS LIST
   ========================================================================== */
.approach-section {
  background-color: var(--blue-tint);
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.process-list {
  list-style: none;
  max-width: 820px;
}

.process-step {
  display: flex;
  gap: 28px;
  position: relative;
  padding-bottom: 40px;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 54px;
  bottom: 4px;
  width: 2px;
  background-color: var(--prussian);
}

.process-step:last-child::before {
  display: none;
}

.process-num {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--prussian);
  color: var(--white);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.process-body h3 {
  font-size: 20px;
  color: var(--prussian-dark);
  margin-bottom: 8px;
  font-weight: 800;
}

.process-body p {
  color: var(--muted);
  font-size: 16px;
  max-width: 620px;
}

/* ==========================================================================
   TWO-COLUMN COMPARISON TABLE
   ========================================================================== */
.comparison-section {
  background-color: var(--white);
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.comparison-table {
  border: 1px solid var(--line);
  border-collapse: collapse;
  width: 100%;
  background-color: var(--white);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1.6fr;
  border-bottom: 1px solid var(--line);
}
.comparison-row:last-child {
  border-bottom: none;
}

.comparison-cell {
  padding: 16px 18px;
  font-size: 15px;
  color: var(--muted);
  border-right: 1px solid var(--line);
}
.comparison-cell:last-child {
  border-right: none;
}

.comparison-cell--metric {
  font-weight: 800;
  color: var(--ink);
  background-color: var(--blue-tint);
  font-size: 15px;
}

.comparison-cell--good {
  background-color: #F2F7F0;
  color: #1F5C3D;
  font-weight: 600;
}

.comparison-row--head .comparison-cell {
  background-color: var(--prussian);
  color: var(--white);
  font-weight: 800;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
}
.comparison-row--head .comparison-cell--metric {
  background-color: var(--prussian-dark);
}
.comparison-row--head .comparison-cell--good {
  background-color: var(--orange);
  color: var(--white);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section {
  background-color: var(--paper);
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list {
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 14px;
  background-color: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background-color: var(--white);
  border: none;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.faq-question:hover {
  color: var(--prussian);
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--orange);
  transition: transform 0.2s ease;
}
.faq-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}
.faq-icon::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}

.faq-item.is-open .faq-icon::after {
  transform: scaleY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-answer p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 16px;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
}

/* ==========================================================================
   SPLIT CTA BAND
   ========================================================================== */
.cta-band-section {
  background-color: var(--prussian);
  padding: 0;
  border-bottom: 1px solid var(--prussian-dark);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 0;
  flex-wrap: wrap;
}

.cta-band-copy h2 {
  color: var(--white);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-band-copy p {
  color: #C6D6EA;
  font-size: 16px;
  max-width: 560px;
}

.cta-band-action {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-band-action .btn--primary {
  background-color: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.cta-band-action .btn--primary:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--prussian);
}

.cta-band-phone {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--mono);
}
.cta-band-phone:hover {
  color: var(--tan);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section {
  background-color: var(--white);
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background-color: var(--white);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--prussian-light);
  border-color: var(--prussian);
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--prussian);
  font-weight: 600;
  min-height: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid var(--line);
  padding-left: 36px;
}

.contact-info-block h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-info-block p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER — multi-column with drawing border top rule
   ========================================================================== */
.site-footer {
  background-color: var(--paper-deep);
  color: var(--ink);
  border-top: 3px double var(--prussian);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  font-size: 17px;
  color: var(--prussian-dark);
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col--about p {
  color: var(--muted);
  font-size: 15px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--prussian);
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--muted);
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer-drawn {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  color: var(--prussian);
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.fade-up {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.is-reveal {
  opacity: 0;
  transform: translateY(22px);
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .spec-card {
    position: static;
    width: 100%;
    max-width: 420px;
    margin-top: 40px;
    box-shadow: 4px 4px 0 var(--prussian);
  }
  .spec-leader {
    display: none;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .numeral-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-row {
    grid-template-columns: 1fr;
  }
  .comparison-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  .folder-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .folder-nav.is-open {
    display: flex;
  }
  .folder-nav .tab {
    border-radius: 6px;
    border-bottom: 1px solid var(--line);
  }
  .folder-nav .tab::after {
    display: none;
  }
  .toolbar {
    padding: 8px 16px;
    font-size: 12px;
  }
  .blueprint-hero {
    padding: 48px 16px 64px;
  }
  .section-title {
    font-size: 27px;
  }
  .numeral-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
}
