/* winghamelectrical.co.uk  -  Wingham village electrics. Bitter + Source Sans 3.
   Hedgerow-green + oat cream + rusty brick + honey oak. */
:root {
  --hedge: #4d5a45;
  --hedge-deep: #3a4535;
  --hedge-bright: #647457;
  --oat: #efe7d4;
  --oat-soft: #f6f0df;
  --brick: #8f4a37;
  --brick-deep: #6f3826;
  --oak: #c9a56e;
  --ink: #23261e;
  --ink-soft: #4c5145;
  --rule: #d9cfb2;
  --rule-dark: #b8ac86;
  --shadow: 0 1px 3px rgba(30,30,20,0.06), 0 2px 8px rgba(30,30,20,0.04);
  --shadow-lg: 0 4px 16px rgba(30,30,20,0.08), 0 12px 32px rgba(30,30,20,0.06);
  --max: 1100px;
  --content: 68ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--oat);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: 'Bitter', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--hedge-deep);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.3rem; margin: 1.3em 0 0.4em; }
p { margin: 0 0 1.1em; max-width: var(--content); }

a { color: var(--hedge); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

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

/* Topbar */
.topbar {
  background: var(--hedge-deep);
  color: var(--oat);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.topbar a { color: var(--oak); text-decoration: none; }
.topbar a:hover { color: var(--oat); }
.topbar em { color: var(--oak); font-style: italic; font-family: 'Bitter', serif; font-size: 1rem; font-weight: 500; }

/* Header */
header.site {
  background: var(--oat-soft);
  border-bottom: 1px solid var(--rule);
  padding: 1.05rem 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow);
}
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.brand { font-family: 'Bitter', serif; font-size: 1.55rem; font-weight: 700; color: var(--hedge-deep); text-decoration: none; line-height: 1; }
.brand span.amp { color: var(--brick); font-style: italic; padding: 0 0.05em; }
.brand small { display: block; font-family: 'Source Sans 3', sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.25rem; }
nav.primary ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.primary a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.25rem 0; }
nav.primary a:hover { color: var(--hedge); }
nav.primary a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 2px; background: var(--brick); }

/* Hero  -  hedgerow-green ground with cream ivory content card */
.hero {
  background:
    linear-gradient(160deg, var(--hedge-deep) 0%, var(--hedge) 100%);
  color: var(--oat);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='140' viewBox='0 0 200 140'%3E%3Cpath d='M100 20 C80 40 60 55 55 78 C50 96 65 108 82 105 C90 104 95 96 95 88 C95 96 100 104 100 108 C100 104 105 96 105 88 C105 96 110 104 118 105 C135 108 150 96 145 78 C140 55 120 40 100 20 Z M100 108 L100 128 M85 122 L115 122' fill='none' stroke='%23c9a56e' stroke-width='0.9' opacity='0.09'/%3E%3C/svg%3E");
  background-size: 260px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 720px; color: var(--oat); }
.hero .lede { font-size: 1.2rem; max-width: 60ch; color: rgba(255,247,225,0.9); margin-bottom: 2rem; }
.hero .section-eyebrow { color: var(--oak); }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero.hero-light {
  background: linear-gradient(180deg, var(--oat-soft) 0%, var(--oat) 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 3.4rem 0 2.4rem;
}
.hero.hero-light::before { opacity: 0.4; }
.hero.hero-light h1 { color: var(--hedge-deep); }
.hero.hero-light .lede { color: var(--ink-soft); }
.hero.hero-light .section-eyebrow { color: var(--brick); }

/* Content card over hero */
.hero-card {
  background: var(--oat-soft);
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 2rem 2.2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  margin-top: 2rem;
  max-width: 720px;
}
.hero-card h2 { margin-top: 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--brick); color: var(--oat); border-color: var(--brick); }
.btn-primary:hover { background: var(--brick-deep); border-color: var(--brick-deep); color: var(--oat); }
.btn-ghost { background: transparent; color: var(--oat); border-color: var(--oat); }
.btn-ghost:hover { background: var(--oat); color: var(--hedge-deep); }
.hero-light .btn-ghost, section:not(.hero) .btn-ghost { color: var(--hedge-deep); border-color: var(--hedge-deep); }
.hero-light .btn-ghost:hover, section:not(.hero) .btn-ghost:hover { background: var(--hedge-deep); color: var(--oat); }

/* Sections */
section { padding: 3.5rem 0; background: var(--oat); }
section.tight { padding: 2rem 0; }
section.alt { background: var(--oat-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-eyebrow { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brick); margin: 0 0 0.5em; }

/* Oak-leaf hand-drawn divider */
.oak-divider {
  display: block; margin: 3rem auto; max-width: 220px; opacity: 0.55;
}
.oak-divider svg { width: 100%; height: auto; display: block; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }
.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.35rem; }
}

/* Cards */
.card {
  background: var(--oat-soft);
  border: 1px solid var(--rule);
  padding: 1.7rem;
  border-radius: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow);
}
section.alt .card { background: var(--oat); border-color: var(--rule-dark); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--hedge-bright); }
.card h3 { margin-top: 0; }
.card a.card-link { color: var(--hedge-deep); text-decoration: none; }
.card a.card-link:hover { color: var(--brick); }
.card .more { display: inline-block; margin-top: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--brick); text-decoration: none; }
.card .more::after { content: ' →'; }

/* Guarantees strip */
.guarantees { background: linear-gradient(180deg, var(--oat) 0%, var(--oat-soft) 100%); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.guarantees .promise {
  background: var(--oat-soft); border: 1px solid var(--rule);
  padding: 1.5rem; border-radius: 4px;
  border-left: 3px solid var(--brick);
  box-shadow: var(--shadow);
}
.guarantees .promise h3 { margin: 0 0 0.4em; font-size: 1.15rem; }
.guarantees .promise p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.guarantees .promise .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--hedge-deep); color: var(--oak);
  font-family: 'Bitter', serif; font-weight: 700;
  margin-bottom: 0.7rem; font-size: 1.1rem;
}

/* Featured panel */
.panel {
  background: var(--hedge-deep);
  color: var(--oat);
  padding: 2.2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}
.panel h2 { color: var(--oat); margin-top: 0; }
.panel a { color: var(--oak); font-weight: 600; }
.panel a:hover { color: var(--oat); }

/* Footer */
footer.site {
  background: var(--hedge-deep);
  color: var(--oat);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
footer.site h4 { color: var(--oat); font-size: 1rem; margin: 0 0 0.7em; font-family: 'Source Sans 3', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 0.35rem 0; }
footer.site a { color: rgba(239,231,212,0.85); text-decoration: none; font-size: 0.95rem; }
footer.site a:hover { color: var(--oat); }
.foot-grid { display: grid; gap: 2.4rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-bottom {
  border-top: 1px solid rgba(239,231,212,0.18);
  margin-top: 2.4rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: rgba(239,231,212,0.7);
}

/* Article */
article.guide { padding: 3rem 0; }
article.guide .meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.4rem; text-transform: uppercase; letter-spacing: 0.1em; }
article.guide .meta a { color: var(--hedge); }
article.guide blockquote {
  border-left: 3px solid var(--brick);
  margin: 1.8em 0; padding: 0.4em 0 0.4em 1.4em;
  font-style: italic; color: var(--ink-soft);
  font-family: 'Bitter', serif; font-size: 1.15rem;
}
article.guide ul, article.guide ol { max-width: var(--content); margin: 0 0 1.2em; padding-left: 1.4em; }
article.guide li { margin: 0.35em 0; }
article.guide .callout {
  background: var(--oat-soft);
  border-left: 3px solid var(--oak);
  padding: 1.15rem 1.4rem;
  margin: 1.6em 0;
  border-radius: 0 3px 3px 0;
  max-width: var(--content);
}
article.guide .callout h4 { margin-top: 0; color: var(--hedge-deep); }

/* Jobs feed */
.job {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: start;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule);
}
.job:last-child { border-bottom: none; }
.job-date { font-family: 'Bitter', serif; font-size: 1rem; color: var(--brick); font-weight: 700; min-width: 100px; }
.job-where { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 0.25rem; }
.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: 'Bitter', serif; font-size: 1.25rem; color: var(--hedge-deep); font-weight: 700; white-space: nowrap; }

/* Utility */
.muted { color: var(--ink-soft); }
.center { text-align: center; }

@media (max-width: 700px) {
  nav.primary ul { gap: 0.9rem; font-size: 0.9rem; }
  header.site .container { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .panel { padding: 1.8rem 1.4rem; }
  .job { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* WhatsApp */
.wa-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: #25d366; color: #fff !important;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  font-weight: 600; font-size: 0.85rem; text-decoration: none !important;
}
.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; display: inline-flex; align-items: center; gap: 0.55rem; }
.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.2rem 0.7rem; font-size: 0.8rem; }
.topbar .wa-btn svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .topbar .wa-btn { display: none; } }

.wa-qr-card {
  background: var(--oat-soft); border: 1px solid var(--rule); padding: 1.4rem; border-radius: 4px;
  text-align: center; max-width: 280px;
}
.wa-qr-card img { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 0.7rem; }
.wa-qr-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.wa-qr-card .num { font-family: 'Bitter', serif; font-size: 1.3rem; color: var(--hedge-deep); display: block; margin-top: 0.35rem; }
