/* nexenelectric.com — shared stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --bg:       #1a1a1a;
  --bg2:      #242424;
  --bg3:      #2e2e2e;
  --gold:     #f5a623;
  --gold-dim: #c47f10;
  --white:    #ffffff;
  --gray:     #a0a0a0;
  --gray2:    #666;
  --radius:   10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

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

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #3a3733;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

header a:first-child {
  flex-shrink: 0;
  align-self: center;
  line-height: 0;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  /* the phone number is the main call-to-action on mobile — give it a real
     tap target instead of a 16px-tall sliver */
  min-height: 44px;
  padding: 4px 2px;
}

.header-phone svg { color: var(--gold); }

/* ── MAIN NAV ── */
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #efeae2; font-size: 15px; font-weight: 600; white-space: nowrap; transition: color 0.2s; }
.main-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none; border: none; cursor: pointer; padding: 9px;
}
.nav-toggle span { display: block; height: 2.5px; width: 100%; background: #efeae2; border-radius: 2px; transition: all 0.2s; }
@media (max-width: 900px) {
  header { justify-content: flex-start; }
  .header-right { margin-left: auto; order: 2; }
  .header-right .btn-gold { display: none; }
  .nav-toggle { display: flex; order: 3; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #3a3733;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    box-shadow: 0 10px 22px rgba(0,0,0,0.4);
    padding: 4px 24px 14px;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 2px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .main-nav a:last-child { border-bottom: none; }
}

/* ── BUTTONS ── */
.btn-gold {
  background: var(--gold);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  display: inline-block;
}
.btn-gold:hover { background: #e09518; }

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--gold); color: #111; }

.btn-lg { font-size: 16px; padding: 15px 32px; border-radius: var(--radius); }

/* ── HOMEPAGE HERO ── */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.2); }
}

.hero {
  background: linear-gradient(135deg, #111 0%, #1e1e1e 50%, #2a1f00 100%);
  padding: 88px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse-glow 5s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: 18px;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── SERVICE PAGE HERO ── */
.svc-hero {
  background: linear-gradient(135deg, #111 0%, #1e1e1e 60%, #231a00 100%);
  padding: 56px 24px 52px;
  position: relative;
  overflow: hidden;
}
.svc-hero::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.svc-hero-inner { max-width: 820px; }
.breadcrumb {
  font-size: 13px;
  color: var(--gray2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gray2); }
.svc-hero h1 {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.svc-hero h1 span { color: var(--gold); }
.svc-hero-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.svc-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--bg3);
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
  padding: 16px 24px;
}
.trust-bar-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  white-space: nowrap;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }
.trust-divider { width: 1px; height: 20px; background: #444; }

/* ── SECTIONS ── */
section { padding: 72px 24px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── HOMEPAGE SERVICE CARDS ── */
.services { background: var(--bg2); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.service-card {
  background: linear-gradient(160deg, #2b2b2b 0%, #222 100%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px 22px 22px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245,166,35,0.6) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  border-color: rgba(245,166,35,0.28);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(245,166,35,0.1);
}
.service-card:hover::after { opacity: 1; }

.service-icon-badge {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #211d16 0%, #1a1712 100%);
  border: 1.5px solid rgba(245,166,35,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon-badge {
  background: linear-gradient(135deg, #2a241a 0%, #201c15 100%);
  border-color: rgba(245,166,35,0.85);
  box-shadow: 0 0 22px rgba(245,166,35,0.18);
}
.service-icon { width: 60px; height: 60px; object-fit: contain; display: block; }
.service-card h3 { font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 7px; }
.service-card p { font-size: 12px; color: var(--gray); line-height: 1.5; }
.card-link {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(245,166,35,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.service-card:hover .card-link { color: var(--gold); }

/* ── SERVICE PAGE LAYOUT ── */
.page-section { padding: 64px 24px; }
.page-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.page-body h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  margin-top: 36px;
  color: var(--white);
}
.page-body h2:first-child { margin-top: 0; }
.page-body p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 16px;
}
.page-body strong { color: var(--white); }

/* Checklist */
.checklist { list-style: none; margin-bottom: 20px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #ccc;
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* FAQ */
.faq { margin-top: 8px; }
.faq-item {
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--bg2);
  border: none;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--bg3); }
.faq-q .faq-icon { color: var(--gold); font-size: 20px; font-weight: 400; flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  background: var(--bg);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-a.open { max-height: 1200px; padding: 16px 20px; display: block; }
.faq-a p { font-size: 14px; color: var(--gray); line-height: 1.7; margin: 0; }

/* Sidebar */
.page-sidebar { position: sticky; top: 84px; }
.sidebar-card {
  background: var(--bg2);
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
}
.sidebar-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.sidebar-card p { font-size: 14px; color: var(--gray); margin-bottom: 20px; line-height: 1.6; }
.sidebar-card .btn-gold { display: block; text-align: center; margin-bottom: 10px; font-size: 15px; padding: 13px 20px; }
.sidebar-card .btn-outline { display: block; text-align: center; font-size: 14px; padding: 11px 20px; }
.sidebar-trust { margin-top: 20px; padding-top: 20px; border-top: 1px solid #333; }
.sidebar-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}
.sidebar-trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ── WHY NEXEN ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--bg2);
  border: 1px solid #333;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── FAQ ── */
.faq-section { background: var(--bg2); }
.faq-list { margin-top: 48px; }
.faq-item {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  margin-bottom: 14px;
  transition: border-color 0.25s;
}
.faq-item.open { border-color: rgba(245,166,35,0.35); }
.faq-q {
  width: 100%;
  padding: 22px 28px;
  font-weight: 600;
  font-size: 17px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  line-height: 1.4;
  font-family: inherit;
  border-radius: 14px;
}
.faq-icon { color: var(--gold); font-size: 26px; font-weight: 300; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-q { color: var(--gold); border-bottom: 1px solid rgba(255,255,255,0.07); border-radius: 14px 14px 0 0; }
.faq-a { display: none; padding: 22px 28px 28px; color: var(--gray); font-size: 15.5px; line-height: 1.85; max-height: none; overflow: visible; }
.faq-item.open .faq-a { display: block; max-height: none; overflow: visible; }

/* ── SERVICE AREAS ── */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.area-chip {
  background: var(--bg2);
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s;
}
.area-chip:hover { border-color: var(--gold); }
.area-chip svg { color: var(--gold); flex-shrink: 0; }

/* ── RELATED SERVICES ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.related-card {
  background: var(--bg2);
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
  color: var(--white);
}
.related-card:hover { border-color: var(--gold); }
.related-card svg { color: var(--gold); flex-shrink: 0; }
.related-card span { font-size: 14px; font-weight: 600; }

/* ── REVIEWS ── */
.reviews-section { background: var(--bg3); }
.reviews-grid {
  display: grid;
  /* min() lets the column shrink under 380px on narrow phones — without it the
     grid forces a 380px track on a ~342px-wide screen and the page scrolls sideways */
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.review-card {
  background: var(--bg2);
  border: 1px solid #3a3a3a;
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-stars { display: flex; gap: 3px; color: var(--gold); }
.review-stars svg { width: 18px; height: 18px; }
.review-text { font-size: 14.5px; color: #d0d0d0; line-height: 1.75; flex-grow: 1; }
.review-by {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid #333;
}
.review-name { font-size: 14px; font-weight: 700; color: var(--white); }
.review-src { font-size: 12px; color: var(--gray2); font-weight: 600; }
.reviews-link { display: inline-block; color: var(--gold); font-weight: 700; font-size: 15px; }
.reviews-link:hover { text-decoration: underline; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, #1e1400 0%, #2a1f00 100%);
  border-top: 1px solid rgba(245,166,35,0.2);
  border-bottom: 1px solid rgba(245,166,35,0.2);
  text-align: center;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin-bottom: 14px; }
.cta-banner p { font-size: 17px; color: var(--gray); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-banner .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: #111; border-top: 1px solid #2a2a2a; padding: 48px 24px 32px; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col p, .footer-col a { font-size: 14px; color: var(--gray); line-height: 2; display: block; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--gray2); }
.footer-license { font-size: 12px; color: var(--gray2); }

/* ── FLOATING CALL BUTTON ── */
.float-call {
  display: none;
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 200;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(245,166,35,0.4);
  align-items: center;
  gap: 8px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .logo-img { height: 46px; }
  .hero { padding: 64px 20px 60px; }
  .trust-bar-inner { gap: 16px; }
  .trust-divider { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .float-call { display: flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .svc-hero { padding: 40px 20px 36px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .btn-lg { font-size: 15px; padding: 13px 22px; }
  section { padding: 56px 18px; }
  .page-section { padding: 48px 18px; }
}
