/* HAELEC: dark trade look. Near-black with a purple tint, hi-vis yellow for action, logo purple for trim. */
:root {
  --bg: #17131c;
  --bg-2: #201a28;
  --bg-3: #2b2234;
  --line: #3b2f48;
  --fg: #f4f1f7;
  --muted: #c2bacb;
  --yellow: #FAC300;
  --yellow-hi: #ffd84d;
  --purple: #AD5DDE;
  --purple-deep: #8E3FC8;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-hi); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: 80px; }
.band-2 { background: var(--bg-2); }

h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 0.98; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 9vw, 96px); font-weight: 800; }
h2 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; }
h3 { font-size: 28px; font-weight: 700; }
.hl { color: var(--yellow); }
.lead { font-size: 20px; color: var(--muted); max-width: 62ch; margin: 0; }
.eyebrow {
  display: inline-block; align-self: flex-start;
  background: var(--bg-3); color: var(--yellow);
  font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px;
}

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--bg); border-bottom: 4px solid var(--purple); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--yellow); }
.nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  font-size: 22px; padding: 10px 26px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-yellow { background: var(--yellow); color: var(--bg); }
.btn-yellow:hover { background: var(--yellow-hi); color: var(--bg); }
.btn-ghost { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-call { font-size: 21px; padding: 8px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero */
.hero { padding-block: 72px 56px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-img { margin-top: 48px; width: 100%; height: clamp(260px, 40vw, 460px); object-fit: cover; }
.page-hero { padding-block: 64px 48px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }

/* trust strip */
.trust { background: var(--purple-deep); color: #fff; }
.trust .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 20px; font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; }

/* service grid */
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.svc { background: var(--bg-2); padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--fg); }
.svc h3 { color: var(--yellow); }
.svc p { margin: 0; color: var(--muted); }
a.svc:hover { background: var(--bg-3); }
a.svc:hover h3 { color: var(--yellow-hi); }
.more { margin-top: auto; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.gallery figcaption { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.fact { border-top: 4px solid var(--purple); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fact p { margin: 0; color: var(--muted); }

/* towns */
.towns { display: flex; flex-wrap: wrap; gap: 12px; }
.town { background: var(--bg-3); color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; padding: 12px 22px; border: 2px solid var(--line); }
a.town:hover { border-color: var(--yellow); color: var(--yellow); }

/* service / area detail rows */
.detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; align-items: center; padding-block: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.detail:last-child { border-bottom: 0; }
.detail-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-text p { margin: 0; color: var(--muted); max-width: 60ch; }
.detail-text ul { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.detail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-plain { grid-template-columns: 1fr; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; color: var(--fg); border: 1px solid var(--line); padding: 8px 12px; }
.jump a:hover { border-color: var(--yellow); color: var(--yellow); }

/* call band */
.call-band { background: var(--yellow); color: var(--bg); }
.call-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 48px; }
.call-band h2 { color: var(--bg); }
.call-band .btn-dark { background: var(--bg); color: var(--yellow); }
.call-band .btn-dark:hover { color: var(--yellow-hi); }
.big-phone { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 52px); color: inherit; text-decoration: none; letter-spacing: 0.02em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info dl { margin: 0; display: grid; gap: 16px; }
.contact-info dt { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-info dd { margin: 4px 0 0; font-size: 20px; }
form { display: flex; flex-direction: column; gap: 16px; background: var(--bg-2); padding: 28px; border-top: 4px solid var(--yellow); }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
input, select, textarea { font: inherit; font-size: 17px; text-transform: none; letter-spacing: normal; font-weight: 400; padding: 13px 14px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--yellow); outline: none; }
.form-note { margin: 0; font-size: 15px; color: var(--muted); }
.form-msg { margin: 0; padding: 12px 14px; background: var(--bg-3); border-left: 4px solid var(--purple); font-size: 15px; }

/* placeholders the owner still needs to fill */
.todo { background: rgba(250, 195, 0, 0.14); color: var(--yellow-hi); padding: 0 4px; }

/* footer */
.site-foot { background: #0f0c13; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; padding-block: 56px 32px; }
.foot-grid h3 { font-size: 20px; color: var(--fg); margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--yellow); }
.foot-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.foot-base { border-top: 1px solid var(--line); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }

@media (max-width: 640px) {
  .band { padding-block: 56px; }
  .brand img { height: 46px; }
  .head-row { justify-content: center; }
  .nav { justify-content: center; }
  .trust .wrap { font-size: 18px; justify-content: flex-start; }
}
