:root{--brand:#1d5c73;--brand-dark:#133c4b;--brand-tint:#e8eff1;--on-brand:#ffffff;}
/* Tradesman site template. Plain CSS, no framework, no web fonts.
   Brand colours are injected by build.py into :root (the block below is the fallback). */
:root {
  --brand: #1d5c73;
  --brand-dark: #153f50;
  --brand-tint: #e8f0f3;
  --on-brand: #ffffff;
  --wa: #18794a;
  --bg: #fbf9f5;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #5b6672;
  --line: #e6e1d8;
  --radius: 10px;
  --bar-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: var(--bar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #e0a526; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.nav { display: none; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius);
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer;
}
.btn svg { flex: none; }
.btn-call { background: var(--brand); color: var(--on-brand); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-small { padding: 8px 14px; font-size: .95rem; }
.btn-big { padding: 14px 24px; font-size: 1.05rem; }
.btn:hover { filter: brightness(1.08); }
.btn.header-call { display: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }

/* Hero: solid colour, no gradients. An optional photo sits under it at low opacity, so the text stays readable. */
.hero { background: var(--brand-dark); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero-inner { position: relative; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; opacity: .85; margin-bottom: .8em; }
.hero .lead { font-size: 1.15rem; max-width: 40em; opacity: .95; }
.hero .btn-call { background: #fff; color: var(--brand-dark); }
.chips { list-style: none; margin: 1.6em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 600; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--brand-tint); }
.grid { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); }
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; }
.two-col { display: grid; gap: 32px; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: 24px; align-self: start; }
.trust-list { list-style: none; margin: 0 0 1em; padding: 0; }
.trust-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.trust-list li:last-child { border-bottom: 0; }
.trust-list strong { display: block; }
.trust-card .small { font-size: .9rem; color: var(--muted); margin: 0; }

/* Gallery: columns, so portrait and landscape photos both show uncropped */
.gallery { columns: 2; column-gap: 12px; }
.gallery figure { margin: 0 0 12px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: auto; }
.gallery .ph-photo { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: .9rem; aspect-ratio: 4 / 3; }

/* Contact */
.details { margin: 1.5em 0 0; }
.details dt { font-weight: 700; margin-top: 1em; }
.details dd { margin: 0; color: var(--muted); }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-link { display: block; padding: 10px 14px; font-weight: 600; }

/* Placeholders: obvious on previews, blocked from production by build.py --strict */
.ph { background: #fff6dc; border: 1px dashed #b88a14; color: #6b5200; border-radius: 6px; padding: 1px 6px; }
.card .ph, .gallery .ph { display: inline-block; }
.gallery .ph-photo { background: #fff6dc; border: 1px dashed #b88a14; color: #6b5200; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 32px 0 20px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.legal { margin-top: 20px; font-size: .85rem; color: var(--muted); }
.pf-badge {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: .9rem; font-weight: 600; background: var(--bg);
}
.pf-badge:hover { border-color: var(--brand); }
.pf-badge svg { color: var(--brand); }

/* Prose pages */
.prose h2 { margin-top: 1.6em; font-size: 1.3rem; }

/* Sticky contact buttons: full-width bar on phones, floating pair on desktop */
.sticky-contact {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.sticky-contact .btn { flex: 1; padding: 14px 10px; font-size: 1rem; }

@media (min-width: 700px) {
  .gallery { columns: 3; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1.2fr 1fr; gap: 48px; }
}
@media (min-width: 900px) {
  :root { --bar-h: 0px; }
  .nav { display: flex; }
  .btn.header-call { display: inline-flex; }
  .hero { padding: 88px 0 72px; }
  .section { padding: 80px 0; }
  .sticky-contact {
    left: auto; right: 20px; bottom: 20px; flex-direction: column; gap: 10px;
    background: transparent; border: 0; padding: 0;
  }
  .sticky-contact .btn { flex: none; box-shadow: 0 4px 14px rgba(0,0,0,.22); padding: 12px 20px; }
}
