/* ─────────────────────────────────────────
   Flowsmith — Custom Theme
   Fonts: DM Serif Display (headlines) + DM Sans (body)
   Palette: Forest green + warm gold on warm off-white
───────────────────────────────────────── */

:root {
  --green-deep: #1B4332;
  --green-mid: #2D6A4F;
  --green-light: #40916C;
  --gold: #C9A84C;
  --gold-light: #D4B96A;
  --bg: #FDFBF7;
  --bg-alt: #F5F0E8;
  --text: #1A1A1A;
  --text-muted: #5A5A52;
  --text-light: #8A8A80;
  --border: #E2DDD4;
  --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

.site-header nav { display: flex; gap: 2.5rem; }

.site-header nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-header nav a:hover { color: var(--green-deep); }

/* ── Hero ── */
.hero {
  padding: 6rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--green-deep);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; }

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--green-deep);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.15rem;
  line-height: 1.4;
}

/* ── Automation Card (hero visual) ── */
.automation-card {
  background: var(--green-deep);
  border-radius: 16px;
  padding: 1.75rem;
  color: #fff;
}

.card-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

.card-flow {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.7rem 1rem;
}

.step-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.flow-arrow {
  font-size: 0.85rem;
  color: var(--gold);
  text-align: center;
  padding-left: 1.4rem;
}

.card-time {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
  text-align: center;
}

/* ── Shared Section Styles ── */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  color: var(--green-deep);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* ── Proof ── */
.proof {
  padding: 5rem 2rem;
  background: var(--green-deep);
}

.proof h2 { color: #fff; }
.proof .section-label { color: var(--gold); }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.proof-item {
  padding: 2rem 1.75rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.proof-item:last-child { border-right: none; }

.proof-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.proof-context {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.proof-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 680px;
}

/* ── Playbook ── */
.playbook { padding: 6rem 2rem; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--green-light);
  opacity: 0.5;
  line-height: 1;
  padding-top: 0.15rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
}

/* ── Services ── */
.services { padding: 6rem 2rem; background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27,67,50,0.08);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Manifesto ── */
.manifesto {
  padding: 6rem 2rem;
  background: var(--green-deep);
}

.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.manifesto blockquote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #fff;
  line-height: 1.35;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.manifesto p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Closing ── */
.closing { padding: 6rem 2rem; text-align: center; }

.closing-inner { max-width: 760px; margin: 0 auto; }

.closing h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  color: var(--green-deep);
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.closing p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Footer ── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links { display: flex; gap: 3rem; }

.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.footer-col a, .footer-col span {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-col a:hover { color: var(--green-deep); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { order: -1; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .step { grid-template-columns: 50px 1fr; gap: 1rem; }
  .site-header nav { display: none; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
  .stat { flex: 1 1 calc(50% - 0.75rem); }
}

@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .proof-item:last-child { border-bottom: none; }
}