/* =========================================================
   MARSHFIELD ELECTRIC — style.css
   Palette: Navy #0C1A2E · Electric Yellow #F5C400 · Off-white #F5F7F2
   Fonts: Oswald (headings) · Inter (body)
   ========================================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }

:root {
  --navy:      #0C1A2E;
  --navy-mid:  #132440;
  --electric:  #F5C400;
  --elec-h:    #D4A900;
  --steel:     #4B6584;
  --text:      #1A1F2E;
  --muted:     #6c7a8a;
  --off-white: #F5F7F2;
  --alt-bg:    #EEF1F5;
  --border:    #e0e4ea;
  --white:     #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---- SHARED UTILITIES ---- */
.section-pad { padding: 96px 0; }
.bg-white    { background: var(--white); }
.bg-alt      { background: var(--alt-bg); }

.section-header h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}
.lead-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.body-text {
  font-size: 0.97rem;
  line-height: 1.7;
  color: #3a4555;
  margin-bottom: 1rem;
}

/* Eyebrow labels */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 0.6rem;
}
.eyebrow-dark  { color: var(--navy); }
.eyebrow-light { color: var(--electric); }

/* ---- BUTTONS ---- */
.btn-electric {
  background: var(--electric);
  color: var(--navy);
  border: 2px solid var(--electric);
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.btn-electric:hover {
  background: var(--elec-h);
  border-color: var(--elec-h);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  font-weight: 700;
  transition: background 0.2s;
}
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }

/* =========================================================
   NAVBAR
   ========================================================= */
#mainNav {
  background: rgba(12, 26, 46, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(245,196,0,0.25);
  padding: 10px 0;
}
.navbar-brand {
  text-decoration: none;
  gap: 10px;
}
.navbar-brand img {
  height: 48px;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.25));
}
.brand-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.navbar-nav .nav-link {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82) !important;
  padding: 6px 10px;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover { color: var(--electric) !important; }
.btn-call {
  background: var(--electric);
  color: var(--navy) !important;
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.btn-call:hover { background: var(--elec-h); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 90px 24px 60px;
}
.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(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%);
}
.hero-content {
  position: relative;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  padding: 3rem 4rem;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(245,196,0,0.15);
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--electric);
  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);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 5rem);
  color: var(--white);
  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);
  margin-bottom: 1rem;
  line-height: 1.05;
  word-break: break-word;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  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);
  margin-bottom: 0.6rem;
}
.hero-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  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.9);
  margin-bottom: 0;
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  background: var(--navy);
  padding: 60px 0;
  border-top: 3px solid var(--electric);
}
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--electric);
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* =========================================================
   SERVICES
   ========================================================= */
.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(12,26,46,0.11);
  border-color: var(--electric);
}
.svc-icon {
  font-size: 1.6rem;
  color: var(--electric);
  background: rgba(245,196,0,0.12);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-cell {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  background: var(--alt-bg);
}
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-cell:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(12,26,46,0.90) 0%, transparent 100%);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 2.5rem 1rem 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-cell:hover .gallery-cap { opacity: 1; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-photo {
  box-shadow: 0 24px 64px rgba(12,26,46,0.16);
  width: 100%;
}
.cred-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--alt-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.cred-pill i { font-size: 1.4rem; color: var(--electric); }
.cred-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.cred-val { font-weight: 700; font-size: 0.95rem; color: var(--navy); }

.team-list { display: flex; flex-direction: column; gap: 10px; }
.team-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}
.team-member i { color: var(--electric); font-size: 1rem; width: 20px; text-align: center; }

/* =========================================================
   SPECIAL OFFER
   ========================================================= */
.special-section {
  background: var(--electric);
  padding: 80px 0;
}
.special-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.special-sub {
  font-size: 1rem;
  color: rgba(12,26,46,0.75);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.special-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.special-bullets li {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.special-bullets i { color: var(--navy); }
.price-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 1.75rem 3rem;
  line-height: 1.1;
  box-shadow: 0 12px 32px rgba(12,26,46,0.2);
}
.price-from  { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.6; }
.price-num   { font-family: 'Oswald', sans-serif; font-size: 3.2rem; font-weight: 800; color: var(--electric); }
.price-note  { font-size: 0.8rem; opacity: 0.6; }

/* =========================================================
   EMERGENCY SECTION
   ========================================================= */
.emergency-section {
  background: #0f1923;
  padding: 96px 0;
}
.emerg-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.emerg-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.emerg-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.97rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.emerg-list li:last-child { border-bottom: none; }
.emerg-list i { color: var(--electric); font-size: 0.9rem; }
.emergency-section h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}

/* =========================================================
   INSPECTION STRIP
   ========================================================= */
.inspect-strip {
  background: var(--off-white);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.inspect-strip h3 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

/* =========================================================
   SERVICE AREAS
   ========================================================= */
.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.area-pill {
  background: var(--white);
  border: 2px solid var(--electric);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 22px;
  border-radius: 100px;
  cursor: default;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.area-pill:hover {
  background: var(--electric);
  color: var(--navy);
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews-bg { background: var(--navy); }
.review-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  transition: background 0.2s;
}
.review-card:hover { background: rgba(255,255,255,0.12); }
.review-stars {
  font-size: 1.5rem;
  color: var(--electric);
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
}
.review-platform {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.review-count {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.3rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}
.contact-list i {
  color: var(--electric);
  font-size: 1rem;
  margin-top: 3px;
  width: 18px;
  text-align: center;
}
.contact-list a { color: var(--text); font-weight: 500; }
.contact-list a:hover { color: var(--electric); }

.hours-table { border-collapse: collapse; width: 100%; }
.hours-table td {
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.hours-table td:first-child { color: var(--muted); font-weight: 600; width: 110px; }
.text-electric { color: var(--electric); }

.map-frame { border: 1px solid var(--border); }

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  border: 2px solid rgba(255,255,255,0.15);
}
.social-btn:hover { background: var(--electric); color: var(--navy); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy);
  padding: 52px 0;
  border-top: 3px solid var(--electric);
}
.ftr-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 4px;
}
.ftr-detail { font-size: 0.83rem; color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.ftr-lic    { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-bottom: 2px; }
.ftr-copy   { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 6px; margin-bottom: 0; }
.ftr-powered { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin: 0; }
.ftr-powered a { color: var(--electric); font-weight: 700; }
.ftr-powered a:hover { color: var(--white); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
  .hero-content { padding: 2rem 1.75rem; max-width: 100%; }
  .navbar-collapse {
    background: rgba(10, 22, 42, 0.99);
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.25rem 1.5rem;
    margin-top: 8px;
  }
  .navbar-nav .nav-link {
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .btn-call { margin-top: 12px; }
}

@media (max-width: 767px) {
  .section-pad { padding: 64px 0; }
  .stats-strip { padding: 44px 0; }
  .hero-content { padding: 1.5rem 1.25rem; }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.06em; }
  .eyebrow-long { display: none; }
  .hero-subtitle { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 16px 48px; }
  .hero-content { padding: 1.25rem 1rem; }
  .hero-title   { font-size: clamp(1.7rem, 8vw, 2.5rem); }
  .price-badge  { padding: 1.5rem 2rem; }
  .price-num    { font-size: 2.6rem; }
}
