/*
Theme Name: PAC Theme 2026 Precon
Theme URI: https://proanalysiscorp.com
Author: Program Analysis Corp
Author URI: https://proanalysiscorp.com
Description: Preconstruction services and PAC Intelligence software side by side. Plain words. Same page templates as PAC Theme, so either theme can be switched on at any time.
Version: 1.0
*/

/* ============================================================
   Everything below is scoped to body.px so it can never reach the
   product pages (ScopeGen, Takeoff Studio, book, purchase), which
   carry their own self-contained styles.
   Brand: navy #1a2b5e  gold #b8952a / #d4aa45  cream #f7f5f0
   ============================================================ */
body.px { margin: 0; padding-top: 72px; background: #f7f5f0; color: #1a2b5e;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
/* :where() gives these resets zero specificity, so any .px-* rule below wins */
:where(body.px) *, :where(body.px) *::before, :where(body.px) *::after { box-sizing: border-box; }
:where(body.px) :where(h1, h2, h3, h4, p, ul, blockquote) { margin: 0; padding: 0; }
:where(body.px) :where(img) { max-width: 100%; display: block; }
:where(body.px) :where(a) { color: inherit; }

.px-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.px-sec { padding: 88px 0; }
.px-sec.tight { padding: 64px 0; }
.px-cream { background: #f7f5f0; }
.px-sand  { background: #edeae2; }
.px-navy  { background: #1a2b5e; color: #f7f5f0; }
.px-white { background: #ffffff; }

.px-label { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: #b8952a; margin-bottom: 14px; }
.px-navy .px-label { color: #d4aa45; }
.px-h1 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.02em; }
.px-h1 em, .px-h2 em { font-style: italic; color: #d4aa45; }
.px-cream .px-h2 em, .px-sand .px-h2 em, .px-white .px-h2 em { color: #b8952a; }
.px-h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin-bottom: 18px; }
.px-h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.15; margin-bottom: 10px; }
.px-lead { font-size: 21px; line-height: 1.55; max-width: 640px; }
.px-navy .px-lead, .px-navy p { color: rgba(247,245,240,.85); }
.px-muted { color: #4a5a85; }
.px-navy .px-muted { color: rgba(247,245,240,.6); }
.px-center { text-align: center; }
.px-center .px-lead { margin-left: auto; margin-right: auto; }

/* buttons */
.px-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.px-center .px-btns { justify-content: center; }
a.px-btn { display: inline-block; padding: 15px 30px; border-radius: 3px; font-size: 16px; font-weight: 500;
  text-decoration: none; background: #b8952a; color: #fff; border: 2px solid #b8952a; transition: background .15s, color .15s; }
a.px-btn:hover { background: #d4aa45; border-color: #d4aa45; }
a.px-btn.ghost { background: transparent; color: #1a2b5e; border-color: #1a2b5e; }
a.px-btn.ghost:hover { background: #1a2b5e; color: #fff; }
.px-navy a.px-btn.ghost, .px-hero a.px-btn.ghost, .px-phero a.px-btn.ghost { color: #f7f5f0; border-color: rgba(247,245,240,.7); }
.px-navy a.px-btn.ghost:hover, .px-hero a.px-btn.ghost:hover, .px-phero a.px-btn.ghost:hover { background: #f7f5f0; color: #1a2b5e; }
a.px-link { color: #b8952a; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.px-navy a.px-link { color: #d4aa45; }

/* ---------- HERO (home) ---------- */
.px-hero { position: relative; overflow: hidden; color: #f7f5f0; background: #0f1a3a; }
.px-slides, .px-slide, .px-hero-shade { position: absolute; inset: 0; }
.px-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.px-slide.on { opacity: 1; }
.px-hero-shade { background: linear-gradient(90deg, rgba(10,18,40,.92) 0%, rgba(10,18,40,.80) 55%, rgba(10,18,40,.55) 100%); }
.px-hero .px-wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 104px; }
.px-hero .px-h1 { max-width: 760px; margin-bottom: 26px; color: #f7f5f0; }
.px-hero .px-lead { color: rgba(247,245,240,.88); }
.px-hero-caption { position: absolute; z-index: 2; left: 32px; bottom: 20px; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(212,170,69,.95); transition: opacity .4s; }
.px-hero-caption::before { content: ''; display: inline-block; width: 20px; height: 1px; background: #d4aa45; vertical-align: middle; margin-right: 10px; }

/* page hero (inner pages) */
.px-phero { background: #1a2b5e; color: #f7f5f0; border-bottom: 4px solid #b8952a; }
.px-phero .px-wrap { padding-top: 76px; padding-bottom: 76px; }
.px-phero .px-h1 { color: #f7f5f0; margin-bottom: 22px; max-width: 820px; }
.px-phero .px-lead { color: rgba(247,245,240,.85); }

/* ---------- three questions band ---------- */
.px-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(26,43,94,.15); margin-top: 44px; }
.px-step { padding: 32px 28px 8px 0; border-right: 1px solid rgba(26,43,94,.12); }
.px-step + .px-step { padding-left: 28px; }
.px-step:last-child { border-right: 0; }
.px-step-n { font-family: 'DM Serif Display', Georgia, serif; font-size: 48px; line-height: 1; color: #b8952a; margin-bottom: 14px; }
.px-step-q { font-family: 'DM Serif Display', Georgia, serif; font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.px-step p { color: #4a5a85; font-size: 17px; }
.px-step-tool { margin-top: 14px; font-size: 15px; font-weight: 500; }

/* ---------- product cards ---------- */
.px-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.px-card { background: #fff; border: 1px solid rgba(26,43,94,.12); border-top: 4px solid #b8952a; border-radius: 4px;
  padding: 34px 30px 30px; display: flex; flex-direction: column; }
.px-navy .px-card { background: #162354; border-color: rgba(247,245,240,.1); border-top-color: #d4aa45; }
.px-card-tag { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #b8952a; margin-bottom: 10px; }
.px-navy .px-card-tag { color: #d4aa45; }
.px-card-name { font-family: 'DM Serif Display', Georgia, serif; font-size: 32px; line-height: 1.05; margin-bottom: 14px; }
.px-card p { font-size: 17px; color: #3a4a75; margin-bottom: 18px; }
.px-navy .px-card p { color: rgba(247,245,240,.8); }
.px-card-price { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(26,43,94,.1); font-size: 15px; color: #4a5a85; margin-bottom: 20px; }
.px-navy .px-card-price { border-top-color: rgba(247,245,240,.12); color: rgba(247,245,240,.65); }
.px-card-price strong { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 28px; color: #1a2b5e; margin-right: 6px; }
.px-navy .px-card-price strong { color: #f7f5f0; }
.px-card a.px-btn { text-align: center; }
.px-card-cover { width: 120px; margin: -6px 0 18px; box-shadow: 0 10px 24px rgba(10,18,40,.28); border: 1px solid rgba(26,43,94,.15); }

/* ---------- book feature ---------- */
.px-book { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; }
.px-book-cover { width: 100%; box-shadow: 0 24px 48px rgba(10,18,40,.35), 0 2px 6px rgba(10,18,40,.2); border: 1px solid rgba(26,43,94,.18); }
.px-book-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; font-size: 16px; color: #4a5a85; }
.px-book-facts strong { display: block; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 30px; color: #1a2b5e; line-height: 1.1; }
.px-ticks { list-style: none; margin-top: 22px !important; }
.px-ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 18px; }
.px-ticks li::before { content: '✓'; position: absolute; left: 0; color: #b8952a; font-weight: 700; }
.px-navy .px-ticks li::before { color: #d4aa45; }

/* ---------- stats ---------- */
.px-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(247,245,240,.12); border: 1px solid rgba(247,245,240,.12); margin-top: 44px; }
.px-stat { background: #1a2b5e; padding: 30px 24px; }
.px-stat-n { font-family: 'DM Serif Display', Georgia, serif; font-size: 46px; line-height: 1; color: #f7f5f0; margin-bottom: 8px; }
.px-stat-n span { color: #d4aa45; }
.px-stat-l { font-size: 15px; color: rgba(247,245,240,.65); line-height: 1.4; }

/* ---------- project photos ---------- */
.px-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.px-proj { position: relative; aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: 3px; overflow: hidden; }
.px-proj span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-size: 14px; font-weight: 500; color: #fff;
  background: linear-gradient(transparent, rgba(10,18,40,.88)); }

/* ---------- simple grids / tiles ---------- */
.px-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.px-grid2.mid { align-items: center; }
.px-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.px-tiles.two { grid-template-columns: repeat(2, 1fr); }
.px-tile { background: #fff; border: 1px solid rgba(26,43,94,.12); border-radius: 4px; padding: 28px 26px; }
.px-sand .px-tile { background: #f7f5f0; }
.px-navy .px-tile { background: #162354; border-color: rgba(247,245,240,.1); }
.px-tile h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 23px; line-height: 1.2; margin-bottom: 8px; }
.px-tile p { font-size: 17px; color: #3a4a75; }
.px-navy .px-tile p { color: rgba(247,245,240,.75); }
.px-tile .px-eg { margin-top: 10px; font-size: 15px; color: #6a7899; }

/* ---------- product rows (PAC Intelligence page) ---------- */
.px-prod { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; padding: 56px 0; border-bottom: 1px solid rgba(26,43,94,.12); align-items: start; }
.px-prod:last-child { border-bottom: 0; }
.px-prod-num { font-family: 'DM Serif Display', Georgia, serif; color: #b8952a; font-size: 18px; margin-bottom: 6px; }
.px-prod-name { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 46px; line-height: 1; margin-bottom: 10px; }
.px-prod-what { font-size: 21px; line-height: 1.45; margin-bottom: 20px; }
.px-prod-price { font-size: 16px; color: #4a5a85; }
.px-prod-price strong { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 32px; color: #1a2b5e; margin-right: 6px; }
.px-prod dl { margin: 0; }
.px-prod dt { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #b8952a; margin-top: 18px; }
.px-prod dt:first-child { margin-top: 0; }
.px-prod dd { margin: 4px 0 0; font-size: 18px; color: #2d3f6e; }
.px-prod .px-card-cover { width: 150px; margin: 18px 0 0; }

/* ---------- about: bio + projects list ---------- */
.px-bio-photo { background: #1a2b5e; color: #f7f5f0; padding: 36px; border-radius: 4px; border-top: 4px solid #b8952a; }
.px-bio-photo .px-h3 { color: #f7f5f0; }
.px-bio-photo p { font-size: 16px; color: rgba(247,245,240,.75); }
.px-joblist { margin-top: 40px; border-top: 1px solid rgba(26,43,94,.15); }
.px-job { display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 28px; padding: 20px 0; border-bottom: 1px solid rgba(26,43,94,.12); align-items: baseline; }
.px-job-name { font-family: 'DM Serif Display', Georgia, serif; font-size: 21px; line-height: 1.2; }
.px-job-name small { display: block; font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #b8952a; margin-top: 4px; }
.px-job-what { font-size: 16px; color: #4a5a85; }
.px-job-val { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; white-space: nowrap; }
.px-quote { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; border-left: 4px solid #b8952a; padding-left: 28px; }
.px-quote cite { display: block; margin-top: 16px; font-family: 'DM Sans', system-ui, sans-serif; font-style: normal; font-size: 15px; color: #b8952a; }

/* ---------- CTA band ---------- */
.px-cta { background: #b8952a; color: #fff; }
.px-cta .px-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.px-cta .px-h2 { color: #fff; margin: 0 0 6px; }
.px-cta p { font-size: 19px; color: rgba(255,255,255,.92); }
.px-cta a.px-btn { background: #1a2b5e; border-color: #1a2b5e; }
.px-cta a.px-btn:hover { background: #fff; border-color: #fff; color: #1a2b5e; }
.px-cta a.px-btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.px-cta .px-btns { margin-top: 0; }

/* ---------- contact ---------- */
.px-form { display: grid; gap: 18px; }
.px-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.px-form input, .px-form select, .px-form textarea { width: 100%; padding: 14px 16px; font: inherit; font-size: 17px; color: #1a2b5e;
  background: #fff; border: 1px solid rgba(26,43,94,.25); border-radius: 3px; }
.px-form input:focus, .px-form select:focus, .px-form textarea:focus { outline: 2px solid #b8952a; outline-offset: 1px; border-color: #b8952a; }
.px-form textarea { min-height: 170px; resize: vertical; }
.px-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.px-form button { justify-self: start; padding: 16px 34px; font: inherit; font-size: 17px; font-weight: 500; color: #fff;
  background: #b8952a; border: 0; border-radius: 3px; cursor: pointer; }
.px-form button:hover { background: #1a2b5e; }
.px-note { padding: 18px 22px; border-left: 4px solid #b8952a; background: #edeae2; font-size: 17px; }
.px-note.err { border-left-color: #c0392b; background: #fff0f0; }
.px-info { display: grid; gap: 0; border-top: 1px solid rgba(26,43,94,.15); }
.px-info div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(26,43,94,.12); font-size: 17px; }
.px-info b { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #b8952a; padding-top: 3px; }
.px-info a { color: #1a2b5e; }

/* ---------- prose (privacy/default pages) ---------- */
.px-prose { max-width: 760px; }
.px-prose p, .px-prose li { margin-bottom: 14px; }
.px-prose h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 28px; margin: 34px 0 12px; }

/* ---------- MOBILE ---------- */
@media (max-width: 960px) {
  .px-cards, .px-tiles { grid-template-columns: 1fr 1fr; }
  .px-stats { grid-template-columns: 1fr 1fr; }
  .px-book { grid-template-columns: 240px 1fr; gap: 40px; }
  .px-prod { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  body.px { font-size: 17px; }
  .px-wrap { padding: 0 22px; }
  .px-sec { padding: 60px 0; }
  .px-hero .px-wrap { padding-top: 64px; padding-bottom: 80px; }
  .px-hero-caption { left: 22px; }
  .px-lead { font-size: 19px; }
  .px-h1 br, .px-h2 br { display: none; }   /* let headings wrap naturally on a phone */
  .px-steps, .px-cards, .px-tiles, .px-tiles.two, .px-projects, .px-grid2 { grid-template-columns: 1fr; gap: 20px; }
  .px-grid2 { gap: 36px; }
  .px-step, .px-step + .px-step { padding: 24px 0; border-right: 0; border-bottom: 1px solid rgba(26,43,94,.12); }
  .px-book { grid-template-columns: 1fr; gap: 32px; }
  .px-book-cover { max-width: 260px; }
  .px-job { grid-template-columns: 1fr; gap: 6px; }
  .px-form .row2 { grid-template-columns: 1fr; }
  .px-info div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- precon edition additions ---------- */
.px-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; align-self: flex-start; }
.px-badge.live { background: rgba(46,160,90,.14); color: #1e7a45; }
.px-badge.soon { background: rgba(184,149,42,.16); color: #8a6d14; }
.px-badge.dev  { background: rgba(26,43,94,.08); color: #4a5a85; }
.px-navy .px-badge.live { background: rgba(80,200,120,.16); color: #7fe0a4; }
.px-navy .px-badge.soon { background: rgba(212,170,69,.18); color: #e6c46a; }
.px-navy .px-badge.dev  { background: rgba(247,245,240,.1); color: rgba(247,245,240,.75); }
.px-card-step { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,245,240,.55); margin-bottom: 6px; }
.px-card.dim { border-top-color: rgba(212,170,69,.45); }

/* "Which one are you?" doors */
.px-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.px-door { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(26,43,94,.12); border-radius: 4px;
  padding: 32px 28px; text-decoration: none; color: #1a2b5e; transition: transform .15s, box-shadow .15s, border-color .15s; }
.px-door:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10,18,40,.12); border-color: #b8952a; }
.px-door-who { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #b8952a; margin-bottom: 10px; }
.px-door h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 27px; line-height: 1.15; margin-bottom: 12px; }
.px-door p { font-size: 17px; color: #3a4a75; margin-bottom: 18px; }
.px-door-go { margin-top: auto; font-weight: 500; color: #b8952a; }

/* preconstruction step list */
.px-precon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid rgba(26,43,94,.15); }
.px-pc { padding: 28px 28px 28px 0; border-bottom: 1px solid rgba(26,43,94,.12); }
.px-pc:nth-child(3n+2), .px-pc:nth-child(3n) { padding-left: 28px; border-left: 1px solid rgba(26,43,94,.12); }
.px-pc-q { font-size: 14px; font-weight: 500; color: #b8952a; margin-bottom: 6px; }
.px-pc h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.px-pc p { font-size: 17px; color: #3a4a75; }

/* plain-words callout for first-time owners */
.px-callout { margin-top: 40px; padding: 30px 34px; background: #1a2b5e; color: #f7f5f0; border-left: 6px solid #b8952a; border-radius: 4px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.px-callout h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 26px; margin-bottom: 6px; }
.px-callout p { color: rgba(247,245,240,.82); font-size: 17px; }
.px-callout .px-btns { margin-top: 0; }

@media (max-width: 960px) {
  .px-doors { grid-template-columns: 1fr; }
  .px-precon { grid-template-columns: 1fr 1fr; }
  .px-pc, .px-pc:nth-child(3n+2), .px-pc:nth-child(3n) { padding: 24px 20px 24px 0; border-left: 0; }
  .px-pc:nth-child(2n) { padding-left: 20px; border-left: 1px solid rgba(26,43,94,.12); }
  .px-callout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .px-precon { grid-template-columns: 1fr; }
  .px-pc, .px-pc:nth-child(2n) { padding: 22px 0; border-left: 0; }
}
