/* thanetelectrical.co.uk — District-scale electrical care.
   Storm blue + shell white + amber. Sora + Merriweather. */
:root {
  --storm: #2c4a5e;
  --storm-deep: #22252b;
  --storm-mid: #3a5f77;
  --shell: #f7f4ec;
  --shell-warm: #efe9d8;
  --amber: #e3a83b;
  --amber-deep: #b8811f;
  --charcoal: #22252b;
  --ink: #22252b;
  --ink-soft: #4a5460;
  --rule: #d8d0be;
  --rule-dark: #b6ac93;
  --paper: #ffffff;

  --shadow: 0 1px 3px rgba(20,25,35,.06), 0 2px 8px rgba(20,25,35,.04);
  --shadow-lg: 0 4px 16px rgba(20,25,35,.09), 0 12px 32px rgba(20,25,35,.06);
  --max: 1100px;
  --content: 68ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--shell);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .sans {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--storm-deep);
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 1.8em 0 0.6em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 0.4em; }
p { margin: 0 0 1.1em; }
a { color: var(--storm); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-deep); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.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(--storm-deep); color: var(--shell); font-size: 0.875rem; padding: 0.5rem 0; font-family: 'Sora', sans-serif; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.topbar a { color: var(--shell-warm); text-decoration: none; }
.topbar a:hover { color: var(--amber); }
.topbar em { color: var(--amber); font-style: normal; font-weight: 500; letter-spacing: 0.02em; }

/* Header */
header.site {
  background: var(--shell);
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 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; }
.brand { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--storm-deep); text-decoration: none; line-height: 1; letter-spacing: -0.02em; }
.brand .mark { color: var(--amber); }
.brand small { display: block; font-family: 'Sora', sans-serif; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; 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-family: 'Sora', sans-serif; font-weight: 500; font-size: 0.93rem; position: relative; padding: 0.25rem 0; }
nav.primary a:hover { color: var(--storm); }
nav.primary a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 2px; background: var(--amber); }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(34,37,43,0) 55%, rgba(34,37,43,0.35) 100%),
    linear-gradient(160deg, var(--storm-deep) 0%, var(--storm) 55%, var(--storm-mid) 100%);
  color: var(--shell);
  padding: 4.5rem 0 4.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='200' viewBox='0 0 200 200'%3E%3Cpath d='M100 30 L112 78 L160 78 L122 106 L136 154 L100 124 L64 154 L78 106 L40 78 L88 78 Z' fill='none' stroke='%23e3a83b' stroke-width='0.6' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 320px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 780px; color: var(--shell); }
.hero .lede { font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 400; max-width: 620px; color: rgba(247,244,236,0.88); margin-bottom: 2rem; line-height: 1.55; }
.hero .section-eyebrow { color: var(--amber); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero district map — SVG postcode ring */
.hero-district-map { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 460px; height: 460px; opacity: 0.18; pointer-events: none; }
@media (max-width: 900px) { .hero-district-map { display: none; } }

.hero.hero-light {
  background: linear-gradient(180deg, var(--shell-warm) 0%, var(--shell) 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 3rem 0 2rem;
}
.hero.hero-light::before { opacity: 0.04; }
.hero.hero-light h1 { color: var(--storm-deep); }
.hero.hero-light .lede { color: var(--ink-soft); }
.hero.hero-light .section-eyebrow { color: var(--amber-deep); }

/* Buttons */
.btn { display: inline-block; padding: 0.9rem 1.7rem; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.98rem; text-decoration: none; border-radius: 3px; transition: all 0.15s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--amber); color: var(--storm-deep); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--shell); }
.btn-ghost { background: transparent; color: var(--shell); border-color: var(--shell); }
.btn-ghost:hover { background: var(--shell); color: var(--storm-deep); }
.hero-light .btn-ghost, section:not(.hero) .btn-ghost { color: var(--storm-deep); border-color: var(--storm-deep); }
.hero-light .btn-ghost:hover, section:not(.hero) .btn-ghost:hover { background: var(--storm-deep); color: var(--shell); }

/* Sections */
section { padding: 3.75rem 0; background: var(--shell); }
section.tight { padding: 2rem 0; }
section.alt { background: var(--shell-warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.dark { background: var(--storm-deep); color: var(--shell); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--shell); }
section.dark .section-eyebrow { color: var(--amber); }
section.dark a { color: var(--amber); }
.section-eyebrow { font-family: 'Sora', sans-serif; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--amber-deep); margin: 0 0 0.5em; }

/* 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.3rem; }
}

/* Cards */
.card { background: var(--paper); 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(--paper); border-color: var(--rule-dark); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--storm); }
.card h3 { margin-top: 0; }
.card a.card-link { color: var(--storm-deep); text-decoration: none; }
.card a.card-link:hover { color: var(--amber-deep); }
.card .more { display: inline-block; margin-top: 0.5rem; font-family: 'Sora', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--amber-deep); text-decoration: none; }
.card .more::after { content: ' \2192'; }

/* District postcode chips */
.postcode-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; }
.pc-chip { font-family: 'Sora', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(227,168,59,0.16); color: var(--amber); border: 1px solid rgba(227,168,59,0.4); }
section:not(.hero) .pc-chip { background: var(--shell-warm); color: var(--storm-deep); border-color: var(--rule-dark); }

/* Guarantees */
.guarantees { background: linear-gradient(180deg, var(--shell) 0%, var(--shell-warm) 100%); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.guarantees .grid { gap: 1.4rem; }
.guarantees .promise { background: var(--paper); border: 1px solid var(--rule); padding: 1.6rem; border-radius: 4px; border-left: 3px solid var(--amber); box-shadow: var(--shadow); }
.guarantees .promise h3 { margin: 0 0 0.5em; font-size: 1.1rem; color: var(--storm-deep); font-family: 'Sora', sans-serif; font-weight: 600; }
.guarantees .promise p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }
.guarantees .promise .icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 6px; background: var(--storm-deep); color: var(--amber); font-family: 'Sora', sans-serif; font-weight: 700; margin-bottom: 0.8rem; font-size: 1.05rem; }

/* Panel */
.panel { background: var(--storm-deep); color: var(--shell); padding: 2.4rem; border-radius: 4px; position: relative; box-shadow: var(--shadow-lg); }
.panel h2 { color: var(--shell); margin-top: 0; }
.panel .lede { color: rgba(247,244,236,0.85); }
.panel a { color: var(--amber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 600; }
.panel a:hover { color: var(--shell); }
.panel .section-eyebrow { color: var(--amber); }

/* Footer */
footer.site { background: var(--storm-deep); color: var(--shell-warm); padding: 3rem 0 2rem; margin-top: 3rem; }
footer.site h4 { color: var(--shell); font-size: 0.95rem; margin: 0 0 0.8em; font-family: 'Sora', 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.4rem 0; }
footer.site a { color: var(--shell-warm); text-decoration: none; font-size: 0.93rem; }
footer.site a:hover { color: var(--amber); }
.foot-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-bottom { border-top: 1px solid rgba(216,208,190,0.15); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: var(--shell-warm); }

/* Article */
article.guide { padding: 3rem 0; }
article.guide .meta { font-family: 'Sora', sans-serif; font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
article.guide .meta a { color: var(--storm); }
article.guide blockquote { border-left: 3px solid var(--amber); margin: 1.8em 0; padding: 0.5em 0 0.5em 1.5em; font-style: italic; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; }
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(--shell-warm); border-left: 3px solid var(--amber); padding: 1.1rem 1.4rem; margin: 1.6em 0; border-radius: 0 3px 3px 0; }
article.guide .callout h4 { margin-top: 0; color: var(--storm-deep); font-size: 1rem; }

/* Jobs */
.job { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.job:last-child { border-bottom: none; }
.job-date { font-family: 'Sora', sans-serif; font-size: 0.95rem; color: var(--amber-deep); font-weight: 600; min-width: 95px; letter-spacing: 0.02em; }
.job-where { font-family: 'Sora', sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 0.3rem; }
.job h3 { margin: 0 0 0.4em; font-size: 1.1rem; }
.job p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.job .price { font-family: 'Sora', sans-serif; font-size: 1.2rem; color: var(--storm-deep); font-weight: 700; white-space: nowrap; }

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

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

/* WhatsApp */
.wa-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: #25d366; color: #fff !important; padding: 0.4rem 0.85rem; border-radius: 999px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.83rem; text-decoration: none !important; transition: background 0.15s ease; }
.wa-btn:hover { background: #1ebe57; }
.wa-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn.wa-btn-lg { background: #25d366; border-color: #25d366; color: #fff; padding: 0.9rem 1.5rem; border-radius: 3px; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.98rem; }
.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.22rem 0.7rem; font-size: 0.78rem; }
.topbar .wa-btn svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .topbar .wa-btn { display: none; } }

.wa-qr-card { background: var(--paper); border: 1px solid var(--rule); padding: 1.5rem; border-radius: 4px; text-align: center; max-width: 280px; box-shadow: var(--shadow); }
.wa-qr-card img { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 0.8rem; }
.wa-qr-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); font-family: 'Sora', sans-serif; }
.wa-qr-card .num { font-family: 'Sora', sans-serif; font-size: 1.25rem; color: var(--storm-deep); display: block; margin-top: 0.4rem; font-weight: 700; }

/* Contact page contact-methods list */
.contact-methods { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 700px) { .contact-methods { grid-template-columns: 1fr 1fr; } }
.contact-method { background: var(--paper); border: 1px solid var(--rule); padding: 1.5rem; border-radius: 4px; box-shadow: var(--shadow); }
.contact-method h3 { margin-top: 0; font-size: 1.05rem; }
.contact-method .big { display: block; font-family: 'Sora', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--storm-deep); margin: 0.4rem 0; }
