/* ============================================================
   TradeMate landing page
   Theme: warm cream base, forest green ink, amber accents.
   Sturdy, plainspoken, built-for-the-trades feel.
   ============================================================ */

:root {
  color-scheme: light;
  --ink: #1e3d2f;           /* forest green — headings, primary buttons */
  --accent: #b96e1f;        /* amber — highlights, links */
  --text: #33403a;
  --text-muted: #5f6d66;
  --bg: #faf7f1;            /* warm cream */
  --bg-tint: #f1ece1;       /* deeper cream band */
  --bg-hero: #ece5d6;       /* hero band */
  --border: #e0d9ca;
  --radius: 8px;
  --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.narrow { max-width: 640px; }
.center { text-align: center; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.875rem, 4vw, 2.875rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Brand / logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }

.logo-mark { width: 28px; height: 28px; display: block; flex-shrink: 0; }

.logo {
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--ink);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 241, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.nav-links a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c5743; color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: #c9c0ac;
}
.btn-secondary:hover { border-color: var(--ink); }

/* Light button — for dark CTA panel */
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-tint); color: var(--ink); }

.btn-small { padding: 8px 16px; font-size: 0.875rem; }
.nav-links .btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 88px;
  border-bottom: 1px solid var(--border);
  background:
    repeating-linear-gradient(-45deg, rgba(30, 61, 47, 0.035) 0 2px, transparent 2px 14px),
    var(--bg-hero);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 620px;
}

.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-note { margin-top: 24px; font-size: 0.875rem; color: var(--text-muted); }

/* ---------- Hero visual: quote card mock ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(30, 61, 47, 0.14);
  overflow: hidden;
  font-size: 0.875rem;
}

.quote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #f0ebe0;
}

.quote-id { display: block; font-weight: 800; color: var(--ink); }
.quote-sub { display: block; font-size: 0.75rem; color: var(--text-muted); }

.pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-amber { background: #f7ead6; color: #8a5413; }

.photo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0ebe0;
  flex-wrap: wrap;
}

.photo-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #e7efe9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.photo-thumb svg {
  width: 20px;
  height: 20px;
  stroke: #4a7a5f;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

.quote-lines { padding: 8px 18px; }

.line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed #ece6d8;
  color: var(--text);
}
.line span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }

.line-total {
  border-bottom: none;
  font-weight: 800;
  color: var(--ink);
  font-size: 1rem;
}
.line-total span:last-child { color: var(--ink); font-weight: 800; }

.quote-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #f7f4ec;
  border-top: 1px solid #f0ebe0;
  flex-wrap: wrap;
}

.voice-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  background: #e7efe9;
  border-radius: 999px;
  padding: 5px 12px;
}

.voice-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--ink);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.quote-status { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: 1.0625rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { margin-top: 8px; color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Icons ---------- */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e7efe9;            /* pale green tile */
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-rows { gap: 40px 48px; }
.feature p { margin-top: 8px; color: var(--text-muted); font-size: 0.9375rem; }
.feature .card-icon { background: #f7ead6; }      /* amber tiles for features */
.feature .card-icon svg { stroke: var(--accent); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
}

.steps p { margin-top: 8px; color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Results: stats + quote ---------- */
.section-results { background: var(--bg); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  max-width: 680px;
}
.quote p { font-size: 1.125rem; color: var(--text); }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.875rem; color: var(--text-muted); }

/* ---------- CTA (dark green panel, light button) ---------- */
.section-cta { background: var(--ink); }

.section-cta h2 { color: #fff; }
.section-cta .lead { color: #b9cfc2; }

.cta-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-form input {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 12px 16px;
  border: 1px solid #3b5d4b;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  background: #fff;
  color: var(--text);
}
.cta-form input:focus { outline: 2px solid #e8b777; outline-offset: 1px; }

.cta-note { margin-top: 24px; font-size: 0.875rem; color: #b9cfc2; }
.cta-note a { color: #ddeae1; text-decoration: underline; }
.cta-note a:hover { color: #fff; }

/* ---------- Footer (deep green) ---------- */
.footer {
  background: #14291f;
  padding: 48px 0 24px;
}

.footer .logo { color: #fff; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-tag {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #8fa89a;
  max-width: 320px;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #8fa89a; font-size: 0.875rem; }
.footer-links a:hover { color: #fff; }

.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #244434;
  font-size: 0.8125rem;
  color: #71907f;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0; }
}

@media (max-width: 860px) {
  .grid-3, .steps, .stats-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
}
