/* OF Electrical Solutions: small additions on top of Tailwind */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:focus-visible { outline: 3px solid #F5B700; outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: .375rem;
  background: #F5B700;
  color: #0B1620;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

#main:focus { outline: none; }

.nav-link {
  display: inline-flex;
  padding: .5rem .75rem;
  border-radius: .375rem;
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(245, 247, 250, .9);
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: #F5B700; background: rgba(255, 255, 255, .06); }

.mobile-link {
  display: block;
  padding: .75rem 1rem;
  border-radius: .375rem;
  font-weight: 500;
  font-size: 1.0625rem;
}
.mobile-link:hover { background: rgba(255, 255, 255, .08); }

.hero-grid {
  background-image:
    linear-gradient(rgba(245, 183, 0, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 183, 0, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

.eyebrow {
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a6700;
}
.text-spark.eyebrow, .eyebrow.text-spark { color: #F5B700; }

.section-title {
  margin-top: .5rem;
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: #0F2A44;
}
.section-title.text-mist { color: #F5F7FA; }

.service-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid rgba(15, 42, 68, .1);
  border-radius: 1rem;
  background: #F5F7FA;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover {
  border-color: rgba(245, 183, 0, .7);
  box-shadow: 0 12px 30px -12px rgba(15, 42, 68, .25);
  transform: translateY(-2px);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .875rem;
  background: #0F2A44;
  color: #F5B700;
}

.card-title {
  margin-top: 1.25rem;
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #0F2A44;
}
.card-text { margin-top: .5rem; line-height: 1.65; color: #475463; }
.card-list { margin-top: 1rem; display: grid; gap: .5rem; color: #0B1620; font-size: .9375rem; }
.card-list li { position: relative; padding-left: 1.5rem; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .625rem;
  height: .625rem;
  border-radius: 2px;
  background: #F5B700;
  transform: rotate(45deg);
}

.fact { padding: 1.5rem; background: #0F2A44; }
.fact-label {
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F5B700;
}
.fact-value { margin-top: .375rem; line-height: 1.55; color: rgba(245, 247, 250, .88); }

.tick {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .125rem;
  border-radius: 9999px;
  background: #F5B700 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230B1620' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.footer-link {
  color: rgba(245, 247, 250, .85);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-link:hover { color: #F5B700; text-decoration-color: #F5B700; }

/* Legal dialogs */
.legal-modal {
  width: min(100% - 2rem, 46rem);
  max-height: min(88vh, 52rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: #0B1620;
  box-shadow: 0 25px 60px -15px rgba(11, 22, 32, .5);
}
.legal-modal::backdrop { background: rgba(11, 22, 32, .7); }
.legal-inner { display: flex; flex-direction: column; max-height: inherit; }
.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 42, 68, .12);
}
.legal-body { overflow-y: auto; padding: 1.25rem 1.5rem 1.75rem; line-height: 1.65; color: #2b3644; }
.legal-body h3 {
  margin-top: 1.5rem;
  font-family: "Barlow Semi Condensed", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F2A44;
}
.legal-body p, .legal-body ul { margin-top: .5rem; }
.legal-body ul { padding-left: 1.25rem; list-style: disc; }
.legal-body li { margin-top: .25rem; }
.legal-body a { color: #0F2A44; font-weight: 500; text-decoration: underline; text-decoration-color: #F5B700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .5rem;
  color: #0F2A44;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.modal-close:hover { background: #F5F7FA; }

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .service-card:hover { transform: none; }
}
