/* EV Chargers Basingstoke
   Layout: trade-site grid. Header lockup mirrors the logo; every page = hero with
   quote form, long-form content with a sticky quote card, then internal-link blocks.
   Single light theme, matched to the logo (charcoal + charge green). */
:root {
  --ink: #1e2421;
  --ink-soft: #4a554f;
  --paper: #ffffff;
  --mist: #f2f6ef;
  --mist-2: #e7efe2;
  --line: #d9e3d3;
  --green: #0f7d1a;        /* buttons, links: AA on white */
  --green-deep: #0a5e13;
  --green-bright: #3fbe0c; /* logo highlight, never for text */
  --charcoal: #222723;
  --amber: #f2b705;
  --font-display: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1180px;
  --bar-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; color: var(--charcoal); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; color: var(--charcoal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--charcoal); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); margin-right: auto; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--green-bright); background: linear-gradient(135deg, #0a8a1a, #4cc80d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-town { font-family: var(--font-display); font-weight: 500; font-size: .62rem; letter-spacing: .42em; margin-top: 4px; color: var(--charcoal); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button { font: 600 .95rem var(--font-body); color: var(--charcoal); text-decoration: none; padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.nav > a:hover, .nav-drop > button:hover { background: var(--mist); color: var(--charcoal); }
.nav-drop { position: relative; }
.nav-drop > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.drop-panel { position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(20,40,20,.35); padding: 8px; display: none; }
.nav-drop.open .drop-panel, .nav-drop:focus-within .drop-panel { display: grid; }
@media (hover: hover) { .nav-drop:hover .drop-panel { display: grid; } }
.drop-panel a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: .95rem; }
.drop-panel a:hover { background: var(--mist); }
.header-call { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem var(--font-body); color: var(--charcoal); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-call svg { width: 20px; height: 20px; color: var(--green); }
.menu-btn { display: none; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--charcoal); position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }

@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .header-call .num { display: none; }
  .nav { position: fixed; inset: 72px 0 auto 0; top: calc(72px + env(safe-area-inset-top, 0px)); background: var(--paper); flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--line); max-height: calc(100vh - 72px - var(--bar-h)); overflow-y: auto; display: none; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25); }
  .nav.open { display: flex; }
  .nav > a, .nav-drop > button { padding: 12px 6px; width: 100%; text-align: left; border-bottom: 1px solid var(--mist-2); border-radius: 0; }
  .drop-panel { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .nav-drop:hover .drop-panel { display: none; }
  .nav-drop.open .drop-panel { display: grid; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--font-body); padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; line-height: 1.2; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { background: var(--mist); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%; border: 46px solid rgba(63,190,12,.10); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; padding-block: 56px 64px; align-items: start; position: relative; }
.eyebrow { font: 700 .78rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 14px; height: 18px; background: var(--green-bright); clip-path: polygon(55% 0, 10% 58%, 45% 58%, 30% 100%, 90% 38%, 55% 38%); }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--green); }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.spec-strip { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.spec-strip li { margin: 0; font: 600 .86rem var(--font-body); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.spec-strip li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); }

.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; background: var(--charcoal); color: #eef3ec; }
.trust-row div { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.1); font-size: .95rem; line-height: 1.35; }
.trust-row div:last-child { border-right: 0; }
.trust-row strong { color: #fff; display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 2px; }

/* Quote card */
.quote-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(15,60,20,.35); position: relative; }
.quote-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, #0a8a1a, #4cc80d); }
.quote-card h2 { font-size: 1.4rem; margin-bottom: 4px; }
.quote-card .sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font: 600 .85rem var(--font-body); margin-bottom: 5px; color: var(--charcoal); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--font-body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; min-height: 46px; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(63,190,12,.22); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; margin-top: 14px; font-size: 1.05rem; padding: 16px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: 10px 0 0; text-align: center; }
.form-status { margin-top: 12px; font-size: .95rem; padding: 10px 12px; border-radius: 8px; background: #fff6d6; border: 1px solid #ecd27a; }

/* Sections */
.section { padding-block: 72px; }
.section-alt { background: var(--mist); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.svc-card { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; min-width: 0; }
.svc-card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.svc-card h3 { margin: 0; font-size: 1.08rem; }
.svc-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.svc-card .go { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: .9rem; color: var(--green); }
.svc-card .tag { font: 700 .7rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; counter-reset: step; list-style: none; padding: 0; }
.steps li { margin: 0; padding: 22px; border-top: 4px solid var(--green-bright); background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); counter-increment: step; }
.steps li::before { content: "Step " counter(step); display: block; font: 700 .75rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; align-items: start; }

/* Price table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--charcoal); }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-weight: 700; }

/* Content pages */
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { margin: 0; } .crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-soft); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding-block: 56px 72px; align-items: start; }
.prose { max-width: 70ch; min-width: 0; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul li::marker { color: var(--green); }
.callout { background: var(--mist); border: 1px solid var(--line); border-left: 5px solid var(--green-bright); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.aside-sticky { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 16px; }
.mini-card { background: var(--charcoal); color: #e9efe6; border-radius: var(--radius); padding: 20px; font-size: .95rem; }
.mini-card strong { color: #fff; }
.mini-card a { color: #8fe36a; }
.mini-card ul { margin: 0; padding-left: 1.1em; }

/* Photos */
.photo { margin: 0 0 1.6em; }
.photo img { width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: var(--mist-2); }
.photo figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.photo.tall { margin: 0; }
.photo.tall img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .photo-grid .photo { scroll-snap-align: start; } }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(3, 78%); } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; font: 700 1.04rem var(--font-body); color: var(--charcoal); padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 600 1.5rem var(--font-display); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 16px; color: var(--ink-soft); }

/* Link lists */
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.link-cloud li { margin: 0; }
.link-cloud a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: .93rem; background: var(--paper); }
.link-cloud a:hover { border-color: var(--green); color: var(--green); }

.cta-band { background: var(--charcoal); color: #e8eee5; border-radius: 18px; padding: 40px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 34px solid rgba(76,200,13,.18); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--charcoal); }

/* Footer */
.site-footer { background: #151a17; color: #b9c4b5; padding-block: 56px 32px; font-size: .94rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #d6e2d2; text-decoration: none; }
.site-footer a:hover { color: #8fe36a; }
.foot-logo { background: #fff; border-radius: 12px; padding: 10px; width: 150px; margin-bottom: 14px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* Sticky contact bar — every page, every width */
.contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--charcoal); padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px -10px rgba(0,0,0,.4); }
.contact-bar .inner { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.contact-bar .msg { color: #dfe8db; font-weight: 600; margin-right: auto; font-size: .95rem; }
.contact-bar .msg b { color: #8fe36a; }
.contact-bar .btn { padding: 12px 20px; }
.contact-bar .btn-call { background: #fff; color: var(--charcoal); }
.btn-wa { background: #25d366; color: #0b2a14; }
.btn-wa:hover { background: #1fbb59; color: #0b2a14; transform: translateY(-1px); }
.contact-bar .btn-call:hover { background: var(--mist-2); color: var(--charcoal); }

@media (max-width: 1080px) {
  .card-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-grid { grid-template-columns: minmax(0,1fr); }
  .aside-sticky { position: static; }
}
@media (max-width: 900px) {
  .contact-bar .bar-num { display: none; }
  .hero-grid, .split { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-row div:nth-child(2) { border-right: 0; }
  .trust-row div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: minmax(0,1fr); padding: 30px 24px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { padding-inline: 16px; }
  .section { padding-block: 52px; }
  .hero-grid { padding-block: 36px 44px; }
  .card-grid, .card-grid.four, .steps, .form-grid { grid-template-columns: minmax(0,1fr); }
  .foot-grid { grid-template-columns: minmax(0,1fr); }
  .contact-bar .msg, .contact-bar .bar-num { display: none; }
  .contact-bar .inner { gap: 6px; }
  .contact-bar .btn { flex: 1 1 0; padding: 13px 6px; font-size: .9rem; gap: 5px; white-space: nowrap; min-width: 0; }
  .contact-bar .btn svg { width: 16px; height: 16px; }
  .quote-card { padding: 22px 18px; }
  .brand-name { font-size: 1.1rem; }
  .brand img { width: 40px; height: 40px; }
}
