/* Shared styles for danwestmoreland.com secondary pages (services, work, book, for). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:root {
  --bg: #FAF6EF;
  --bg-elev: #FFFBF4;
  --ink: #15171A;
  --ink-soft: #4A4D52;
  --rule: #E6DFD2;
  --accent: #D9512C;
  --accent-ink: #FFFBF4;
  --ok: #2F6B4F;
  --serif: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1100px;
  --gutter: clamp(20px, 5vw, 56px);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 17px;
}

/* Header / footer (matches homepage) */
.site-header {
  max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); transition: color .15s ease; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a.nav-cta { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.site-footer {
  border-top: 1px solid var(--rule); max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-soft);
}
.site-footer a { text-decoration: none; color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* Layout */
section { max-width: var(--maxw); margin: 0 auto; padding: 88px var(--gutter); }
section + section { border-top: 1px solid var(--rule); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--accent); }
.page-hero { padding-top: 72px; padding-bottom: 72px; }
.page-hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04; letter-spacing: -0.025em; max-width: 20ch;
}
.page-hero h1 em, .section-title em { font-style: italic; color: var(--accent); font-weight: 500; }
.lede { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--ink-soft); max-width: 58ch; margin-top: 28px; }
.lede strong { color: var(--ink); font-weight: 600; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin-bottom: 40px; }
.prose { max-width: 64ch; }
.prose p { font-size: clamp(17px, 1.8vw, 19px); line-height: 1.65; }
.prose p + p { margin-top: 16px; }
.prose strong { font-weight: 600; }

/* Buttons */
.cta-row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; background: var(--ink); color: var(--accent-ink); text-decoration: none; font-weight: 500;
  font-size: 16px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; font-family: var(--sans);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { display: inline-block; text-decoration: none; font-weight: 500; font-size: 16px; padding: 14px 4px; color: var(--ink); border-bottom: 1px solid var(--ink); }
.btn-ghost:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--rule); border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, transform .15s ease;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; line-height: 1.2; }
.card p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.card .card-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
a.card:hover .card-link { color: var(--accent); }
.card .stat-num { font-size: 34px; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.stat-label { font-size: 15px; color: var(--ink-soft); font-weight: 500; }

/* Lists */
.check-list { display: flex; flex-direction: column; gap: 14px; max-width: 66ch; }
.check-list li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.55; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 12px; height: 2px; background: var(--accent); }
.check-list li strong { font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-weight: 700;
  font-size: 15px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 10px;
}
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.fit h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-bottom: 16px; }

/* Case study */
.case-meta { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 28px; }
.pill { font-size: 14px; font-weight: 500; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg-elev); }
.case-block { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--rule); }
.case-block:first-of-type { border-top: 0; padding-top: 0; }
.case-block h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.case-block .prose p { font-size: 17px; }

/* Dark band */
.band { background: var(--ink); color: var(--bg); max-width: none; padding: 0; border-top: 0 !important; }
.band-inner { max-width: var(--maxw); margin: 0 auto; padding: 88px var(--gutter); }
.band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; line-height: 1.15; max-width: 24ch; }
.band h2 em { color: var(--accent); font-style: italic; }
.band p { color: #CFCAC0; font-size: 18px; max-width: 56ch; margin-top: 18px; }
.band .btn { background: var(--accent); margin-top: 32px; }
.band .btn:hover { background: var(--bg); color: var(--ink); }

/* Forms */
.form-card { background: var(--bg-elev); border: 1px solid var(--rule); border-radius: 18px; padding: 32px; }
.form-card h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-bottom: 8px; }
.form-card > p { color: var(--ink-soft); font-size: 16px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--rule);
  background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -10000px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }

.book-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.cal-embed { min-height: 640px; background: var(--bg-elev); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.cal-fallback { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.cal-fallback h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.cal-fallback p { color: var(--ink-soft); }
.cal-fallback .btn { align-self: flex-start; }

/* Personalized banner on /for/ pages */
.for-banner { display: none; margin-bottom: 24px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.for-banner.on { display: block; }

.faq-list { display: flex; flex-direction: column; gap: 32px; max-width: 70ch; }
.faq-item h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; margin-bottom: 8px; }
.faq-item p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

@media (max-width: 860px) {
  .site-header nav { gap: 18px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  section { padding: 60px var(--gutter); }
  .page-hero { padding-top: 48px; padding-bottom: 48px; }
  .card-grid, .steps, .two-col, .book-grid { grid-template-columns: 1fr; }
  .two-col { gap: 32px; }
  .case-block { grid-template-columns: 1fr; gap: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .band-inner { padding: 60px var(--gutter); }
}
