/* ============================================================
   COPPERLINE ELECTRICAL CONTRACTORS — Global Styles
   Color Palette: Navy #1a2447 | Copper #b87333 | Dark #0d1528
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@400;600;700;800&display=swap');

/* ─── CSS Variables ─── */
:root {
  --navy: #1a2447;
  --navy-dark: #0d1528;
  --navy-mid: #1e2d5a;
  --copper: #b87333;
  --copper-light: #d4955a;
  --copper-dark: #8a5420;
  --copper-glow: rgba(184, 115, 51, 0.25);
  --white: #ffffff;
  --off-white: #f5f3ef;
  --light-gray: #e8e4de;
  --mid-gray: #9a9fa8;
  --text-dark: #111827;
  --text-mid: #374151;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Barlow Condensed', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.22);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: var(--font-main); }

/* ─── Typography ─── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.1; font-weight: 700; letter-spacing: 0.02em; }

/* ─── Utility ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--copper);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title span { color: var(--copper); }
.section-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
}
.section-header-center { text-align: center; }
.section-header-center .section-subtitle { margin: 0 auto; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--copper);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: var(--transition);
}
.btn-primary:hover { background: var(--copper-dark); transform: translateY(-2px); box-shadow: 0 8px 24px var(--copper-glow); }
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--copper);
  color: var(--copper);
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: var(--transition);
  background: transparent;
}
.btn-outline:hover { background: var(--copper); color: var(--white); transform: translateY(-2px); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: var(--transition);
}
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,0.2); }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 21, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,115,51,0.2);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13, 21, 40, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 32px; max-width: 1400px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  width: 44px; height: 44px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid var(--copper);
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 800;
  color: var(--white); letter-spacing: 0.06em; line-height: 1;
}
.nav-logo-sub {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--copper); text-transform: uppercase; margin-top: 2px;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  position: relative; transition: var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--copper); transform: scaleX(0);
  transform-origin: left; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 16px; }
.nav-emergency {
  display: flex; align-items: center; gap: 8px;
  background: rgba(184,115,51,0.12);
  border: 1px solid rgba(184,115,51,0.4);
  color: var(--copper-light);
  padding: 8px 16px; border-radius: 6px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: var(--transition);
}
.nav-emergency:hover { background: var(--copper); color: var(--white); border-color: var(--copper); }
.nav-emergency .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper); animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.3); }
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; top: 76px; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(13, 21, 40, 0.98);
  backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; padding: 40px;
  transform: translateY(-100%); opacity: 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.mobile-nav.open {
  display: flex; transform: translateY(0); opacity: 1; pointer-events: all;
}
.mobile-nav a {
  color: var(--white); font-family: var(--font-heading);
  font-size: 2rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--copper); }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(184,115,51,0.2);
}
.footer-main {
  padding: 72px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.footer-logo-img {
  width: 50px; height: 50px;
  object-fit: cover; object-position: center top;
  border-radius: 50%;
  border: 2px solid var(--copper);
}
.footer-logo-name {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800;
  color: var(--white); letter-spacing: 0.06em; line-height: 1;
}
.footer-logo-sub {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--copper); text-transform: uppercase; margin-top: 2px;
}
.footer-desc {
  color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.8; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(184,115,51,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper); font-size: 0.85rem; transition: var(--transition);
}
.footer-social:hover { background: var(--copper); color: var(--white); border-color: var(--copper); }
.footer-col-title {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 2px solid var(--copper); display: inline-block;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-links a::before { content: '→'; color: var(--copper); font-size: 0.75rem; }
.footer-links a:hover { color: var(--copper); padding-left: 4px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.footer-contact-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: rgba(184,115,51,0.15); border: 1px solid rgba(184,115,51,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper); font-size: 0.8rem; flex-shrink: 0;
}
.footer-contact-text { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.5; }
.footer-contact-text strong { color: var(--white); display: block; font-size: 0.82rem; margin-bottom: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-copy span { color: var(--copper); }
.footer-license { color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ─── Scroll Reveal Animation ─── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b87333' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--white));
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,115,51,0.12);
  border: 1px solid rgba(184,115,51,0.3);
  color: var(--copper-light); padding: 6px 16px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white); margin-bottom: 16px;
}
.page-hero h1 span { color: var(--copper); }
.page-hero p {
  color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 580px; line-height: 1.75;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.45); font-size: 0.8rem; margin-top: 24px;
}
.breadcrumb a { color: var(--copper); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ─── Section Divider ─── */
.divider { height: 4px; background: linear-gradient(90deg, var(--copper), var(--copper-light), var(--copper)); border-radius: 2px; }

/* ─── Stats Strip ─── */
.stats-strip {
  background: var(--copper);
  padding: 28px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item {
  text-align: center; padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800;
  color: var(--white); line-height: 1;
}
.stat-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); text-transform: uppercase; margin-top: 4px; }

/* ─── CTA Band ─── */
.cta-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 80px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,115,51,0.15), transparent);
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-band-text h2 { font-size: clamp(1.8rem,3vw,2.8rem); color: var(--white); margin-bottom: 10px; }
.cta-band-text p { color: rgba(255,255,255,0.6); max-width: 500px; }
.cta-band-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Media Queries ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.25); }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.25); border-right: none; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { justify-content: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
