/* ============================================================
   CS Resources — Seller-facing landing page
   Matched to csroil.com: Cormorant Garamond display + IBM Plex
   Sans body, warm cream/ivory palette, charcoal-green ink.
   ============================================================ */

:root {
  --bg:        #fbf6ea;  /* warm cream (body) */
  --bg-cream:  #fffaf0;  /* lighter ivory section */
  --bg-sand:   #f5efe0;  /* sand section */
  --bg-teal:   #edf6f6;  /* pale teal section */
  --ink:       #17201f;  /* near-black green */
  --muted:     #4d5a57;  /* muted body text */
  --line:      #e3dcc9;  /* hairline borders */
  --accent:    #1f3a34;  /* deep evergreen (buttons) */
  --accent-2:  #9a7b4f;  /* brass (eyebrow labels) */
  --max:       1120px;
  --radius:    14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.2px;
  margin: 0 0 0.4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 1rem;
}

.lede   { font-size: 1.25rem; color: var(--muted); max-width: 46ch; }
.section-lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-bottom: 2.4rem; }
.center { margin-left: auto; margin-right: auto; text-align: center; }

p { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--ink); }
a { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fdfaf2; }
.btn-primary:hover { background: #16302a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg-cream); }
.btn-block { width: 100%; padding: 1rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 234, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand-logo { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  opacity: 0.85;
}
.nav a:hover { opacity: 1; }
.header-cta { padding: 0.5rem 1.1rem; font-size: 0.92rem; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); }
.hero-inner { max-width: 880px; }
.hero h1 { margin-bottom: 0.5em; }
.promise-stack {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.promise-stack li {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem; font-weight: 500;
}
.promise-stack li::before { content: "\2713\00a0"; color: var(--accent); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.hero-cta.center { justify-content: center; }
.hero-note { margin-top: 1.4rem; font-size: 0.95rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-cream { background: var(--bg-cream); }
.section-sand  { background: var(--bg-sand); }
.section-teal  { background: var(--bg-teal); }

/* ---------- Cards (What We Buy) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Steps (How It Works) ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step;
}
.step { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fdfaf2;
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.3rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Why CSR ---------- */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.why-intro .btn { margin-top: 0.6rem; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.why-list h3 { margin-bottom: 0.2rem; }
.why-list p { margin: 0; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  margin: 0; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.quote blockquote {
  margin: 0 0 1rem; font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem; line-height: 1.35; color: var(--ink);
}
.quote figcaption { font-size: 0.92rem; color: var(--muted); font-weight: 500; }

/* ---------- Form ---------- */
.section-form { background: var(--bg-sand); }
.form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.form-phone { font-size: 0.98rem; color: var(--muted); }
.offer-form {
  background: var(--bg-cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; }
.req { color: var(--accent-2); }
.opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.7rem 0.85rem; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,58,52,0.12);
}
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-fineprint { font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0 0; }
.form-error { color: #9a3b2f; font-size: 0.9rem; font-weight: 500; margin: 0.9rem 0 0; }
.form-error[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
details {
  border-bottom: 1px solid var(--line); padding: 1.1rem 0;
}
summary {
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-2); font-size: 1.6rem; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { margin: 0.8rem 0 0.2rem; color: var(--muted); max-width: 68ch; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d2cf; padding: 56px 0; }
.footer-inner { display: grid; gap: 20px; }
.footer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-contact p { margin: 0 0 4px; }
.site-footer a { color: #eef3f1; }
.disclaimer { font-size: 0.82rem; color: #8a9692; max-width: 80ch; margin: 8px 0 0; line-height: 1.55; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .cards, .steps, .quotes { grid-template-columns: 1fr 1fr; }
  .why-grid, .form-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .cards, .steps, .quotes, .row { grid-template-columns: 1fr; }
  .hero-cta .btn, .header-cta { text-align: center; }
}
