/*
Theme Name: Harley Electric
Theme URI: https://harleyelectric.com
Author: Harley Electric
Author URI: https://harleyelectric.com
Description: Custom theme for Harley Electric — Mission-Critical Electrical Engineering & Industrial Installation for NYC Healthcare Facilities.
Version: 1.0.0
License: Private
License URI: #
Text Domain: harley-electric
Tags: custom, electrical, healthcare, nyc, fullwidth
*/

/* ============================================================
   HARLEY ELECTRIC — THEME STYLES
   Red, White & Blue · NYC Healthcare Electrical
   ============================================================ */

:root {
  --navy: #0b1f3a;
  --navy-mid: #0f2a50;
  --navy-light: #1a3d6e;
  --red: #cc1c2e;
  --red-dim: #a81624;
  --red-light: #ff6b78;
  --white: #f5f7fa;
  --gray: #8fa4bf;
  --blue-bright: #1e6fbf;
  --font-display: 'Bebas Neue', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Hide default WordPress elements that conflict */
.site-header,
.wp-block-template-part,
#wpadminbar + * { }

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 1000;
}

/* ─── NAV ─── */
.he-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 80px;
  background: rgba(11, 31, 58, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(204,28,46,0.25);
}

.he-nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.he-logo-mark {
  width: 44px;
  height: 44px;
  background: var(--red);
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  letter-spacing: 1px;
  flex-shrink: 0;
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,28,46,0); }
  50% { box-shadow: 0 0 20px 4px rgba(204,28,46,0.4); }
}

.he-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.he-logo-text .he-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  letter-spacing: 3px;
}

.he-logo-text .he-tagline {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 2px;
}

.he-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.he-nav-links a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.he-nav-links a:hover { color: var(--red); }

.he-nav-cta {
  background: transparent;
  border: 1px solid var(--red) !important;
  color: var(--red) !important;
  padding: 10px 24px;
  font-size: 11px !important;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s !important;
}

.he-nav-cta:hover {
  background: var(--red) !important;
  color: var(--white) !important;
}

/* ─── HERO ─── */
.he-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.he-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 60px 80px;
  position: relative;
  z-index: 2;
}

.he-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.8s ease forwards 0.2s;
}

.he-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--red);
}

.he-hero-eyebrow span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

.he-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 110px);
  line-height: 0.92;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  animation: fade-up 0.9s ease forwards 0.35s;
}

.he-hero-h1 .he-accent {
  color: var(--red);
  display: block;
}

.he-hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gray);
  margin-top: 24px;
  line-height: 1.5;
  max-width: 440px;
  opacity: 0;
  animation: fade-up 0.9s ease forwards 0.5s;
}

.he-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  opacity: 0;
  animation: fade-up 0.9s ease forwards 0.65s;
}

.he-btn-primary {
  background: var(--red);
  color: var(--white) !important;
  padding: 18px 40px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.he-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}

.he-btn-primary:hover::after { opacity: 0.15; }

.he-btn-ghost {
  color: var(--white) !important;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: color 0.2s;
}

.he-btn-ghost:hover { color: var(--red) !important; }

.he-btn-ghost::after {
  content: '→';
  transition: transform 0.2s;
}

.he-btn-ghost:hover::after { transform: translateX(4px); }

.he-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  animation: fade-up 0.9s ease forwards 0.8s;
}

.he-stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--red);
  letter-spacing: 2px;
  line-height: 1;
}

.he-stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 4px;
}

/* ─── HERO RIGHT ─── */
.he-hero-right {
  position: relative;
  overflow: hidden;
}

.he-hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, transparent 40%);
  z-index: 2;
}

.he-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11,31,58,0.3) 0%, rgba(11,31,58,0.1) 50%, rgba(11,31,58,0.5) 100%),
    url('assets/img/hero-1200.jpg') center/cover no-repeat;
  transform: scale(1.05);
  animation: slow-zoom 20s ease-in-out infinite alternate;
}

@keyframes slow-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.he-circuit-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.15;
}

.he-hero-badge {
  position: absolute;
  bottom: 80px;
  right: 60px;
  z-index: 4;
  background: rgba(11,31,58,0.92);
  border: 1px solid rgba(204,28,46,0.35);
  padding: 20px 28px;
  backdrop-filter: blur(10px);
  animation: fade-up 1s ease forwards 1s;
  opacity: 0;
}

.he-badge-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.he-badge-text {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--white);
  line-height: 1.4;
}

.he-badge-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.he-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.he-badge-dot span {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 1px;
}

/* ─── MARQUEE ─── */
.he-marquee-bar {
  background: var(--red);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.he-marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.he-marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--white);
  white-space: nowrap;
  text-transform: uppercase;
}

.he-marquee-sep {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ─── */
.he-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.he-section-label-line {
  width: 30px;
  height: 1px;
  background: var(--red);
}

.he-section-label span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

.he-section-h2 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.he-section-h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-size: 0.7em;
  color: var(--red);
  display: block;
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 4px;
}

.he-section-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray);
  margin-top: 28px;
  max-width: 520px;
}

/* ─── HEALTHCARE SECTION ─── */
.he-section-healthcare {
  padding: 140px 60px;
  position: relative;
  overflow: hidden;
}

.he-section-healthcare::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(30,111,191,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.he-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.he-compliance-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.he-compliance-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.5px;
}

.he-compliance-icon {
  width: 32px;
  height: 32px;
  background: rgba(30,111,191,0.15);
  border: 1px solid rgba(30,111,191,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

/* ─── SERVICE CARDS ─── */
.he-services-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.he-service-card {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 32px 28px;
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.he-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  transition: height 0.3s;
}

.he-service-card:hover::before { height: 100%; }

.he-service-card:hover {
  background: rgba(15,42,80,0.9);
  border-color: rgba(204,28,46,0.25);
  transform: translateY(-2px);
}

.he-service-card.he-featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  border-color: rgba(204,28,46,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 40px;
}

.he-card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.he-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.he-card-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

.he-service-tag {
  display: inline-block;
  background: rgba(204,28,46,0.12);
  border: 1px solid rgba(204,28,46,0.3);
  color: var(--red-light);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-top: 14px;
}

/* ─── WHY SECTION ─── */
.he-section-why {
  padding: 140px 60px;
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

.he-section-why::after {
  content: 'HARLEY';
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: var(--font-display);
  font-size: 280px;
  color: rgba(255,255,255,0.02);
  letter-spacing: 20px;
  pointer-events: none;
  user-select: none;
}

.he-why-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.he-why-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}

.he-why-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
}

.he-pillar {
  padding: 48px 36px;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: background 0.3s;
}

.he-pillar:last-child { border-right: none; }
.he-pillar:hover { background: rgba(204,28,46,0.04); }

.he-pillar-num {
  font-family: var(--font-display);
  font-size: 72px;
  color: rgba(204,28,46,0.18);
  line-height: 1;
  margin-bottom: 24px;
}

.he-pillar-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}

.he-pillar-body {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
}

/* ─── PROJECTS ─── */
.he-section-projects {
  padding: 140px 0 140px 60px;
  overflow: hidden;
}

.he-projects-header {
  max-width: 600px;
  margin-bottom: 60px;
}

.he-projects-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-right: 60px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.he-projects-scroll::-webkit-scrollbar { display: none; }

.he-project-card {
  flex: 0 0 380px;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: transform 0.3s;
  cursor: default;
}

.he-project-card:hover { transform: translateY(-4px); }

.he-project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: saturate(0.7);
  transition: filter 0.3s;
}

.he-project-card:hover .he-project-img { filter: saturate(1); }

.he-project-info { padding: 28px; }

.he-project-type {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.he-project-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.he-project-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* ─── CTA BAND ─── */
.he-cta-section { padding: 80px 0; }

.he-cta-band {
  margin: 0 60px;
  background: linear-gradient(135deg, var(--navy-light) 0%, #0d2a4a 100%);
  border: 1px solid rgba(204,28,46,0.3);
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.he-cta-band::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(204,28,46,0.08) 0%, transparent 70%);
}

.he-cta-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.he-cta-h2 {
  font-family: var(--font-display);
  font-size: 52px;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}

.he-cta-sub {
  font-size: 16px;
  color: var(--gray);
  margin-top: 16px;
  line-height: 1.6;
}

.he-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.he-btn-large {
  padding: 22px 50px;
  font-size: 12px;
  letter-spacing: 2.5px;
  white-space: nowrap;
}

.he-cta-phone {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 1.5px;
  text-align: center;
}

.he-cta-phone a {
  color: var(--red-light);
  text-decoration: none;
  font-weight: 600;
}

/* ─── CERTIFICATIONS ─── */
.he-section-certs {
  padding: 100px 60px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.he-certs-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: center;
}

.he-certs-label {
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1px;
  line-height: 1.6;
}

.he-certs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.he-cert-badge {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 24px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  transition: all 0.2s;
}

.he-cert-badge:hover {
  border-color: rgba(204,28,46,0.4);
  color: var(--red-light);
}

/* ─── FOOTER ─── */
.he-footer {
  background: #060f1e;
  padding: 80px 60px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.he-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.he-footer-brand p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-top: 20px;
  max-width: 300px;
}

.he-footer-col h4 {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}

.he-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.he-footer-col ul li a {
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.he-footer-col ul li a:hover { color: var(--white); }

.he-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(143,164,191,0.5);
}

/* ─── SCROLL ANIMATIONS ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.he-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.he-reveal.he-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .he-nav { padding: 0 32px; }
  .he-section-healthcare,
  .he-section-why,
  .he-section-certs { padding: 100px 32px; }
  .he-cta-band { margin: 0 32px; padding: 60px; }
}

@media (max-width: 900px) {
  .he-nav-links { display: none; }
  .he-hero { grid-template-columns: 1fr; }
  .he-hero-right { display: none; }
  .he-hero-left { padding: 100px 24px 60px; }
  .he-section-grid,
  .he-why-header { grid-template-columns: 1fr; gap: 48px; }
  .he-why-pillars { grid-template-columns: 1fr; }
  .he-pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .he-cta-band { grid-template-columns: 1fr; margin: 0 24px; padding: 48px; }
  .he-footer-top { grid-template-columns: 1fr 1fr; }
  .he-section-projects { padding: 80px 0 80px 24px; }
  .he-certs-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .he-hero-stats { flex-direction: column; gap: 24px; }
  .he-hero-actions { flex-direction: column; align-items: flex-start; }
  .he-footer-top { grid-template-columns: 1fr; }
  .he-why-pillars { grid-template-columns: 1fr; }
}
