/* Western Completions — industrial B2B completions quote house */
:root {
  --ink: #12151A;
  --ink-soft: #2A3038;
  --muted: #5A6470;
  --steel: #1C2430;
  --steel-deep: #0F141C;
  --steel-mid: #2A3648;
  --slate: #3D4A5C;
  --sand: #C4A574;
  --sand-deep: #A8844F;
  --sand-soft: #E8D9C0;
  --rule: #D4CBB8;
  --cream: #F2EDE4;
  --field: #F7F3EB;
  --paper: #FFFcf7;
  --alert: #8B3A2A;
  --ok: #2F5D4A;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --measure: 42rem;
  --wide: 72rem;
  --wider: 88rem;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--steel-mid); text-underline-offset: 0.18em; }
a:hover { color: var(--steel-deep); }
:focus-visible { outline: 2px solid var(--sand-deep); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: .5rem 1rem; border-radius: 6px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin: 0 0 .75rem;
}
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 .65rem; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); margin: 0 0 .75rem; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.5; max-width: 42rem; color: var(--muted); }
p { max-width: var(--measure); }
.prose p + p { margin-top: 1rem; }
.prose ul { max-width: var(--measure); padding-left: 1.2rem; }
.prose li + li { margin-top: .4rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 80%, var(--ink) 10%);
}
.site-header .wrap {
  display: flex; align-items: center; gap: .85rem;
  height: var(--header-h);
  max-width: var(--wider); margin: 0 auto; padding: 0 1.25rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--steel);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
}
.wordmark .mark { width: 1.55rem; height: 1.55rem; flex-shrink: 0; }
.wordmark small {
  display: block; font-family: var(--sans); font-size: .55rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sand-deep);
  font-weight: 700; margin-top: .06rem;
}
.wordmark-text { line-height: 1.15; }
nav.primary { display: flex; align-items: center; gap: .85rem; margin-left: auto; font-size: .88rem; }
nav.primary a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav.primary a:hover { color: var(--steel-mid); }
nav.primary details.drop { position: relative; }
nav.primary details.drop > summary {
  list-style: none; cursor: pointer; font-weight: 500; color: var(--ink);
}
nav.primary details.drop > summary::-webkit-details-marker { display: none; }
nav.primary details.drop > summary::after { content: " ▾"; font-size: .7em; color: var(--muted); }
nav.primary .drop-list {
  position: absolute; top: calc(100% + .55rem); left: 0;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  padding: .55rem; min-width: 14rem; box-shadow: 0 12px 32px rgba(15,20,28,.1);
  display: grid; gap: .1rem; z-index: 60;
}
nav.primary .drop-list a {
  padding: .42rem .65rem; border-radius: 6px; display: block;
}
nav.primary .drop-list a:hover { background: var(--field); }
.header-phone {
  color: var(--steel); text-decoration: none; font-weight: 700;
  font-size: .9rem; white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--steel); color: var(--cream) !important; text-decoration: none;
  font-weight: 600; font-size: .92rem; padding: .7rem 1.15rem; border-radius: 6px;
  border: 0; cursor: pointer; font-family: inherit; line-height: 1;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--steel-deep); color: var(--cream) !important; }
.btn-ghost {
  background: transparent; color: var(--cream) !important;
  border: 1px solid color-mix(in srgb, var(--cream) 45%, transparent);
}
.btn-ghost:hover { background: color-mix(in srgb, var(--cream) 12%, transparent); }
.btn-outline {
  background: transparent; color: var(--steel) !important;
  border: 1px solid color-mix(in srgb, var(--steel) 40%, var(--rule));
}
.btn-outline:hover { background: color-mix(in srgb, var(--sand-soft) 40%, var(--cream)); }
.btn-sand { background: var(--sand-deep); }
.btn-sand:hover { background: #91703E; }
.btn-lg { padding: .88rem 1.4rem; font-size: 1.02rem; }
.btn-wide { width: 100%; }
.nav-toggle {
  display: none; background: none; border: 0; width: 2.5rem; height: 2.5rem;
  cursor: pointer; margin-left: auto;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; height: 1.5px; width: 1.3rem; background: var(--ink); position: relative; margin: 0 auto;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -.42rem; }
.nav-toggle span::after { top: .42rem; }

/* Hero */
.hero {
  position: relative; min-height: min(72vh, 38rem);
  display: grid; align-items: end; color: var(--cream); overflow: hidden;
  background: var(--steel-deep);
}
.hero-art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 70% 55% at 75% 25%, rgba(196,165,116,.18), transparent 55%),
    radial-gradient(ellipse 45% 40% at 15% 85%, rgba(61,74,92,.35), transparent 50%),
    linear-gradient(165deg, #0F141C 0%, #1C2430 48%, #151C26 100%);
}
.hero-art svg {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,28,.1) 0%, rgba(15,20,28,.25) 40%, rgba(15,20,28,.9) 100%),
              linear-gradient(90deg, rgba(15,20,28,.55) 0%, transparent 65%);
}
.hero-inner {
  position: relative; max-width: var(--wider); margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem; width: 100%;
}
.hero h1 { color: var(--cream); max-width: 18ch; }
.hero .lede { color: color-mix(in srgb, var(--cream) 84%, var(--sand-soft)); }
.hero .eyebrow { color: var(--sand); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; align-items: center; }
.hero-note { font-size: .9rem; color: color-mix(in srgb, var(--cream) 68%, transparent); margin-top: 1rem; max-width: 38rem; }

.page-hero {
  padding: 3.25rem 1.25rem 2.25rem;
  background:
    radial-gradient(ellipse 55% 80% at 92% 0%, rgba(196,165,116,.16), transparent 50%),
    var(--field);
  border-bottom: 1px solid var(--rule);
}
.page-hero .wrap { max-width: var(--wide); margin: 0 auto; }
.page-hero h1 { max-width: 20ch; }

.proof {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--wider); margin: 0 auto;
  border-bottom: 1px solid var(--rule); background: var(--field);
}
.proof article { padding: 1.4rem 1.25rem; border-right: 1px solid var(--rule); }
.proof article:last-child { border-right: 0; }
.proof strong {
  display: block; font-family: var(--serif); font-size: 1.1rem;
  font-weight: 550; margin-bottom: .3rem;
}
.proof p { margin: 0; font-size: .9rem; color: var(--muted); max-width: none; }

.section { padding: 4rem 1.25rem; }
.section-tight { padding: 3rem 1.25rem; }
.wrap { max-width: var(--wide); margin: 0 auto; }
.wrap-wide { max-width: var(--wider); margin: 0 auto; }
.band-field { background: var(--field); }
.band-steel { background: var(--steel); color: var(--cream); }
.band-steel h2, .band-steel h3 { color: var(--cream); }
.band-steel .lede, .band-steel p { color: color-mix(in srgb, var(--cream) 86%, transparent); }
.band-deep { background: var(--steel-deep); color: var(--cream); }
.band-deep h2, .band-deep h3 { color: var(--cream); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }
.split.rev .copy { order: 2; }
.split-top { align-items: start; }

.diagram-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.diagram-card h3 { margin-top: 0; }
.diagram-card .cap {
  font-size: .84rem; color: var(--muted); margin-top: .8rem; max-width: none;
}
.diagram-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.card.flagship {
  border-color: color-mix(in srgb, var(--sand) 45%, var(--rule));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sand) 15%, transparent);
}
.card .badge {
  display: inline-block; font-size: .66rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel); background: color-mix(in srgb, var(--sand-soft) 55%, var(--cream));
  padding: .26rem .55rem; border-radius: 999px; margin-bottom: .7rem;
}
.incl { list-style: none; padding: 0; margin: 0 0 1.15rem; font-size: .94rem; }
.incl li {
  padding: .42rem 0 .42rem 1.3rem; position: relative;
  border-top: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  max-width: none;
}
.incl li:first-child { border-top: 0; }
.incl li::before {
  content: ""; position: absolute; left: 0; top: .8rem;
  width: .5rem; height: .5rem; border-radius: 2px;
  background: var(--sand); border: 1px solid var(--sand-deep);
}
.svc-card, .prod-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.25rem 1.2rem;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.svc-card:hover, .prod-card:hover {
  border-color: color-mix(in srgb, var(--sand) 50%, var(--rule));
  transform: translateY(-2px); color: inherit;
}
.svc-card h3, .prod-card h3 { color: var(--steel); font-size: 1.15rem; }
.svc-card p, .prod-card p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; max-width: none; }

.process {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.process-step {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.25rem 1.1rem;
}
.process-step .num {
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sand-deep); display: block; margin-bottom: .45rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 0; }
.chip {
  display: inline-block; padding: .38rem .8rem; border: 1px solid var(--rule);
  border-radius: 999px; text-decoration: none; color: var(--ink);
  background: var(--paper); font-size: .88rem;
}
.chip:hover { border-color: var(--sand); color: var(--steel); }

.faq details { border-top: 1px solid var(--rule); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sand-deep); font-weight: 400; font-size: 1.25rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

.cta-band { padding: 3.75rem 1.25rem; background: var(--steel-deep); color: var(--cream); }
.cta-band h2 { color: var(--cream); }
.cta-band .lede { color: color-mix(in srgb, var(--cream) 82%, var(--sand-soft)); }
.cta-band .wrap { max-width: var(--wide); margin: 0 auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
table.compare {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  min-width: 32rem;
}
table.compare th, table.compare td {
  padding: .85rem 1rem; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--rule); max-width: none;
}
table.compare th {
  background: var(--steel); color: var(--cream); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
}
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:first-child { font-weight: 600; color: var(--ink-soft); width: 28%; }
table.compare tbody tr:nth-child(even) { background: var(--field); }

.checklist {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem 1.35rem;
}
.checklist h3 { margin-top: 0; }
.checklist ul { margin: .75rem 0 0; padding-left: 1.15rem; max-width: none; }
.checklist li { margin-top: .4rem; }

.logo-strip {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  padding: 1.5rem; border: 1px dashed var(--rule); border-radius: var(--radius);
  background: var(--field); justify-content: center;
}
.logo-strip .ph {
  width: 7.5rem; height: 2.5rem; border-radius: 6px;
  background: color-mix(in srgb, var(--rule) 55%, var(--cream));
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase;
}

.form-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.45rem 1.35rem;
}
.form-card h2 { margin-top: 0; font-size: 1.45rem; }
form.quote-form { display: grid; gap: .8rem; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.req { color: var(--alert); }
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .68rem .78rem;
  border: 1px solid var(--rule); background: var(--field); color: var(--ink);
  border-radius: 7px;
}
textarea { min-height: 5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; opacity: 0; }
.form-error { color: var(--alert); font-size: .88rem; margin: 0; display: none; }
.form-error.show { display: block; }
.thanks {
  display: none; padding: 1.2rem; background: color-mix(in srgb, var(--sand-soft) 45%, var(--cream));
  border-radius: 8px; border: 1px solid var(--sand);
}
.thanks.show { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .7rem; }

.note-box {
  background: color-mix(in srgb, var(--sand-soft) 35%, var(--cream));
  border-left: 3px solid var(--sand-deep);
  padding: .85rem 1rem; border-radius: 0 8px 8px 0;
  font-size: .93rem; max-width: none;
}
.honest {
  background: var(--field); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem 1.3rem;
}

.breadcrumbs {
  font-size: .85rem; color: var(--muted); margin: 0 0 1rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--steel); }

.site-footer {
  background: var(--steel-deep); color: color-mix(in srgb, var(--cream) 86%, transparent);
  padding: 3.25rem 1.25rem 2rem; font-size: .92rem;
}
.site-footer a { color: var(--sand-soft); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 1.75rem;
  max-width: var(--wider); margin: 0 auto;
}
.site-footer .wordmark { color: var(--cream); }
.site-footer .wordmark small { color: var(--sand); }
.foot-links { display: grid; gap: .32rem; }
.foot-links a { display: block; }
.foot-col h4 {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sand); margin: 0 0 .75rem; font-weight: 700;
}
.legal {
  max-width: var(--wider); margin: 2rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--steel) 50%, white 8%);
  font-size: .8rem; color: color-mix(in srgb, var(--cream) 55%, transparent);
}
.nap { max-width: 28rem; }

.sticky-call {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  padding: .6rem 1rem; background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(10px); border-top: 1px solid var(--rule);
  justify-content: center; gap: .6rem;
}

@media (max-width: 1100px) {
  nav.primary { gap: .65rem; font-size: .82rem; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof article:nth-child(2) { border-right: 0; }
  .proof article:nth-child(1), .proof article:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .diagram-grid, .grid-3, .process { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 1.75rem; }
  .split.rev .copy { order: 0; }
  .field-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  nav.primary {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--rule);
    gap: .75rem; margin: 0; z-index: 60; max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  body.nav-open nav.primary { display: flex; }
  .header-phone { display: none; }
  .site-header .btn { margin-left: .35rem; padding: .55rem .9rem; font-size: .85rem; }
  nav.primary .drop-list {
    position: static; box-shadow: none; border: 0;
    padding: .3rem 0 0 .7rem; background: transparent; min-width: 0;
  }
  .sticky-call { display: flex; }
  body { padding-bottom: 4.15rem; }
  .grid-2, .field-row { grid-template-columns: 1fr; }
  .site-header .wrap { position: relative; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .proof { grid-template-columns: 1fr; }
  .proof article { border-right: 0; border-bottom: 1px solid var(--rule); }
  .proof article:last-child { border-bottom: 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
