/* ============================================================
   Murphy Electric & Industrial Control — style.css
   Palette: Deep Navy · Steel Blue · Electric Amber
   Fonts: Barlow Condensed (headings) · Inter (body)
   ============================================================ */

:root {
  --navy:      #0D1B2A;
  --navy-mid:  #162336;
  --steel:     #1E3A5F;
  --accent:    #F59E0B;
  --accent2:   #D97706;
  --light:     #F4F7FB;
  --muted:     #6B7280;
  --border:    #E5E9F0;
  --white:     #FFFFFF;
  --text:      #1C2B3A;
  --radius:    8px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

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

/* ---- Typography helpers ---- */
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.eyebrow--light { color: rgba(255,255,255,0.6); }
.eyebrow--accent { color: var(--accent); }

.section-intro { margin-bottom: 3rem; }
.section-intro .section-heading { margin: 0.3rem 0 0.75rem; }

.text-accent { color: var(--accent); }
.text-white-60 { color: rgba(255,255,255,0.65); }


/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  background: transparent;
  padding: 1.1rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

#mainNav.nav-scrolled {
  background: var(--navy);
  padding: 0.65rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

/* Always keep solid bg since hero needs contrast */
#mainNav {
  background: linear-gradient(to bottom, rgba(13,27,42,0.92), rgba(13,27,42,0.4));
}
#mainNav.nav-scrolled {
  background: var(--navy);
}

.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85) !important;
  padding: 0.4rem 0.75rem !important;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover { color: var(--accent) !important; }

.btn-accent-sm {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--navy) !important;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1.2rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-accent-sm:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

.dropdown-menu-dark {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  min-width: 200px;
}
.dropdown-menu-dark .dropdown-item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  padding: 0.55rem 1.1rem;
}
.dropdown-menu-dark .dropdown-item:hover {
  background: rgba(245,158,11,0.12);
  color: var(--accent);
}


/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-section:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,27,42,0.92) 0%,
    rgba(13,27,42,0.72) 55%,
    rgba(13,27,42,0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-hero-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-hero-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}

.btn-hero-ghost {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.83rem 2rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.btn-hero-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-cue span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}


/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy);
  padding: 0;
}

.stat-cell {
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.stat-cell--last { border-right: none; }

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}

.stat-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}


/* ============================================================
   DIVISIONS GRID
   ============================================================ */
.divisions-section {
  padding: 5rem 0;
  background: var(--light);
}

.divisions-grid {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13,27,42,0.12);
}

.division-tile {
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  color: var(--white);
  text-decoration: none;
}
.division-tile:hover { transform: scale(1.02); z-index: 2; }
.division-tile:hover .tile-arrow { opacity: 1; transform: translateX(4px); }

.tile-commercial { background: var(--navy); }
.tile-controls   { background: var(--steel); }
.tile-energy     { background: #1A3028; }
.tile-inhouse    { background: #2A1F10; }

/* Accent stripe on left */
.division-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.division-tile:hover::before { opacity: 1; }

.tile-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.division-tile h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.division-tile p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  flex: 1;
}

.tile-arrow {
  display: inline-block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 1rem;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
}


/* ============================================================
   SERVICE SECTIONS (Commercial, Controls)
   ============================================================ */
.service-section {
  padding: 5.5rem 0;
  background: var(--white);
}
.service-section--alt { background: var(--light); }

.service-intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.service-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.service-checklist li:first-child { border-top: 1px solid var(--border); }
.service-checklist .bi-check2-circle {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-checklist strong { display: block; font-weight: 600; }
.service-checklist span { color: var(--muted); font-size: 0.85rem; }

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.sector-tags span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

/* Photo stacks */
.service-photo-stack {
  position: relative;
  height: 480px;
}
.photo-primary {
  width: 84%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(13,27,42,0.18);
}
.photo-secondary {
  position: absolute;
  bottom: -2rem;
  right: 0;
  width: 46%;
  height: 48%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(13,27,42,0.2);
}

/* Partners block */
.partners-block { margin-top: 2rem; }
.partners-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.partners-logos img {
  max-height: 36px;
  width: auto;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s;
}
.partners-logos img:hover { filter: none; }


/* ============================================================
   ENERGY SECTION
   ============================================================ */
.energy-section {
  position: relative;
  padding: 5.5rem 0;
  overflow: hidden;
}

.energy-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.energy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13,27,42,0.97) 0%,
    rgba(13,27,42,0.88) 55%,
    rgba(13,27,42,0.65) 100%
  );
}

.energy-content { position: relative; z-index: 2; }

.energy-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.e-tile {
  background: rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.75rem 1rem;
  text-align: center;
  transition: background 0.25s;
}
.e-tile:hover { background: rgba(245,158,11,0.12); }

.e-tile i {
  font-size: 1.75rem;
  color: var(--accent);
}
.e-tile span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}


/* ============================================================
   IN-HOUSE SERVICES
   ============================================================ */
.inhouse-section {
  padding: 5.5rem 0;
  background: var(--white);
}

.inhouse-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.inhouse-card:hover {
  box-shadow: 0 12px 36px rgba(13,27,42,0.1);
  transform: translateY(-4px);
}

.ih-icon {
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.inhouse-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.inhouse-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section {
  padding: 5.5rem 0;
  background: var(--navy);
}

.project-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  height: 100%;
  transition: background 0.25s, transform 0.25s;
}
.project-card:hover {
  background: rgba(245,158,11,0.08);
  transform: translateY(-4px);
  border-color: rgba(245,158,11,0.25);
}

.project-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: rgba(245,158,11,0.2);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.project-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.project-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  padding: 5.5rem 0;
  background: var(--light);
}

.about-photo-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.about-photo-wrap img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(13,27,42,0.15);
  aspect-ratio: 4/3;
}

.about-badge-pill {
  position: absolute;
  bottom: 1.5rem;
  right: -1rem;
  background: var(--white);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(13,27,42,0.15);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}
.neca-inline { height: 24px; width: auto; }

.about-section .section-heading { margin: 0.3rem 0 1rem; }
.about-section p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1rem; line-height: 1.7; }

.awards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.award-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  flex: 1 1 200px;
}
.award-pill i { font-size: 1.4rem; }
.award-pill strong { display: block; font-size: 0.875rem; color: var(--navy); font-weight: 600; }
.award-pill span  { font-size: 0.78rem; color: var(--muted); }


/* ============================================================
   TEAM
   ============================================================ */
.team-section {
  padding: 5.5rem 0;
  background: var(--navy-mid);
}

.team-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  transition: background 0.25s, transform 0.25s;
}
.team-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 1rem;
}

.team-card h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.team-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 5.5rem 0;
  background: var(--white);
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.ci-icon {
  width: 42px;
  height: 42px;
  background: rgba(245,158,11,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.ci-item strong { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.2rem; }
.ci-item p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.ci-item a { color: var(--accent); font-weight: 600; }
.ci-item a:hover { color: var(--accent2); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,27,42,0.12);
}
.map-wrap iframe { display: block; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 4rem 0 0;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
  line-height: 1.6;
}

.footer-links-col h6,
.footer-contact-col h6 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-links-col ul { list-style: none; padding: 0; }
.footer-links-col li { margin-bottom: 0.5rem; }
.footer-links-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--accent); }

.footer-contact-col p {
  font-size: 0.875rem;
  margin-bottom: 0.65rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.footer-contact-col a {
  color: var(--accent);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.powered-by a {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s;
}
.powered-by a:hover { color: var(--accent2); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }

  .service-photo-stack { height: 360px; }
  .photo-secondary { bottom: -1rem; }

  .stat-cell { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-cell--last { border-right: none; }
}

@media (max-width: 767.98px) {
  .division-tile { min-height: 220px; padding: 1.75rem 1.25rem; }

  .hero-headline { font-size: clamp(2.8rem, 10vw, 4rem); }

  .service-photo-stack { height: 260px; margin-bottom: 3rem; }
  .photo-secondary { width: 42%; height: 50%; }

  .energy-tiles { grid-template-columns: repeat(2, 1fr); }

  .about-badge-pill { right: 0.5rem; bottom: 1rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-ghost { text-align: center; }

  .awards-row { flex-direction: column; }
  .award-pill { flex: none; }

  .energy-tiles { grid-template-columns: repeat(2, 1fr); }
}
