/* sandwichbuilders.co.uk - limewash + oxide brick + slate. Zilla Slab (structural, brick-shaped letterforms) + Work Sans. */
:root {
  --paper: #f7f4ee;
  --paper-deep: #efe8d9;
  --ink: #2a2621;
  --ink-soft: #6b6154;
  --brick: #9a3b24;
  --brick-deep: #7a2e1b;
  --brick-glow: #c96a4c;
  --slate: #454f49;
  --slate-deep: #313a35;
  --line: #ddd2b8;
  --line-deep: #c9bb98;
  --surface: #ffffff;

  --shadow: 0 1px 2px rgba(42,38,33,0.05), 0 3px 10px rgba(42,38,33,0.05);
  --shadow-lg: 0 6px 20px rgba(42,38,33,0.09), 0 16px 40px rgba(42,38,33,0.07);
  --max: 1120px;
  --content: 66ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .slab {
  font-family: 'Zilla Slab', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
  color: var(--slate-deep);
}
h1 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 1.8em 0 0.6em; }
h3 { font-size: 1.3rem; margin: 1.4em 0 0.4em; }
h4 { font-size: 1.05rem; margin: 1.2em 0 0.4em; }
p { margin: 0 0 1.1em; }

a { color: var(--brick); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--content); margin: 0 auto; padding: 0 1.5rem; }

/* Topbar */
.topbar { background: var(--slate-deep); color: #ece6d6; font-size: 0.875rem; padding: 0.55rem 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.topbar a { color: #ccc3ae; text-decoration: none; }
.topbar a:hover { color: #ece6d6; }
.topbar span em { color: var(--brick-glow); font-style: normal; font-family: 'Zilla Slab', serif; font-size: 1.0rem; font-weight: 500; }
.pens-pill { display:inline-block; background: var(--brick); color:#fff; padding:.15rem .5rem; border-radius:2px; font-size:.82rem; font-weight:600; margin-right:.5rem; }

/* Header */
header.site {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 1.1rem 0;
  position: sticky; top: 0; z-index: 50;
}
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand {
  font-family: 'Zilla Slab', serif;
  font-size: 1.65rem; font-weight: 700;
  color: var(--slate-deep); text-decoration: none; line-height: 1;
}
.brand .ampersand { color: var(--brick); padding: 0 0.15em; font-weight: 500; }
.brand small { display: block; font-family: 'Work Sans', sans-serif; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-soft); margin-top: 0.3rem; }
nav.primary ul { display: flex; gap: 1.7rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.primary a { color: var(--slate-deep); text-decoration: none; font-weight: 600; font-size: 0.95rem; position: relative; padding: 0.25rem 0; }
nav.primary a:hover { color: var(--brick); }
nav.primary a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 3px; background: var(--brick); }

/* Hero - split layout, brick-coursing panel instead of stock photography */
.hero {
  background: var(--paper);
  color: var(--ink);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center;
}
.hero h1 { max-width: 620px; color: var(--slate-deep); }
.hero .lede { font-size: 1.15rem; max-width: 540px; color: var(--ink-soft); margin-bottom: 2rem; }
.hero .section-eyebrow { color: var(--brick); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-courses {
  height: 280px; border-radius: 3px;
  background-color: var(--brick);
  background-image:
    linear-gradient(var(--brick-deep) 2px, transparent 2px),
    linear-gradient(90deg, var(--brick-deep) 2px, transparent 2px);
  background-size: 100% 34px, 68px 68px;
  background-position: 0 0, 0 0, 0 17px, 34px 17px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero-courses::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 32px, rgba(0,0,0,0.18) 32px 34px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.14) 0 2px, transparent 2px 66px);
  background-position: 0 0, 34px 34px;
  background-repeat: repeat, repeat-y;
}
.hero-courses::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.14) 0 2px, transparent 2px 66px);
  background-position: 0 0;
  transform: translateY(0);
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-courses { height: 160px; order: -1; }
}

.hero.hero-light {
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 0 2.4rem;
}
.hero.hero-light .container { grid-template-columns: 1fr; }
.hero.hero-light h1 { color: var(--slate-deep); max-width: 720px; }
.hero.hero-light .lede { color: var(--ink-soft); max-width: 640px; }
.hero.hero-light .section-eyebrow { color: var(--brick); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--brick); color: #fff; border-color: var(--brick); }
.btn-primary:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--slate-deep); border-color: var(--slate-deep); }
.btn-ghost:hover { background: var(--slate-deep); color: var(--paper); }

/* Sections */
section { padding: 4rem 0; background: var(--paper); }
section.tight { padding: 2rem 0; }
section.alt { background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--brick); margin: 0 0 0.5em; font-family: 'Work Sans', sans-serif; }

.wave-divider { display: none; }

/* Schedule list (replaces card-grid for the services overview: a builder's schedule of works, not a SaaS card kit) */
.schedule { border-top: 2px solid var(--ink); }
.schedule-row {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.5rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line-deep);
  align-items: baseline;
}
.schedule-row:hover { background: var(--paper-deep); }
.schedule-num { font-family: 'Zilla Slab', serif; font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }
.schedule-body h3 { margin: 0 0 0.3em; }
.schedule-body h3 a { color: var(--slate-deep); text-decoration: none; }
.schedule-body h3 a:hover { color: var(--brick); }
.schedule-body p { margin: 0 0 0.5em; color: var(--ink-soft); }
.schedule-body .more { font-size: 0.9rem; font-weight: 700; color: var(--brick); text-decoration: none; }
@media (max-width: 600px) {
  .schedule-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Grids (used on inner pages for guides/areas, not the homepage schedule) */
.grid { display: grid; gap: 1.6rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
  .grid-4 .card { padding: 1.4rem; }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.7rem;
  border-radius: 2px;
  transition: border-color 0.15s ease;
}
section.alt .card { background: var(--surface); border-color: var(--line-deep); }
.card:hover { border-color: var(--brick); }
.card h3 { margin-top: 0; }
.card a.card-link { color: var(--slate-deep); text-decoration: none; }
.card a.card-link:hover { color: var(--brick); }
.card .more { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--brick); text-decoration: none; font-family: 'Work Sans', sans-serif; }

/* Promise strip */
.promise {
  background: var(--surface); border: 1px solid var(--line);
  padding: 1.6rem; border-radius: 2px;
  border-left: 4px solid var(--brick);
}
.promise h3 { margin: 0 0 0.5em; font-size: 1.15rem; color: var(--slate-deep); font-family: 'Zilla Slab', serif; font-weight: 600; }
.promise p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.promise .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 2px;
  background: var(--slate-deep); color: var(--brick-glow);
  font-family: 'Zilla Slab', serif; font-weight: 600;
  margin-bottom: 0.8rem; font-size: 1.1rem;
}
.guarantee-pill {
  display: inline-block; background: var(--slate-deep); color: #ece6d6;
  padding: 0.35rem 0.85rem; border-radius: 2px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  margin: 0.5rem 0.5rem 0 0;
}

/* Panel */
.panel {
  background: var(--slate-deep);
  color: #ece6d6;
  padding: 2.4rem;
  border-radius: 3px;
  position: relative;
}
.panel h2, .panel h3 { color: #ece6d6; margin-top: 0; }
.panel .lede { color: #c9c1ac; }
.panel a { color: var(--brick-glow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 700; }
.panel a:hover { color: #ece6d6; }
.panel .section-eyebrow { color: var(--brick-glow); }

/* Footer */
footer.site { background: var(--slate-deep); color: #c9c1ac; padding: 3rem 0 2rem; margin-top: 4rem; }
footer.site h4 { color: #ece6d6; font-size: 0.9rem; margin: 0 0 0.8em; font-family: 'Work Sans', sans-serif; font-weight: 700; letter-spacing: 0.04em; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 0.4rem 0; }
footer.site a { color: #c9c1ac; text-decoration: none; font-size: 0.95rem; }
footer.site a:hover { color: #ece6d6; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-bottom {
  border-top: 1px solid rgba(236,230,214,0.15);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: #c9c1ac;
}

/* Article */
article.guide { padding: 3rem 0; }
article.guide .meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.5rem; letter-spacing: 0.04em; font-family: 'Work Sans', sans-serif; }
article.guide .meta a { color: var(--brick); }
article.guide blockquote {
  border-left: 4px solid var(--brick);
  margin: 1.8em 0; padding: 0.5em 0 0.5em 1.5em;
  font-style: normal; color: var(--ink-soft);
  font-family: 'Zilla Slab', serif; font-size: 1.2rem; line-height: 1.5;
}
article.guide ul, article.guide ol { margin: 0 0 1.2em; padding-left: 1.5em; }
article.guide li { margin: 0.4em 0; }
article.guide .callout {
  background: var(--surface);
  border-left: 4px solid var(--brick);
  padding: 1.2rem 1.5rem;
  margin: 1.8em 0;
  border-radius: 0 2px 2px 0;
}
article.guide .callout h4 { margin-top: 0; color: var(--slate-deep); }

/* Jobs feed */
.job {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.job:last-child { border-bottom: none; }
.job-date { font-family: 'Zilla Slab', serif; font-size: 1.05rem; color: var(--brick); font-weight: 600; min-width: 95px; }
.job-where { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 0.3rem; font-family: 'Work Sans', sans-serif; }
.job h3 { margin: 0 0 0.4em; font-size: 1.15rem; }
.job p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.job .price { font-family: 'Zilla Slab', serif; font-size: 1.3rem; color: var(--slate-deep); font-weight: 600; white-space: nowrap; }

/* Utility */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.divider-rule { height: 2px; background: var(--ink); margin: 3rem 0; max-width: 60px; }
.divider-rule.center { margin-left: auto; margin-right: auto; }

/* WhatsApp button */
.wa-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25d366; color: #fff !important;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; text-decoration: none !important;
  transition: background 0.15s ease;
}
.wa-btn:hover { background: #1ebe57; color: #fff !important; }
.wa-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn.wa-btn-lg { background: #25d366; border-color: #25d366; color: #fff; padding: 0.85rem 1.5rem; border-radius: 2px; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.97rem; }
.btn.wa-btn-lg:hover { background: #1ebe57; border-color: #1ebe57; color: #fff; }
.btn.wa-btn-lg svg { width: 20px; height: 20px; }
.topbar .wa-btn { padding: 0.25rem 0.7rem; font-size: 0.8rem; }
.topbar .wa-btn svg { width: 14px; height: 14px; }

@media (max-width: 700px) {
  nav.primary ul { gap: 1rem; font-size: 0.9rem; }
  header.site .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .panel { padding: 2rem 1.5rem; }
  .job { grid-template-columns: 1fr; gap: 0.4rem; }
  .job-date { font-size: 0.95rem; }
  .topbar .wa-btn { display: none; }
}
