:root {
  --navy: #0e2744;
  --navy-dark: #091a2e;
  --flame: #e85d04;
  --flame-dark: #c44e03;
  --cream: #f6f1e8;
  --ink: #1c2834;
  --muted: #5c6b7a;
  --line: #d9d3c8;
  --white: #fffcf8;
  --ok: #1f7a4d;
  --warn: #9a6b12;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  min-height: 100vh;
}

h1, h2, h3, .font-display {
  font-family: Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
}

a { color: var(--flame-dark); }
a:hover { color: var(--flame); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 26, 46, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--flame);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream);
}

.brand-name {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  color: #c9d4e0;
  margin-top: 2px;
}

.site-nav {
  display: none;
  margin-left: auto;
}
.site-nav a {
  color: #e8eef4;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; }

.nav-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid #3a516b;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.7rem 1.05rem;
  line-height: 1.1;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
  touch-action: manipulation;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-flame { background: var(--flame); color: #fff; }
.btn-flame:hover:not(:disabled) { background: var(--flame-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost.light {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-call { background: var(--flame); color: #fff; white-space: nowrap; }
.btn.header-call { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 0.15rem; }
  .btn.header-call { display: inline-flex; }
}
@media (max-width: 899px) {
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: var(--navy-dark);
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.4rem;
    border-bottom: 3px solid var(--flame);
  }
}

.page-hero {
  background: var(--navy) url("/images/og-share.jpg") center/cover;
  color: #fff;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 26, 46, 0.78);
}
.page-hero .wrap { position: relative; z-index: 1; padding: 2rem 0 1.8rem; }
.page-hero h1 { font-size: 1.75rem; line-height: 1.15; margin: 0; text-transform: uppercase; }
.page-hero p { max-width: 42rem; color: #e8eef4; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f3b183;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .page-hero .wrap { padding: 3rem 0 2.4rem; }
  .page-hero h1 { font-size: 3rem; }
}

.staging-banner {
  background: #9a6b12;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 0.45rem 1rem;
}
.staging-banner code {
  background: rgba(0,0,0,0.2);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
}

.estimator { padding: 1.6rem 0 4rem; }

.note {
  background: #f3f7fb;
  border: 1px solid #c5d4e4;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  color: var(--navy);
  margin: 0 0 1rem;
}
.progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 1.4rem;
}
.progress li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 3px solid var(--line);
  padding-top: 0.45rem;
}
.progress li.on { color: var(--navy); border-top-color: var(--flame); }
.progress li.done { border-top-color: var(--navy); color: var(--navy); }

.layout {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.2rem 1.15rem 1.4rem;
}
.panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  color: var(--navy);
  text-transform: uppercase;
}
.lede { margin: 0 0 1.1rem; color: var(--muted); }

.choice-grid {
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 640px) {
  .choice-grid.two { grid-template-columns: 1fr 1fr; }
  .choice-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .choice-grid.four { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.choice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  background: var(--white);
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.choice:hover { border-color: #b9b1a4; }
.choice[aria-pressed="true"],
.choice.on {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: #f3f7fb;
}
.choice b { display: block; color: var(--navy); font-family: Oswald, sans-serif; letter-spacing: 0.03em; text-transform: uppercase; }
.choice span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.15rem; }
.choice .mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: #fff;
  background: #fff;
}
.choice.on .mark { background: var(--navy); border-color: var(--navy); }

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 0.2rem;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }

.form-grid { display: grid; gap: 0.85rem; }
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
}

label > span, .lbl {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.28rem;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cfc8bc;
  border-radius: 6px;
  padding: 0.65rem 0.7rem;
  font: inherit;
  background: #fff;
  min-height: 44px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--flame);
  border-color: var(--flame);
}

.toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  min-width: 7.5rem;
  touch-action: manipulation;
}
.toggle.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.rooms { display: grid; gap: 0.45rem; }
.room {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}
.stepper { display: flex; align-items: center; gap: 0.25rem; }
.stepper button {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.stepper output {
  min-width: 1.6rem;
  text-align: center;
  font-weight: 700;
}

.scope-block {
  border-top: 1px solid var(--line);
  margin-top: 1.1rem;
  padding-top: 1.1rem;
}
.scope-block h3 {
  margin: 0 0 0.7rem;
  color: var(--navy);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1.3rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}
.cta-row .btn { flex: 1 1 11rem; }

.quote-rail {
  position: sticky;
  top: 88px;
}
.quote-card {
  background: var(--navy-dark);
  color: #e8eef4;
  border-radius: 10px;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid #24405c;
}
.quote-card h2 {
  margin: 0 0 0.35rem;
  color: #f3b183;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}
.quote-range {
  font-family: Oswald, sans-serif;
  font-size: 1.85rem;
  color: #fff;
  line-height: 1.1;
  margin: 0.2rem 0 0.45rem;
}
.quote-card .hint { margin: 0; color: #c9d4e0; font-size: 0.88rem; }
.quote-card ul { margin: 0.7rem 0 0; padding: 0 0 0 1rem; color: #d5dee8; font-size: 0.88rem; }
.quote-card li { margin: 0.2rem 0; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin: 0.15rem 0.25rem 0.15rem 0;
}
.pill.high { background: rgba(61, 180, 120, 0.2); color: #8fe0b5; }
.pill.medium { background: rgba(243, 177, 131, 0.2); color: #f3b183; }
.pill.low { background: rgba(232, 93, 4, 0.2); color: #ffb086; }

.flags { margin: 0.6rem 0 0; }
.flag {
  background: #fff6e8;
  border: 1px solid #ead7b0;
  color: #6a4b10;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  margin-top: 0.45rem;
}

.lines { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.4rem 0 0.8rem; }
.lines th { text-align: left; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lines th, .lines td { padding: 0.4rem 0.2rem; border-bottom: 1px solid var(--line); }
.lines td.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines tr.included td { color: var(--muted); font-style: italic; }
.lines tr.qty td { color: var(--navy); font-weight: 600; }
.lines tr.est td { color: var(--muted); font-style: italic; font-weight: 400; }
.quote-card li.included { color: #8fe0b5; font-style: italic; }
.quote-card li.qty { color: #fff; }
.quote-card li.est { color: #8fe0b5; font-style: italic; font-weight: 400; }

.property-card {
  margin-top: 0.9rem;
  background: #f3f7fb;
  border: 1px solid #c5d4e4;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.property-card p { margin: 0; }

.success {
  background: #e8f6ee;
  border: 1px solid #b7e0c6;
  color: var(--ok);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  font-weight: 700;
}

.err {
  background: #fdecea;
  border: 1px solid #f3c4be;
  color: #8a241c;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  margin: 0.6rem 0;
}

.hidden-field { position: absolute; left: -9999px; }

.site-footer {
  background: var(--navy-dark);
  color: #d5dee8;
  padding: 2.5rem 0 2.5rem;
}
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; margin: 0 0 0.6rem; font-size: 1.05rem; }

.note-list { color: #314050; padding-left: 1.1rem; }
.note-list li { margin: 0.3rem 0; }

.mobile-quote {
  display: none;
}

@media (max-width: 899px) {
  .quote-rail { position: static; }
  .mobile-quote {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    position: sticky;
    bottom: 0;
    background: var(--navy-dark);
    color: #fff;
    padding: 0.7rem 1rem;
    z-index: 30;
  }
  .mobile-quote b { font-family: Oswald, sans-serif; font-size: 1.15rem; }
  .layout .quote-rail { display: none; }
}

@media print {
  .site-header, .nav-row, .staging-banner, .progress, .mobile-quote, .nav-toggle { display: none !important; }
  .quote-rail { position: static; }
  .layout { display: block; }
  .page-hero { background: var(--navy); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
