/* ===== Northern Mass Electrical Solutions ===== */

:root {
  --navy: #0d1b2e;
  --navy-2: #10233d;
  --blue: #0064b7;
  --blue-light: #2f8fe0;
  --amber: #ffb703;
  --amber-dark: #e29e00;
  --ink: #1b2431;
  --paper: #f6f8fb;
  --paper-2: #eef2f7;
  --muted: #5b6b7f;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, .brand-text, .footer-brand-text {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 {
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--navy);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

a {
  color: var(--blue);
}

.section-pad {
  padding: 5rem 0;
}

.section-dark {
  background: var(--navy);
  color: #e6ecf3;
}

.section-alt {
  background: var(--paper);
}

.section-heading {
  max-width: 720px;
}

.eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.eyebrow-light {
  color: var(--amber);
}

.lead-copy {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.about-copy {
  color: #cfd9e6;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ===== Navbar ===== */
#mainNav {
  background: var(--navy);
  padding: 0.65rem 0;
  box-shadow: 0 2px 14px rgba(0,0,0,0.25);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fdfbf5;
  border-radius: 10px;
  padding: 4px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.brand-chip-lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.navbar-brand .brand-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
  max-width: 220px;
}

.navbar-nav .nav-link {
  color: #dbe4ef;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
}

.navbar-nav .nav-link:hover {
  color: var(--amber);
}

.btn-cta {
  background: var(--amber);
  border-color: var(--amber);
  color: #1b1300;
  font-weight: 600;
  border-radius: 8px;
}

.btn-cta:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: #1b1300;
}

.btn-outline-hero {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
}

.btn-outline-hero:hover {
  background: #fff;
  color: var(--navy);
}

.btn-outline-dark2 {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
}

.btn-outline-dark2:hover {
  background: var(--navy);
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: url('img/hero.webp') center 25%/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(10,20,35,0.55) 0%, rgba(10,20,35,0.25) 45%, rgba(10,20,35,0.65) 100%);
}

.hero-content {
  max-width: 780px;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  overflow-wrap: break-word;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  color: var(--amber);
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.85rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}

.hero-title {
  color: #fff;
  font-weight: 700;
  font-size: 2.9rem;
  line-height: 1.15;
  margin: 0.5rem 0 1.25rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}

.hero-subtitle {
  color: #f2f5f9;
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}

/* ===== Caution stripe ===== */
.caution-stripe {
  height: 14px;
  background: repeating-linear-gradient(
    135deg,
    var(--amber),
    var(--amber) 22px,
    var(--navy) 22px,
    var(--navy) 44px
  );
}

/* ===== Trust bar ===== */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #e7ecf2;
}

.trust-icon {
  font-size: 1.9rem;
  color: var(--blue);
  display: block;
  margin-bottom: 0.4rem;
}

.trust-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 0;
}

/* ===== Service cards ===== */
.service-card {
  background: #fff;
  border: 1px solid #e7ecf2;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13,27,46,0.1);
  border-color: transparent;
}

.service-icon {
  font-size: 2.1rem;
  color: var(--blue);
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ===== About / areas ===== */
.areas-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 2rem;
}

.area-chip {
  background: rgba(0,100,183,0.25);
  border: 1px solid rgba(47,143,224,0.5);
  color: #d9e8fa;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.areas-note {
  color: #aebccd;
  font-size: 0.88rem;
}

/* ===== License cards ===== */
.license-card {
  background: var(--paper-2);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  border: 1px solid #e2e8f0;
}

.license-card-highlight {
  background: var(--navy);
  border-color: var(--navy);
}

.license-card-highlight h3,
.license-card-highlight p {
  color: #fff;
}

.license-card-highlight .license-icon {
  color: var(--amber);
}

.license-icon {
  font-size: 1.9rem;
  color: var(--blue);
  margin-bottom: 0.9rem;
  display: block;
}

.license-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.license-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ===== Work / gallery ===== */
.work-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e7ecf2;
  height: 100%;
}

.work-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.work-caption {
  padding: 1.5rem;
}

.work-caption h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.work-caption p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ===== Tips ===== */
.tip-card {
  background: #fff;
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(13,27,46,0.06);
}

.tip-icon {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: block;
}

.tip-card h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.tip-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== Reviews ===== */
.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 1.75rem;
}

.stars {
  color: var(--amber);
  font-size: 0.9rem;
}

.review-card p {
  color: #dbe4ef;
  font-size: 0.92rem;
  line-height: 1.65;
}

.review-name {
  color: var(--amber);
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

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

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--blue);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-item h3 {
  color: var(--navy);
  margin-bottom: 0.15rem;
  font-size: 0.95rem;
}

.contact-item p {
  color: var(--muted);
  margin: 0;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: #c7d2e0;
  padding: 4rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-brand-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.footer-tagline {
  color: #9fb0c4;
  font-size: 0.9rem;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.footer-social:hover {
  background: var(--amber);
  color: var(--navy);
}

.footer-heading {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #c7d2e0;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-links li {
  color: #c7d2e0;
  font-size: 0.92rem;
}

.footer-rule {
  border-color: rgba(255,255,255,0.15);
  margin: 2.5rem 0 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: #93a2b6;
}

.powered-by {
  font-size: 0.85rem;
  color: #93a2b6;
  text-decoration: none;
}

.powered-by strong {
  color: var(--amber);
}

.powered-by:hover {
  color: var(--amber);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .navbar-brand .brand-text {
    max-width: 160px;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    min-height: 88vh;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-content {
    padding: 1.75rem 1.25rem;
  }
  .section-pad {
    padding: 3.5rem 0;
  }
  h2 {
    font-size: 1.6rem;
  }
}
