/* ---------------------------------------------------------------------------
   FSBO Command Center - styles
   Palette + type ported from the Manhattan newsletter (config.BRAND).
--------------------------------------------------------------------------- */

:root {
  --ink:      #2a2622;
  --ink-soft: #5a544d;
  --muted:    #8a8278;
  --muted-2:  #b8afa0;
  --line:     #e2dace;
  --line-2:   #dad2c6;
  --cream:    #f7f3ee;
  --cream-2:  #efeae2;
  --tan:      #e8e0d3;
  --white:    #ffffff;
  --red:      #ce011f;
  --red-dk:   #a80119;
  --green:    #3f7d4e;

  --sans: 'Montserrat', Arial, Helvetica, sans-serif;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;

  --wrap: 1080px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 38, 34, 0.04), 0 8px 24px rgba(42, 38, 34, 0.06);
  --shadow-lift: 0 2px 4px rgba(42, 38, 34, 0.06), 0 16px 40px rgba(42, 38, 34, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dk); }

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

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.header-logos { display: flex; align-items: center; gap: 14px; }
.logo-sep { width: 1px; height: 26px; background: var(--line-2); flex-shrink: 0; }
.kw-mark { height: 32px; width: auto; }
.header-phone {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.header-phone:hover { color: var(--red); }

/* ------------------------------------------------------------------ hero */

.hero {
  background:
    radial-gradient(1200px 400px at 50% -140px, var(--cream-2), transparent 70%),
    var(--cream);
  padding: 58px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}
.hero-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 auto 18px;
  color: var(--ink);
  max-width: 15ch;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--ink-soft);
  margin: 0 auto 34px;
  max-width: 34ch;
}

.hero-card {
  display: flex;
  gap: 20px;
  align-items: center;
  text-align: left;
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.headshot {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--tan);
}
.hero-card-text p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }
.hero-sig {
  margin-top: 10px !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.sig-dot { margin: 0 8px; color: var(--muted-2); }

.scroll-cue {
  display: inline-block;
  margin-top: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue::after { content: " \2193"; color: var(--red); }
.scroll-cue:hover { color: var(--ink); }

/* --------------------------------------------------------------- capture */

.capture {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 0;
}
.capture-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.capture-copy h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.capture-copy p { margin: 0; color: var(--muted-2); font-size: 0.95rem; }

.capture-form { display: flex; flex-direction: column; gap: 12px; }
.field-row { display: flex; gap: 12px; }
.capture-form input {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 13px 15px;
  border: 1px solid #4a453f;
  border-radius: 10px;
  background: #35302b;
  color: var(--white);
}
.capture-form input::placeholder { color: #9c948a; }
.capture-form input:focus {
  outline: none;
  border-color: var(--red);
  background: #3b352f;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-msg { margin: 4px 0 0; font-size: 0.88rem; min-height: 1.1em; }
.form-msg.is-ok { color: #8fd39f; }
.form-msg.is-error { color: #f2a3ad; }

/* ------------------------------------------------------------------ btns */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 13px 24px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-align: center;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dk); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }

/* -------------------------------------------------------------- category */

main { padding: 20px 0 10px; }

.category { padding: 34px 0; border-bottom: 1px solid var(--line); }
.category:last-child { border-bottom: none; }

.cat-head { margin-bottom: 22px; max-width: 60ch; }
.cat-head h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 16px;
}
.cat-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 4px;
  background: var(--red);
  border-radius: 3px;
}
.cat-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0;
  padding-left: 16px;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  position: relative;
  min-height: 168px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-2);
  color: var(--ink);
}
.badge {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 5px;
  margin-bottom: 12px;
}
.badge-pdf { background: #fbe6e9; color: var(--red); }
.badge-xls { background: #e4f0e7; color: var(--green); }
.badge-doc { background: #e7edf7; color: #2f5aa8; }

.card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  margin: 0 0 7px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  flex-grow: 1;
}
.card-cta {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.01em;
}
.card:hover .card-cta { color: var(--red-dk); }

/* ------------------------------------------------------------- close CTA */

.closing-cta {
  background:
    radial-gradient(900px 300px at 50% 0, var(--cream-2), transparent 70%),
    var(--cream);
  border-top: 1px solid var(--line);
  padding: 56px 0;
  text-align: center;
}
.cta-inner { max-width: 620px; margin: 0 auto; }
.closing-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.closing-cta p { margin: 0 auto 26px; color: var(--ink-soft); font-size: 1.02rem; max-width: 52ch; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: var(--muted-2);
  padding: 40px 0 90px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer-logos { display: flex; gap: 26px; align-items: center; }
.footer-logos img { height: 40px; width: auto; opacity: 0.92; filter: brightness(0) invert(1); }
.footer-contact p { margin: 2px 0; font-size: 0.9rem; }
.footer-name { font-weight: 700; color: var(--white); font-size: 1.02rem !important; }
.footer-contact a { color: var(--cream); }
.footer-contact a:hover { color: var(--white); }
.footer-office { color: var(--muted); }
.footer-fine {
  font-size: 0.76rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 8px auto 0;
  line-height: 1.55;
}

/* ------------------------------------------------------------ mobile bar */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  gap: 10px;
  box-shadow: 0 -6px 20px rgba(42, 38, 34, 0.1);
}
.mobile-bar a {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 0;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.mobile-bar-primary { background: var(--red); color: var(--white) !important; border-color: var(--red) !important; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .capture-inner { grid-template-columns: 1fr; gap: 20px; }
  .field-row { flex-direction: column; }
  .hero { padding: 42px 0 34px; }
  .category { padding: 28px 0; }
  .mobile-bar { display: flex; }
  .site-footer { padding-bottom: 96px; }
}

@media (max-width: 480px) {
  .kw-mark { height: 23px; }
  .header-logos { gap: 9px; }
  .logo-sep { height: 17px; }
  .header-phone { font-size: 0.82rem; }
  .hero-card { flex-direction: column; text-align: center; align-items: center; }
  .hero-sig { text-align: center; }
  .card-grid { grid-template-columns: 1fr; }
  .cta-buttons .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
