:root {
  --ink: #101820;
  --muted: #5c6570;
  --hair: #e4e4df;
  --accent: #1e3a8a;
  --accent-dark: #14265c;
  --accent-bg: #eef1f8;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: 'Barlow Semi Condensed', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.1;
}

p { margin: 0 0 14px; }

a { color: var(--accent); }

button, input, select {
  font-family: inherit;
  font-size: 16px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header (shared) ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hair);
  max-width: 1040px;
  margin: 0 auto;
}

.wordmark {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.header-phone {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

/* ---- Hero ---- */

.hero {
  padding: 56px 0 40px;
}

.hero h1 {
  font-size: 46px;
  max-width: 13ch;
  letter-spacing: -0.5px;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 44ch;
  margin-bottom: 24px;
}

.hero-phone {
  display: block;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 4px;
}

.hero-phone-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 26px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 4px;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-primary:hover,
.btn-primary:active { background: var(--accent-dark); }

.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--hair);
  padding: 14px 26px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  min-height: 48px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-secondary:active { border-color: var(--accent); }

/* ---- Photo band ---- */

.photo-band {
  width: 100%;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.photo-band img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-row img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

@media (min-width: 700px) {
  .photo-row { flex-direction: row; }
  .photo-row img { height: 420px; }
}

/* ---- Paint chip band (no job photos yet — fan-deck chips instead) ---- */

.chip-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.paint-chip {
  border: 1px solid var(--hairline, #e0dcd2);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}

.paint-chip-color {
  display: block;
  height: 120px;
}

.paint-chip-label {
  display: block;
  padding: 8px 10px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #101820);
}

@media (min-width: 700px) {
  .chip-band { grid-template-columns: repeat(6, 1fr); }
  .paint-chip-color { height: 170px; }
}

/* ---- Roller reveal over the hero phone number ---- */

.phone-reveal {
  position: relative;
  display: inline-block;
}

.phone-paint {
  position: absolute;
  inset: -3px -10px -1px -10px;
  background: var(--accent);
  border-radius: 3px;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  animation: phonePaintWipe 1.3s ease-in-out 0.7s forwards;
}

.phone-roller {
  position: absolute;
  top: -26px;
  left: -14px;
  z-index: 2;
  pointer-events: none;
  animation: phoneRollerAcross 1.3s ease-in-out 0.7s forwards;
}

@keyframes phonePaintWipe {
  to { clip-path: inset(0 0 0 100%); }
}

@keyframes phoneRollerAcross {
  85% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-paint, .phone-roller { display: none; }
}

/* ---- Section headings ---- */

.section {
  padding: 48px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
  max-width: 50ch;
}

/* ---- Services: hairline-top cells ---- */

.cell-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 700px) {
  .cell-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.cell {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.cell h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.cell p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---- Estimator callout ---- */

.callout {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 44px 0;
}

.callout h2 {
  font-size: 26px;
}

.callout p {
  color: var(--muted);
  font-size: 16px;
  max-width: 50ch;
}

.callout .btn-primary {
  margin-top: 12px;
}

/* ---- Service area ---- */

.area-list {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 10px;
}

.area-note {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* ---- Insured line ---- */

.insured-line {
  border-top: 1px solid var(--hair);
  padding: 24px 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

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

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 32px 0;
  margin-top: 8px;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
}

.footer-line {
  color: #d7dbe0;
  font-size: 14px;
}

.footer-line a { color: #fff; text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }

@media (min-width: 700px) {
  .hero h1 { font-size: 76px; }
  .section-title { font-size: 34px; }
}

/* ==========================================================================
   Estimator wizard (estimate.html)
   ========================================================================== */

.wizard {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.back-row { padding-top: 16px; margin: 0; }

.btn-back {
  background: none;
  border: none;
  color: var(--accent);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  min-height: 44px;
  cursor: pointer;
}

.step { padding-top: 28px; }
.step[hidden] { display: none; }

.step-title { font-size: 25px; }

.step-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}

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

/* Big choice buttons */

.choice-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-btn {
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 16px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  border-radius: 4px;
  min-height: 44px;
  cursor: pointer;
  width: 100%;
}

.choice-btn:hover, .choice-btn:focus-visible {
  border-color: var(--accent);
}

.choice-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

@media (min-width: 560px) {
  .choice-grid { flex-direction: row; }
  .choice-btn { flex: 1; }
}

/* Chips (radio / toggle groups) */

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.chip {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
  font-weight: 600;
}

.chip .chip-sub {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

/* Inputs */

input[type="number"],
input[type="text"],
select {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.dims-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dims-row input { width: 100%; }
.dims-row span { color: var(--muted); flex: 0 0 auto; }

/* Steppers */

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}

.stepper-row .stepper-label { font-size: 15px; }

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepper button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

.stepper button:active { border-color: var(--accent); color: var(--accent); }

.stepper .stepper-val {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
}

/* Toggle switch (yes/no) */

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}

.toggle-row .toggle-label { font-size: 15px; }

.toggle-btns { display: flex; gap: 8px; }

.toggle-btn {
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--ink);
  padding: 8px 16px;
  min-height: 44px;
  min-width: 56px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.toggle-btn.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

/* Room cards */

.room-card {
  border-top: 2px solid var(--hair);
  padding-top: 18px;
  margin-top: 18px;
}

.room-card:first-child { margin-top: 6px; }

.room-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.room-card-head h3 {
  font-size: 18px;
}

.btn-remove-room {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
}

.btn-remove-room:hover { color: var(--accent); }

.room-field { margin-bottom: 18px; }

.room-hint {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 6px;
}

/* Wizard buttons reuse .btn-primary / .btn-secondary but need full width */

.wizard .btn-primary,
.wizard .btn-secondary {
  display: block;
  width: 100%;
}

.link-navy {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
  cursor: pointer;
}

.field-error {
  color: #b3261e;
  font-size: 13.5px;
  margin-top: 6px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.cta-email { text-align: left; }

/* Results */

.result-range {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--ink);
  margin: 4px 0 22px;
}

.room-lines {
  border-top: 1px solid var(--hair);
  margin-bottom: 8px;
}

.room-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
}

.room-line .room-line-label { color: var(--ink); }
.room-line .room-line-amount { font-weight: 600; }

.notes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}

.notes li {
  padding: 6px 0 6px 14px;
  position: relative;
}

.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.disclaimer {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

@media (min-width: 560px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row > * { flex: 1 1 auto; }
  .cta-email { flex-basis: 100%; text-align: center; }
}

@media (min-width: 760px) {
  .wizard { padding-top: 8px; }
  .step-title { font-size: 30px; }
  .result-range { font-size: 40px; }
}


/* ---- Hero inline start (v2) ---- */

.hero-start { margin: 30px 0 26px; }

.hero-start-label {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.hero-start-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.start-btn {
  display: block;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  padding: 16px 18px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 19px;
  border-radius: 4px;
}

.start-btn:hover, .start-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-start-note {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.hero-phone-block {
  border-top: 1px solid var(--hair);
  padding-top: 18px;
  max-width: 560px;
}

.hero-phone-lead {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 2px;
}

@media (min-width: 560px) {
  .hero-start-btns { flex-direction: row; }
  .start-btn { flex: 1; }
}

/* ---- Paint-chip service swatches (v2) ---- */

.swatch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 20px;
}

@media (min-width: 700px) {
  .swatch-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.swatch {
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.swatch-color {
  height: 84px;
  display: flex;
  align-items: flex-end;
  padding: 10px 14px;
}

.swatch-color span {
  color: #fff;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: 0.85;
}

.swatch-c1 { background: #1e3a8a; }
.swatch-c2 { background: #46619f; }
.swatch-c3 { background: #8095c2; }

.swatch-body { padding: 14px 16px 16px; }

.swatch-body h3 { font-size: 20px; margin-bottom: 6px; }

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

/* ---- Estimate band w/ roller-stroke edges (v2) ---- */

.stroke-edge { line-height: 0; }
.stroke-edge svg { width: 100%; height: 26px; display: block; }

.estimate-band {
  background: var(--accent);
  color: #fff;
  padding: 34px 0 42px;
}

.estimate-band h2 {
  font-size: 32px;
  color: #fff;
}

.estimate-band p {
  color: #ccd5ea;
  font-size: 16px;
  max-width: 54ch;
  margin-bottom: 22px;
}

.btn-invert {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  padding: 15px 26px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  border-radius: 4px;
  min-height: 48px;
  text-align: center;
  text-decoration: none;
}

.btn-invert:hover { background: #eef1f8; }

.photo-row-wrap { padding-top: 44px; }

@media (min-width: 700px) {
  .estimate-band h2 { font-size: 40px; }
}
