/* Clwyd Electrical Services: "workwear" style, chosen 19 Nov 2026.
   Black and electric blue like the jacket, big condensed headlines, square edges, numbered lists. */
:root {
  --black: #0A0C10;
  --panel: #12161D;
  --panel-2: #181D26;
  --line: #262D38;
  --text: #E8ECF1;
  --muted: #A7B0BC;
  --blue: #1E8FE0;        /* accents, rules, big type */
  --blue-btn: #1670C2;    /* buttons: white text stays readable */
  --blue-text: #5AB2F5;   /* links on black */
  --todo: #FFE97A;
  --wrap: 1180px;
  --display: "Barlow Condensed", "DIN Condensed", "Bahnschrift Condensed", Bahnschrift, "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--display); font-stretch: condensed; font-weight: 700; text-transform: uppercase; line-height: .9; letter-spacing: .01em; color: #fff; margin: 0 0 .45em; }
h1 { font-size: clamp(54px, 9.5vw, 128px); }
h2 { font-size: clamp(38px, 5.4vw, 64px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
strong { color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.section { padding: 64px 0; }
.section-soft { background: var(--panel); }
.lead { font-size: clamp(18px, 2vw, 21px); color: #C9D1DB; max-width: 34em; }
.kicker { display: block; font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); line-height: 1.4; margin-bottom: 16px; }
.accent { color: var(--blue); }
.narrow > * { max-width: 760px; }

/* Draft markers: remove the banner and every .todo before the site goes live */
.draft-banner { background: var(--todo); color: #2A2300; text-align: center; font-size: 14px; padding: 8px 16px; }
.todo { background: var(--todo); color: #2A2300; padding: 0 .2em; }

/* Header */
.site-header { background: var(--black); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.brand-text { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; color: #fff; line-height: 1; }
.brand-text span { color: var(--blue); }
.site-nav { display: none; gap: 30px; }
.site-nav a, .nav-strip a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-nav a:hover, .site-nav a[aria-current="page"], .nav-strip a[aria-current="page"] { color: #fff; }
.btn.header-call { display: none; }
.nav-strip { display: flex; gap: 22px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.nav-strip::-webkit-scrollbar { display: none; }
.nav-strip a { white-space: nowrap; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .btn.header-call { display: inline-flex; }
  .nav-strip { display: none; }
}

/* Buttons: square, solid */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 24px; font-family: var(--body); font-weight: 900; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 0; line-height: 1.2; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue-btn); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-whatsapp { background: #fff; color: var(--black); }
.btn-whatsapp:hover { background: #DDE3EA; color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0; margin: 28px 0; }
.btn-row .btn { flex: 0 0 auto; }
.btn .todo { color: #2A2300; }

/* Home: hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; }
.hero-text { padding: 44px 0 40px; }
.hero h1 { margin-bottom: 26px; }
.hero-photo { position: relative; margin: 0 -16px; }
.hero-photo img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--blue); color: #fff; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 28px; text-transform: uppercase; padding: 12px 18px 8px; line-height: 1; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.3fr .7fr; min-height: 640px; }
  .hero-text { padding: 64px 48px 56px 0; border-right: 6px solid var(--blue); }
  .hero-photo { margin: 0; }
  .hero-photo img { max-height: none; }
}
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0; color: #C9D1DB; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.ticks li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; background: var(--blue); }
@media (min-width: 600px) { .ticks.two { grid-template-columns: 1fr 1fr; } }

/* Home: numbered services */
.service-list { list-style: none; padding: 0; margin: 28px 0 0; border-bottom: 1px solid var(--line); }
.service-list li { margin: 0; border-top: 1px solid var(--line); }
.service-list a { display: grid; grid-template-columns: 56px 1fr 28px; gap: 4px 18px; align-items: baseline; padding: 22px 0; text-decoration: none; color: var(--text); }
.service-list .num { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 34px; color: var(--blue); grid-row: span 2; line-height: 1; }
.service-list .name { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase; color: #fff; line-height: 1; }
.service-list .desc { grid-column: 2; color: var(--muted); font-size: 16px; }
.service-list .arrow { grid-column: 3; grid-row: 1; color: var(--blue); font-size: 26px; transition: transform .15s; }
.service-list a:hover .name { color: var(--blue-text); }
.service-list a:hover .arrow { transform: translateX(4px); }
@media (min-width: 900px) {
  .service-list a { grid-template-columns: 90px 1.1fr 1fr 40px; align-items: center; padding: 26px 0; }
  .service-list .num { grid-row: auto; font-size: 44px; }
  .service-list .desc { grid-column: 3; }
  .service-list .arrow { grid-column: 4; grid-row: auto; text-align: right; }
}

/* Cards (How I work, contact) */
.cards { display: grid; gap: 2px; margin-top: 28px; background: var(--line); border: 2px solid var(--line); }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--black); padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.section-soft .card { background: var(--panel); }
.card h3 { margin: 0; color: #fff; }
.card p { margin: 0; color: var(--muted); }
a.card { text-decoration: none; color: var(--text); }
a.card:hover { background: var(--panel-2); }

/* Gallery of work */
.gallery { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 24px; text-transform: uppercase; color: #fff; padding: 12px 0 0; border-top: 4px solid var(--blue); margin-top: 0; }

/* Call-to-action band */
.band { background: var(--blue); color: #fff; }
.band h2 { color: var(--black); }
.band p { color: #08223A; font-size: 19px; font-weight: 600; max-width: 34em; }
.band .btn-primary { background: var(--black); color: #fff; }
.band .btn-primary:hover { background: #1B2029; }
.band .btn .todo { color: #2A2300; }

/* Content pages */
.page-head { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .wrap { border-left: 6px solid var(--blue); padding-left: 26px; }
.crumbs { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--blue-text); text-decoration: none; }
.page-head h1 { font-size: clamp(44px, 6.5vw, 84px); }
.content { display: grid; gap: 44px; }
@media (min-width: 960px) { .content { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
.content h2 { margin-top: 1.3em; font-size: clamp(32px, 4vw, 46px); }
.content h2:first-child { margin-top: 0; }
.aside { background: var(--panel); border-top: 6px solid var(--blue); padding: 26px; position: sticky; top: 96px; }
.aside h2 { font-size: 36px; margin-top: 0; }
.aside p { color: var(--muted); }
.aside .btn { width: 100%; margin-top: 10px; }
.note { background: var(--panel); border-left: 6px solid var(--blue); padding: 14px 18px; margin: 1.2em 0; color: #C9D1DB; }
.warning { background: #2A1214; border-left: 6px solid #E5484D; padding: 14px 18px; margin: 1.2em 0; color: #F3D6D7; }
.warning strong { color: #fff; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; margin-bottom: 18px; min-height: 40px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 36px; color: var(--blue); line-height: 1; }
.codes { display: grid; gap: 10px; margin: 1em 0; }
.code { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.code b { display: grid; place-items: center; height: 34px; color: #fff; font-size: 15px; }
.c1 { background: #C0262D; } .c2 { background: #D9480F; } .c3 { background: var(--blue-btn); } .fi { background: #5B6573; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 800; color: #fff; }
details p { margin: 10px 0 0; color: var(--muted); }
.areas { columns: 2; column-gap: 24px; padding-left: 1.1em; color: #C9D1DB; }
@media (min-width: 700px) { .areas { columns: 3; } }

/* Pictures */
.photo { margin: 0 0 1.8em; }
.photo img { width: 100%; height: auto; }
.photo figcaption { font-size: 13px; margin-top: 8px; color: var(--muted); }
.portrait { margin: 0 0 1.8em; max-width: 380px; position: relative; }
.portrait img { width: 100%; height: auto; border-bottom: 6px solid var(--blue); }
.portrait figcaption { font-size: 13px; margin-top: 10px; }

/* Contact cards */
.contact-cards { display: grid; gap: 2px; margin: 28px 0; background: var(--line); border: 2px solid var(--line); }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-cards .card { align-items: flex-start; }
.contact-cards .big { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 30px; text-transform: uppercase; color: #fff; word-break: break-word; line-height: 1.05; }
.contact-cards .big.todo, .contact-cards .big .todo { color: #2A2300; }

/* Footer */
.site-footer { background: var(--black); border-top: 6px solid var(--blue); padding: 48px 0 120px; font-size: 15px; color: var(--muted); }
@media (min-width: 900px) { .site-footer { padding-bottom: 36px; } }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-logo { width: 210px; margin-bottom: 14px; }
.site-footer h2 { font-size: 22px; margin-bottom: .7em; color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: #DCE2E9; text-decoration: none; }
.site-footer a:hover { color: var(--blue-text); }
.legal { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: 13px; }

/* Call and WhatsApp bar, phones only */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; padding: 0 0 env(safe-area-inset-bottom); background: var(--black); border-top: 1px solid var(--line); }
.mobile-bar .btn { width: 100%; padding: 18px 10px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .service-list .arrow { transition: none; } }
.contact-cards a[href^="mailto"] .big { text-transform: none; font-size: 24px; overflow-wrap: anywhere; }
.contact-cards + .narrow h2 { margin-top: 1.2em; }
/* Mid-size screens: keep the header on one line */
.brand-text { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1149px) {
  .site-nav { gap: 20px; }
  .header-call .call-num { display: none; }
  .brand-text { font-size: 22px; }
}

/* NICEIC badge: the logo has black lettering, so it sits on a white tile */
.niceic-badge { display: inline-block; background: #fff; padding: 10px 14px; line-height: 0; margin: 6px 0 18px; }
.niceic-badge img { width: 150px; height: auto; }
.niceic-badge:hover { outline: 3px solid var(--blue); }
.hero-badge { margin-top: 24px; }
.site-footer .niceic-badge img { width: 130px; }
.hero-text .hero-badge { display: block; width: fit-content; margin: 32px 0 0; }
