:root {
  --navy-900: #2b0a0a;
  --navy-800: #4a0e0e;
  --navy-700: #6b1414;
  --navy-600: #8f1d1d;
  --amber: #f6a809;
  --amber-dark: #d68f00;
  --ink: #1b2430;
  --ink-soft: #4a5568;
  --bg: #f6f7f9;
  --white: #ffffff;
  --border: #e4e8ee;
  --radius: 10px;
  --shadow: 0 10px 30px -12px rgba(43, 10, 10, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 22px; height: 22px; color: var(--amber); flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--navy-900); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }
.btn-outline.btn-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline.btn-light:hover { background: rgba(255,255,255,0.12); }
.btn-block { display: flex; justify-content: center; width: 100%; margin-top: 12px; }
.btn-quote { background: var(--navy-800); color: var(--white); padding: 10px 20px; font-size: 0.88rem; }
.btn-quote:hover { background: var(--navy-700); }

/* Top bar */
.topbar {
  background: var(--navy-900);
  color: #d9b7b7;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item a { color: #f2dbdb; }
.topbar-item a:hover { color: var(--amber); }
.topbar .dot { margin: 0 4px; opacity: 0.6; }
.topbar-loc { color: #bf9393; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1rem; color: var(--navy-900); letter-spacing: 0.3px; }
.brand-sub { font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 1px; }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { font-weight: 600; font-size: 0.92rem; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--navy-800); border-bottom-color: var(--amber); }
.main-nav a.active { color: var(--navy-900); border-bottom-color: var(--amber); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: #2b0a0a url("assets/images/hero-powerlines.jpg") center 62% / cover no-repeat;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(43,10,10,0.94) 0%, rgba(74,14,14,0.88) 45%, rgba(107,20,20,0.75) 100%);
}
.hero-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(246,168,9,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,168,9,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 75% 30%, black, transparent 70%);
}
.hero-inner {
  position: relative;
  padding: 76px 24px 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow.center, .section-lead.center, h2.center { text-align: center; }
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  color: var(--white);
  margin-bottom: 18px;
}
.hero-lead {
  color: #e8c7c7;
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 18px 22px;
  backdrop-filter: blur(4px);
}
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--amber); }
.stat-label { font-size: 0.85rem; color: #e8c7c7; }

/* Trust strip */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.3px;
}
.trust-strip-inner .sep { color: var(--amber); }

/* Sections */
.section { padding: 76px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--ink-soft); max-width: 640px; margin: 14px auto 0; }
.section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy-900); margin-bottom: 6px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-svg { border-radius: 14px; box-shadow: var(--shadow); }
.about-copy p { color: var(--ink-soft); margin: 14px 0; }
.about-points { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.about-points li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.94rem;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  background: var(--amber);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--amber); }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.05rem; color: var(--navy-900); margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.why-list { margin-top: 34px; display: flex; flex-direction: column; gap: 26px; }
.why-item { display: flex; gap: 18px; }
.why-num { font-size: 1.4rem; font-weight: 800; color: var(--amber); flex-shrink: 0; }
.why-item h4 { color: var(--navy-900); margin-bottom: 4px; font-size: 1rem; }
.why-item p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.why-cta-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: sticky;
  top: 100px;
}
.why-cta-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.why-cta-card p { color: #e8c7c7; font-size: 0.92rem; margin-bottom: 6px; }

/* Contact */
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark .eyebrow { color: var(--amber); }
.section-dark h2 { color: var(--white); }
.section-dark .section-lead { color: #e8c7c7; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-item { display: flex; gap: 16px; margin-top: 26px; }
.contact-item h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--white); }
.contact-item p { color: #e8c7c7; margin: 0; font-size: 0.92rem; }
.contact-item a:hover { color: var(--amber); }
.contact-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255,255,255,0.15);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Footer */
.site-footer { background: #1c0505; color: #c9a3a3; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 36px 24px 24px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-brand .brand-name { display: block; color: var(--white); font-weight: 800; font-size: 0.9rem; }
.footer-brand p { margin: 2px 0 0; font-size: 0.8rem; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px 28px;
  font-size: 0.8rem;
  text-align: center;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  z-index: 60;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1 1 150px; }
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-cta-card { position: static; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topbar-loc { display: none; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 260px; }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .btn-quote { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 52px 24px 48px; }
}

/* Nav toggle animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Inner page banner ===== */
.page-banner {
  position: relative;
  color: var(--white);
  padding: 64px 0 52px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(43,10,10,0.93) 0%, rgba(74,14,14,0.9) 60%, rgba(107,20,20,0.82) 100%);
}
.page-banner .wrap { position: relative; }
.page-banner h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 10px; }
.breadcrumb { color: #d9b7b7; font-size: 0.88rem; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.page-banner-lead { color: #e8c7c7; max-width: 560px; margin-top: 10px; }

.banner-electrical { background-image: url("assets/images/svc-panel-wiring.jpg"); }
.banner-services { background-image: url("assets/images/svc-transformer.jpg"); }
.banner-gallery { background-image: url("assets/images/gallery-cables.jpg"); }
.banner-contact { background-image: url("assets/images/svc-electrical-install.jpg"); }

/* ===== Home teaser cards ===== */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.teaser-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teaser-img { height: 190px; overflow: hidden; }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.teaser-card:hover .teaser-img img { transform: scale(1.06); }
.teaser-body { padding: 20px 22px; }
.teaser-body h3 { color: var(--navy-900); font-size: 1.05rem; margin-bottom: 6px; }
.teaser-body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 10px; }
.teaser-link { color: var(--amber-dark); font-weight: 700; font-size: 0.85rem; }

.section-foot-link { text-align: center; margin-top: 40px; }

/* ===== Service cards with photos (home preview) ===== */
.service-card.has-img { padding: 0; overflow: hidden; }
.service-card.has-img .service-photo { height: 170px; overflow: hidden; }
.service-card.has-img .service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-card.has-img .service-body { padding: 22px 22px 26px; position: relative; }
.service-card.has-img .service-icon { position: absolute; top: -23px; left: 22px; box-shadow: 0 6px 14px rgba(43,10,10,0.3); margin-bottom: 0; }
.service-card.has-img .service-body h3 { margin-top: 20px; }

/* ===== Services page: zig-zag rows ===== */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 56px 0;
}
.service-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.service-row.reverse .service-row-media { order: 2; }
.service-row.reverse .service-row-copy { order: 1; }
.service-row-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-row-copy .service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-900);
  color: var(--amber);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.service-row-copy .service-tag svg { width: 15px; height: 15px; }
.service-row-copy h2 { font-size: 1.5rem; color: var(--navy-900); margin-bottom: 12px; }
.service-row-copy p { color: var(--ink-soft); margin-bottom: 16px; }
.service-row-copy ul { display: flex; flex-direction: column; gap: 8px; }
.service-row-copy ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.service-row-copy ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 12px;
  background: var(--amber);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  height: 260px;
  background: var(--navy-900);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(43,10,10,0.92), transparent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.gallery-item.tall { grid-row: span 2; height: 100%; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28,5,5,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 900px; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; color: #e8c7c7; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===== About page extras ===== */
.founder-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
}
.founder-mark {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.founder-mark svg { width: 26px; height: 26px; }
.founder-card h4 { color: var(--navy-900); margin-bottom: 4px; }
.founder-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.timeline { margin-top: 20px; }
.timeline-item { display: flex; gap: 20px; padding: 20px 0; border-left: 2px solid var(--border); margin-left: 8px; padding-left: 26px; position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px; top: 24px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--amber);
}
.timeline-year { font-weight: 800; color: var(--navy-900); min-width: 60px; }
.timeline-item p { color: var(--ink-soft); margin: 4px 0 0; font-size: 0.92rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.value-card { text-align: center; padding: 26px 18px; }
.value-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--amber);
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h4 { color: var(--navy-900); font-size: 0.98rem; margin-bottom: 6px; }
.value-card p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

.about-photo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.about-photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-photo-grid .stack { display: flex; flex-direction: column; gap: 14px; }
.about-photo-grid .stack img { height: 143px; }
.about-photo-grid > img { height: 300px; }

/* ===== Contact page cards ===== */
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
  margin-bottom: 56px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.contact-card .icon-md { margin: 0 auto 14px; width: 30px; height: 30px; }
.contact-card h4 { color: var(--navy-900); margin-bottom: 8px; }
.contact-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 4px; }
.contact-card a:hover { color: var(--amber-dark); }

/* Responsive additions */
@media (max-width: 960px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .service-row, .service-row.reverse { grid-template-columns: 1fr; }
  .service-row.reverse .service-row-media, .service-row.reverse .service-row-copy { order: unset; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; height: 260px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-photo-grid { grid-template-columns: 1fr; }
  .contact-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}
