/* =========================================
   NEED ELECTRICAL — Main Stylesheet
   ========================================= */

:root {
  --cyan: #1fc9ed;
  --cyan-dark: #15a8c9;
  --cyan-light: #e3f8fd;
  --orange: #f97f00;
  --orange-dark: #d46800;
  --orange-light: #fff3e6;
  --dark: #111827;
  --dark-mid: #1f2937;
  --grey: #6b7280;
  --grey-light: #f7f8fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; color: var(--grey); }
p:last-child { margin-bottom: 0; }

/* ---- LAYOUT ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--grey { background: var(--grey-light); }
.section--dark { background: var(--dark); color: var(--white); }
.section--cyan { background: var(--cyan); color: var(--white); }
.section--orange { background: var(--orange); color: var(--white); }

.section-label { font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; display: block; }
.section--dark .section-label { color: var(--cyan); }
.section--cyan .section-label, .section--orange .section-label { color: rgba(255,255,255,0.7); }
.section-header { margin-bottom: 52px; }
.section-header h2 { color: var(--dark); }
.section--dark .section-header h2 { color: var(--white); }
.section-header p { max-width: 580px; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn-cyan { background: var(--cyan); color: var(--white); border-color: var(--cyan); }
.btn-cyan:hover { background: var(--cyan-dark); border-color: var(--cyan-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

/* ---- HEADER ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cyan); border-bottom: 1px solid rgba(0,0,0,0.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 52px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius); font-weight: 500; font-size: 0.9rem; color: var(--dark); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--dark); background: rgba(0,0,0,0.12); }
.nav-cta { margin-left: 8px; }
.header-phone { font-weight: 700; font-size: 1rem; color: var(--dark); display: flex; align-items: center; gap: 6px; }
.header-phone:hover { color: var(--white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); transition: var(--transition); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; background: var(--cyan-dark); border-top: 1px solid rgba(0,0,0,0.1); padding: 16px 24px 24px; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; border-radius: var(--radius); font-weight: 500; color: var(--dark); font-size: 1rem; transition: var(--transition); }
.mobile-nav a:hover { background: rgba(0,0,0,0.1); color: var(--dark); }
.mobile-nav .btn { margin-top: 8px; justify-content: center; }

/* ---- HERO ---- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; background: var(--dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.2; }
.hero-content { position: relative; z-index: 2; max-width: 740px; padding: 60px 0; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--cyan); }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-stat-num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: var(--white); line-height: 1; }
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ---- TRUST BAR ---- */
.trust-bar { background: var(--orange); padding: 18px 0; }
.trust-bar-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; font-size: 0.9rem; }

/* ---- WHY CHOOSE ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px; transition: var(--transition); position: relative; overflow: hidden; }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--cyan); border-radius: 4px 0 0 4px; }
.why-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.why-icon { width: 44px; height: 44px; background: var(--cyan-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--cyan-dark); }
.why-card h4 { color: var(--dark); margin-bottom: 6px; font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.why-card p { font-size: 0.88rem; margin: 0; }

/* ---- SERVICE CARDS ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.service-card { background: var(--white); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.service-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-card-body p { flex-grow: 1; }
.service-card-body .btn { margin-top: 20px; align-self: flex-start; }
.service-card h3 { color: var(--dark); margin-bottom: 10px; }
.service-tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.tag-residential { background: var(--cyan-light); color: var(--cyan-dark); }
.tag-commercial { background: var(--orange-light); color: var(--orange-dark); }
.tag-contracting { background: #f0fdf4; color: #166534; }

/* ---- CHECKLIST ---- */
.checklist { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--grey); }
.checklist li .check { color: var(--cyan); font-weight: 700; flex-shrink: 0; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card { background: var(--white); border-radius: 10px; padding: 32px; border: 1px solid var(--border); }
.testimonial-text { font-size: 0.92rem; color: var(--grey); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-weight: 700; color: var(--dark); font-size: 0.9rem; }
.stars { color: var(--orange); font-size: 1rem; margin-bottom: 8px; }

/* ---- FAQ ---- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--dark); transition: var(--transition); }
.faq-question:hover { color: var(--cyan-dark); }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--cyan-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--cyan-dark); transition: var(--transition); }
.faq-item.open .faq-icon { background: var(--cyan); color: var(--white); transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 20px; font-size: 0.92rem; color: var(--grey); line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ---- TWO COL ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ---- PAGE HERO ---- */
.page-hero { background: var(--dark); padding: 60px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #0a1628 0%, var(--dark) 60%); opacity: 0.9; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 560px; }

/* ---- CONTACT CARDS ---- */
.contact-card { background: var(--grey-light); border-radius: 12px; padding: 32px 28px; text-align: center; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; }
.contact-icon { width: 52px; height: 52px; background: var(--cyan-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--cyan-dark); }
.contact-card h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.contact-card p { margin-bottom: 20px; font-size: 0.9rem; flex-grow: 1; }

/* ---- FOOTER ---- */
.site-footer { background: #080f1a; color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.88rem; margin-top: 14px; line-height: 1.7; }
.footer-col h5 { font-family: var(--font-heading); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--white); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.88rem; padding: 4px 0; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; flex-wrap: wrap; gap: 8px; }

/* ---- LIGHTBOX ---- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 90vw; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: white; font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .nav-links, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .two-col { display: flex !important; flex-direction: column !important; gap: 32px !important; }
  .two-col > * { width: 100% !important; }
  .two-col img { max-height: 280px; object-fit: cover; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .hero { min-height: 100svh; }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-bar-inner { gap: 20px; justify-content: flex-start; padding: 0 24px; }
}
