/* Spears Corp — navy #0B1D33 + gold #C9A227. iPad-friendly: big tap targets,
   fluid grid, no hover-only interactions. */

:root {
  --navy: #0B1D33;
  --navy-2: #12293f;
  --gold: #C9A227;
  --ink: #1c2733;
  --muted: #5c6b7a;
  --line: #d8dee5;
  --bg: #f4f6f8;
  --card: #ffffff;
  --red: #b3261e;
  --green: #1e7d32;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.45;
}

.topbar {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  border-bottom: 3px solid var(--gold);
}

.wordmark {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 22px;
  color: #fff;
}
.wordmark .tagline { color: var(--gold); font-weight: 600; letter-spacing: 1px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; padding: 10px 6px; font-weight: 600; }
.nav a:hover { color: var(--gold); }
.nav-user { color: #c9d4e0; font-size: 14px; }
.linklike { background: none; border: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; padding: 10px 6px; }
.linklike:hover { color: var(--gold); }

.banner { text-align: center; font-weight: 700; letter-spacing: 1px; padding: 8px 12px; font-size: 14px; }
.banner-demo { background: var(--gold); color: var(--navy); }
.banner-live { background: var(--navy-2); color: var(--gold); }

.container { max-width: 1060px; margin: 0 auto; padding: 20px 16px 60px; }

h1 { font-size: 26px; margin: 14px 0 10px; color: var(--navy); }
h2 { font-size: 20px; margin: 6px 0 10px; color: var(--navy); }
.muted { color: var(--muted); }
.error { color: var(--red); font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: 0 1px 3px rgba(11, 29, 51, 0.06);
}
.card.narrow { max-width: 520px; margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.book-card .big-count { font-size: 34px; font-weight: 800; color: var(--navy); margin: 4px 0 12px; }
.book-card .big-count span { font-size: 16px; font-weight: 600; color: var(--muted); }

a.button, button.primary, .book-card a.button {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
}
a.button:hover, button.primary:hover { background: var(--navy-2); color: var(--gold); }

button, select, input, textarea { font: inherit; }
button { min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; }
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 48px;
}
textarea { min-height: 84px; }
label { display: block; margin: 10px 0; font-weight: 600; }
form.inline { display: inline-flex; align-items: center; gap: 8px; }
form.inline select { width: auto; min-height: 44px; }
form.stack { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.table td.touches { font-weight: 800; text-align: center; }
.table a { color: var(--navy); font-weight: 700; }

.spanish-box { border: 2px solid var(--gold); }

.badge { display: inline-block; background: #e8edf2; color: var(--navy); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.badge-red { background: #fbe9e7; color: var(--red); }
.badge-green { background: #e6f4ea; color: var(--green); }

.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.stage-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
.stage-form label { flex: 1 1 240px; margin: 0; }

ul.plain { list-style: none; padding: 0; margin: 0; }
.note { border-bottom: 1px solid var(--line); padding: 10px 0; }
.note p { margin: 6px 0 2px; white-space: pre-wrap; }
.followup { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.followup.done { color: var(--muted); }

/* --- Design Studio (milestone 2) --- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 14px; }
.stack-form fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 14px 0; padding: 6px 14px 12px; }
.stack-form legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.design-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.money-table td:nth-child(2), .money-table td:nth-child(3), .money-table td:nth-child(4) { white-space: nowrap; }

/* --- Proposal (print-friendly, homeowner-facing) --- */
.proposal-body { background: #fff; }
.proposal-head {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
}
.proposal-head .proposal-title { color: var(--gold); font-weight: 700; letter-spacing: 1px; font-size: 19px; }
.proposal .draft-stamp {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 1px;
  border: 2px solid var(--red);
  border-radius: 8px;
  display: inline-block;
  padding: 6px 14px;
}
.proposal .thanks { margin-top: 22px; font-weight: 600; color: var(--navy); }
.watermark {
  position: fixed;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  font-size: 92px;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(201, 162, 39, 0.20);
  border: 6px solid rgba(201, 162, 39, 0.20);
  border-radius: 14px;
  padding: 8px 30px;
  pointer-events: none;
  z-index: 50;
  white-space: nowrap;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .proposal .card { box-shadow: none; border: none; padding: 0; }
  .watermark { color: rgba(201, 162, 39, 0.16); border-color: rgba(201, 162, 39, 0.16); }
}

@media (max-width: 640px) {
  .table th:nth-child(3), .table td:nth-child(3) { display: none; } /* hide city on small screens */
  h1 { font-size: 22px; }
  .watermark { font-size: 54px; }
}
