/* ============================================
   BAY STATE MAKE-READY — design tokens
   Theme: property work-order / job ticket,
   executed in a clean, professional register —
   structured labels and ticket numbering as
   information, not craft-paper decoration.
   ============================================ */

:root {
  --kraft: #EEF1F4;        /* cool neutral card / alt-section background */
  --kraft-dark: #E2E6EA;   /* deeper neutral, subtle contrast layer */
  --ink: #1C2024;          /* primary text, near-black */
  --ink-soft: #545C66;     /* secondary text */
  --blueprint: #143352;    /* primary brand navy */
  --blueprint-light: #1F4B76;
  --amber: #A9863E;        /* brass accent / CTA */
  --amber-dark: #8C6D2E;
  --sage: #3F6B54;         /* confirmation / checkmark green */
  --rust: #A24632;         /* reserved accent, used sparingly */
  --paper-white: #FBFBF9;  /* page background */
  --line: #DDE1E5;         /* hairline / divider color */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 6px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blueprint);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }

.accent-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--amber-dark);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber-dark);
  display: inline-block;
}

.ticket-no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--blueprint); outline-offset: 3px; }

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(20,51,82,0.18);
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(20,51,82,0.24); background: var(--amber-dark); color: var(--paper-white); }

.btn-ghost {
  background: transparent;
  border-color: var(--blueprint);
  color: var(--blueprint);
}
.btn-ghost:hover { background: var(--blueprint); color: var(--paper-white); }

.btn-light {
  background: var(--paper-white);
  color: var(--blueprint);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

/* ---------- Header / Nav ---------- */

header.site {
  background: var(--blueprint);
  color: var(--paper-white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper-white);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .dot { color: var(--amber); }
.logo .brand-mark { flex: none; color: var(--paper-white); }

nav.links {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav.links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper-white);
  opacity: 0.82;
  transition: opacity 0.15s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.links a:hover { opacity: 1; }
nav.links a.active { opacity: 1; border-bottom-color: var(--amber); }

.nav-phone {
  font-family: var(--font-mono);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(247,245,238,0.4);
  border-radius: var(--radius);
  color: var(--paper-white);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  nav.links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blueprint-light);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.links.open { max-height: 340px; }
  nav.links a { padding: 16px 32px; width: 100%; border-bottom: 1px solid rgba(247,245,238,0.12); }
  nav.links a.active { border-bottom: 1px solid var(--amber); }
  .menu-toggle { display: block; }
}

/* ---------- Section rhythm ---------- */

section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

.section-alt { background: var(--kraft); }
.section-dark { background: var(--blueprint); color: var(--paper-white); }
.section-dark h2, .section-dark h3 { color: var(--paper-white); }
.section-dark p { color: rgba(247,245,238,0.78); }

/* ---------- Work-order ticket card (signature element) ---------- */

.ticket {
  background: var(--kraft);
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 10px 30px rgba(20,51,82,0.08);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blueprint);
}

.ticket-perf {
  border-top: 1px solid var(--line);
}

/* ---------- Checklist ticks ---------- */

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.check-item:last-child { border-bottom: none; }

.check-box {
  width: 22px;
  height: 22px;
  flex: none;
  border: 2px solid var(--blueprint);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-white);
}
.check-box svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.5); transition: opacity 0.3s ease, transform 0.3s ease; }
.check-item.checked .check-box svg { opacity: 1; transform: scale(1); }
.check-item.checked .check-box { background: var(--sage); border-color: var(--sage); }
.check-item.checked .check-box svg path { stroke: white; }

/* ---------- Stamp ---------- */

.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper-white);
  background: var(--sage);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.8rem;
  opacity: 0;
  animation: stamp-in 0.4s ease-out 1.1s forwards;
}

@keyframes stamp-in {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Grid utilities ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-2 > * { order: initial !important; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
}

/* ---------- Service cards ---------- */

.service-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,51,82,0.1); }

.service-card.featured {
  border-color: var(--amber);
  box-shadow: 0 12px 28px rgba(20,51,82,0.1);
}

.service-card .ticket-no { display: block; margin-bottom: 14px; }

/* ---------- Review / testimonial cards ---------- */

.review-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: 0 8px 22px rgba(20,51,82,0.08);
}

.review-card .stars {
  color: var(--amber-dark);
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-quote {
  font-size: 0.98rem;
  color: var(--ink);
  margin: 16px 0 18px;
  line-height: 1.6;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
}
.review-meta strong { color: var(--blueprint); font-family: var(--font-body); }
.review-meta span { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.78rem; }

/* ---------- Cleaning tiers ---------- */

.tier-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,51,82,0.1); }

.tier-card.featured {
  border-color: var(--amber);
  box-shadow: 0 14px 32px rgba(20,51,82,0.12);
}

.tier-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.tier-card h3 { color: var(--blueprint); margin-bottom: 6px; }
.tier-card .tier-tagline { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }

.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.tier-list li:last-child { border-bottom: none; }
.tier-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 7px;
  flex: none;
}

/* ---------- Add-on cards ---------- */

.addon-card {
  background: var(--kraft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
}
.addon-card h3 { font-size: 1rem; color: var(--blueprint); margin-bottom: 6px; }
.addon-card p { font-size: 0.88rem; margin: 0; }

.grid-addons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

/* ---------- Process timeline ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr; } }

.timeline-step {
  position: relative;
  padding-top: 18px;
  border-top: 3px solid var(--amber);
}

.timeline-step .ticket-no { color: var(--amber-dark); font-weight: 600; }

/* ---------- Stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr 1fr; } }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--amber);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

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

footer.site {
  background: var(--ink);
  color: rgba(247,245,238,0.7);
  padding: 56px 0 28px;
}
footer.site h3 { color: var(--paper-white); font-size: 1rem; }
footer.site a { text-decoration: none; color: rgba(247,245,238,0.7); }
footer.site a:hover { color: var(--amber); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  border-top: 1px solid rgba(247,245,238,0.15);
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms ---------- */

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blueprint);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blueprint);
}
.form-row textarea { resize: vertical; min-height: 120px; }

/* ---------- Misc ---------- */

.divider-dash {
  border: none;
  border-top: 2px dashed var(--line);
  margin: 0;
}

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(20,51,82,0.07);
  color: var(--blueprint);
  padding: 5px 10px;
  border-radius: 20px;
}
