/*
Theme Name: Electrician Custom
Theme URI: https://elektrikerhoganas.se
Description: Professional electrician lead gen theme
Version: 2.0
Text Domain: elec-custom
*/

/* ===== RESET & VARS ===== */
:root {
  --bg: #0a0e17;
  --bg-card: #111827;
  --bg-elevated: #1a2033;
  --bg-subtle: #0d1220;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-bright: #7dd3fc;
  --amber: #fbbf24;
  --amber-glow: rgba(251, 191, 36, 0.12);
  --green: #34d399;
  --text: #e2e8f0;
  --text-muted: #b8c5d6;
  --text-dim: #8896a8;
  --border: rgba(148, 163, 184, 0.1);
  --border-accent: rgba(56, 189, 248, 0.2);
  --max-w: 1200px;
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ===== NAV ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1.5rem;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
}
.nav-brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}
.nav-brand-icon svg { color: var(--bg); }
.nav-brand-sub { font-size: 0.7rem; font-weight: 400; color: var(--text-dim); display: block; letter-spacing: 0.5px; text-transform: uppercase; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-phone {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.nav-phone svg { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: var(--bg) !important;
  padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 700; font-size: 0.85rem;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}
.nav-cta:hover { box-shadow: 0 0 30px rgba(56, 189, 248, 0.45); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
#hero {
  position: relative; min-height: 650px; display: flex; align-items: center;
  margin-top: 56px; overflow: hidden;
  background: var(--bg);
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 40%, rgba(56, 189, 248, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 30% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
}
#hero::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 45%;
  background: url('/wp-content/uploads/2026/03/electrician-hero.jpg') center center / cover no-repeat;
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
  opacity: 0.35;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto; padding: 5rem 1.5rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-glow); border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem; border-radius: 50px; color: var(--accent);
  font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--accent); }
}
#hero h1 {
  font-size: 3.2rem; font-weight: 800; color: var(--text);
  line-height: 1.1; max-width: 600px; margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}
#hero h1 span { color: var(--accent); }
#hero .hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 520px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-checks {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 2.5rem;
}
.hero-checks li {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
}
.hero-checks li svg { color: var(--green); flex-shrink: 0; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: var(--bg) !important; padding: 0.9rem 2rem;
  border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3), 0 4px 15px rgba(0,0,0,0.3);
  letter-spacing: 0.2px;
}
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(56, 189, 248, 0.5), 0 6px 20px rgba(0,0,0,0.4); }
.hero-stats {
  display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.hero-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.hero-stat-num span { color: var(--accent); }
.hero-stat-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.2rem; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}
.trust-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2.5rem;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; width: 14px; height: 14px; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--bg-subtle); }
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); margin-bottom: 0.75rem;
}
.section h2 {
  font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 0.75rem;
  line-height: 1.2; letter-spacing: -0.3px;
}
.section-desc {
  font-size: 1rem; color: var(--text-dim); max-width: 600px; margin-bottom: 2.5rem;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
  max-width: var(--max-w); margin: 0 auto;
}
.service-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: all 0.3s; position: relative;
}
.service-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  opacity: 0; transition: opacity 0.3s; z-index: 0;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-4px); }
.service-card > * { position: relative; z-index: 1; }
.service-card img { width: 100%; height: 180px; object-fit: cover; }
.service-card-body {
  padding: 1.5rem; background: var(--bg-card);
}
.service-card-body h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.service-card-body h3 svg { color: var(--accent); flex-shrink: 0; }
.service-card-body p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
}
.about-img { border-radius: var(--radius); overflow: hidden; position: relative; }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
.about-img::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--border-accent); border-radius: var(--radius);
  box-shadow: 0 0 40px var(--accent-glow);
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }
.about-list { list-style: none; margin: 1.5rem 0; }
.about-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 0.75rem; font-size: 0.92rem; color: var(--text-muted);
}
.about-list li svg { color: var(--green); flex-shrink: 0; margin-top: 0.15rem; }

/* ===== METHODS ===== */
.methods-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  max-width: var(--max-w); margin: 0 auto;
}
.method-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 2rem 1.25rem;
  border: 1px solid var(--border); text-align: center; transition: all 0.3s;
  position: relative;
}
.method-card:hover { border-color: var(--border-accent); box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-3px); }
.method-num {
  font-size: 3rem; font-weight: 900; color: var(--bg-elevated);
  position: absolute; top: 0.5rem; right: 1rem;
  background: linear-gradient(180deg, rgba(56,189,248,0.15), transparent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.method-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-glow); border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.method-icon svg { color: var(--accent); }
.method-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.method-card p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }

/* ===== AREAS ===== */
.area-grid {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  max-width: var(--max-w); margin: 0 auto;
}
.area-tag {
  background: var(--bg-card); color: var(--text-muted);
  padding: 0.45rem 1.1rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border); transition: all 0.2s;
}
.area-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ===== PRICING ===== */
.pris-box {
  max-width: 780px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius); padding: 2.5rem;
  border: 1px solid var(--border);
}
.pris-box p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }
.rot-box {
  background: var(--amber-glow); border-radius: 10px; padding: 1.5rem;
  margin-top: 1.5rem; border: 1px solid rgba(251, 191, 36, 0.2);
  border-left: 3px solid var(--amber);
}
.rot-box h3 { color: var(--amber); font-size: 1rem; margin-bottom: 0.4rem; }
.rot-box p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden; transition: all 0.2s;
}
.faq-item:hover { border-color: var(--border-accent); }
.faq-item[open] { border-color: var(--border-accent); box-shadow: 0 0 20px var(--accent-glow); }
.faq-item summary {
  padding: 1.15rem 1.5rem; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  color: var(--text);
}
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; font-weight: 300; color: var(--text-dim);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-elevated); flex-shrink: 0; transition: all 0.2s;
}
.faq-item[open] summary::after { content: '\2212'; background: var(--accent); color: var(--bg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-answer { padding: 0 1.5rem 1.25rem; color: var(--text-dim); line-height: 1.7; font-size: 0.9rem; }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  max-width: var(--max-w); margin: 0 auto;
}
.review-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); transition: all 0.3s;
}
.review-card:hover { border-color: var(--border-accent); box-shadow: 0 0 20px var(--accent-glow); }
.review-stars { color: var(--amber); font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.review-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; margin-bottom: 1rem; }
.review-author { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.review-source { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.15rem; }

/* ===== CTA BOTTOM ===== */
.cta-section {
  position: relative; padding: 5rem 1.5rem; text-align: center; overflow: hidden;
  background: var(--bg-card);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 50%, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 { color: var(--text); font-size: 2rem; margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-dim); margin-bottom: 2rem; font-size: 1rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg); border-top: 1px solid var(--border);
  color: var(--text-dim); padding: 2rem 1.5rem; text-align: center; font-size: 0.82rem;
}
.site-footer a { color: var(--text-muted); }

/* ===== LEAD FORM MODAL ===== */
.lead-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 9998; }
.lead-overlay.active { display: block; }
.lead-modal {
  display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--bg-card); border: 1px solid var(--border-accent);
  border-radius: 20px; padding: 2.5rem; width: 90%; max-width: 460px;
  z-index: 9999; box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
}
.lead-modal.active { display: block; }
.lead-modal h3 { font-size: 1.3rem; margin-bottom: 0.25rem; color: var(--text); }
.lead-modal .sub { color: var(--text-dim); margin-bottom: 1.5rem; font-size: 0.88rem; }
.lead-modal .close-btn {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text-dim); line-height: 1;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.3rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.65rem 1rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.92rem; font-family: var(--font); color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-services { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 1rem; }
.form-service-btn {
  padding: 0.55rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); cursor: pointer; font-size: 0.82rem; font-weight: 500;
  text-align: center; transition: all 0.2s; color: var(--text-muted);
}
.form-service-btn:hover, .form-service-btn.selected { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.form-submit {
  width: 100%; padding: 0.8rem;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: var(--bg); border: none; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}
.form-submit:hover { box-shadow: 0 0 30px rgba(56, 189, 248, 0.45); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px); padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  #hero { min-height: auto; }
  #hero::after { width: 100%; opacity: 0.15; mask-image: none; -webkit-mask-image: none; }
  #hero h1 { font-size: 2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat-num { font-size: 1.3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img { order: -1; }
  .about-img img { height: 260px; }
  .methods-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1rem; }
  .section h2 { font-size: 1.5rem; }
  .hero-content { padding: 3rem 1.5rem; }
  .hero-checks { flex-direction: column; gap: 0.4rem; }
  .method-num { display: none; }
}
@media (max-width: 480px) {
  .methods-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1rem; }
  .form-services { grid-template-columns: 1fr; }
  .trust-inner { gap: 0.6rem 1.2rem; }
}
