/* =========================================================
   ARCLIGHT ELECTRICAL — style.css
   ========================================================= */

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

:root {
  --accent:     #007aff;
  --accent-dim: rgba(0, 122, 255, 0.1);
  --bg:         #090909;
  --bg-2:       #0e0e0e;
  --bg-3:       #141414;
  --border:     rgba(255, 255, 255, 0.07);
  --text:       #efefef;
  --muted:      #777;
  --radius:     10px;
  --nav-h:      68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.accent       { color: var(--accent); }
.accent-text  { color: var(--accent); }

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   NAV
   ========================================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  transform: translateY(0);
  transition: transform 0.35s ease;
}
#nav.hidden {
  transform: translateY(-100%);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-phone {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-phone:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* =========================================================
   HERO
   ========================================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 80px) 32px 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.glow-orb {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,122,255,0.09) 0%, transparent 65%);
  border-radius: 50%;
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 0.65; }
}

.hero-content {
  position: relative;
  max-width: 700px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 52px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover {
  opacity: 0.87;
  transform: translateY(-1px);
}
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.scroll-hint {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* =========================================================
   STATS STRIP
   ========================================================= */
#stats {
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-block {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 52px 24px;
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-sep {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* =========================================================
   SECTION SHARED
   ========================================================= */
section { padding: 140px 0; }
#stats  { padding: 0; }

#services { background: var(--bg); }
#about    { background: var(--bg-2); }
#why      { background: var(--bg); }
#process  { background: var(--bg-2); }
#contact  { background: var(--bg); }

.section-header {
  margin-bottom: 80px;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
}

/* =========================================================
   SERVICES — FEATURED
   ========================================================= */
.featured-services {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 80px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-card {
  background: var(--bg-2);
  padding: 64px 60px;
  position: relative;
  transition: background 0.25s;
}
.featured-card:hover { background: var(--bg-3); }

.featured-primary {
  border-bottom: 1px solid var(--border);
}

.featured-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,122,255,0.25);
  background: var(--accent-dim);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 36px;
}
.featured-tag-urgent {
  color: #ff9f0a;
  border-color: rgba(255, 159, 10, 0.25);
  background: rgba(255, 159, 10, 0.08);
}

.featured-inner {
  display: flex;
  align-items: flex-start;
}

.featured-left {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.featured-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 4px;
}
.featured-icon svg { width: 100%; height: 100%; }
.featured-icon-urgent { color: #ff9f0a; }

.featured-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.featured-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 28px;
}

.featured-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-bottom: 36px;
}
.featured-points li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.featured-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.featured-secondary .featured-points li::before {
  background: #ff9f0a;
}

.featured-btn {
  display: inline-flex;
  align-items: center;
}

/* =========================================================
   SERVICES — ALL SERVICES LIST
   ========================================================= */
.other-services-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.other-services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.other-service {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}
.other-service:nth-child(odd)  { padding-right: 48px; border-right: 1px solid var(--border); }
.other-service:nth-child(even) { padding-left: 48px; }
.other-service:nth-last-child(-n+2) { border-bottom: none; }

.os-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
  opacity: 0.7;
}
.os-icon svg { width: 100%; height: 100%; }

.os-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.os-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-intro {
  max-width: 680px;
  margin-bottom: 60px;
}
.about-lead {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}
.about-col {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
}
.about-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cert-tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
}

/* =========================================================
   WHY US
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-item {
  background: var(--bg-2);
  padding: 56px 48px;
  transition: background 0.2s;
}
.why-item:hover { background: var(--bg-3); }
.why-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.why-item h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.why-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-item {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 56px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  transition: background 0.2s;
}
.process-item:last-child { border-bottom: none; }
.process-item:hover { background: #181818; }
.process-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  min-width: 32px;
  padding-top: 4px;
}
.process-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.process-body p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 8px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.ci-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.ci-icon svg { width: 100%; height: 100%; }
.ci-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 4px;
}
.ci-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #363636;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--bg-2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 64px 0 48px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 48px;
}
.footer-top .logo-img {
  height: 24px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* =========================================================
   RESPONSIVE — TABLET  (≤ 960px)
   ========================================================= */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }

  /* Hero */
  #hero { padding: calc(var(--nav-h) + 60px) 24px 100px; }
  .hero-title { font-size: clamp(40px, 8vw, 64px); }
  .hero-sub   { font-size: 17px; }

  /* Stats */
  .stat-sep   { display: none; }
  .stat-block { flex: 0 0 50%; padding: 44px 20px; border-bottom: 1px solid var(--border); }
  .stat-block:nth-child(1),
  .stat-block:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-block:nth-last-child(-n+2) { border-bottom: none; }

  /* Sections */
  section { padding: 100px 0; }
  .section-header { margin-bottom: 56px; }

  /* Featured services */
  .featured-card  { padding: 48px 40px; }
  .featured-left  { gap: 28px; }

  /* Other services — single column */
  .other-services-list        { grid-template-columns: 1fr; }
  .other-service              { padding: 32px 0; border-bottom: 1px solid var(--border); }
  .other-service:nth-child(odd)       { padding-right: 0; border-right: none; }
  .other-service:nth-child(even)      { padding-left: 0; }
  .other-service:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .other-service:last-child           { border-bottom: none; }

  /* About */
  .about-columns { grid-template-columns: 1fr; gap: 24px; }
  .about-lead    { font-size: 17px; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Process */
  .process-item { padding: 44px 40px; gap: 36px; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; gap: 52px; }
}

/* =========================================================
   RESPONSIVE — MOBILE  (≤ 680px)
   ========================================================= */
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-phone { display: none; }

  /* Hero */
  #hero { padding: calc(var(--nav-h) + 48px) 20px 80px; min-height: unset; }
  .hero-title   { font-size: clamp(36px, 10vw, 52px); margin-bottom: 20px; }
  .hero-sub     { font-size: 16px; margin-bottom: 36px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost  { width: 100%; justify-content: center; }
  .scroll-hint  { display: none; }

  /* Stats */
  .stat-num   { font-size: 28px; }
  .stat-label { font-size: 11px; }
  .stat-block { padding: 32px 16px; }

  /* Sections */
  section { padding: 80px 0; }
  .section-header  { margin-bottom: 44px; }
  .section-title   { font-size: clamp(28px, 7vw, 38px); }
  .section-sub     { font-size: 15px; }
  .section-label   { font-size: 11px; }

  /* Featured services */
  .featured-card   { padding: 36px 24px; }
  .featured-tag    { margin-bottom: 24px; }
  .featured-left   { flex-direction: column; gap: 20px; }
  .featured-icon   { width: 44px; height: 44px; }
  .featured-card h3 { font-size: 22px; margin-bottom: 12px; }
  .featured-card p  { font-size: 15px; margin-bottom: 20px; }
  .featured-points  { gap: 8px 0; margin-bottom: 28px; }
  .featured-points li { width: 100%; }
  .featured-btn    { width: 100%; justify-content: center; }

  /* Other services */
  .other-services-header { padding-bottom: 20px; }
  .other-service { gap: 18px; padding: 28px 0; }

  /* About */
  .about-intro   { margin-bottom: 40px; }
  .about-columns { gap: 20px; margin-bottom: 40px; }
  .about-col     { font-size: 15px; }
  .about-lead    { font-size: 16px; }
  .cert-tag      { font-size: 12px; padding: 6px 14px; }

  /* Why */
  .why-item { padding: 36px 24px; }
  .why-item h3 { font-size: 18px; }
  .why-item p  { font-size: 14px; }

  /* Process */
  .process-item  { padding: 32px 24px; gap: 20px; }
  .process-body h3 { font-size: 18px; }
  .process-body p  { font-size: 14px; }

  /* Contact */
  .contact-info  { gap: 28px; }
  .contact-item  { gap: 14px; }
  .ci-value      { font-size: 14px; }
  .form-row      { grid-template-columns: 1fr; gap: 16px; }
  .contact-form  { gap: 16px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 13px 14px; font-size: 16px; /* prevents iOS zoom */ }

  /* Footer */
  footer         { padding: 48px 0 36px; }
  .footer-top    { margin-bottom: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links  { gap: 20px; }
}

/* =========================================================
   RESPONSIVE — SMALL PHONE  (≤ 400px)
   ========================================================= */
@media (max-width: 400px) {
  .hero-title { font-size: 34px; }
  .stat-block { flex: 0 0 100%; border-right: none !important; }
  .stat-block:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .stat-block:last-child { border-bottom: none; }
}
