/* Ritchie Design Services: shared styles
   Palette: aubergine + gold */
:root {
  --plum: #2b1a3a;
  --plum-2: #44295a;
  --plum-3: #1d1128;
  --ink: #1e1726;
  --muted: #5f5868;
  --on-dark: #ddd3e6;
  --on-dark-muted: #a596b3;
  --line: #e4dfe9;
  --bg: #ffffff;
  --bg-soft: #f6f4f8;
  --gold: #e0b84f;        /* fills, buttons, accents on dark */
  --gold-text: #8a6514;   /* gold for text on white (AA contrast) */
  --gold-soft: #f8f0dc;
  --radius: 10px;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--gold-text); margin-bottom: .8em; }
.dark .eyebrow, .hero .eyebrow { color: var(--gold); }
section { padding: 84px 0; }
.soft { background: var(--bg-soft); }
.lede { font-size: 1.13rem; color: var(--muted); max-width: 64ch; }
.section-head { margin-bottom: 40px; max-width: 720px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(43,26,58,.97); color: #fff; backdrop-filter: blur(6px); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand b { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; }
.brand small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); line-height: 1; }
nav.main { display: flex; gap: 22px; font-size: .95rem; }
nav.main a { text-decoration: none; opacity: .85; }
nav.main a:hover, nav.main a[aria-current] { opacity: 1; color: var(--gold); }

.btn {
  display: inline-block; background: var(--gold); color: var(--plum);
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); background: #ebc767; }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.link { color: var(--gold-text); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #4a2d63 0%, transparent 60%), linear-gradient(165deg, var(--plum) 0%, var(--plum-3) 100%); color: #fff; padding: 96px 0 100px; }
.hero .lede { color: var(--on-dark); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; max-width: 800px; }
.stats strong { display: block; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 2rem; color: var(--gold); line-height: 1.1; }
.stats span { font-size: .92rem; color: var(--on-dark); }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.card li { margin-bottom: .3em; }
.icon { width: 40px; height: 40px; border-radius: 8px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }
.callout { margin-top: 32px; font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.45rem; font-weight: 500; line-height: 1.35; color: var(--plum); border-left: 4px solid var(--gold); padding: 4px 0 4px 20px; max-width: 760px; }

/* Work cards */
.work-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.work-card:hover { box-shadow: 0 10px 28px rgba(43,26,58,.14); transform: translateY(-2px); }
.work-card .top { background: var(--plum); color: #fff; padding: 26px; }
.work-card .top .eyebrow { color: var(--gold); }
.work-card .top h3 { font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.5rem; font-weight: 600; margin: 0; }
.work-card .body { padding: 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 14px; color: var(--muted); font-size: .97rem; }
.work-card .body ul { margin: 0; padding-left: 1.1em; }
.work-card .body .link { margin-top: auto; }

/* Pricing */
.price { display: flex; flex-direction: column; }
.price .amount { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 2rem; margin: 6px 0 2px; color: var(--plum); }
.price .amount small { font-family: Inter, sans-serif; font-size: .85rem; color: var(--muted); font-weight: 500; }
.price .term { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.price ul { flex: 1; margin-bottom: 20px; }
.price .btn { align-self: flex-start; }
.note { margin-top: 26px; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
.note strong { color: var(--ink); }

/* Steps */
.step .num { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 2.2rem; color: var(--gold-text); line-height: 1; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .96rem; }

/* About */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.about.solo { grid-template-columns: 1fr; max-width: 820px; }
.photo { width: 100%; object-fit: cover; }
.photo { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(135deg, #ece6f1, #cfc3db); display: grid; place-items: center; color: var(--plum-2); font-size: .9rem; text-align: center; padding: 20px; }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.timeline b { display: block; font-weight: 600; }
.timeline span { color: var(--muted); font-size: .93rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: .85rem; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--on-dark); }

/* Dark sections & contact */
.dark { background: var(--plum); color: #fff; }
.dark .lede { color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
form { display: grid; gap: 14px; }
label { font-size: .88rem; font-weight: 500; display: grid; gap: 6px; }
input, textarea, select { font: inherit; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; }
input::placeholder, textarea::placeholder { color: var(--on-dark-muted); }
select option { color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { margin-bottom: 10px; }
.contact-list a { color: var(--gold); }
form .btn { justify-self: start; }
.fine { font-size: .82rem; color: var(--on-dark-muted); }
.fine a { color: var(--on-dark); }

/* Case study page */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
.glance div { background: var(--plum-3); padding: 18px 20px; }
.glance dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.glance dd { margin: 0; color: var(--on-dark); font-size: .95rem; }
.problems { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.problems li { background: #fff; border: 1px solid var(--line); border-left: 4px solid #b4462f; border-radius: 0 8px 8px 0; padding: 14px 18px; color: var(--muted); }
.problems b { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.did { counter-reset: did; }
.did .card { position: relative; padding-top: 26px; }
.did .card h3::before { counter-increment: did; content: counter(did, decimal-leading-zero); display: block; font-family: "Barlow Semi Condensed", sans-serif; font-size: 1.6rem; color: var(--gold-text); margin-bottom: 6px; }
.did .card p + p { margin-top: .7em; }
.did .card .fact { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--plum-2); background: var(--gold-soft); padding: 3px 10px; border-radius: 999px; }
.did .wide { grid-column: span 2; }
.outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.outcomes li { position: relative; padding-left: 32px; color: var(--on-dark); }
.outcomes li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--plum); font-size: .75rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.diagram { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.diagram svg { display: block; min-width: 760px; width: 100%; height: auto; }
.cta-band { text-align: center; }
.cta-band .lede { margin: 0 auto 26px; }

/* Footer */
footer { background: var(--plum-3); color: var(--on-dark-muted); font-size: .85rem; padding: 32px 0; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--on-dark); }

/* Simple text page */
.prose { max-width: 720px; margin: 0 auto; padding: 56px 20px 80px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose a { color: var(--gold-text); }

@media (max-width: 920px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .about, .contact-grid, .split { grid-template-columns: 1fr; }
  .photo { max-width: 260px; }
  nav.main { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 68px; }
  .g2, .g3, .g4, .outcomes, .glance { grid-template-columns: 1fr; }
  .did .wide { grid-column: auto; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .brand small { display: none; }
  .brand b { font-size: 1.05rem; }
  .brand img { width: 30px; height: 30px; }
  h1 br { display: none; }
}
@media (max-width: 400px) {
  .brand b { font-size: .95rem; }
  header.site .btn.small { padding: 7px 12px; font-size: .82rem; }
}
.btn { white-space: nowrap; }
.form-status { margin: 0; font-size: .95rem; color: var(--gold); min-height: 1.2em; }
