/*
Theme Name: Helixx Conversion
Theme URI: https://helixxllc.net/
Author: OpenAI Codex
Description: Conversion-focused WordPress rebuild for Helixx Electrical Solutions.
Version: 1.0.41
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: helixx-conversion
*/

:root {
  --ink: #16191d;
  --muted: #5d646d;
  --line: #dfe5ea;
  --panel: #f5f8fa;
  --white: #ffffff;
  --navy: #21395b;
  --navy-dark: #172942;
  --blue: #0099d8;
  --blue-dark: #007eb5;
  --green: #26814d;
  --amber: #f4b04f;
  --red: #cf3e36;
  --shadow: 0 22px 58px rgba(0, 0, 0, .2);
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-dark);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background: var(--white);
}

main,
.site-footer {
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

body.page-leaving main,
body.page-leaving .site-footer {
  transform: translateY(16px);
}

.slide-reveal {
  transform: translateY(34px);
  transition: transform 1.18s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--slide-delay, 0ms);
  will-change: transform;
}

.slide-reveal.is-visible {
  transform: translateY(0);
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero-actions,
.blog-hero__content,
.page-copy h1,
.contact-card h1 {
  animation: helixxHeroSlideUp 1.35s cubic-bezier(.16, 1, .3, 1) both;
}

.hero h1,
.blog-hero__content h1,
.page-copy h1,
.contact-card h1 {
  animation-delay: .18s;
}

.hero .lead,
.blog-hero__content p:not(.eyebrow) {
  animation-delay: .34s;
}

.hero-actions {
  animation-delay: .5s;
}

@keyframes helixxHeroSlideUp {
  from {
    transform: translateY(34px);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main,
  .site-footer {
    transition: none;
  }

  .slide-reveal {
    transform: none;
    transition: none;
  }

  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero-actions,
  .blog-hero__content,
  .page-copy h1,
  .contact-card h1 {
    animation: none;
  }
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.top-strip {
  background: var(--navy-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.top-strip__inner,
.header-inner,
.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip__inner {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
}

.top-strip a {
  font-weight: 700;
  text-decoration: none;
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  width: 278px;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 8px;
  color: var(--ink);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-decoration: none;
  transition: color .18s ease;
}

.main-nav a::after {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn:hover,
button.btn:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
  box-shadow: 0 12px 26px rgba(31, 111, 178, .22);
}

.btn--call {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  white-space: nowrap;
}

.btn--call:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn--outline {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .76);
}

.btn--outline:hover {
  color: var(--navy-dark);
  background: var(--white);
  border-color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 23, 34, .93) 0%, rgba(10, 34, 52, .78) 42%, rgba(10, 34, 52, .38) 72%, rgba(10, 34, 52, .14) 100%),
    var(--hero-image) center 58%/cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 23, 34, .06), rgba(7, 23, 34, .22));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 430px;
  gap: 44px;
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  min-height: 690px;
  margin: 0 auto;
  padding: 68px 0 56px;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.blog-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 23, 34, .9) 0%, rgba(10, 34, 52, .72) 48%, rgba(10, 34, 52, .28) 100%),
    var(--blog-hero-image) center 50%/cover no-repeat;
  transform: scale(1.02);
}

.blog-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 23, 34, .1), rgba(7, 23, 34, .36));
  pointer-events: none;
}

.blog-hero .section-inner {
  position: relative;
  z-index: 1;
  min-height: 410px;
  display: flex;
  align-items: center;
  padding: 78px 0;
}

.blog-hero__content {
  max-width: 790px;
}

.blog-hero__content p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: #eef6fb;
  font-size: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #eaf8ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--blue);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  font-size: clamp(42px, 6.1vw, 74px);
  font-weight: 800;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

.lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: #eef6fb;
  font-size: 20px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 34px;
}

.trust-pill {
  min-height: 88px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: rgba(255, 255, 255, .08);
  font-size: 14px;
  font-weight: 800;
}

.quick-form,
.form-panel {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quick-form {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
}

.quick-form__head {
  padding: 24px 24px 18px;
  color: #fff;
  background: var(--navy-dark);
}

.quick-form h2,
.form-panel h2 {
  font-size: 28px;
}

.quick-form__head h2 {
  color: #fff;
  margin: 0 0 7px;
  font-size: 26px;
  line-height: 1.15;
}

.quick-form__head p {
  margin: 0;
  color: #dbeaf2;
  font-size: 14px;
}

.form-panel p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  gap: 12px;
  padding: 22px 24px 18px;
}

.form-panel .field-grid {
  padding: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cfd9e2;
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

textarea {
  min-height: 104px;
  border-radius: 24px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 153, 216, .18);
  border-color: var(--blue);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.status-note {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #0c5e43;
  background: #e8f6f0;
  font-weight: 800;
}

.section {
  scroll-margin-top: 128px;
  padding: 76px 0;
}

.section--panel {
  background: var(--panel);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: end;
  margin-bottom: 38px;
}

.section .eyebrow {
  margin-bottom: 16px;
  color: var(--navy-dark);
}

.section-heading h2 {
  max-width: 840px;
  line-height: 1.1;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  overflow: hidden;
  min-height: 330px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  text-decoration: none;
}

.service-card:hover {
  border-color: var(--blue);
}

.service-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.service-card--cctv-systems img {
  object-position: 50% 10%;
}

.service-card__body {
  padding: 22px;
}

.service-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.service-card p,
.split p,
.faq p,
.area-list {
  color: var(--muted);
}

.problem-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.problem-grid div {
  position: relative;
  min-height: 86px;
  padding: 22px 20px 20px 46px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.audience-grid div {
  display: flex;
  min-height: 112px;
  padding: 22px;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.problem-grid div::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 30px;
  width: 9px;
  height: 9px;
  background: var(--blue);
}

.audience-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 153, 216, .25);
  border-radius: 999px;
  color: var(--blue);
  background: #eef9fd;
}

.audience-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer-band {
  color: #fff;
  background: var(--navy-dark);
}

.offer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.offer-inner p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #dbeaf2;
}

.offer-inner strong {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 44px;
  align-items: start;
}

.proof-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0;
  background: var(--panel);
  font-weight: 800;
}

.visual-stack {
  display: grid;
  gap: 18px;
}

.service-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.service-photo--commercial-electrical,
.service-photo--electrical {
  object-position: 50% 35%;
}

.service-photo--fire,
.service-photo--fire-alarm-services {
  object-position: 50% 48%;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
}

.badge-row img {
  max-height: 84px;
  width: auto;
}

.reviews-section {
  background: var(--white);
}

.review-widget {
  min-height: 220px;
  padding: 8px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.process-step {
  min-height: 190px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.process-step b {
  display: block;
  margin-bottom: 14px;
  color: var(--navy-dark);
  font-size: 21px;
  line-height: 1.17;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.area-list {
  columns: 3;
  margin: 24px 0 0;
  padding-left: 18px;
}

.cta-band {
  color: var(--white);
  background: var(--navy-dark);
}

.cta-band .section-inner {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
}

.cta-band p {
  max-width: 670px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .84);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.form-panel {
  padding: 28px;
}

.contact-card {
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}

.contact-card a {
  color: var(--white);
  font-weight: 900;
}

.blog-post {
  max-width: 860px;
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  object-fit: cover;
}

.blog-post__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 34px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.blog-post__meta {
  margin: 16px 0 32px;
  color: var(--muted);
  font-weight: 700;
}

.blog-post__content h2 {
  margin: 38px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
}

.blog-post__content p {
  margin: 0 0 18px;
  color: #2d343d;
  font-size: 18px;
}

.legal-page {
  max-width: 900px;
}

.legal-page h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(40px, 5vw, 64px);
}

.legal-page h2 {
  margin: 42px 0 12px;
  font-size: clamp(28px, 3vw, 38px);
}

.legal-page h3 {
  margin: 28px 0 8px;
}

.legal-page p,
.legal-page li {
  color: #2d343d;
  font-size: 18px;
}

.legal-page p {
  margin: 0 0 18px;
}

.legal-page ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.legal-meta {
  margin-bottom: 32px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  color: rgba(255, 255, 255, .82);
  background: #071722;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 28px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-inner img {
  width: 210px;
  margin-bottom: 18px;
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.mobile-sticky {
  display: none;
}

@media (max-width: 920px) {
  .top-strip__inner,
  .header-inner,
  .section-inner,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 680px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .main-nav ul {
    gap: 10px 14px;
  }

  .header-inner > .btn {
    display: none;
  }

  .hero__inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
    padding: 56px 0;
  }

  .trust-row,
  .service-grid,
  .problem-grid,
  .audience-grid,
  .process-grid,
  .faq-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .offer-inner,
  .cta-band .section-inner {
    display: block;
  }

  .area-list {
    columns: 2;
  }

  .mobile-sticky {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  body {
    padding-bottom: 82px;
  }
}

@media (max-width: 560px) {
  .top-strip__inner {
    display: block;
    padding: 8px 0;
  }

  .top-strip__inner span {
    display: block;
  }

  .top-strip__inner span + span {
    margin-top: 3px;
  }

  h1 {
    font-size: 40px;
  }

  .area-list {
    columns: 1;
  }

  .btn {
    width: 100%;
  }
}
