/* E.R. Services — Styles
   Fonts: Oswald (headings) + Nunito Sans (body) via Google Fonts
   Palette: Navy #0E1F33 | Steel Blue #1C5FA8 | Amber #F59E0B | White #FFFFFF
*/
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --navy:    #0E1F33;
  --navy2:   #162C47;
  --steel:   #1C5FA8;
  --steel2:  #174E8C;
  --amber:   #F59E0B;
  --amber2:  #D97706;
  --white:   #FFFFFF;
  --offwhite:#F4F6F9;
  --mid:     #6B7280;
  --text:    #1E293B;
  --border:  #E2E8F0;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel2); }
h1, h2, h3, h4, h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  background: var(--amber);
  color: var(--navy);
  padding: 10px 18px;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding: 7px 0;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--amber); }
.topbar a:hover { text-decoration: underline; }
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 50px; width: auto; }
.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
}
.logo-text em { color: var(--steel); font-style: normal; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--steel);
  border-bottom-color: var(--amber);
}
.nav-cta {
  background: var(--amber) !important;
  color: var(--navy) !important;
  padding: 8px 18px !important;
  border-radius: 4px !important;
  border-bottom: none !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--amber2) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://www.erservicesclt.com/wp-content/uploads/2020/11/slide-plmb-trk.jpg') center/cover no-repeat;
  opacity: 0.38;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(14,31,51,0.95) 45%, rgba(28,95,168,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease both;
}
.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--white);
  max-width: 680px;
  margin-bottom: 18px;
  animation: fadeUp 0.5s 0.1s ease both;
}
.hero-content h1 .hl { color: var(--amber); }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  margin-bottom: 36px;
  animation: fadeUp 0.5s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.3s ease both;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.45s ease both;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proof-icon {
  width: 40px;
  height: 40px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.proof-item strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
.proof-item small { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* ===== EMERGENCY BAR ===== */
.emergency-bar {
  background: var(--amber);
  color: var(--navy);
  text-align: center;
  padding: 13px 24px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.emergency-bar a { color: var(--navy); font-weight: 700; text-decoration: underline; }

/* ===== LAYOUT ===== */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.bg-offwhite { background: var(--offwhite); }
.bg-navy { background: var(--navy); }
.bg-steel { background: var(--steel2); }

.eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.bg-navy .eyebrow, .bg-steel .eyebrow { color: var(--amber); }

.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--navy); margin-bottom: 14px; }
.bg-navy .section-title, .bg-steel .section-title { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 580px;
  margin-bottom: 48px;
}
.bg-navy .section-lead, .bg-steel .section-lead { color: rgba(255,255,255,0.72); }

/* ===== STATS ===== */
.stats-strip {
  background: var(--steel2);
  padding: 36px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.btn-amber { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.btn-amber:hover { background: var(--amber2); border-color: var(--amber2); color: var(--navy); }

.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

.btn-steel { background: var(--steel); color: var(--white); border-color: var(--steel); }
.btn-steel:hover { background: var(--steel2); border-color: var(--steel2); color: var(--white); }

.btn-lg { padding: 15px 32px; font-size: 1.1rem; }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--steel);
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.svc-card-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  width: 48px;
  height: 48px;
  background: rgba(28,95,168,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.svc-card p { font-size: 0.88rem; color: var(--mid); }

/* Full services page */
.svc-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.sfc {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: 6px;
  border-left: 4px solid var(--amber);
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.sfc:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.1); }
.sfc-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.sfc h3 { font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.sfc p { font-size: 0.82rem; color: var(--mid); }

/* ===== SPLIT LAYOUT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-img { border-radius: 8px; overflow: hidden; box-shadow: 0 6px 32px rgba(0,0,0,0.15); }
.split-img img { width: 100%; height: 400px; object-fit: cover; }

/* ===== CHECK LIST ===== */
.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '';
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--steel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/13px no-repeat;
  border-radius: 50%;
}

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: var(--navy2);
  border-radius: 8px;
  padding: 40px 44px;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: 'Oswald', sans-serif;
  font-size: 9rem;
  color: var(--amber);
  opacity: 0.15;
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
}
.testimonial-stars { color: var(--amber); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-quote {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-byline {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.05em;
}

/* ===== PROGRAMS ===== */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.program-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255,255,255,0.04);
}
.program-card h3 { font-size: 1.3rem; color: var(--amber); margin-bottom: 10px; }
.program-card p { font-size: 0.9rem; color: rgba(255,255,255,0.72); line-height: 1.7; }

/* ===== VALUE CARDS ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.value-icon { font-size: 2.4rem; margin-bottom: 16px; }
.value-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.value-card p { font-size: 0.9rem; color: var(--mid); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}
.cd-icon {
  width: 46px;
  height: 46px;
  background: rgba(28,95,168,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cd-text strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.cd-text p, .cd-text a { font-size: 0.95rem; color: #374151; line-height: 1.5; }
.cd-text a { color: var(--steel); }
.cd-text a:hover { text-decoration: underline; }

.locations-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.loc-card {
  background: var(--offwhite);
  border-radius: 6px;
  border-top: 3px solid var(--amber);
  padding: 18px;
}
.loc-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.loc-card p { font-size: 0.85rem; color: var(--mid); line-height: 1.5; }

/* ===== FORM ===== */
.form-wrap {
  background: var(--offwhite);
  border-radius: 10px;
  padding: 40px;
}
.form-wrap h2 { font-size: 1.9rem; color: var(--navy); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #D1D5DB;
  border-radius: 4px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(28,95,168,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--navy);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; }
.page-hero .hl { color: var(--amber); }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .cur { color: var(--amber); }

/* ===== HVAC/GENERATOR section callouts ===== */
.division-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.division-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.division-card img { width: 100%; height: 220px; object-fit: cover; }
.division-card-body {
  padding: 24px;
  background: var(--white);
  border-top: 4px solid var(--steel);
}
.division-card-body h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.division-card-body p { font-size: 0.9rem; color: var(--mid); margin-bottom: 16px; }

/* ===== FOOTER ===== */
.site-footer { background: #070F1A; color: rgba(255,255,255,0.7); }
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-about p {
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 260px;
}
.footer-logo img { height: 44px; }
.footer-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--amber);
  display: inline-block;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-col a:hover { color: var(--amber); }
.footer-col p { font-size: 0.88rem; margin-bottom: 8px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6) !important;
  transition: background 0.2s, color 0.2s !important;
}
.footer-social a:hover { background: var(--amber); color: var(--navy) !important; }
.footer-social a:focus-visible { outline: 2px solid var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-img img { height: 280px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .division-grid { grid-template-columns: 1fr; }
  .locations-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.15rem; }
  .site-header { position: relative; }
  .topbar { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero { min-height: auto; }
  .hero-content { padding: 60px 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 2.4rem; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 20px; }
  .hero-proof { flex-direction: column; gap: 14px; }
  .services-grid { grid-template-columns: 1fr; }
}
