/* ══════════════════════════════════════════
   SPLENDA ELECTRICAL — CORPORATE STYLESHEET
   ══════════════════════════════════════════ */

/* ── Google Fonts: Barlow Condensed (headings) + Barlow (body) ── */

:root {
  --navy:        #0a2540;
  --navy-light:  #0f3460;
  --gold:        #c9a84c;
  --gold-light:  #e8c76d;
  --white:       #ffffff;
  --off-white:   #f5f7fa;
  --mid-grey:    #8a96a3;
  --text:        #1e2a38;
  --text-light:  #4a5568;
  --border:      rgba(201,168,76,0.25);
  --shadow-sm:   0 2px 8px rgba(10,37,64,0.10);
  --shadow-md:   0 6px 24px rgba(10,37,64,0.14);
  --shadow-lg:   0 16px 48px rgba(10,37,64,0.18);
  --radius:      10px;
  --transition:  0.28s ease;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; }
a  { text-decoration: none; }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  transition: box-shadow var(--transition);
}

#navbar.scrolled { box-shadow: var(--shadow-lg); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  letter-spacing: 0.08em;
}

.logo-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
}

.logo-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  padding: 6px 14px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.03em;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 5px;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
header#home {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: url('images/header.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,37,64,0.92) 0%,
    rgba(10,37,64,0.70) 55%,
    rgba(10,37,64,0.30) 100%
  );
}

/* Gold stripe */
header#home::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--gold);
}

.hero-content {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 3px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 90px);
  line-height: 0.95;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero-title .accent { color: var(--gold); }

.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 300;
  color: rgba(255,255,255,0.80);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stats bar */
.hero-stats {
  position: relative;
  width: 100%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 22px 24px;
  margin-top: auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  margin-top: 4px;
  opacity: 0.75;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(10,37,64,0.25);
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.45);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ══════════════════════════════════════════
   SECTION SHARED
   ══════════════════════════════════════════ */
.section { padding: 90px 24px; }

.section-dark {
  background: var(--navy);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  margin-bottom: 14px;
}

.section-label.light { color: var(--gold); }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title.light { color: var(--white); }

.section-intro {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.section-intro.light { color: rgba(255,255,255,0.70); }

/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
#about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 15.5px;
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.80;
}

.credentials {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.credential-icon {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.credential-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.credential-item span {
  font-size: 12px;
  color: var(--text-light);
}

/* Team */
.team-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.team-avatar {
  width: 60px;
  height: 60px;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 4px 0 10px;
}

.team-bio {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

.team-pillars {
  display: flex;
  gap: 12px;
}

.pillar {
  flex: 1;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.pillar-icon { font-size: 22px; }

/* ══════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.20);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  border-radius: 0 0 3px 0;
  transition: height 0.4s ease;
}

.service-card:hover { 
  background: rgba(255,255,255,0.09);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-card:hover::before { height: 100%; }

.service-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  margin-bottom: 8px;
}

.service-icon { font-size: 26px; margin-bottom: 14px; }

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   PROJECTS
   ══════════════════════════════════════════ */
#projects { background: var(--white); }

.project-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.tab-btn {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.project-gallery-wrap {
  min-height: 220px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--off-white);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

/* placeholder when no image */
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  letter-spacing: 0.05em;
}

.gallery-placeholder .ph-icon { font-size: 32px; }

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.contact-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: var(--gold);
}

.contact-card-icon { font-size: 34px; margin-bottom: 16px; }

.contact-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: #060f1a;
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.footer-logo .logo-main { font-size: 28px; }
.footer-logo .logo-sub  { font-size: 13px; }

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 28px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,0.30);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--navy);
    padding: 16px 0 24px;
    border-top: 1px solid rgba(201,168,76,0.3);
    gap: 2px;
  }

  .nav-links.open { display: flex; }

  .nav-link { padding: 12px 28px; border-radius: 0; font-size: 15px; }

  .nav-cta {
    margin: 10px 28px 0;
    text-align: center;
    padding: 12px 28px;
  }

  /* Hero */
  header#home { min-height: 80vh; }
  .hero-title  { font-size: clamp(40px, 10vw, 64px); }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
  }

  .stat { padding: 0; }
  .stat-divider { width: 80px; height: 1px; }

  /* About credentials */
  .credentials { grid-template-columns: 1fr; }
  .team-pillars { flex-direction: column; }

  /* Sections */
  .section { padding: 60px 20px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .project-tabs { gap: 8px; }
  .tab-btn { font-size: 12px; padding: 8px 14px; }
  .stat-num { font-size: 26px; }
}
