/* ==========================================================================
   BO SITEWORKS — bositeworks.com
   Colors sampled directly from the official BSW logo file.
   To change the accent color, edit --accent and --accent-bright below.
   ========================================================================== */

:root {
  /* Brand */
  --navy:         #0A2239;
  --navy-deep:    #071726;
  --navy-mid:     #123152;
  --white:        #FFFFFF;
  --gray-warm:    #F5F3F0;
  --gray-line:    #E3E0DC;
  --gray-mid:     #8B9199;
  --text:         #26313C;
  --text-soft:    #566472;

  /* Single accent — primary actions only */
  --accent:        #A15A14;   /* on white: 5.3:1 with white text */
  --accent-bright: #C77A20;   /* on navy: rules, eyebrows, hover */

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Scale */
  --wrap: 1180px;
  --gut: 20px;
  --r: 3px;

  --shadow: 0 1px 2px rgba(10,34,57,.06), 0 8px 24px rgba(10,34,57,.07);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

/* Stop the sticky header covering headings when jumping to an anchor */
section[id] { scroll-margin-top: 84px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 7vw, 3.9rem); text-transform: uppercase; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; letter-spacing: -.005em; }
p  { margin: 0 0 1em; }
a  { color: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* Section rhythm — one rule, no cancelling selectors */
.band { padding: 64px 0; }
@media (min-width: 860px) { .band { padding: 92px 0; } }
.band--tight { padding-top: 40px; }
.band--warm { background: var(--gray-warm); }
.band--navy { background: var(--navy); color: rgba(255,255,255,.82); }
.band--navy h2, .band--navy h3 { color: var(--white); }

/* Eyebrow labels — these mark what a section is, not decoration */
.eyebrow {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--gray-line); max-width: 120px; }
.band--navy .eyebrow { color: var(--accent-bright); }
.band--navy .eyebrow::after { background: rgba(255,255,255,.18); }

.lede { font-size: 1.1rem; color: var(--text-soft); max-width: 62ch; }
.band--navy .lede { color: rgba(255,255,255,.75); }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 26px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #8A4C10; }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- Header */
.hdr {
  position: sticky; top: 0; z-index: 90;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hdr__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.hdr__logo { display: block; margin-right: auto; }
.hdr__logo img { height: 34px; width: auto; }
.nav { display: none; }
@media (min-width: 940px) {
  .nav { display: flex; gap: 26px; align-items: center; }
  .nav a {
    color: rgba(255,255,255,.8); text-decoration: none;
    font-family: var(--display); font-size: .84rem; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase;
  }
  .nav a:hover { color: var(--white); }
  .hdr .btn { min-height: 44px; padding: 10px 18px; font-size: .82rem; }
}
.hdr__call {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); text-decoration: none;
  font-family: var(--display); font-weight: 700; letter-spacing: .02em;
}
@media (max-width: 939px) { .hdr__call span { display: none; } }

/* ------------------------------------------------------------------ Hero
   No photography — the type is the hero. The faint vertical rules echo
   saw-cut control joints in a finished slab. */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  padding: 60px 0 70px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 96px 100%, 100% 96px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent-bright);
}
.hero__in { position: relative; }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero__sub {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: rgba(255,255,255,.9);
  margin: 0 0 14px;
}
.hero__pts {
  list-style: none; padding: 0; margin: 0 0 30px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: rgba(255,255,255,.72); font-size: 1rem;
}
.hero__pts li { display: flex; align-items: center; gap: 8px; }
.hero__pts li::before {
  content: ''; width: 6px; height: 6px; flex: 0 0 6px;
  background: var(--accent-bright); transform: rotate(45deg);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .hero__cta .btn { width: 100%; } }
.hero__note { margin: 22px 0 0; font-size: .92rem; color: rgba(255,255,255,.55); }

/* ------------------------------------------------------- Estimator panel
   The signature element. Styled like equipment control panel, not a form. */
.est { background: var(--gray-warm); padding: 0 0 64px; }
.est__panel {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  margin-top: -34px;
  position: relative;
  overflow: hidden;
}
.est__head { padding: 26px 22px 0; }
@media (min-width: 720px) { .est__head { padding: 32px 34px 0; } }
.est__head h2 { margin-bottom: 10px; }
.est__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 18px 22px 0;
  font-family: var(--display); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft);
}
@media (min-width: 720px) { .est__meta { padding: 20px 34px 0; } }
.est__prog { height: 4px; background: var(--gray-line); border-radius: 2px; margin: 12px 22px 0; }
@media (min-width: 720px) { .est__prog { margin: 12px 34px 0; } }
.est__prog i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .3s ease; }
.est__body { padding: 26px 22px 30px; }
@media (min-width: 720px) { .est__body { padding: 30px 34px 36px; } }

.q { font-family: var(--display); font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.q-help { font-size: .96rem; color: var(--text-soft); margin: 0 0 18px; }

/* Tile choices — large, thumb-friendly, text only (no cartoon icons) */
.tiles { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 0 0 8px; }
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .tiles--3 { grid-template-columns: 1fr 1fr 1fr; } }
.tile {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 62px;
  padding: 14px 18px;
  background: var(--white);
  border: 2px solid var(--gray-line);
  border-radius: var(--r);
  font-family: var(--display); font-size: 1.02rem; font-weight: 700;
  color: var(--navy); text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.tile:hover { border-color: var(--navy-mid); background: #FAFAF8; }
.tile[aria-pressed="true"] { border-color: var(--accent); background: #FDF7F0; }
.tile small { display: block; font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--text-soft); }

/* Fields */
.fld { margin: 0 0 18px; }
.fld label { display: block; font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 0 0 6px; }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: 14px 15px; font-family: var(--body); font-size: 1.02rem; color: var(--text);
  background: var(--white); border: 2px solid var(--gray-line); border-radius: var(--r);
}
.fld input:focus, .fld textarea:focus { border-color: var(--navy-mid); outline: none; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld--err input, .fld--err textarea { border-color: #B3261E; }
.err { display: none; color: #B3261E; font-size: .88rem; margin: 6px 0 0; }
.fld--err .err { display: block; }
.hint { font-size: .88rem; color: var(--text-soft); margin: 6px 0 0; }
.row2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Live square footage readout — the measuring helper */
.sqft {
  background: var(--navy); color: var(--white);
  border-radius: var(--r); padding: 16px 18px; margin: 4px 0 18px;
}
.sqft__n { font-family: var(--display); font-size: 2.1rem; font-weight: 800; line-height: 1; }
.sqft__n span { font-size: .9rem; font-weight: 600; letter-spacing: .1em; opacity: .7; margin-left: 6px; }
.sqft__bar { height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; margin: 12px 0 8px; overflow: hidden; }
.sqft__bar i { display: block; height: 100%; background: var(--accent-bright); width: 0; transition: width .25s; }
.sqft__tier { font-size: .9rem; color: rgba(255,255,255,.7); }

/* Photo upload */
.drop {
  border: 2px dashed var(--gray-line); border-radius: var(--r);
  padding: 26px 18px; text-align: center; background: #FCFCFB;
}
.drop strong { display: block; font-family: var(--display); color: var(--navy); margin-bottom: 4px; }
.drop input[type=file] { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.thumbs figure { position: relative; margin: 0; width: 76px; height: 76px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--gray-line); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(10,34,57,.85); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer;
}

/* Consent */
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--text-soft); margin: 4px 0 20px; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; accent-color: var(--accent); }

.est__nav { display: flex; gap: 12px; align-items: center; margin: 22px 0 0; }
.est__back {
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: .84rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft);
}
.est__back:hover { color: var(--navy); }
.est__nav .btn { margin-left: auto; }
@media (max-width: 520px) {
  .est__nav { flex-direction: column-reverse; align-items: stretch; }
  .est__nav .btn { margin-left: 0; }
}

/* Result screen */
.result { text-align: center; }
.result__eyebrow { font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 8px; }
.result__range {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1;
  color: var(--navy); letter-spacing: -.03em; margin: 0 0 14px;
}
.result__disc { font-size: .96rem; color: var(--text-soft); max-width: 56ch; margin: 0 auto 26px; text-align: left; }
.result__next { text-align: left; background: var(--gray-warm); border-radius: var(--r); padding: 22px; margin: 0 0 24px; }
.result__next h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; gap: 14px; padding: 8px 0; font-size: 1rem; }
.steps li::before {
  content: counter(s); flex: 0 0 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: 50%;
  font-family: var(--display); font-size: .82rem; font-weight: 800;
}

/* --------------------------------------------------------------- Services */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: var(--r); padding: 24px; border-left: 3px solid var(--gray-line);
  transition: border-left-color .15s;
}
.card:hover { border-left-color: var(--accent); }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: .98rem; color: var(--text-soft); }
.card--flag { border-left-color: var(--accent); background: var(--navy); }
.card--flag h3 { color: var(--white); }
.card--flag p { color: rgba(255,255,255,.75); }
.card--flag .card__tag { color: var(--accent-bright); }
.card__tag { display: block; font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }

/* ---------------------------------------------------------------- Pricing */
.tiers { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 28px 0 0; }
@media (min-width: 780px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: var(--r); padding: 26px 22px; position: relative;
}
.tier--common { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.tier__flag {
  position: absolute; top: -11px; left: 22px;
  background: var(--navy); color: #fff; padding: 3px 12px; border-radius: 2px;
  font-family: var(--display); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.tier h3 { font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 10px; }
.tier__amt { font-family: var(--display); font-size: 1.85rem; font-weight: 800; color: var(--navy); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 12px; }
.tier__ex { font-size: .95rem; color: var(--text-soft); margin: 0; }
.pricing__note { margin: 26px 0 0; padding: 18px 20px; background: var(--white); border-left: 3px solid var(--accent); border-radius: var(--r); font-size: .96rem; color: var(--text-soft); }

/* ------------------------------------------------------------------- Why */
.why { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1fr; gap: 56px; } }
.promises { list-style: none; padding: 0; margin: 0; }
.promises li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.02rem; }
.promises li:last-child { border-bottom: 0; }
.promises li::before { content: ''; flex: 0 0 8px; height: 8px; margin-top: 9px; background: var(--accent-bright); transform: rotate(45deg); }

/* --------------------------------------------------------------- Process */
.proc { list-style: none; counter-reset: p; padding: 0; margin: 30px 0 0; display: grid; gap: 2px; }
.proc li { counter-increment: p; background: var(--white); border: 1px solid var(--gray-line); padding: 22px; display: flex; gap: 18px; align-items: flex-start; }
.proc li::before {
  content: '0' counter(p);
  font-family: var(--display); font-size: 1.5rem; font-weight: 800;
  color: var(--gray-line); line-height: 1; flex: 0 0 auto;
}
.proc h3 { margin: 0 0 4px; font-size: 1.05rem; }
.proc p { margin: 0; font-size: .97rem; color: var(--text-soft); }

/* -------------------------------------------------------------- Builders */
.split { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ----------------------------------------------------------- Placeholder */
.placeholder {
  border: 2px dashed var(--gray-line); border-radius: var(--r);
  padding: 40px 24px; text-align: center; color: var(--text-soft);
  background: repeating-linear-gradient(45deg, #FCFCFB, #FCFCFB 12px, #F7F6F4 12px, #F7F6F4 24px);
}
.placeholder strong { display: block; font-family: var(--display); color: var(--navy); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

/* ----------------------------------------------------------- Areas chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 8px 15px; background: var(--white); border: 1px solid var(--gray-line);
  border-radius: 100px; font-size: .93rem; font-weight: 500;
}

/* ------------------------------------------------------------------- CTA */
.finale { text-align: center; }
.finale h2 { max-width: 24ch; margin-inline: auto; }
.finale .lede { margin: 0 auto 28px; }
.finale__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 520px) { .finale__btns .btn { width: 100%; } }

/* ---------------------------------------------------------------- Footer */
.ftr { background: var(--navy-deep); color: rgba(255,255,255,.62); padding: 52px 0 30px; font-size: .95rem; }
.ftr__top { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .ftr__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.ftr img { height: 34px; width: auto; margin-bottom: 14px; }
.ftr h3 { color: var(--white); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { padding: 4px 0; }
.ftr a { color: rgba(255,255,255,.72); text-decoration: none; }
.ftr a:hover { color: var(--white); text-decoration: underline; }
.ftr__btm { margin: 36px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .87rem; color: rgba(255,255,255,.45); }

/* ------------------------------------------------------- Sticky mobile bar */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: grid; grid-template-columns: 1fr 1.3fr;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.15);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(105%); transition: transform .25s ease;
}
.sticky.is-on { transform: translateY(0); }
.sticky a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px; text-decoration: none;
  font-family: var(--display); font-size: .92rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.sticky a:first-child { color: var(--white); border-right: 1px solid rgba(255,255,255,.15); }
.sticky a:last-child { background: var(--accent); color: var(--white); }
@media (min-width: 940px) { .sticky { display: none; } }
@media (max-width: 939px) { body { padding-bottom: 0; } body.has-sticky { padding-bottom: 58px; } }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

svg.ico { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }
