/* HMB Electrical — dark, chrome, one electric-blue accent */
:root {
  --bg: #0b0c0e;
  --bg-2: #121418;
  --bg-3: #1a1d22;
  --line: #262a31;
  --text: #e8eaed;
  --muted: #99a0aa;
  --chrome-1: #ffffff;
  --chrome-2: #b9bfc7;
  --accent: #3d8bff;
  --accent-2: #6fb0ff;
  --accent-glow: rgba(61, 139, 255, .35);
  --radius: 14px;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* room for the mobile sticky CTA */
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--head); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: .005em; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 7vw, 3.75rem); }
h3 { font-size: 1.45rem; letter-spacing: .01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chrome {
  background: linear-gradient(180deg, #fff 0%, #dfe3e8 40%, #7d848c 52%, #f1f3f5 64%, #a9b0b8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 24px -6px var(--accent-glow); }
.btn-primary:hover { background: #2f7cf0; box-shadow: 0 8px 30px -4px var(--accent-glow); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.22); color: var(--text); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.menu-open { background: rgba(11,12,14,.92); backdrop-filter: blur(12px); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; }
.logo { width: 132px; height: auto; }
.nav, .header-cta { display: none; }
.menu-btn {
  margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  display: grid; place-content: center; gap: 6px; padding: 0;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px 20px 24px; display: flex; flex-direction: column;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.4rem/1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 40% 50%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,12,14,.6) 0%, rgba(11,12,14,.35) 25%, rgba(11,12,14,.82) 55%, var(--bg) 100%),
    radial-gradient(120% 60% at 50% 100%, rgba(61,139,255,.12), transparent 70%);
}
.hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; color: var(--chrome-2); margin-bottom: 18px; }
.dot { flex: none; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow), 0 0 14px var(--accent); }
.hero h1 { font-size: clamp(2.7rem, 11.5vw, 4.5rem); max-width: 14ch; margin-bottom: 20px; }
.hero h1 .chrome { display: block; }
.lead { font-size: 1.08rem; color: #c9cdd3; max-width: 46ch; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }
.trust-list { list-style: none; margin: 0 auto; padding-block: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.trust-list strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.trust-list .i { width: 26px; height: 26px; color: var(--accent-2); }

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* ---------- Services ---------- */
.services { display: grid; gap: 14px; }
.card {
  position: relative; padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); }
.card:hover { border-color: rgba(61,139,255,.5); transform: translateY(-2px); }
.card-icon { width: 36px; height: 36px; margin-bottom: 18px; fill: none; stroke: var(--accent-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 24px; padding: 0 20px 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted); font: 500 14px var(--body);
  transition: all .2s;
}
.filter:hover { color: var(--text); border-color: #3a3f47; }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }

.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto;
  grid-auto-flow: dense; gap: 8px;
}
.tile {
  position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in;
  background: var(--bg-3); transition: opacity .3s;
}
.tile.is-big { grid-column: span 2; grid-row: span 2; }
.tile picture, .tile img { width: 100%; height: 100%; }
.tile img { object-fit: cover; transition: transform .5s ease, filter .3s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); border-radius: inherit; pointer-events: none; }
.tile[hidden] { display: none; }
.gallery-more-wrap { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- About ---------- */
.about { display: grid; gap: 48px; align-items: center; }
.about-media { position: relative; padding-bottom: 60px; max-width: 520px; }
.about-main { width: 100%; max-width: 640px; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.about-portrait {
  position: absolute; right: 12px; bottom: 0; width: 120px; border-radius: 10px; overflow: hidden;
  border: 3px solid var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 20px 40px rgba(0,0,0,.6);
}
.about-portrait img { width: 100%; height: auto; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { color: #c4c9cf; max-width: 56ch; }
.about-copy .btn { margin-top: 10px; }

/* ---------- Why ---------- */
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: why; }
.why li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; column-gap: 8px; }
.why li:last-child { border-bottom: 1px solid var(--line); }
.why-num { grid-row: span 2; font: 600 1.1rem/1.6 var(--head); color: var(--accent-2); letter-spacing: .08em; }
.why h3 { margin-bottom: 6px; }
.why p { margin: 0; color: var(--muted); }

/* ---------- Areas ---------- */
.areas { display: grid; gap: 32px; }
.areas h2 { margin-bottom: 16px; }
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.area-list li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; color: #cfd3d8; }

/* ---------- Quote ---------- */
.quote-section { border-top: 1px solid var(--line); background: radial-gradient(80% 60% at 100% 0%, rgba(61,139,255,.08), transparent 60%), var(--bg); }
.quote { display: grid; gap: 36px; }
.quote-intro h2 { margin-bottom: 16px; }
.quote-phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; text-decoration: none; font: 700 1.7rem/1.1 var(--head); letter-spacing: .02em; }
.quote-phone .i { width: 44px; height: 44px; padding: 11px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-2); }
.quote-phone small { display: block; font: 500 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.form-shell { padding: 24px 20px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.form { display: grid; gap: 16px; }
.field-row { display: grid; gap: 16px; }
.field { position: relative; display: grid; gap: 7px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #c9cdd3; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid #2c3038; color: var(--text);
  font: 400 16px/1.4 var(--body); /* 16px stops iOS zoom on focus */
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2399a0aa' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select:invalid { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field .is-invalid { border-color: #ff6b6b; }
.upload {
  display: flex !important; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 12px;
  border: 1px dashed #3a3f47; border-radius: 10px; color: var(--muted); cursor: pointer; font-weight: 500 !important; text-align: center;
  transition: border-color .2s, color .2s;
}
.upload:hover, .upload.has-files { border-color: var(--accent); color: var(--text); }
#f-photos:focus-visible + .upload, .upload:focus-within { outline: 2px solid var(--accent-2); }
.hp { position: absolute; left: -9999px; }
.form-error { margin: 0; color: #ff8a8a; font-size: 14px; }
.form-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-success { text-align: center; padding: 40px 8px; }
.form-success:focus { outline: none; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 18px; fill: none; stroke: var(--accent-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 12px var(--accent-glow)); }
.form-success h3 { font-size: 2rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin: 0; }
.form-success a { color: var(--accent-2); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); background: #08090a; font-size: 14px; }
.footer-grid { display: grid; gap: 28px; }
.footer .logo { width: 150px; margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--accent-2); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,12,14,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.sticky-cta .btn { min-height: 50px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,7,.94); display: grid; place-items: center; padding: 60px 12px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lb-picture img { max-width: min(92vw, 1200px); max-height: 76svh; width: auto; height: auto; border-radius: 8px; }
.lb-caption { color: var(--muted); font-size: 14px; text-align: center; max-width: 60ch; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ================= Tablet + ================= */
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
  .services { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .trust-list { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .form-shell { padding: 32px; }
}

/* ================= Desktop ================= */
@media (min-width: 960px) {
  :root { --header-h: 80px; }
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .wrap { padding: 0 32px; }
  .menu-btn, .mobile-nav { display: none !important; }
  .logo { width: 172px; }
  .nav { display: flex; gap: 30px; margin-left: auto; }
  .nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: #c9cdd3; transition: color .2s; }
  .nav a:hover { color: #fff; }
  .header-cta { display: flex; gap: 10px; }
  .hero { min-height: min(100vh, 920px); }
  .hero h1 { font-size: clamp(4rem, 6vw, 5.6rem); max-width: 15ch; }
  .lead { font-size: 1.15rem; }
  .hero::after { background:
    linear-gradient(90deg, rgba(11,12,14,.92) 0%, rgba(11,12,14,.7) 40%, rgba(11,12,14,.15) 75%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
  .hero-bg img { object-position: 50% 55%; }
  .hero-content { padding-top: calc(var(--header-h) + 60px); padding-bottom: 96px; }
  .section { padding-block: 120px; }
  .section-head { margin-bottom: 56px; }
  .services { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .card { padding: 34px 30px; }
  .filters { margin: 0 0 32px; padding: 0; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .about { grid-template-columns: 1fr 1fr; gap: 80px; }
  .why { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .why li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .areas { grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
  .quote { grid-template-columns: 1fr 1.25fr; gap: 80px; align-items: start; }
  .form-shell { padding: 40px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.footer-address { font-style: normal; margin-top: 4px; }
