/* doverelectrical.co.uk - Dover, Kent. Port + White Cliffs palette. Roboto Slab + Inter. */
:root {
  --chalk: #f7f4ea;
  --chalk-soft: #efebde;
  --fog: #2f4a5a;
  --fog-deep: #1f3542;
  --steel: #5b6570;
  --steel-light: #8892a0;
  --ensign: #a83232;
  --ensign-deep: #7f2323;
  --ink: #1a2530;
  --ink-soft: #45525f;
  --rule: #d6d0be;
  --rule-dark: #b5ad97;
  --shadow: 0 1px 3px rgba(20, 30, 40, 0.07), 0 2px 8px rgba(20, 30, 40, 0.05);
  --shadow-lg: 0 4px 16px rgba(20, 30, 40, 0.09), 0 12px 32px rgba(20, 30, 40, 0.07);
  --max: 1100px;
  --content: 68ch;
}

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

h1, h2, h3, h4, .slab {
  font-family: 'Roboto Slab', 'Rockwell', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--fog-deep);
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.3rem); margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.3vw, 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(--fog); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ensign); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ensign); 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 {
  background: var(--fog-deep);
  color: var(--chalk);
  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(--chalk); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar span em { color: #d6b862; font-style: italic; font-family: 'Roboto Slab', serif; font-size: 0.98rem; font-weight: 500; }

header.site {
  background: var(--chalk);
  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: 'Roboto Slab', serif; font-size: 1.55rem; font-weight: 700; color: var(--fog-deep); text-decoration: none; line-height: 1; letter-spacing: -0.02em; }
.brand .accent { color: var(--ensign); padding: 0 0.05em; }
.brand small { display: block; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); 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(--fog); }
nav.primary a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.4rem; height: 2px; background: var(--ensign); }

/* Hero - horizon-line: thin white bar at chalk-cliff altitude on Channel-fog blue */
.hero {
  background:
    linear-gradient(180deg, var(--fog-deep) 0%, var(--fog) 60%, #3a5d70 100%);
  color: var(--chalk);
  padding: 5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; left: 0; right: 0;
  top: 62%;
  height: 3px;
  background: var(--chalk);
  opacity: 0.85;
  box-shadow: 0 0 12px rgba(247, 244, 234, 0.35);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; left: 0; right: 0;
  top: calc(62% + 3px);
  height: 40%;
  background: linear-gradient(180deg, rgba(247,244,234,0.06) 0%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 720px; color: var(--chalk); }
.hero .lede { font-size: 1.15rem; max-width: 620px; color: rgba(247,244,234,0.88); margin-bottom: 2rem; }
.hero .section-eyebrow { color: #d6b862; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero.hero-light {
  background: linear-gradient(180deg, var(--chalk-soft) 0%, var(--chalk) 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 3.5rem 0 2.5rem;
}
.hero.hero-light::before { background: var(--fog); opacity: 0.35; top: 78%; box-shadow: none; }
.hero.hero-light::after { display: none; }
.hero.hero-light h1 { color: var(--fog-deep); }
.hero.hero-light .lede { color: var(--ink-soft); }
.hero.hero-light .section-eyebrow { color: var(--ensign); }

.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--ensign); color: var(--chalk); border-color: var(--ensign); }
.btn-primary:hover { background: var(--ensign-deep); border-color: var(--ensign-deep); color: var(--chalk); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: var(--chalk); }
.btn-ghost:hover { background: var(--chalk); color: var(--fog-deep); }
.hero-light .btn-ghost, section:not(.hero) .btn-ghost { color: var(--fog-deep); border-color: var(--fog-deep); }
.hero-light .btn-ghost:hover, section:not(.hero) .btn-ghost:hover { background: var(--fog-deep); color: var(--chalk); }

section { padding: 4rem 0; background: var(--chalk); }
section.tight { padding: 2rem 0; }
section.alt { background: var(--chalk-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(--ensign); margin: 0 0 0.5em; font-family: 'Inter', sans-serif; }

.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; }
}

.card {
  background: var(--chalk);
  border: 1px solid var(--rule);
  padding: 1.7rem;
  border-radius: 3px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow);
}
section.alt .card { background: var(--chalk); border-color: var(--rule-dark); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--fog); }
.card h3 { margin-top: 0; }
.card a.card-link { color: var(--fog-deep); text-decoration: none; }
.card a.card-link:hover { color: var(--ensign); }
.card .more { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--ensign); text-decoration: none; }
.card .more::after { content: ' \2192'; }

.guarantees {
  background: linear-gradient(180deg, var(--chalk) 0%, var(--chalk-soft) 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.guarantees .promise {
  background: var(--chalk); border: 1px solid var(--rule);
  padding: 1.6rem; border-radius: 3px;
  border-left: 3px solid var(--ensign);
  box-shadow: var(--shadow);
}
.guarantees .promise h3 { margin: 0 0 0.5em; font-size: 1.1rem; color: var(--fog-deep); font-weight: 600; }
.guarantees .promise p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }
.guarantees .promise .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--fog-deep); color: #d6b862;
  font-family: 'Roboto Slab', serif; font-weight: 700;
  margin-bottom: 0.8rem; font-size: 1.1rem;
}

.panel {
  background: var(--fog-deep);
  color: var(--chalk);
  padding: 2.4rem;
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
}
.panel h2 { color: var(--chalk); margin-top: 0; }
.panel .lede { color: rgba(247,244,234,0.85); }
.panel a { color: #d6b862; text-decoration: underline; font-weight: 600; }
.panel a:hover { color: var(--chalk); }

footer.site {
  background: var(--fog-deep);
  color: var(--chalk-soft);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
footer.site h4 { color: var(--chalk); font-size: 0.95rem; margin: 0 0 0.8em; font-family: 'Inter', 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(--chalk-soft); text-decoration: none; font-size: 0.95rem; }
footer.site a:hover { color: #fff; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.foot-bottom {
  border-top: 1px solid rgba(214,208,190,0.2);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--steel-light);
}

article.guide { padding: 3rem 0; }
article.guide .meta { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.1em; }
article.guide .meta a { color: var(--fog); }
article.guide blockquote {
  border-left: 3px solid var(--ensign);
  margin: 1.8em 0; padding: 0.4em 0 0.4em 1.4em;
  font-style: italic; color: var(--ink-soft);
  font-family: 'Roboto Slab', serif; font-size: 1.15rem;
}
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(--chalk-soft);
  border-left: 3px solid var(--fog);
  padding: 1.2rem 1.4rem;
  margin: 1.8em 0;
  border-radius: 0 2px 2px 0;
}
article.guide .callout h4 { margin-top: 0; color: var(--fog-deep); }

.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: 'Roboto Slab', serif; font-size: 1rem; color: var(--ensign); font-weight: 600; min-width: 95px; }
.job-where { font-size: 0.82rem; 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: 'Roboto Slab', serif; font-size: 1.2rem; color: var(--fog-deep); font-weight: 600; white-space: nowrap; }

.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.9rem; }
  header.site .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .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-weight: 600; font-size: 0.85rem; text-decoration: none !important;
}
.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.55rem; border-radius: 2px; display: inline-flex; align-items: center; gap: 0.6rem; }
.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.8rem; }
.topbar .wa-btn svg { width: 14px; height: 14px; }
@media (max-width: 700px) { .topbar .wa-btn { display: none; } }

.wa-qr-card {
  background: var(--chalk-soft); border: 1px solid var(--rule); padding: 1.5rem; border-radius: 2px;
  text-align: center; max-width: 280px;
}
.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); }
.wa-qr-card .num { font-family: 'Roboto Slab', serif; font-size: 1.3rem; color: var(--fog-deep); display: block; margin-top: 0.4rem; font-weight: 600; }
