
:root {
  color-scheme: dark;
  --night: #020f27;
  --navy: #04193c;
  --gold: #f1c65e;
  --gold-hi: #ffe9a6;
  --ink: #eef1f7;
  --muted: #c9d2e3;
  --rule: rgba(241, 198, 94, 0.45);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 2.5vw, 28px);
}
@media (min-width: 900px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
.page {
  max-width: 1120px; margin: 0 auto;
  padding-inline: var(--gutter); padding-block: 0 24px;
  background:
    radial-gradient(60% 30% at 15% 30%, rgba(30, 70, 140, 0.32), transparent 70%),
    radial-gradient(50% 30% at 85% 75%, rgba(30, 70, 140, 0.28), transparent 70%),
    var(--navy);
  display: flex; flex-direction: column; gap: clamp(22px, 3vw, 30px);
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
/* phones get copies of the photos with the HAVEN logo at half size */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(241, 198, 94, 0.35)); }
.gold-text { -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(180deg, var(--gold-hi) 0%, #f6d27a 38%, #c08a2c 55%, #f3cf74 78%, #fbe6a6 100%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }

/* Header + footer banners with tappable areas (site.js adds menu, dog and chat button) */
.banner { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.hot { position: absolute; border-radius: 12px; }
.hot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hot-phone { left: 48.5%; top: 30%; width: 16%; height: 33%; }
.f-phone { left: 35.2%; top: 14%; width: 16.5%; height: 28%; }
.f-email { left: 35.2%; top: 45%; width: 24%; height: 25%; }
.f-web   { left: 63.7%; top: 14%; width: 17.5%; height: 27%; }

/* Gold "Live Chat" button */
.chat-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 clamp(15px, 1.5vw, 17px)/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  color: #1c1206; text-decoration: none; cursor: pointer; border: 0;
  padding: 16px 28px; border-radius: 10px; min-height: 52px;
  background: linear-gradient(180deg, #fde9a8, #f2c96a 45%, #d9a443);
  box-shadow: 0 0 0 1.5px rgba(255, 233, 166, 0.75), 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 26px rgba(241, 198, 94, 0.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.chat-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 0 0 1.5px #fff3c8, 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 34px rgba(241, 198, 94, 0.55); }
.chat-btn:active { transform: translateY(1px) scale(0.99); filter: brightness(0.97); }
.chat-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { margin-inline: calc(-1 * var(--gutter)); margin-top: calc(-1 * clamp(22px, 3vw, 30px));
  display: grid; background: #030a1c; border-bottom: 1.5px solid rgba(241, 198, 94, 0.7); }
.hero-photo { order: -1; }
.hero-photo img { width: 100%; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: 22px var(--gutter) 30px; margin-top: -40px; position: relative;
  background: linear-gradient(180deg, transparent, #030a1c 40px); }
.kicker { margin: 0; font: 800 13px/1.6 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.kicker span { white-space: nowrap; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 0.98; letter-spacing: 0.01em; text-transform: uppercase;
  font-size: clamp(2.6rem, 11.5vw, 4.4rem); }
.hero h1 .w { color: #fff; display: block; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.hero h1 .gold-text { display: block; }
.hero-copy p.lead { margin: 0; font-size: 1.1875rem; line-height: 1.5; color: var(--ink); max-width: 30ch; text-wrap: balance; }
@media (min-width: 760px) {
  .hero { grid-template-columns: 40% 60%; align-items: stretch; min-height: clamp(380px, 38vw, 520px); }
  .hero-photo { order: 0; position: relative; overflow: hidden; }
  .hero-photo picture { position: absolute; inset: 0; }
  .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }
  .hero-copy { margin: 0; background: none; justify-content: center; padding: 32px 0 32px 24px; margin-right: -6%; z-index: 1; }
  .kicker { font-size: clamp(11.5px, 1.15vw, 13.5px); }
  .hero h1 { font-size: clamp(2.7rem, 5.1vw, 4.1rem); }
  .hero-copy p.lead { font-size: clamp(17px, 1.75vw, 20px); }
}

/* ---------- Feature icon rows ---------- */
.icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
.icons li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-inline: 8px;
  font-size: 1.0625rem; line-height: 1.25; }
.icons li:nth-child(even) { border-left: 1px solid var(--rule); }
.features { padding-block: 4px 18px; border-bottom: 1.5px solid rgba(241, 198, 94, 0.7); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
@media (min-width: 560px) and (max-width: 899px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .features li { border-left: 0; }
  .features li:not(:nth-child(4n + 1)) { border-left: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .features li { border-left: 0; font-size: 15.5px; }
  .features li + li { border-left: 1px solid var(--rule); }
}

/* ---------- Section headings ---------- */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sec-head .eyebrow { margin: 0; font: 800 13px/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.08;
  font-size: clamp(1.9rem, 6.6vw, 3rem); color: #fff; text-wrap: balance; }
.sec-head p { margin: 0; font-size: 1.125rem; line-height: 1.45; color: var(--ink); max-width: 64ch; text-wrap: balance; }
@media (min-width: 900px) { .sec-head p { font-size: 17px; } }
.rainbow { position: relative; display: inline-block; }
.rainbow::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -0.08em; height: 5px; border-radius: 5px;
  background: linear-gradient(90deg, #ff2bd6, #ff3030, #ff9a00, #ffe600, #2bff6a, #21d4ff, #3b6bff, #b14bff);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35); }

/* ---------- Project tiles ---------- */
/* Real project photos, shown whole width and trimmed only top/bottom to one shared shape (16:9) so the rows line up.
   Labels are live text on top of the photo, not part of the picture. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tiles li { position: relative; overflow: hidden; border: 1.5px solid rgba(241, 198, 94, 0.55); border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.tiles img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 50%; }
.tiles img.keep-bottom { object-position: 50% 100%; }
.tiles li::after { content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2, 8, 22, 0.72)); }
.tile-label { position: absolute; left: 14px; bottom: 11px; z-index: 1; max-width: 74%;
  font: 800 clamp(15px, 1.45vw, 17px)/1.2 var(--body); letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6); }
.tiles .wide { grid-column: 1 / -1; }
.tiles .wide img { aspect-ratio: auto; height: clamp(150px, 46vw, 230px); object-position: 0% 50%; }
.tiles .wide::after { inset: 55% 0 0 0; background: linear-gradient(180deg, transparent, rgba(2, 8, 22, 0.8)); }
.tiles .wide .tile-label { bottom: 9%; max-width: none; font-size: clamp(15px, 1.7vw, 20px); }
@media (min-width: 560px) and (max-width: 899px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles .wide img { height: auto; }
}

/* ---------- Commercial services ---------- */
.services li { gap: 6px; }
.services h3 { margin: 0; font: 800 1.0625rem/1.2 var(--body); color: #fff; }
.services p { margin: 0; font-size: 1rem; line-height: 1.35; color: var(--muted); }
@media (min-width: 560px) and (max-width: 899px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services li { border-left: 0; }
  .services li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .services { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .services li { border-left: 0; }
  .services li + li { border-left: 1px solid var(--rule); }
  .services h3 { font-size: 15.5px; }
  .services p { font-size: 14px; }
}
.icons li:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
@media (min-width: 560px) { .icons li:last-child:nth-child(odd) { grid-column: auto; } }

/* ---------- Call to action band ---------- */
.cta { margin-inline: calc(-1 * var(--gutter)); padding: 30px var(--gutter) 34px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border-top: 1.5px solid rgba(241, 198, 94, 0.7); border-bottom: 1.5px solid rgba(241, 198, 94, 0.7);
  background:
    linear-gradient(180deg, rgba(4, 22, 56, 0.86), rgba(3, 14, 38, 0.94)),
    var(--cta-bg, none) 50% 60% / cover; }
.cta h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 6.6vw, 2.9rem); line-height: 1.08; color: #fff; }
.cta p { margin: 0; font-size: 1.125rem; line-height: 1.45; max-width: 52ch; text-wrap: balance; }
@media (min-width: 900px) { .cta p { font-size: 18px; } }
@media (max-width: 380px) { .kicker span { white-space: normal; } .kicker { letter-spacing: 0.1em; } .hero h1 { font-size: 2.15rem; } }

/* ===================== Shared pieces for the Electrical and AR GloPix pages ===================== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chat-btn.ghost { background: rgba(4, 22, 56, 0.6); color: var(--gold-hi); box-shadow: 0 0 0 1.5px rgba(241, 198, 94, 0.8); }
.chat-btn.ghost:hover { background: rgba(241, 198, 94, 0.14); color: #fff; }
.hero-photo img.tall { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
@media (min-width: 760px) { .hero-photo img.tall { aspect-ratio: auto; } }

/* Section with text beside a photo */
.split { display: grid; gap: 18px; align-items: center; }
.split > img, .split > figure { border: 1.5px solid rgba(241, 198, 94, 0.55); border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.split figure { margin: 0; overflow: hidden; }
.split .copy { display: flex; flex-direction: column; gap: 12px; }
.split h2, .split h3 { margin: 0; }
.split p { margin: 0; font-size: 1.125rem; line-height: 1.5; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 28px; }
  .split.flip > :first-child { order: 2; }
  .split p { font-size: 17px; }
}
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 30px; font-size: 1.0625rem; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a6, #d9a443); box-shadow: 0 0 8px rgba(241, 198, 94, 0.45); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: calc(0.2em + 4px); width: 5px; height: 9px; border: solid #1c1206; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (min-width: 560px) { .ticks.two { grid-template-columns: 1fr 1fr; column-gap: 22px; } }

/* Photo gallery: real install photos, all trimmed to one shape so rows line up; labels are live text */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery li { position: relative; overflow: hidden; border: 1.5px solid rgba(241, 198, 94, 0.5); border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery li::after { content: ""; position: absolute; inset: 55% 0 0 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(2, 8, 22, 0.8)); }
.gallery .tile-label { left: 10px; bottom: 9px; max-width: 90%; font-size: clamp(13px, 3.4vw, 15.5px); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .gallery .tile-label { font-size: 15px; } }
@media (min-width: 1000px) { .gallery.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Section wrapper */
.block { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 16px; }
.block > .sec-head p { max-width: 62ch; }
.panel { border: 1.5px solid rgba(241, 198, 94, 0.55); border-radius: 12px; padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, rgba(10, 34, 82, 0.7), rgba(3, 14, 38, 0.85)); }

/* Numbered steps (a real order) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 74px; border: 1.5px solid rgba(241, 198, 94, 0.5); border-radius: 12px;
  background: rgba(3, 14, 38, 0.6); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 900 1.25rem/1 var(--display); color: #1c1206; background: linear-gradient(180deg, #fde9a8, #d9a443); }
.steps h3 { margin: 0 0 4px; font: 800 1.125rem/1.25 var(--body); color: #fff; }
.steps p { margin: 0; font-size: 1.0625rem; line-height: 1.45; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Questions and answers */
.faq { display: grid; gap: 10px; }
.faq details { border: 1.5px solid rgba(241, 198, 94, 0.5); border-radius: 10px; background: rgba(3, 14, 38, 0.6); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative; font: 800 1.0625rem/1.35 var(--body); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 700 1.5rem/1 var(--body); color: var(--gold); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.faq details p { margin: 0; padding: 0 18px 16px; font-size: 1.0625rem; line-height: 1.5; color: var(--muted); }

/* In-page jump links */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  font: 800 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-hi); border: 1.5px solid rgba(241, 198, 94, 0.7); background: rgba(3, 14, 38, 0.55); }
.jump a:hover, .jump a:focus-visible { background: rgba(241, 198, 94, 0.16); color: #fff; outline: none; box-shadow: 0 0 0 2px var(--gold); }
.note { margin: 0; text-align: center; font-size: 0.98rem; color: var(--muted); }
.note a { color: var(--gold-hi); }
.big-h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 6.6vw, 3rem); line-height: 1.08; color: #fff; text-wrap: balance; }
.split .kicker { text-align: left; }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); } .gallery.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } .gallery .tile-label { font-size: 13.5px; } }

/* Centered layout: copy blocks, numbered steps and check lists sit in the middle */
.split .copy { align-items: center; text-align: center; }
.split .kicker { text-align: center; }
.split .btn-row, .btn-row { justify-content: center; }
.ticks { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
.panel { text-align: center; }
.panel > * { margin-inline: auto; }
.steps li { padding: 70px 18px 18px; text-align: center; }
.steps li::before { left: 50%; transform: translateX(-50%); }

/* Nine services (Commercial Lighting, Electrical): 3 x 3 on tablets, one row of 9 on wide screens */
@media (min-width: 900px) {
  .services.nine { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .services.nine h3 { font-size: 14.5px; }
  .services.nine p { font-size: 13.5px; }
  ul.services.nine li + li, ul.services.nine li:last-child:nth-child(odd) { border-left: 1px solid var(--rule); grid-column: auto; }
}
@media (min-width: 560px) and (max-width: 899px) { ul.services.nine li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--rule); } ul.services.nine li:last-child:nth-child(odd) { grid-column: auto; } }
@media (max-width: 559px) { ul.services.nine li:last-child { border-top: 1px solid var(--rule); padding-top: 18px; } }
