/* Best Electrical, static site */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #223061;
  --navy-dark: #18224A;
  --navy-tint: #E9ECF4;
  --grey: #F5F2F2;
  --line: #E4E0E0;
  --text: #212121;
  --muted: #5B5F6B;
  --white: #FFFFFF;
  --wrap: 1180px;
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 40px -24px rgba(17, 26, 56, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid #7F93D6; outline-offset: 2px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
.eyebrow { display: block; font-family: var(--body); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin-bottom: .9rem; }
.lead { font-size: 1.08rem; color: var(--muted); }
.center { text-align: center; }
.center h2 { margin-inline: auto; max-width: 22ch; }

/* Buttons: square, tracked, like the original site */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 1.05em 2em; border: 2px solid var(--navy); border-radius: 0;
  background: var(--navy); color: #fff; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Top bar */
.topbar { background: var(--grey); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar span { color: var(--muted); }
.topbar .contacts { display: flex; gap: 1.5rem; }
.topbar a { color: var(--navy); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; }
@media (max-width: 700px) { .topbar .tag { display: none; } .topbar .wrap { justify-content: center; } }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand img { width: 190px; height: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .3rem; }
.nav a { display: block; padding: .6rem .9rem; color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav .btn { color: #fff; margin-left: 1rem; padding: .95em 1.7em; }
.nav .btn:hover { color: #fff; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: .5em; }
.sub { list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-top: 3px solid var(--navy); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: .55rem 1.2rem; font-size: .92rem; }
.sub a:hover { background: var(--grey); }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; color: var(--navy); cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .brand img { width: 160px; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); display: none; max-height: calc(100vh - 84px); overflow: auto; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.5rem; gap: 0; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; min-width: 0; }
  .has-sub > a::after { display: none; }
  .nav .btn { margin: 1rem 0 0; }
}

/* Hero */
.hero { position: relative; color: #fff; background: #0d1226; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,15,35,.82) 0%, rgba(10,15,35,.55) 45%, rgba(10,15,35,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(5rem, 11vw, 9rem) 0; }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero p { max-width: 52ch; font-size: 1.08rem; color: rgba(255,255,255,.88); }

/* Page banner (inner pages) */
.banner { position: relative; color: #fff; background: #0d1226; overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(10,15,35,.68); }
.banner .wrap { position: relative; z-index: 1; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.banner h1 { color: #fff; margin-bottom: .4em; }
.crumbs { font-size: .88rem; color: rgba(255,255,255,.8); margin: 0; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Accreditation strip */
.accred { background: #fff; border-bottom: 1px solid var(--line); }
.accred ul { list-style: none; margin: 0; padding: 1.6rem 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 3rem; }
.accred img { height: 52px; width: auto; }
@media (max-width: 600px) { .accred img { height: 40px; } .accred ul { gap: 1rem 1.6rem; } }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-grey { background: var(--grey); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.about-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--grey); }
.about-split .text { padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem); max-width: 680px; margin-left: auto; }
.about-split .text h2 + p { margin-bottom: 2rem; }
.about-split .photo { min-height: 420px; position: relative; }
.about-split .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) { .about-split { grid-template-columns: 1fr; } .about-split .text { margin: 0; max-width: none; } .about-split .photo { min-height: 280px; } }

/* Feature row */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature { text-align: center; padding: 1.5rem 1rem; }
.feature .ic { width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin: 0 auto 1.1rem; }
.feature .ic svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr 1fr; } }

/* Service cards */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 2.75rem; }
.card { position: relative; flex: 0 1 calc(25% - 1.125rem); min-width: 240px; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); }
.cards-3 .card { flex-basis: calc(33.333% - 1rem); aspect-ratio: 4 / 4.4; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,26,56,.05) 20%, rgba(17,26,56,.55) 50%, rgba(17,26,56,.94) 100%); transition: background .3s ease; }
.card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; z-index: 1; }
.card h3 { color: #fff; font-size: 1.3rem; margin-bottom: .35rem; }
.card p { font-size: .9rem; color: rgba(255,255,255,.85); margin: 0 0 1rem; line-height: 1.5; }
.card .more { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1.5px solid rgba(255,255,255,.8); padding: .7em 1.3em; transition: background .2s ease, color .2s ease; }
.card:hover img { transform: scale(1.05); }
.card:hover .more, .card:focus-visible .more { background: #fff; color: var(--navy); }
@media (max-width: 600px) { .card, .cards-3 .card { flex-basis: 100%; aspect-ratio: 16 / 11; } }

/* CTA band */
.cta { background: var(--navy); color: #fff; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2.75rem, 5vw, 3.75rem) 0; }
.cta h2 { color: #fff; margin: 0 0 .3rem; }
.cta p { margin: 0; color: rgba(255,255,255,.8); }
.cta .btn-row { margin: 0; }

/* Content (service pages) */
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.ticks { list-style: none; padding: 0 !important; margin: 1rem 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.75rem; }
.ticks li { position: relative; padding: .55rem 0 .55rem 1.9rem; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .9rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
@media (max-width: 600px) { .ticks { grid-template-columns: 1fr; } }
.photo-frame { position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; box-shadow: var(--shadow); }
.photo-frame::before { content: ""; position: absolute; left: -16px; bottom: -16px; width: 45%; height: 55%; background: var(--navy); z-index: -1; }
.sticky { position: sticky; top: 110px; }
.manufacturers, .suppliers { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 1rem 0 0; }
.manufacturers li { background: var(--grey); padding: .4rem .8rem; font-size: .9rem; font-weight: 500; }
.suppliers { gap: 1.25rem 2rem; align-items: center; margin-top: 1.5rem; }
.suppliers img { height: 48px; width: auto; }

/* Services intro */
.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (max-width: 880px) { .intro-grid { grid-template-columns: 1fr; } }

/* Contact block */
.contact-items { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact-items li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center; }
.contact-items .ic { width: 56px; height: 56px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.contact-items .ic svg { width: 24px; height: 24px; }
.contact-items h4 { margin: 0; font-size: 1rem; }
.contact-items p, .contact-items address { margin: 0; font-style: normal; color: var(--muted); }
.contact-items a { color: var(--muted); text-decoration: none; }
.contact-items a:hover { color: var(--navy); text-decoration: underline; }
.form-card { background: #fff; padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.form-card h3 { font-size: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); padding: .8rem .9rem; border: 1px solid #CFCACA; border-radius: 0; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(34,48,97,.15); }
textarea { min-height: 130px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: 1.25rem; }
.form-note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
.hp { position: absolute; left: -5000px; }
.map { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.2); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-top { padding: 3.5rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-top img { width: 200px; height: auto; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0; }
.foot-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .5rem; }
.foot-grid address { font-style: normal; }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); padding: 1.4rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .83rem; color: rgba(255,255,255,.6); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
