:root {
  --ink: #0c1728;
  --muted: #58677a;
  --line: #dbe2ea;
  --paper: #fff;
  --soft: #f5f8fb;
  --power: #f4bf21;
  --power2: #ffd85a;
  --green: #0a7a4b;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(12, 23, 40, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font:
    16px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px;
  z-index: 50;
}
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}
.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar a {
  text-decoration: none;
  color: var(--power2);
  font-weight: 850;
}
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}
.brand .bolt {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--power);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(244, 191, 33, 0.28);
}
.brand b,
.brand small {
  display: block;
  line-height: 1.05;
}
.brand b {
  font-size: 17px;
}
.brand small {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  margin-top: 5px;
  color: var(--muted);
}
.site-header nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  align-items: center;
}
.site-header nav a {
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
  position: relative;
}
.site-header nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--power);
  transition: right 0.2s ease;
}
.site-header nav a:hover:after {
  right: 0;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(12, 23, 40, 0.12);
}
.primary {
  background: var(--power);
  color: var(--ink);
}
.secondary {
  background: var(--ink);
  color: #fff;
}
.ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.light {
  /* background: #fff; */
  border-color: #fff ;
}
.outline-light {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.menu-btn {
  display: none;
}
.nav-call {
  position: relative;
  overflow: visible;
}
.nav-call:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e24a3b;
  box-shadow: 0 0 0 0 rgba(226, 74, 59, 0.55);
  margin-right: 2px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
  background: linear-gradient(180deg, #f8fbff 0, #fff 100%);
}
.hero:before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  right: -170px;
  top: -210px;
  background: radial-gradient(
    circle,
    rgba(244, 191, 33, 0.2),
    rgba(244, 191, 33, 0) 68%
  );
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 900;
  color: #755500;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 12px 0 20px;
}
.hero p.lead,
.page-hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 720px;
}
.hero-actions,
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.cta-cluster {
  align-items: center;
}
.call-btn {
  box-shadow: 0 12px 28px rgba(244, 191, 33, 0.24);
}
.whatsapp-btn {
  background: var(--green);
}
.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.trust-row span {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.quote-card {
  position: relative;
}
.quote-card:before {
  content: "Fast response";
  position: absolute;
  right: 18px;
  top: 18px;
  background: #fff3c7;
  border: 1px solid #eed572;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quote-card h2 {
  margin-top: 0;
}
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.lead-form label {
  font-size: 13px;
  font-weight: 800;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  margin-top: 5px;
  border: 1px solid #c8d2dd;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  font: inherit;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 0;
  border-color: #a77d00;
  box-shadow: 0 0 0 3px rgba(244, 191, 33, 0.18);
}
.lead-form .span-2 {
  grid-column: 1/-1;
}
.lead-form .consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--muted);
}
.lead-form .consent input {
  width: auto;
  margin-top: 5px;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
}
.section {
  padding: 72px 0;
}
.section.soft {
  background: var(--soft);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}
.section h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0.25em 0;
}
.section-head p {
  max-width: 580px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  background: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #e0bd52;
}
.service-card h3 {
  margin: 8px 0;
}
.service-card p {
  color: var(--muted);
  margin-bottom: 0;
}
.number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff3c7;
  font-weight: 900;
}
.call-strip {
  padding: 0 0 72px;
}
.call-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.call-strip h2 {
  margin: 0 0 6px;
  font-size: 28px;
}
.call-strip p {
  margin: 0;
  color: #cbd5e1;
}
.call-strip .hero-actions {
  margin: 0;
}
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.proof div {
  border-left: 3px solid var(--power);
  padding: 8px 14px;
}
.proof b {
  display: block;
  font-size: 18px;
}
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 42px;
  background: var(--soft);
}
.page-hero:after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -220px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 191, 33, 0.17),
    transparent 70%
  );
}
.page-hero .wrap {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
}
.prose h2 {
  margin-top: 1.6em;
  font-size: 30px;
}
.prose h3 {
  margin-top: 1.4em;
}
.prose p,
.prose li {
  color: #36465a;
}
.sticky {
  position: sticky;
  top: 105px;
  height: max-content;
}
.checks {
  padding: 0;
  list-style: none;
}
.checks li {
  padding: 8px 0 8px 28px;
  position: relative;
}
.checks li:before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 950;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.faq summary {
  font-weight: 850;
  cursor: pointer;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.gallery img {
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  width: 100%;
  transition: transform 0.35s ease;
}
.gallery figure:hover img {
  transform: scale(1.025);
}
.gallery figcaption {
  padding: 12px;
  font-size: 14px;
}
.area-grid .service-card {
  position: relative;
}
.area-grid .service-card:after {
  content: "View area →";
  display: block;
  margin-top: 14px;
  font-weight: 850;
  color: #755500;
}
.final-cta {
  background: var(--ink);
  color: #fff;
  padding: 54px 0;
}
.final-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.final-cta h2 {
  font-size: 36px;
  margin: 0.15em 0;
}
.final-cta p {
  color: #cad5e1;
}
.final-cta .eyebrow {
  color: var(--power2);
}
footer {
  background: #08101c;
  color: #d8e1ea;
  padding: 50px 0 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-grid h3 {
  color: #fff;
}
.footer-grid a {
  display: block;
  text-decoration: none;
  margin: 8px 0;
}
.footer-brand {
  color: #fff;
}
.copyright {
  border-top: 1px solid #253246;
  margin-top: 34px;
  padding-top: 20px;
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.mobile-actions {
  display: none;
}
.desktop-float {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 18;
  display: grid;
  gap: 9px;
}
.desktop-float a {
  min-width: 170px;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}
.desktop-float a:hover {
  transform: translateX(-4px);
}
.desktop-float span,
.desktop-float b {
  display: block;
}
.desktop-float span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
}
.float-call {
  background: var(--power);
  color: var(--ink);
}
.float-wa {
  background: var(--green);
  color: #fff;
}
dialog {
  width: min(520px, calc(100% - 24px));
  border: 0;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 20px 80px #0005;
}
dialog::backdrop {
  background: #07101db8;
}
.dialog-close {
  float: right;
  border: 0;
  background: #eef2f6;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 22px;
  cursor: pointer;
}
.notice {
  padding: 14px;
  border-radius: 12px;
  background: #fff8d8;
  border: 1px solid #ecd679;
}
.success {
  background: #e8f8ef;
  border-color: #9cd8b6;
}
.error {
  background: #fff0f0;
  border-color: #e8aaaa;
}
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
.js .reveal.in-view {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.js .reveal-delay-1.in-view {
  transition-delay: 0.06s;
}
.js .reveal-delay-2.in-view {
  transition-delay: 0.12s;
}
.js .reveal-delay-3.in-view {
  transition-delay: 0.18s;
}
@keyframes callpulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 74, 59, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(226, 74, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(226, 74, 59, 0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .nav-call:before {
    animation: callpulse 2.2s infinite;
  }
  .hero:before {
    animation: floatglow 8s ease-in-out infinite alternate;
  }
  @keyframes floatglow {
    to {
      transform: translate(-34px, 28px) scale(1.08);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .service-card,
  .gallery img,
  .desktop-float a {
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1000px) {
  .site-header nav {
    gap: 13px;
  }
  .nav {
    gap: 14px;
  }
  .nav-cta {
    padding: 0 14px;
  }
  .desktop-float {
    display: none;
  }
}
@media (max-width: 900px) {
  .site-header nav#navlinks {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-header nav#navlinks.open {
    display: flex;
  }
  .site-header nav#navlinks a:after {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px;
  }
  .nav-cta {
    display: none;
  }
  .hero-grid,
  .content-grid,
  .final-grid,
  .call-strip-inner {
    grid-template-columns: 1fr;
  }
  .call-strip .hero-actions {
    margin-top: 18px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .proof {
    grid-template-columns: 1fr 1fr;
  }
  .sticky {
    position: static;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  body {
    padding-bottom: 72px;
  }
  .wrap {
    width: min(100% - 22px, 1160px);
  }
  .topbar-inner span {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
  }
  .topbar-links {
    width: 100%;
    justify-content: space-around;
  }
  .hero {
    padding-top: 42px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .cards,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .lead-form {
    grid-template-columns: 1fr;
  }
  .lead-form .span-2 {
    grid-column: auto;
  }
  .proof {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 52px 0;
  }
  .section-head {
    display: block;
  }
  .call-strip {
    padding-bottom: 52px;
  }
  .call-strip-inner {
    padding: 24px 20px;
  }
  .call-strip .btn {
    width: 100%;
  }
  .mobile-actions {
    position: fixed;
    z-index: 35;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 7px max(7px, env(safe-area-inset-right))
      calc(7px + env(safe-area-inset-bottom))
      max(7px, env(safe-area-inset-left));
    box-shadow: 0 -8px 28px rgba(12, 23, 40, 0.12);
  }
  .mobile-actions a,
  .mobile-actions button {
    border: 0;
    text-align: center;
    padding: 8px 4px;
    font-weight: 900;
    text-decoration: none;
    font-size: 13px;
    border-radius: 10px;
    background: #f2f5f8;
    color: var(--ink);
    font-family: inherit;
  }
  .mobile-actions span,
  .mobile-actions small {
    display: block;
    line-height: 1.15;
  }
  .mobile-actions small {
    font-size: 10px;
    margin-top: 3px;
    font-weight: 750;
    opacity: 0.7;
  }
  .mobile-actions .mobile-call {
    background: var(--power);
  }
  .mobile-actions .mobile-wa {
    background: var(--green);
    color: #fff;
  }
  .mobile-actions .mobile-quote {
    background: var(--ink);
    color: #fff;
  }
  footer {
    padding-bottom: 42px;
  }
  .final-cta h2 {
    font-size: 30px;
  }
  .desktop-float {
    display: none;
  }
  .quote-card:before {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
}

/* V3 - yellow electrical theme, animated service visuals and off-canvas navigation */
:root {
  --ink: #17140b;
  --muted: #655e4f;
  --line: #eadfbd;
  --paper: #fffef9;
  --soft: #fff8dc;
  --power: #ffc400;
  --power2: #ffe36b;
  --yellow-deep: #856200;
  --green: #087a46;
  --shadow: 0 18px 50px rgba(83, 62, 0, 0.11);
}
body {
  background: var(--paper);
}
.topbar {
  background: #17140b;
}
.site-header {
  background: rgba(255, 254, 247, 0.96);
  border-bottom-color: #eadb9e;
}
.brand .bolt {
  background: linear-gradient(145deg, #ffd52d, #ffb800);
  box-shadow: 0 8px 22px rgba(255, 196, 0, 0.34);
}
.primary {
  background: linear-gradient(135deg, #ffd422, #ffbd00);
}
.secondary {
  background: #17140b;
}
.ghost {
  background: #fffdf4;
  border-color: #ead9a3;
}
.eyebrow {
  color: #856200;
}
.hero {
  background: linear-gradient(135deg, #fff9df 0, #fffef9 48%, #fff4b8 100%);
}
.hero:before {
  background: radial-gradient(
    circle,
    rgba(255, 196, 0, 0.31),
    rgba(255, 196, 0, 0) 68%
  );
}
.page-hero,
.section.soft {
  background: #fff9e2;
}
.trust-row span {
  background: #fffdf6;
  border-color: #eadcae;
}
.service-card {
  border-color: #eadfbd;
}
.service-card:hover {
  border-color: #ffc400;
  box-shadow: 0 18px 42px rgba(112, 83, 0, 0.13);
}
.number {
  background: #fff0a4;
  color: #5b4500;
}
.call-strip-inner,
.final-cta {
  background: linear-gradient(120deg, #1a160a, #302506);
}
.proof div {
  border-left-color: #ffc400;
}
.float-call {
  background: #ffc400;
}
.mobile-actions .mobile-call {
  background: #ffc400;
}
.quote-card:before {
  background: #ffef9c;
  border-color: #f1cc34;
}
.nav-backdrop,
.drawer-head,
.drawer-actions {
  display: none;
}
.menu-btn {
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 10px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.power-visuals {
  padding: 8px 0 36px;
  background: linear-gradient(180deg, #fffef9, #fff8dc);
}
.electrical-motion {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #ebdc9e;
  border-radius: 22px;
  background: #17140b;
  box-shadow: 0 18px 50px rgba(83, 62, 0, 0.13);
}
.motion-card {
  min-width: 0;
  background: linear-gradient(145deg, #29220d, #17140b);
  border: 1px solid #4b3c10;
  border-radius: 16px;
  padding: 18px 14px;
  color: #fff;
  overflow: hidden;
}
.motion-card > div:last-child {
  display: grid;
  gap: 2px;
}
.motion-card b {
  font-size: 14px;
}
.motion-card small {
  font-size: 11px;
  color: #d9c983;
}
.motion-stage {
  height: 86px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  isolation: isolate;
}
/* blinking lamp */
.bulb {
  position: absolute;
  width: 33px;
  height: 38px;
  border-radius: 50% 50% 45% 45%;
  background: #ffe779;
  top: 15px;
  z-index: 2;
  box-shadow: 0 0 8px #ffd52d;
}
.bulb:after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: -7px;
  width: 11px;
  height: 10px;
  background: #a48727;
  border-radius: 2px;
}
.bulb-base {
  position: absolute;
  top: 56px;
  width: 16px;
  height: 8px;
  border-radius: 2px;
  background: #c9a22b;
  z-index: 2;
}
.bulb-glow {
  position: absolute;
  top: 2px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 221, 77, 0.8),
    rgba(255, 196, 0, 0.12) 48%,
    transparent 70%
  );
  filter: blur(1px);
}
.spark {
  position: absolute;
  width: 2px;
  height: 12px;
  background: #ffe25a;
  border-radius: 10px;
  transform-origin: 50% 45px;
}
.s1 {
  top: 2px;
}
.s2 {
  top: 8px;
  transform: rotate(55deg) translateY(-31px);
}
.s3 {
  top: 8px;
  transform: rotate(-55deg) translateY(-31px);
}
/* LED profile runner */
.led-track {
  position: relative;
  width: 88%;
  height: 16px;
  background: #3d3a31;
  border: 3px solid #77705f;
  border-radius: 5px;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 2px 4px;
  box-shadow: 0 8px 20px #0008;
}
.led-track:after {
  content: "";
  position: absolute;
  inset: 19px 8px auto;
  height: 15px;
  background: linear-gradient(180deg, rgba(255, 220, 61, 0.42), transparent);
  filter: blur(5px);
}
.led-track i {
  flex: 1;
  height: 6px;
  border-radius: 50%;
  background: #675d2c;
  box-shadow: 0 0 0 transparent;
}
/* MCB */
.mcb-body {
  position: relative;
  width: 52px;
  height: 70px;
  background: #f2eee2;
  border-radius: 5px;
  border: 3px solid #c9c1ad;
  box-shadow: 0 9px 18px #0008;
}
.mcb-body em {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  text-align: center;
  color: #373127;
  font: 800 9px/1 system-ui;
  font-style: normal;
}
.mcb-switch {
  position: absolute;
  left: 17px;
  top: 16px;
  width: 13px;
  height: 30px;
  border-radius: 3px;
  background: #27231b;
  transform-origin: 50% 85%;
  box-shadow: 0 2px 3px #0004;
}
.trip-flash {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.65), transparent 65%);
  opacity: 0;
}
/* moving downlight beam */
.downlight {
  position: absolute;
  top: 10px;
  width: 54px;
  height: 11px;
  border-radius: 7px;
  background: #ddd5bd;
  border: 2px solid #9d9581;
  box-shadow: 0 2px 8px #0008;
}
.downlight:after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: -4px;
  height: 5px;
  border-radius: 50%;
  background: #fff09b;
  box-shadow: 0 0 14px #ffd523;
}
.light-ray {
  position: absolute;
  top: 23px;
  width: 82px;
  height: 53px;
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  background: linear-gradient(
    180deg,
    rgba(255, 232, 113, 0.67),
    rgba(255, 196, 0, 0.07)
  );
  filter: blur(0.2px);
  transform-origin: 50% 0;
}
.floor-line {
  position: absolute;
  bottom: 7px;
  width: 90px;
  height: 2px;
  background: #655628;
  border-radius: 50%;
}
.floor-line:after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  top: -5px;
  height: 11px;
  border-radius: 50%;
  background: #ffd938;
  filter: blur(7px);
  opacity: 0.65;
}

@media (prefers-reduced-motion: no-preference) {
  .bulb,
  .bulb-glow {
    animation: bulbBlink 2.7s ease-in-out infinite;
  }
  .spark {
    animation: sparkBlink 2.7s ease-in-out infinite;
  }
  .led-track i:nth-child(1) {
    animation: ledRun 1.4s linear infinite;
  }
  .led-track i:nth-child(2) {
    animation: ledRun 1.4s 0.16s linear infinite;
  }
  .led-track i:nth-child(3) {
    animation: ledRun 1.4s 0.32s linear infinite;
  }
  .led-track i:nth-child(4) {
    animation: ledRun 1.4s 0.48s linear infinite;
  }
  .led-track i:nth-child(5) {
    animation: ledRun 1.4s 0.64s linear infinite;
  }
  .led-track i:nth-child(6) {
    animation: ledRun 1.4s 0.8s linear infinite;
  }
  .led-track i:nth-child(7) {
    animation: ledRun 1.4s 0.96s linear infinite;
  }
  .mcb-switch {
    animation: mcbTrip 3.8s cubic-bezier(0.5, 0.1, 0.2, 1) infinite;
  }
  .trip-flash {
    animation: tripFlash 3.8s ease infinite;
  }
  .light-ray {
    animation: rayMove 3.4s ease-in-out infinite;
  }
  .floor-line:after {
    animation: floorGlow 3.4s ease-in-out infinite;
  }
  @keyframes bulbBlink {
    0%,
    13%,
    22%,
    100% {
      opacity: 1;
      box-shadow:
        0 0 10px #ffe04f,
        0 0 28px #ffc400;
    }
    16%,
    19% {
      opacity: 0.18;
      box-shadow: none;
    }
  }
  @keyframes sparkBlink {
    0%,
    13%,
    22%,
    100% {
      opacity: 1;
    }
    16%,
    19% {
      opacity: 0.05;
    }
  }
  @keyframes ledRun {
    0%,
    55%,
    100% {
      background: #62572b;
      box-shadow: none;
    }
    15%,
    35% {
      background: #fff19a;
      box-shadow:
        0 0 8px #ffd51d,
        0 0 16px #ffc400;
    }
  }
  @keyframes mcbTrip {
    0%,
    36% {
      transform: rotate(0);
    }
    42%,
    73% {
      transform: rotate(36deg);
    }
    79%,
    100% {
      transform: rotate(0);
    }
  }
  @keyframes tripFlash {
    0%,
    38%,
    48%,
    100% {
      opacity: 0;
      transform: scale(0.8);
    }
    41% {
      opacity: 1;
      transform: scale(1.08);
    }
  }
  @keyframes rayMove {
    0%,
    100% {
      transform: rotate(-11deg) translateX(-4px);
      opacity: 0.62;
    }
    50% {
      transform: rotate(11deg) translateX(4px);
      opacity: 1;
    }
  }
  @keyframes floorGlow {
    0%,
    100% {
      transform: translateX(-17px);
      opacity: 0.35;
    }
    50% {
      transform: translateX(17px);
      opacity: 0.85;
    }
  }
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }
  .menu-btn {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid #e5d596;
    background: #fff9dc;
    border-radius: 12px;
    z-index: 42;
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(23, 20, 11, 0.58);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease;
    z-index: 39;
  }
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  nav#navlinks {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(86vw, 360px);
    margin: 0;
    background: #fffdf4;
    border: 0;
    border-left: 1px solid #ead99e;
    border-radius: 0;
    padding: 18px;
    box-shadow: -20px 0 60px rgba(23, 20, 11, 0.2);
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    transform: translateX(105%);
    visibility: hidden;
    transition:
      transform 0.25s ease,
      visibility 0.25s ease;
    z-index: 41;
    overflow-y: auto;
  }
  nav#navlinks.open {
    transform: translateX(0);
    visibility: visible;
  }
  nav#navlinks > a {
    padding: 14px 12px;
    border-bottom: 1px solid #eee3bd;
    font-size: 16px;
  }
  nav#navlinks > a:after {
    display: none;
  }
  .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 15px;
    border-bottom: 1px solid #e7d89f;
    margin-bottom: 4px;
  }
  .drawer-brand {
    display: flex;
  }
  .drawer-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5d596;
    border-radius: 12px;
    background: #fff4be;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
  .drawer-actions {
    display: grid;
    gap: 9px;
    margin-top: auto;
    padding-top: 20px;
  }
  .drawer-actions .btn {
    width: 100%;
  }
  .nav-cta {
    display: none;
  }
  .electrical-motion {
    grid-template-columns: 1fr 1fr;
  }
  .motion-card {
    min-height: 138px;
  }
}
@media (max-width: 620px) {
  .electrical-motion {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
  }
  .motion-card {
    padding: 13px 9px;
    min-height: 130px;
  }
  .motion-stage {
    height: 72px;
  }
  .motion-card b {
    font-size: 12px;
  }
  .motion-card small {
    font-size: 10px;
  }
  .power-visuals {
    padding-bottom: 24px;
  }
  .led-track {
    width: 96%;
  }
}
@media (max-width: 390px) {
  .electrical-motion {
    grid-template-columns: 1fr;
  }
  .motion-card {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;
    min-height: 100px;
  }
  .motion-stage {
    margin: 0;
    height: 76px;
  }
}

/* V4 - reliable mobile drawer, bottom navigation, emergency + rewiring motion */
.motion-card {
  display: block;
  text-decoration: none;
  color: #fff;
}
.global-power-visuals {
  padding: 46px 0;
  background: linear-gradient(180deg, #fffdf5, #fff5c8);
}
.global-motion-head {
  text-align: center;
  margin: 0 auto 20px;
}
.global-motion-head h2 {
  margin: 0.2em 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
}
.electrical-motion-six {
  grid-template-columns: repeat(6, 1fr);
}
.emergency-bolt {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #ffc400;
  color: #17140b;
  font-size: 24px;
  box-shadow: 0 0 18px #ffc400;
}
.emergency-ring {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 2px solid #ffd72f;
  border-radius: 50%;
  opacity: 0.65;
}
.emergency-dot {
  position: absolute;
  right: 17%;
  top: 18%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5548;
  box-shadow: 0 0 12px #ff5548;
}
.wire-stage {
  overflow: hidden;
}
.wire-line {
  position: absolute;
  left: 7%;
  right: 7%;
  height: 7px;
  border-radius: 999px;
  background: #4d493e;
  border: 1px solid #77705f;
}
.w1 {
  top: 22px;
}
.w2 {
  top: 41px;
}
.w3 {
  top: 60px;
}
.wire-line:before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #b35d25, #f39b32);
}
.w2:before {
  background: linear-gradient(90deg, #416e9b, #69a7df);
}
.w3:before {
  background: linear-gradient(90deg, #4b8b51, #78c37a);
}
.wire-pulse {
  position: absolute;
  left: 9%;
  width: 18px;
  height: 5px;
  border-radius: 99px;
  background: #fff6ad;
  box-shadow: 0 0 9px #ffc400;
}
.wp1 {
  top: 24px;
}
.wp2 {
  top: 43px;
}
.wp3 {
  top: 62px;
}
@media (prefers-reduced-motion: no-preference) {
  .emergency-ring.er1 {
    animation: emergencyPulse 1.8s ease-out infinite;
  }
  .emergency-ring.er2 {
    animation: emergencyPulse 1.8s 0.9s ease-out infinite;
  }
  .emergency-dot {
    animation: emergencyBlink 1s steps(2, end) infinite;
  }
  .wire-pulse {
    animation: wireFlow 2s linear infinite;
  }
  .wp2 {
    animation-delay: 0.35s;
  }
  .wp3 {
    animation-delay: 0.7s;
  }
  @keyframes emergencyPulse {
    0% {
      transform: scale(0.72);
      opacity: 0.85;
    }
    100% {
      transform: scale(1.6);
      opacity: 0;
    }
  }
  @keyframes emergencyBlink {
    50% {
      opacity: 0.18;
    }
  }
  @keyframes wireFlow {
    0% {
      transform: translateX(-6px);
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    88% {
      opacity: 1;
    }
    100% {
      transform: translateX(112px);
      opacity: 0;
    }
  }
}

/* Reset the older dropdown mobile nav rules and use a single off-canvas drawer. */
@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }
  .site-header {
    z-index: 60;
  }
  .site-header .nav {
    position: relative;
  }
  .site-header .menu-btn {
    display: inline-flex !important;
    position: relative;
    margin-left: auto;
    z-index: 74;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e5d596;
    background: #fff9dc;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }
  .site-header .menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 10px;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .site-header .menu-btn[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header .menu-btn[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .site-header .menu-btn[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  body .site-header nav#navlinks.nav-drawer {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(88vw, 370px) !important;
    max-width: 370px;
    margin: 0 !important;
    padding: 18px !important;
    background: #fffdf4 !important;
    border: 0 !important;
    border-left: 1px solid #ead99e !important;
    border-radius: 0 !important;
    box-shadow: -20px 0 60px rgba(23, 20, 11, 0.24) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    transform: translate3d(105%, 0, 0) !important;
    visibility: hidden !important;
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease,
      visibility 0.25s ease !important;
    z-index: 73 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  body .site-header nav#navlinks.nav-drawer.is-open,
  body .site-header nav#navlinks.nav-drawer.open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible !important;
    opacity: 1;
    pointer-events: auto;
  }
  body .site-header nav#navlinks.nav-drawer > a {
    display: block;
    padding: 14px 12px;
    border-bottom: 1px solid #eee3bd;
    font-size: 16px;
    text-decoration: none;
  }
  body .site-header nav#navlinks.nav-drawer > a:after {
    display: none !important;
  }
  body .site-header .drawer-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 15px;
    border-bottom: 1px solid #e7d89f;
    margin-bottom: 4px;
  }
  body .site-header .drawer-brand {
    display: flex !important;
  }
  body .site-header .drawer-close {
    display: grid !important;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5d596;
    border-radius: 12px;
    background: #fff4be;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
  body .site-header .drawer-actions {
    display: grid !important;
    gap: 9px;
    margin-top: auto;
    padding-top: 20px;
  }
  body .site-header .drawer-actions .btn {
    width: 100%;
  }
  .nav-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(23, 20, 11, 0.58);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      visibility 0.22s ease;
    z-index: 59;
  }
  .nav-backdrop.is-open,
  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-cta {
    display: none !important;
  }
  .electrical-motion-six {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mobile-bottom-nav {
  display: none;
}
@media (max-width: 700px) {
  body {
    padding-bottom: 82px;
  }
  .mobile-actions {
    display: none !important;
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    background: rgba(255, 254, 247, 0.97);
    border-top: 1px solid #e4d49a;
    box-shadow: 0 -10px 30px rgba(51, 39, 0, 0.13);
    padding: 6px max(5px, env(safe-area-inset-right))
      calc(6px + env(safe-area-inset-bottom))
      max(5px, env(safe-area-inset-left));
    backdrop-filter: blur(12px);
  }
  .mobile-bottom-nav a {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 5px 2px;
    text-decoration: none;
    color: #4d4638;
    border-radius: 12px;
    font-weight: 850;
    font-size: 10px;
    line-height: 1.1;
  }
  .mobile-bottom-nav .bottom-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 900;
  }
  .mobile-bottom-nav small {
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
  }
  .mobile-bottom-nav .bottom-emergency .bottom-icon {
    background: #ffc400;
    color: #17140b;
    box-shadow: 0 0 0 4px #fff5bd;
  }
  .mobile-bottom-nav .bottom-call {
    background: #fff1a6;
    color: #17140b;
  }
  .mobile-bottom-nav .bottom-wa {
    background: #087a46;
    color: #fff;
  }
  .mobile-bottom-nav .bottom-wa .bottom-icon {
    color: #fff;
  }
  .desktop-float {
    display: none !important;
  }
  footer {
    padding-bottom: 38px;
  }
  .electrical-motion-six {
    grid-template-columns: 1fr 1fr;
  }
  .global-power-visuals {
    padding: 36px 0;
  }
}
@media (max-width: 390px) {
  .mobile-bottom-nav small {
    font-size: 8px;
  }
  .electrical-motion-six {
    grid-template-columns: 1fr 1fr;
  }
  .motion-card {
    display: block;
    min-height: 128px;
  }
  .motion-stage {
    height: 72px;
  }
}

/* V7 Near By Electrician brand, service motions and conversion UI */
:root {
  --nearby-yellow: #ffc400;
  --nearby-yellow2: #ffe36a;
  --nearby-black: #17140b;
  --nearby-green: #25d366;
  --nearby-blue: #0b74e5;
  --nearby-red: #e94b35;
}
.brand {
  gap: 11px;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: linear-gradient(145deg, #17140b, #3a310f);
  box-shadow: 0 8px 22px rgba(74, 55, 0, 0.2);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid var(--nearby-yellow);
  border-radius: 10px;
}
.brand-mark i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--nearby-yellow);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  top: 8px;
}
.brand-mark b {
  position: relative;
  z-index: 2;
  color: var(--nearby-yellow);
  font-size: 15px;
  transform: translateY(6px);
}
.brand-copy {
  display: block;
}
.brand-copy strong,
.brand-copy small {
  display: block;
  line-height: 1.05;
}
.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.015em;
}
.brand-copy small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 9px;
  margin-top: 5px;
  color: #786d50;
  font-weight: 850;
}
.footer-brand .brand-copy strong {
  color: #fff;
}
.footer-brand .brand-copy small {
  color: #c9b963;
}
.home-hero {
  background: linear-gradient(135deg, #fffdf3 0, #fff 58%, #fff1a4 100%);
}
.home-hero strong {
  color: #5c4300;
}
.whatsapp-solid {
  background: var(--nearby-green);
  color: #082816;
  border-color: #1fb95a;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.22);
}
.full {
  width: 100%;
  margin-top: 9px;
}
.narrow {
  width: min(820px, 100%);
}
.priority-strip {
  background: var(--nearby-black);
  color: #fff;
  border-top: 1px solid #3b320f;
  border-bottom: 1px solid #3b320f;
}
.priority-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.priority-grid a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 18px 16px;
  text-decoration: none;
  border-right: 1px solid #3b320f;
  transition: background 0.18s ease;
}
.priority-grid a:last-child {
  border-right: 0;
}
.priority-grid a:hover {
  background: #2a240d;
}
.priority-grid span {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--nearby-yellow);
  color: var(--nearby-black);
  font-weight: 950;
}
.priority-grid b {
  font-size: 14px;
}
.priority-grid small {
  font-size: 11px;
  color: #d7c982;
}
.featured-service {
  position: relative;
  overflow: hidden;
}
.featured-service:after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -40px;
  top: -45px;
  border-radius: 50%;
  background: rgba(255, 196, 0, 0.13);
}
.featured-service strong {
  display: inline-block;
  margin-top: 14px;
  color: #705100;
}
.emergency-card {
  border-color: #edb34b;
  background: linear-gradient(145deg, #fff, #fff7d6);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-grid article {
  border: 1px solid #eadca8;
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(145deg, #fff, #fffdf5);
}
.why-grid article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--nearby-yellow);
  font-size: 20px;
  font-weight: 950;
}
.why-grid h3 {
  margin: 12px 0 7px;
}
.why-grid p {
  margin: 0;
  color: var(--muted);
}
.faq-list {
  border: 1px solid #e3d49b;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.faq-list details {
  padding: 0 20px;
  border-bottom: 1px solid #eee5c8;
}
.faq-list details:last-child {
  border-bottom: 0;
}
.faq-list summary {
  padding: 18px 34px 18px 0;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fff3bd;
  color: #3e3100;
  font-size: 20px;
}
.faq-list details[open] summary:after {
  content: "−";
}
.faq-list p {
  margin: 0 0 18px;
  color: var(--muted);
}
.work-flow {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  border-radius: 22px;
  background: var(--nearby-black);
  box-shadow: 0 18px 45px rgba(23, 20, 11, 0.12);
}
.work-flow li {
  position: relative;
  text-align: center;
  padding: 16px 9px 14px;
  border-radius: 15px;
  background: linear-gradient(145deg, #2b260f, #1b180c);
  color: #fff;
  min-width: 0;
  overflow: hidden;
}
.work-flow li:not(:last-child):after {
  content: "";
  position: absolute;
  right: -8px;
  top: 41px;
  width: 16px;
  height: 2px;
  background: var(--nearby-yellow);
  z-index: 3;
}
.work-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 11px;
  border-radius: 50%;
  background: var(--nearby-yellow);
  color: var(--nearby-black);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 0 0 5px #3b330f;
}
.work-flow b,
.work-flow small {
  display: block;
}
.work-flow b {
  font-size: 12px;
}
.work-flow small {
  margin-top: 6px;
  color: #d8ca8a;
  font-size: 10px;
  line-height: 1.35;
}
.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 34px;
  align-items: center;
}
.service-quick-card {
  background: linear-gradient(145deg, #fff, #fff8d8);
}
.service-mini-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.service-mini-trust span {
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2d6aa;
}
.service-motion-block {
  padding: 30px 0;
  background: #17140b;
  color: #fff;
  border-top: 1px solid #3d350f;
  border-bottom: 1px solid #3d350f;
}
.service-motion-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: center;
}
.service-motion-block .eyebrow {
  color: #f0cf53;
}
.service-motion-block h2 {
  margin: 0.2em 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
}
.service-motion-block p {
  margin: 0;
  color: #d7cc9b;
}
.service-motion-stage {
  position: relative;
  height: 180px;
  border: 1px solid #4a4018;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 45%, #2f280d, #14120a 70%);
  overflow: hidden;
  isolation: isolate;
}
.sm-source,
.sm-restore,
.sm-found,
.sm-trip,
.sm-fan-switch {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.07em;
}
.sm-source {
  left: 7%;
  top: 62px;
  width: 50px;
  height: 58px;
  background: #3c3a34;
  border: 1px solid #77705a;
  color: #fff;
}
.sm-lamp {
  position: absolute;
  right: 9%;
  top: 50px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid #a38c25;
  background: #423912;
}
.sm-lamp i {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: -23px;
  height: 20px;
  border-radius: 5px;
  background: #8c7a25;
}
.sm-wire {
  position: absolute;
  left: calc(7% + 48px);
  right: calc(9% + 60px);
  height: 6px;
  border-radius: 99px;
  background: #4c493e;
}
.sw1 {
  top: 70px;
}
.sw2 {
  top: 88px;
}
.sw3 {
  top: 106px;
}
.sm-current {
  position: absolute;
  left: calc(7% + 52px);
  width: 22px;
  height: 4px;
  border-radius: 99px;
  background: #fff4a4;
  box-shadow: 0 0 12px #ffc400;
}
.sc1 {
  top: 71px;
}
.sc2 {
  top: 107px;
}
.sm-db {
  position: absolute;
  left: 11%;
  top: 42px;
  width: 82px;
  height: 94px;
  border-radius: 12px;
  background: #e7e8e5;
  border: 4px solid #8c8e87;
  color: #24251f;
  box-shadow: inset 0 0 0 2px #fff;
}
.sm-db b {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
}
.sm-lever {
  position: absolute;
  left: 31px;
  top: 17px;
  width: 18px;
  height: 45px;
  border-radius: 7px;
  background: #35362f;
  transform-origin: 50% 12%;
}
.sm-trip {
  left: 38%;
  top: 68px;
  background: #e94b35;
  color: #fff;
  padding: 8px 12px;
  opacity: 0;
}
.sm-output {
  position: absolute;
  left: 52%;
  right: 16%;
  top: 87px;
  height: 6px;
  border-radius: 99px;
  background: #555043;
}
.sm-bulb {
  position: absolute;
  right: 8%;
  top: 55px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #5e5121;
  border: 3px solid #a28a26;
}
.sm-led-profile {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58px;
  height: 25px;
  border-radius: 8px;
  background: #ddd6b7;
  border: 4px solid #7b7352;
  overflow: hidden;
}
.sm-led-profile i {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    #fffce0,
    #ffc400,
    #fffce0,
    transparent
  );
  transform: translateX(-110%);
}
.sm-led-beam {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 83px;
  height: 72px;
  background: linear-gradient(180deg, rgba(255, 210, 45, 0.45), transparent);
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
  opacity: 0.7;
}
.sm-light-dot {
  position: absolute;
  top: 64px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #ffc400;
}
.ld1 {
  left: 25%;
}
.ld2 {
  left: 49%;
}
.ld3 {
  left: 73%;
}
.sm-alert {
  position: absolute;
  left: 26%;
  top: 57px;
  width: 64px;
  height: 64px;
  border: 2px solid #ffc400;
  border-radius: 50%;
  opacity: 0.7;
}
.sm-emergency-bolt {
  position: absolute;
  left: calc(26% + 14px);
  top: 71px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffc400;
  color: #17140b;
  font-size: 22px;
  z-index: 3;
}
.sm-emergency-line {
  position: absolute;
  left: 47%;
  right: 20%;
  top: 88px;
  height: 5px;
  border-radius: 99px;
  background: #51492a;
}
.sm-restore {
  right: 7%;
  top: 66px;
  padding: 10px 12px;
  background: #234f30;
  border: 1px solid #44a65d;
  color: #9effb4;
  opacity: 0.42;
}
.sm-plug {
  position: absolute;
  left: 12%;
  top: 60px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #e7e6df;
  color: #27271f;
  border: 3px solid #858577;
  letter-spacing: 10px;
}
.sm-socket-wire {
  position: absolute;
  left: 31%;
  right: 34%;
  top: 87px;
  height: 5px;
  border-radius: 99px;
  background: #555043;
}
.sm-tester {
  position: absolute;
  right: 23%;
  top: 58px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25251f;
  border: 5px solid #d1a921;
  color: #ffc400;
  font-weight: 950;
}
.sm-ok {
  position: absolute;
  right: 7%;
  top: 68px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  color: #0b331a;
  font-size: 24px;
  font-weight: 950;
  opacity: 0.35;
}
.sm-fan {
  position: absolute;
  left: 30%;
  top: 37px;
  width: 88px;
  height: 88px;
}
.sm-fan b {
  position: absolute;
  left: 34px;
  top: 34px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffc400;
  z-index: 3;
}
.sm-fan i {
  position: absolute;
  left: 39px;
  top: 3px;
  width: 12px;
  height: 39px;
  border-radius: 60% 60% 30% 30%;
  background: #e6d36e;
  transform-origin: 6px 41px;
}
.sm-fan i:nth-child(2) {
  transform: rotate(120deg);
}
.sm-fan i:nth-child(3) {
  transform: rotate(240deg);
}
.sm-fan-wire {
  position: absolute;
  left: 49%;
  right: 18%;
  top: 81px;
  height: 5px;
  background: #555043;
  border-radius: 99px;
}
.sm-fan-switch {
  right: 7%;
  top: 64px;
  padding: 10px 12px;
  background: #4a431f;
  border: 1px solid #746a2f;
  color: #ffdc45;
}
.sm-meter {
  position: absolute;
  left: 13%;
  top: 55px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #24251f;
  border: 6px solid #ffc400;
  color: #fff;
  font-weight: 950;
}
.sm-probe {
  position: absolute;
  left: 31%;
  width: 38%;
  height: 3px;
  background: #8a803f;
  transform-origin: left center;
}
.p1 {
  top: 78px;
  transform: rotate(-8deg);
}
.p2 {
  top: 103px;
  transform: rotate(8deg);
}
.sm-trace {
  position: absolute;
  left: 58%;
  right: 15%;
  top: 88px;
  height: 5px;
  border-radius: 99px;
  background: #555043;
}
.sm-fault {
  position: absolute;
  right: 13%;
  top: 54px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e94b35;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}
.sm-found {
  right: 7%;
  bottom: 18px;
  padding: 7px 10px;
  background: #234f30;
  color: #9effb4;
  opacity: 0.4;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
}
.article-prose > section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.article-prose > section:last-of-type {
  border-bottom: 0;
}
.article-note {
  margin: 28px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--nearby-yellow);
  background: #fff8d9;
  border-radius: 0 12px 12px 0;
}
.blog-card strong {
  display: inline-block;
  margin-top: 14px;
  color: #6d5000;
}
.ad-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.ad-benefits span {
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e1d5a7;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}
.ad-proof-section {
  padding-top: 38px;
  padding-bottom: 38px;
}
.footer-grid {
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
}
.footer-wa {
  color: #65f392 !important;
  font-weight: 900;
}
@media (prefers-reduced-motion: no-preference) {
  .work-flow li {
    animation: workGlow 6s linear infinite;
  }
  .work-flow li:nth-child(2) {
    animation-delay: 1s;
  }
  .work-flow li:nth-child(3) {
    animation-delay: 2s;
  }
  .work-flow li:nth-child(4) {
    animation-delay: 3s;
  }
  .work-flow li:nth-child(5) {
    animation-delay: 4s;
  }
  .work-flow li:nth-child(6) {
    animation-delay: 5s;
  }
  .travel-flow {
    animation: travelMove 1.4s ease-in-out infinite;
  }
  .inspect-flow {
    animation: inspectMove 1.7s ease-in-out infinite;
  }
  .repair-flow {
    animation: repairFlash 1.35s steps(2, end) infinite;
  }
  .complete-flow {
    animation: completePop 1.9s ease-in-out infinite;
  }
  .review-flow {
    animation: reviewStar 2.1s ease-in-out infinite;
  }
  .phone-flow {
    animation: phoneRing 1.8s ease-in-out infinite;
  }
  .sm-current {
    animation: serviceCurrent 2.1s linear infinite;
  }
  .sc2 {
    animation-delay: 0.55s;
  }
  .sm-lamp {
    animation: lampReceive 2.1s ease-in-out infinite;
  }
  .sm-lever {
    animation: breakerLever 4s ease infinite;
  }
  .sm-trip {
    animation: tripWord 4s ease infinite;
  }
  .sm-bulb {
    animation: breakerLamp 4s ease infinite;
  }
  .sm-led-profile i {
    animation: ledSweep 2.4s linear infinite;
  }
  .sm-led-beam {
    animation: beamBreath 2.4s ease-in-out infinite;
  }
  .sm-light-dot {
    animation: lightBlink 1.7s ease-in-out infinite;
  }
  .ld2 {
    animation-delay: 0.25s;
  }
  .ld3 {
    animation-delay: 0.5s;
  }
  .sm-alert.a1 {
    animation: alertPulse 1.8s ease-out infinite;
  }
  .sm-alert.a2 {
    animation: alertPulse 1.8s 0.9s ease-out infinite;
  }
  .sm-restore {
    animation: restorePower 3.3s ease infinite;
  }
  .sm-ok {
    animation: okCheck 2.4s ease infinite;
  }
  .sm-fan {
    animation: fanSpin 2.1s linear infinite;
  }
  .sm-fan-switch {
    animation: switchGlow 2.1s ease infinite;
  }
  .sm-fault {
    animation: faultPulse 1.5s ease infinite;
  }
  .sm-found {
    animation: foundFault 3s ease infinite;
  }
  .bottom-wa .bottom-icon {
    animation: waPulse 2s ease-out infinite;
  }
  .bottom-emergency .bottom-icon {
    animation: emergencyBottom 2.3s ease-in-out infinite;
  }
  @keyframes workGlow {
    0%,
    15%,
    100% {
      box-shadow: inset 0 0 0 1px transparent;
    }
    8% {
      box-shadow:
        inset 0 0 0 1px #ffc400,
        0 0 22px rgba(255, 196, 0, 0.1);
    }
  }
  @keyframes phoneRing {
    0%,
    100% {
      transform: rotate(0);
    }
    15% {
      transform: rotate(-10deg);
    }
    30% {
      transform: rotate(10deg);
    }
    45% {
      transform: rotate(-8deg);
    }
    60% {
      transform: rotate(8deg);
    }
  }
  @keyframes travelMove {
    0%,
    100% {
      transform: translateX(-4px);
    }
    50% {
      transform: translateX(5px);
    }
  }
  @keyframes inspectMove {
    0%,
    100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.08);
    }
  }
  @keyframes repairFlash {
    50% {
      box-shadow:
        0 0 0 5px #3b330f,
        0 0 20px #ffc400;
    }
  }
  @keyframes completePop {
    50% {
      transform: scale(1.08);
    }
  }
  @keyframes reviewStar {
    50% {
      transform: rotate(12deg) scale(1.08);
    }
  }
  @keyframes serviceCurrent {
    0% {
      transform: translateX(0);
      opacity: 0;
    }
    10% {
      opacity: 1;
    }
    90% {
      opacity: 1;
    }
    100% {
      transform: translateX(360px);
      opacity: 0;
    }
  }
  @keyframes lampReceive {
    0%,
    55% {
      background: #423912;
      box-shadow: none;
    }
    70%,
    100% {
      background: #fff1a3;
      box-shadow: 0 0 30px #ffc400;
    }
  }
  @keyframes breakerLever {
    0%,
    32%,
    100% {
      transform: rotate(0);
    }
    38%,
    68% {
      transform: rotate(45deg);
    }
    75% {
      transform: rotate(0);
    }
  }
  @keyframes tripWord {
    0%,
    34%,
    73%,
    100% {
      opacity: 0;
      transform: scale(0.8);
    }
    40%,
    66% {
      opacity: 1;
      transform: scale(1);
    }
  }
  @keyframes breakerLamp {
    0%,
    34%,
    74%,
    100% {
      background: #fff0a5;
      box-shadow: 0 0 22px #ffc400;
    }
    40%,
    68% {
      background: #443b16;
      box-shadow: none;
    }
  }
  @keyframes ledSweep {
    to {
      transform: translateX(360%);
    }
  }
  @keyframes beamBreath {
    50% {
      opacity: 1;
      transform: scaleX(1.05);
    }
  }
  @keyframes lightBlink {
    50% {
      box-shadow: 0 0 25px #ffc400;
      transform: scale(1.35);
    }
  }
  @keyframes alertPulse {
    0% {
      transform: scale(0.6);
      opacity: 0.9;
    }
    100% {
      transform: scale(1.65);
      opacity: 0;
    }
  }
  @keyframes restorePower {
    0%,
    50% {
      opacity: 0.35;
    }
    65%,
    100% {
      opacity: 1;
      box-shadow: 0 0 20px rgba(37, 211, 102, 0.24);
    }
  }
  @keyframes okCheck {
    0%,
    40% {
      opacity: 0.35;
      transform: scale(0.8);
    }
    60%,
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  @keyframes fanSpin {
    to {
      transform: rotate(360deg);
    }
  }
  @keyframes switchGlow {
    50% {
      box-shadow: 0 0 20px rgba(255, 196, 0, 0.25);
    }
  }
  @keyframes faultPulse {
    50% {
      transform: scale(1.14);
      box-shadow: 0 0 22px rgba(233, 75, 53, 0.4);
    }
  }
  @keyframes foundFault {
    0%,
    45% {
      opacity: 0.35;
    }
    60%,
    100% {
      opacity: 1;
    }
  }
  @keyframes waPulse {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
  }
  @keyframes emergencyBottom {
    50% {
      transform: translateY(-2px) rotate(-5deg);
    }
  }
}
@media (max-width: 1000px) {
  .priority-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .priority-grid a:nth-child(3) {
    border-right: 0;
  }
  .priority-grid a:nth-child(n + 4) {
    border-top: 1px solid #3b320f;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .work-flow {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-motion-grid {
    grid-template-columns: 1fr;
  }
  .service-hero-grid {
    grid-template-columns: 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .brand-copy strong {
    font-size: 14px;
  }
  .brand-copy small {
    font-size: 7px;
    letter-spacing: 0.09em;
  }
  .brand-mark {
    width: 39px;
    height: 39px;
  }
  .brand-mark i {
    width: 20px;
    height: 20px;
  }
  .topbar {
    font-size: 12px;
  }
  .topbar-links {
    gap: 12px;
  }
  .priority-grid {
    grid-template-columns: 1fr 1fr;
  }
  .priority-grid a:nth-child(3) {
    border-right: 1px solid #3b320f;
  }
  .priority-grid a:nth-child(even) {
    border-right: 0;
  }
  .priority-grid a:nth-child(n + 3) {
    border-top: 1px solid #3b320f;
  }
  .priority-grid a:last-child {
    grid-column: 1/-1;
    border-right: 0;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .work-flow {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px;
  }
  .work-flow li:not(:last-child):after {
    display: none;
  }
  .service-motion-stage {
    height: 150px;
  }
  .service-motion-block {
    padding: 25px 0;
  }
  .service-motion-grid {
    gap: 16px;
  }
  .service-quick-card {
    display: none;
  }
  .service-hero-grid {
    display: block;
  }
  .article-layout {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav {
    background: #0e1115;
    border-top: 0;
    padding: 5px max(5px, env(safe-area-inset-right))
      calc(5px + env(safe-area-inset-bottom))
      max(5px, env(safe-area-inset-left));
    gap: 3px;
  }
  .mobile-bottom-nav a {
    padding: 5px 2px;
    color: #fff;
    background: #20242a;
    border: 1px solid #2d3239;
  }
  .mobile-bottom-nav .bottom-icon {
    width: 31px;
    height: 31px;
    background: #343a42;
    color: #fff;
  }
  .mobile-bottom-nav .bottom-home {
    color: #f3f3f3;
  }
  .mobile-bottom-nav .bottom-services {
    background: #332b0b;
    color: #ffe36a;
    border-color: #57480d;
  }
  .mobile-bottom-nav .bottom-services .bottom-icon {
    background: #ffc400;
    color: #17140b;
  }
  .mobile-bottom-nav .bottom-emergency {
    background: #4a1611;
    color: #fff;
    border-color: #7d2b21;
  }
  .mobile-bottom-nav .bottom-emergency .bottom-icon {
    background: #ffb000;
    color: #1b1100;
    box-shadow: none;
  }
  .mobile-bottom-nav .bottom-call {
    background: var(--nearby-blue);
    color: #fff;
    border-color: #2b8ff4;
  }
  .mobile-bottom-nav .bottom-call .bottom-icon {
    background: #fff;
    color: var(--nearby-blue);
  }
  .mobile-bottom-nav .bottom-wa {
    background: var(--nearby-green);
    color: #072b17;
    border-color: #4ee17f;
    font-weight: 950;
  }
  .mobile-bottom-nav .bottom-wa .bottom-icon {
    background: #fff;
    color: #159848;
  }
  .mobile-bottom-nav small {
    font-size: 8.5px;
  }
  .ad-benefits {
    display: grid;
  }
  .service-motion-block h2 {
    font-size: 28px;
  }
}
@media (max-width: 420px) {
  .work-flow {
    grid-template-columns: 1fr 1fr;
  }
  .work-flow b {
    font-size: 11px;
  }
  .work-flow small {
    font-size: 9px;
  }
  .priority-grid b {
    font-size: 12px;
  }
  .priority-grid small {
    font-size: 9px;
  }
  .service-motion-stage {
    height: 135px;
  }
  .sm-output,
  .sm-trace {
    right: 20%;
  }
  .sm-current {
    animation-duration: 1.8s;
  }
}

/* V8 mobile navigation isolation fix
   Prevents the bottom nav from inheriting header drawer top/position rules. */
.mobile-bottom-nav {
  margin: 0;
  inset: auto 0 0 0;
}
.mobile-bottom-nav a:after {
  display: none !important;
}
@media (max-width: 900px) {
  .site-header .nav {
    min-width: 0;
  }
  .site-header .brand {
    min-width: 0;
    max-width: calc(100% - 62px);
  }
  .site-header .brand-copy {
    min-width: 0;
  }
  .site-header .brand-copy strong,
  .site-header .brand-copy small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body .site-header nav#navlinks.nav-drawer {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overscroll-behavior: contain;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  nav.mobile-bottom-nav {
    display: grid !important;
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 5px max(5px, env(safe-area-inset-right))
      calc(5px + env(safe-area-inset-bottom))
      max(5px, env(safe-area-inset-left)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    flex-direction: initial !important;
    transform: none !important;
  }
  nav.mobile-bottom-nav > a {
    position: relative;
    min-height: 54px;
    margin: 0;
  }
}
@media (max-width: 390px) {
  .site-header .nav {
    min-height: 62px;
    gap: 8px;
  }
  .site-header .menu-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 11px;
  }
  .site-header .brand-mark {
    width: 36px;
    height: 36px;
  }
  .site-header .brand-copy strong {
    font-size: 12px;
  }
  .site-header .brand-copy small {
    font-size: 6.5px;
  }
  nav.mobile-bottom-nav > a {
    min-height: 52px;
  }
}

/* V9 small-mobile footer + 5-tab bottom navigation fix */
@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }
  footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }
  nav.mobile-bottom-nav {
    box-sizing: border-box !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    align-items: stretch !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    padding: 4px max(4px, env(safe-area-inset-right))
      calc(4px + env(safe-area-inset-bottom))
      max(4px, env(safe-area-inset-left)) !important;
    gap: 2px !important;
    overflow: hidden !important;
  }
  nav.mobile-bottom-nav > a {
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 54px !important;
    padding: 5px 0 !important;
    margin: 0 !important;
    gap: 1px !important;
    overflow: hidden !important;
    text-align: center !important;
    border-radius: 10px !important;
  }
  nav.mobile-bottom-nav .bottom-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 15px !important;
    line-height: 1 !important;
  }
  nav.mobile-bottom-nav small {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 1px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: clamp(7px, 2.15vw, 8.5px) !important;
    line-height: 1.05 !important;
  }
}
@media (max-width: 360px) {
  nav.mobile-bottom-nav {
    gap: 1px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  nav.mobile-bottom-nav > a {
    min-height: 50px !important;
    border-radius: 8px !important;
  }
  nav.mobile-bottom-nav .bottom-icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
  }
  nav.mobile-bottom-nav small {
    font-size: 7px !important;
  }
}
