/* ============================================================
   Szielenski Electric — Modern Static Site
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:  #f5c518;
  --yellow-d: #d4a910;
  --dark:    #0d0f14;
  --dark-2:  #13161e;
  --dark-3:  #1c2030;
  --mid:     #2a2f42;
  --border:  rgba(255,255,255,0.08);
  --text:    #e8eaf0;
  --muted:   #8891a8;
  --white:   #ffffff;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
}
.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-desc {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 4px;
}

.body-text {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 20px;
  max-width: 540px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}
.btn-primary:hover {
  background: var(--yellow-d);
  border-color: var(--yellow-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,197,24,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(13, 15, 20, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border), var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}
.logo-mark { font-size: 1.4rem; line-height: 1; }
.logo-thin { font-weight: 300; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--white); }
.nav-cta {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
}
.nav-cta:hover {
  background: var(--yellow-d) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--yellow); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(245,197,24,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(29,78,216,0.08) 0%, transparent 60%),
    var(--dark);
}

/* Animated electric grid lines */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    var(--dark) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 60px;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-heading em {
  font-style: italic;
  color: var(--yellow);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  background: var(--dark-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.about-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 48px;
  flex: 1;
  min-width: 140px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.about-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(16px);
}
.about-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.about-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(245,197,24,0.1);
}
.card-icon { font-size: 1.8rem; }
.about-card p { font-size: 0.9rem; font-weight: 500; color: var(--text); }

.about-card-1 { transition-delay: 0.05s; }
.about-card-2 { transition-delay: 0.1s; }
.about-card-3 { transition-delay: 0.15s; }
.about-card-4 { transition-delay: 0.2s; }

.about-text .btn { margin-top: 12px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--dark-2); }

/* Tab switcher */
.services-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.services-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.services-tab .tab-icon { font-size: 1.1rem; }
.services-tab:hover { color: var(--white); }
.services-tab.active {
  background: var(--yellow);
  color: var(--dark);
}

/* Panels */
.services-panel { display: none; }
.services-panel.active { display: block; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.services-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  border-color: rgba(245,197,24,0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(245,197,24,0.1);
}
.service-card:hover .service-icon { transform: scale(1.1); }

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  display: block;
  transition: transform var(--transition);
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Residential card extras */
.service-card-residential { border-color: rgba(245,197,24,0.12); }

.service-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-3);
  border: 1px solid var(--border);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,197,24,0.25);
}
.project-card:hover .project-img { transform: scale(1.04); }

.project-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-3);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.project-info { padding: 20px 22px; }
.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}
.project-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.project-info p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

.project-featured {
  grid-column: span 2;
}
.project-featured .project-img { height: 260px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--dark-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.testimonial-card:hover {
  border-color: rgba(245,197,24,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.7;
  color: var(--yellow);
  opacity: 0.4;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-d) 100%);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--white);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, #1a1400 0%, #2a2000 50%, #1a1400 100%);
  border-top: 1px solid rgba(245,197,24,0.2);
  border-bottom: 1px solid rgba(245,197,24,0.2);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '⚡';
  position: absolute;
  font-size: 20rem;
  opacity: 0.03;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 8px;
}
.cta-inner p { color: var(--muted); }
.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-item a, .contact-item span {
  font-size: 0.95rem;
  color: var(--text);
}
.contact-item a:hover { color: var(--yellow); }

/* Form */
.contact-form {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.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='%238891a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136,145,168,0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 56px;
}

.footer-brand {
  max-width: 300px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}
.footer-col strong {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-col a, .footer-col span {
  font-size: 0.9rem;
  color: var(--text);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.service-card, .project-card, .testimonial-card, .about-card {
  transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition), box-shadow var(--transition);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-featured { grid-column: span 2; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .hero-content { padding-top: 80px; }
  .hero-scroll-hint { display: none; }

  .about-strip-inner { gap: 0; }
  .about-divider { height: 40px; }
  .about-stat { padding: 12px 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-text .body-text { max-width: none; }

  .services-grid,
  .services-grid-2 { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: span 1; }
  .project-featured .project-img { height: 180px; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-desc { max-width: none; }

  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 480px) {
  .about-divider { display: none; }
  .about-strip-inner { justify-content: space-around; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
