/* ============================================================
   YES-IN ELECTRICAL · Bespoke Sites
   Design language: steel + navy + volt amber (industrial-premium)
   Display: Clash Display · Body/UI: Plus Jakarta Sans
   Shape system (documented rule): buttons = 10px, media = 12px,
   panels/cards = sharp with hairline borders. One accent: volt.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #101A2B;          /* deep steel navy, primary text */
  --navy: #0C1626;         /* deep brand navy, dark bands */
  --navy-2: #12203A;       /* elevated navy, gradients */
  --slate: #4C5A6B;        /* secondary text on light */
  --mist: #9FB0C2;         /* secondary text on dark */
  --steel: #F4F6F9;        /* cool light surface */
  --panel: #FFFFFF;        /* lighter panels */
  --volt: #F2A93B;         /* accent: stars, highlights (on dark) */
  --volt-deep: #96610A;    /* accent text (AA on light) */
  --line: rgba(16, 26, 43, 0.14);
  --line-soft: rgba(16, 26, 43, 0.08);
  --line-dark: rgba(244, 246, 249, 0.16);

  --font-display: 'Clash Display', 'Arial Black', 'Helvetica Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius-btn: 10px;
  --radius-media: 12px;

  --container: 1160px;
  --header-h: 64px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* fluid type scale */
  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --text-sm: clamp(0.84rem, 0.8rem + 0.2vw, 0.94rem);
  --text-base: clamp(0.98rem, 0.94rem + 0.25vw, 1.1rem);
  --text-lg: clamp(1.12rem, 1.02rem + 0.5vw, 1.3rem);
  --text-xl: clamp(1.4rem, 1.15rem + 1.2vw, 1.85rem);
  --text-2xl: clamp(1.8rem, 1.3rem + 2.5vw, 2.75rem);
  --text-3xl: clamp(2.1rem, 1.5rem + 3.2vw, 3.4rem);
  --text-hero: clamp(2.3rem, 1.7rem + 3.6vw, 4.4rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--steel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, p, ul, figure, dl, dd, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

::selection { background: var(--volt); color: var(--navy); }

:focus-visible {
  outline: 2px solid var(--volt-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.proof :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--volt);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--steel);
  padding: 0.6rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
  font-size: var(--text-sm);
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.35rem, 4vw, 2rem);
}
.container.narrow { max-width: 880px; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.accent { color: var(--volt-deep); }
.proof .accent,
.cta .accent { color: var(--volt); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--volt-deep);
}

.section-title {
  font-size: var(--text-3xl);
  max-width: 18ch;
}
.section-lead {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--navy);
  color: var(--steel);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(12, 22, 38, 0.22); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: rgba(16, 26, 43, 0.06); transform: translateY(-2px); }

.btn-light {
  background: var(--steel);
  color: var(--navy);
  font-size: var(--text-lg);
  padding: 1.05rem 2.3rem;
}
.btn-light:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 246, 249, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1;
}
.brand-bolt { fill: var(--volt); flex: none; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-name {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.site-nav {
  display: none;
  gap: 2rem;
}
.site-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-block: 0.4rem;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--volt-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--steel);
  background: var(--navy);
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-btn);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.nav-call:hover { background: var(--navy-2); transform: translateY(-1px); }
.nav-call-icon { flex: none; fill: currentColor; }

/* ---------- Mobile menu ---------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--steel);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2.2rem;
  padding: 6rem clamp(1.25rem, 8vw, 3rem) 3rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav {
  display: grid;
  gap: 0.6rem;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  animation: menu-in 0.6s var(--ease) forwards;
}
.mobile-menu nav a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu nav a:nth-child(2) { animation-delay: 0.12s; }
.mobile-menu nav a:nth-child(3) { animation-delay: 0.19s; }
@keyframes menu-in {
  to { opacity: 1; transform: none; }
}
body.menu-open { overflow: hidden; }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.8rem, 7vh, 4.5rem));
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34rem 22rem at 88% -12%, rgba(242, 169, 59, 0.1), transparent 62%),
    radial-gradient(30rem 20rem at -6% 108%, rgba(12, 22, 38, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-title {
  font-size: var(--text-hero);
  margin-top: 1.1rem;
  max-width: 13ch;
  font-weight: 600;
  line-height: 1.08;
}

.hero-sub {
  margin-top: 1.2rem;
  max-width: 46ch;
  color: var(--slate);
  font-size: var(--text-lg);
}

.hero-cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--line-soft), 0 20px 44px rgba(12, 22, 38, 0.2);
}
.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.5) contrast(1.14) brightness(0.74);
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(22rem 14rem at 88% 0%, rgba(242, 169, 59, 0.24), transparent 62%),
    linear-gradient(165deg, rgba(12, 22, 38, 0.5) 0%, rgba(12, 22, 38, 0.68) 46%, rgba(12, 22, 38, 0.86) 100%);
  pointer-events: none;
}

/* load-in entrance (JS adds .anim-ready to <html>) */
.anim-ready .load-in {
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
.anim-ready .hero-figure { animation-delay: 0.15s; }
.anim-ready .hero-title { --d: 0.05s; }
.anim-ready .hero-sub { --d: 0.15s; }
.anim-ready .hero-cta { --d: 0.25s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Proof band ---------- */
.proof {
  background: var(--navy);
  color: var(--steel);
  padding-block: 2.1rem;
  position: relative;
  overflow: hidden;
}
.proof::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(38rem 16rem at 12% -40%, rgba(242, 169, 59, 0.12), transparent 60%),
    radial-gradient(30rem 16rem at 95% 120%, rgba(18, 32, 58, 0.9), transparent 60%);
  pointer-events: none;
}
.proof .container { position: relative; }

.proof-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 0.75rem;
  text-align: center;
}

.proof-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--steel);
}
.proof-stat dd {
  margin-top: 0.4rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  max-width: 15ch;
  margin-inline: auto;
  min-height: 2.5em;
}

.proof-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--mist);
}
.stars {
  color: var(--volt);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  margin-right: 0.35rem;
}

/* ---------- Services ---------- */
.services { padding-block: clamp(3.5rem, 8vw, 5.5rem); background: var(--panel); }

.services .section-title { max-width: 16ch; }

.service-clusters {
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.service-cluster {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line);
}
.service-cluster:last-child { border-bottom: 1px solid var(--line); }

.cluster-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.1rem;
  position: relative;
  padding-left: 1.15rem;
}
.cluster-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--volt);
  border-radius: 2px;
}

.service-list {
  display: grid;
  gap: 0.15rem;
}
.service-list li {
  padding: 0.42rem 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: "";
  display: inline-block;
  width: 0.75rem;
  height: 2px;
  background: var(--volt-deep);
  margin-right: 0.9rem;
  vertical-align: middle;
  opacity: 0.75;
}
.service-list li:hover {
  transform: translateX(6px);
  color: var(--navy);
}

.services-note {
  margin-top: 2.6rem;
  max-width: 52ch;
  color: var(--slate);
  font-size: var(--text-sm);
}
.services-note a { color: var(--volt-deep); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--volt); }
.services-note a:hover { color: var(--ink); }

/* ---------- Why us ---------- */
.why { padding-block: clamp(3.5rem, 8vw, 5.5rem); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.why-points {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.75rem;
}
.why-points li {
  font-weight: 600;
  color: var(--ink);
  padding-left: 1.6rem;
  position: relative;
}
.why-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.75rem;
  height: 2px;
  background: var(--volt-deep);
}

.why-panel {
  background: var(--navy);
  color: var(--steel);
  padding: clamp(2rem, 5vw, 2.8rem);
  text-align: center;
  border: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}
.why-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem 14rem at 80% -20%, rgba(242, 169, 59, 0.16), transparent 60%);
  pointer-events: none;
}

.why-panel-label {
  position: relative;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.why-panel-num {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 3rem + 6vw, 6.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--steel);
  margin-top: 0.7rem;
}
.why-panel-stars {
  position: relative;
  color: var(--volt);
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  margin-top: 0.9rem;
}
.why-panel-note {
  position: relative;
  margin-top: 0.9rem;
  font-size: var(--text-sm);
  color: var(--mist);
  max-width: 26ch;
  margin-inline: auto;
}

/* ---------- Visit ---------- */
.visit { padding-block: clamp(3.5rem, 8vw, 5.5rem); background: var(--panel); }

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

.visit-address {
  margin-top: 1.4rem;
  font-size: var(--text-lg);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
}

.directions-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--volt-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--volt);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.directions-link:hover { color: var(--ink); border-color: var(--ink); }

.visit-note {
  margin-top: 1.6rem;
  color: var(--slate);
  max-width: 38ch;
}

.hours-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--text-base);
}
.hours-list li:last-child { border-bottom: none; }
.hours-list time { font-weight: 700; color: var(--ink); white-space: nowrap; }

.hours-list li.is-today span {
  color: var(--volt-deep);
  font-weight: 700;
}
.hours-list li.is-today span::after {
  content: " · today";
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--volt-deep);
}

.hours-note {
  margin-top: 1.2rem;
  font-size: var(--text-sm);
  color: var(--slate);
}

/* ---------- Final CTA ---------- */
.cta {
  background: var(--navy);
  color: var(--steel);
  text-align: center;
  padding-block: clamp(4.5rem, 11vw, 7.5rem);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42rem 20rem at 85% -10%, rgba(242, 169, 59, 0.15), transparent 60%),
    radial-gradient(36rem 18rem at 8% 110%, rgba(159, 176, 194, 0.1), transparent 60%);
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-title {
  font-size: var(--text-3xl);
  color: var(--steel);
}

.cta-sub {
  margin: 1.1rem auto 0;
  max-width: 44ch;
  color: var(--mist);
}

.cta .btn-light { margin-top: 2rem; }

.cta-note {
  margin-top: 1.3rem;
  font-size: var(--text-sm);
  color: var(--mist);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  padding-block: 3rem 2.6rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  justify-items: start;
}

.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-brand .brand-bolt { fill: var(--volt); }
.footer-brand .brand-mark { color: var(--steel); font-size: 1.2rem; }
.footer-brand .brand-name { color: var(--mist); }

.footer-meta p { font-size: var(--text-sm); line-height: 1.8; }
.footer-meta a { color: var(--steel); text-decoration: none; font-weight: 700; }
.footer-meta a:hover { text-decoration: underline; }

.footer-legal {
  font-size: var(--text-xs);
  color: rgba(159, 176, 194, 0.72);
  justify-self: stretch;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal a {
  color: var(--steel);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.footer-legal a:hover { border-color: var(--volt); }

/* ---------- Scroll reveal (JS) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn { width: 100%; }
}

@media (max-width: 439px) {
  /* narrow phones: icon-only call button keeps the header uncluttered */
  .nav-call {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-btn);
  }
  .nav-call-text { display: none; }
  .brand-name { display: none; }
  .brand-mark { font-size: 1.15rem; }
}

/* ---------- Tablet (768px+) ---------- */
@media (min-width: 768px) {
  .site-nav { display: flex; }

  .proof-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem; }

  .service-cluster { padding-block: 2rem; }

  .why-grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5rem); }

  .visit-grid { grid-template-columns: 3fr 2fr; gap: clamp(2rem, 4vw, 3.5rem); }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    row-gap: 1.6rem;
  }
  .footer-legal { grid-column: 1 / -1; justify-self: stretch; }
}

/* ---------- Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + clamp(3.5rem, 8vh, 5.5rem)); }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 6vw, 5rem);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .anim-ready .load-in { opacity: 1; }
}
