:root {
  --bg: #f7f6f3;
  --paper: #ffffff;
  --ink: #1c1f1c;
  --ink-soft: #5e6259;
  --rule: #d6d3cb;
  --primary: #2c4f3e;
  --primary-dark: #1a3327;
  --warm: #b08a5a;
  --highlight: #f0eee4;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: Georgia, 'Hoefler Text', 'Iowan Old Style', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--warm); }

/* Header — established firm */
header.firm { padding: 24px 0; border-bottom: 1px solid var(--rule); background: var(--bg); }
header.firm .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.brand { font-family: var(--display); font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none; letter-spacing: 0.005em; line-height: 1.15; }
.brand small { display: block; font-family: var(--sans); font-size: 10px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.14em; margin-top: 4px; }
header.firm nav a { color: var(--ink); text-decoration: none; margin-left: 24px; font-size: 13px; font-weight: 600; }
header.firm nav a:hover { color: var(--primary); }

/* Hero — split, with project preview */
.firm-hero { padding: 72px 0 64px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.firm-hero .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.firm-hero .eyebrow { color: var(--warm); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
.firm-hero h1 { font-family: var(--display); font-size: 48px; line-height: 1.1; font-weight: 700; color: var(--primary); margin-bottom: 20px; letter-spacing: -0.005em; max-width: 18ch; }
.firm-hero .sub { color: var(--ink-soft); font-size: 17px; line-height: 1.75; max-width: 50ch; margin-bottom: 24px; }
.firm-hero .meta-row { display: flex; gap: 28px; padding-top: 20px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.firm-hero .meta-row strong { display: block; font-family: var(--display); font-size: 18px; color: var(--primary); font-weight: 700; }
.firm-hero .meta-row span { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; display: block; }
.hero-image { aspect-ratio: 4/5; background: linear-gradient(135deg, var(--primary) 0%, #355740 50%, var(--warm) 100%); position: relative; }
.hero-image::before { content: ''; position: absolute; left: 28px; top: 28px; right: 28px; bottom: 28px; border: 1px solid rgba(255,255,255,0.4); }
.hero-image::after { content: 'A Bishops Frome kitchen, 2024'; position: absolute; left: 40px; bottom: 40px; color: rgba(255,255,255,0.85); font-family: var(--display); font-style: italic; font-size: 14px; }

/* Projects grid — large project cards */
.projects-section { padding: 80px 0; }
.section-header { margin-bottom: 36px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.section-eyebrow { color: var(--warm); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.section-title { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1.2; max-width: 30ch; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.project-card { background: var(--paper); border: 1px solid var(--rule); padding: 0; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.2s; }
.project-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.project-image { aspect-ratio: 5/4; background: linear-gradient(135deg, var(--highlight), var(--primary)); position: relative; overflow: hidden; }
.project-image .label { position: absolute; bottom: 14px; left: 18px; color: var(--paper); font-family: var(--display); font-style: italic; font-size: 15px; }
.project-image.alt { background: linear-gradient(135deg, var(--primary), var(--warm)); }
.project-image.alt2 { background: linear-gradient(135deg, var(--warm), #5a3818); }
.project-card-body { padding: 22px 24px 24px; }
.project-card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.project-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 12px; }
.project-meta { font-size: 11px; color: var(--warm); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }

/* What we do */
.services-band { background: var(--primary); color: rgba(255,250,242,0.92); padding: 80px 0; }
.services-band .section-eyebrow { color: var(--warm); }
.services-band .section-title { color: var(--paper); }
.svc-rows { margin-top: 36px; }
.svc-row { display: grid; grid-template-columns: 60px 1fr 200px; gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.18); align-items: baseline; }
.svc-row:first-child { border-top: 1px solid rgba(255,255,255,0.18); }
.svc-num { font-family: var(--display); font-size: 28px; color: var(--warm); font-weight: 700; }
.svc-row h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--paper); margin-bottom: 4px; }
.svc-row p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.6; margin: 0; }
.svc-meta { text-align: right; }
.svc-meta strong { display: block; color: var(--warm); font-size: 14px; font-weight: 700; }
.svc-meta span { display: block; font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }

/* Service area */
.area-section { padding: 64px 0; background: var(--highlight); }
.area-section .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.area-section h2 { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 16px; line-height: 1.2; }
.area-section p { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.area-list { list-style: none; padding: 0; columns: 1; }
.area-list li { padding: 10px 0; padding-left: 20px; position: relative; border-bottom: 1px dashed var(--rule); }
.area-list li::before { content: '✓'; position: absolute; left: 0; color: var(--warm); font-weight: 700; }
.area-list strong { color: var(--ink); }

/* Testimonial style block */
.testimonial-band { padding: 80px 0; text-align: center; }
.testimonial-band blockquote { font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--primary); max-width: 760px; margin: 0 auto 20px; }
.testimonial-band blockquote::before { content: '\201C'; font-size: 64px; line-height: 0; vertical-align: -16px; color: var(--warm); margin-right: 8px; }
.testimonial-band cite { font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

/* CTA */
.cta-strip { background: var(--paper); padding: 64px 0; text-align: center; border-top: 1px solid var(--rule); }
.cta-strip h2 { font-family: var(--display); font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 12px; line-height: 1.2; }
.cta-strip p { color: var(--ink-soft); max-width: 500px; margin: 0 auto 24px; }
.cta-strip .btn { display: inline-block; padding: 14px 32px; background: var(--primary); color: var(--paper); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cta-strip .btn:hover { background: var(--primary-dark); }

/* Article pages */
article.page { padding: 64px 0; max-width: 760px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
article.page .breadcrumb { font-size: 12px; color: var(--ink-soft); margin-bottom: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
article.page .breadcrumb a { color: var(--ink-soft); }
article.page h1 { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--primary); margin-bottom: 24px; line-height: 1.2; }
article.page h2 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--primary); margin-top: 36px; margin-bottom: 12px; }
article.page p { margin-bottom: 16px; font-size: 16px; line-height: 1.75; }
article.page ul, article.page ol { margin-bottom: 18px; padding-left: 24px; }
article.page li { margin-bottom: 8px; }

/* Footer */
footer { background: var(--primary-dark); color: rgba(255,250,242,0.78); padding: 48px 0 24px; }
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 28px; }
footer h5 { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--warm); margin-bottom: 12px; }
footer p, footer a { font-size: 14px; color: rgba(255,250,242,0.7); line-height: 1.7; text-decoration: none; display: block; margin-bottom: 4px; }
footer a:hover { color: var(--warm); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; text-align: center; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

@media (max-width: 800px) {
  .firm-hero .grid { grid-template-columns: 1fr; gap: 32px; }
  .firm-hero h1 { font-size: 34px; }
  .svc-row { grid-template-columns: 40px 1fr; gap: 12px; }
  .svc-num { font-size: 20px; }
  .svc-meta { grid-column: 2; text-align: left; margin-top: 6px; }
  .area-section .grid { grid-template-columns: 1fr; gap: 24px; }
  footer .container { grid-template-columns: 1fr; gap: 24px; }
  header.firm nav a { margin-left: 14px; }
  .testimonial-band blockquote { font-size: 20px; }
  article.page h1 { font-size: 30px; }
}

/* Inner-page header fallback — for pages that still use the un-classed <header> layout */
body > header:not([class]) {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule, #d8d4cc);
  background: var(--bg, #ffffff);
}
body > header:not([class]) .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
body > header:not([class]) .brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 600; color: inherit; text-decoration: none;
}
body > header:not([class]) .brand-icon {
  width: 28px; height: 28px; flex-shrink: 0;
}
body > header:not([class]) nav {
  display: flex; gap: 22px; flex-wrap: wrap;
}
body > header:not([class]) nav a {
  font-size: 13px; color: inherit; text-decoration: none; letter-spacing: 0.04em;
}
