/* ==========================================================================
   enginepartspro.com — new homepage stylesheet
   Scope: everything is namespaced under .epp-home so it cannot leak into
   catalog / cart / account pages that still use the legacy theme 133 CSS.
   Loads AFTER bootstrap.css, core.css and responsive.css.
   ========================================================================== */

.epp-home {
  --epp-blue: #113a8c;
  --epp-blue-dark: #0a2565;
  --epp-blue-light: #1c56c9;
  --epp-yellow: #ffd200;
  --epp-text: #1e2430;
  --epp-page: #eef1f5;
  --epp-border: #c9d3e2;
  font-family: Lato, "Helvetica Neue", Arial, sans-serif;
  color: var(--epp-text);
  background: var(--epp-page);
}
.epp-home *,
.epp-home *::before,
.epp-home *::after { box-sizing: border-box; }

.epp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ---------- Utility bar (phone / email) ---------------------------------- */
.epp-utility {
  background: var(--epp-blue-dark);
  color: #fff;
  font-size: 15px;
  text-align: center;
  padding: 8px 15px;
}
.epp-utility a { color: #fff; text-decoration: none; }
.epp-utility a:hover { text-decoration: underline; }
.epp-utility .epp-sep { opacity: .5; margin: 0 18px; }
.epp-utility .fa { margin-right: 8px; }

/* ---------- Masthead ---------------------------------------------------- */
.epp-masthead {
  background: #0d2f77 url("../img/header-bg.jpg") repeat-x center top;
  background-size: auto 100%;
  padding: 14px 0 16px;
  text-align: center;
}
.epp-masthead-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
/* Rendered at or below native pixel size so the production PNGs stay crisp
   (logo.png is 214x99, sitelink.png is 561x40). */
.epp-logo img { height: 84px; width: auto; }
.epp-wordmark img { max-width: 560px; width: 100%; height: auto; }
.epp-tagline {
  margin: 6px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.epp-tagline::before,
.epp-tagline::after {
  content: "";
  width: 64px; height: 0;
  border-top: 4px solid var(--epp-yellow);
  border-bottom: 4px solid var(--epp-yellow);
  height: 11px;
}

/* ---------- Primary navigation ------------------------------------------ */
.epp-nav {
  background: linear-gradient(#ffffff, #e6e9ee);
  border-bottom: 1px solid var(--epp-border);
}
.epp-nav ul {
  display: flex;
  justify-content: center;
  gap: 6%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.epp-nav a {
  display: block;
  padding: 16px 20px;
  color: var(--epp-blue);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}
.epp-nav a:hover,
.epp-nav a:focus,
.epp-nav .is-active a {
  background: #dde3ec;
  color: var(--epp-blue-dark);
}
.epp-nav-toggle {
  display: none;
  width: 100%;
  background: none;
  border: 0;
  padding: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--epp-blue);
}

/* ---------- Main grid: login + hero ------------------------------------- */
.epp-main { padding: 26px 0 10px; }
.epp-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  align-items: start;
}

/* Login card */
.epp-login {
  background: #fff;
  border: 1px solid var(--epp-border);
  border-radius: 6px;
  overflow: hidden;
}
.epp-login h2 {
  margin: 0;
  padding: 18px 20px 8px;
  text-align: center;
  color: var(--epp-blue);
  font-size: 28px;
  font-weight: 700;
}
.epp-login form { padding: 6px 20px 22px; }
.epp-field {
  display: flex;
  margin-bottom: 12px;
  border: 1px solid var(--epp-border);
  border-radius: 4px;
  overflow: hidden;
}
.epp-field .epp-field-icon {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--epp-blue);
  color: #fff;
}
.epp-field input {
  flex: 1;
  border: 0;
  padding: 11px 12px;
  font-size: 15px;
  background: #f5f6f8;
  min-width: 0;
}
.epp-field input:focus { outline: 2px solid var(--epp-blue-light); outline-offset: -2px; }
.epp-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.epp-btn-primary {
  background: var(--epp-blue);
  border: 1px solid var(--epp-blue-dark);
  color: #fff;
}
.epp-btn-primary:hover { background: var(--epp-blue-dark); color: #fff; }
.epp-btn-secondary {
  background: #fff;
  border: 1px solid var(--epp-blue);
  color: var(--epp-blue);
  margin-top: 12px;
}
.epp-btn-secondary:hover { background: #eef2fa; color: var(--epp-blue-dark); }
.epp-login-remember { font-size: 14px; margin: 2px 0 12px; }
.epp-login-message { margin: 0 20px 10px; font-size: 14px; }

/* Hero banner / carousel frame */
.epp-hero {
  background: #fff;
  border: 1px solid var(--epp-border);
  border-radius: 6px;
  padding: 6px;
}
.epp-hero img { display: block; width: 100%; height: auto; border-radius: 3px; }

/* ---------- Section headings (rule + label + chevrons) ------------------- */
.epp-section { padding: 26px 0 6px; }
.epp-section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.epp-section-head h2 {
  margin: 0;
  color: var(--epp-blue);
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
}
.epp-rule {
  flex: 1;
  height: 0;
  border-top: 2px solid var(--epp-blue);
  border-bottom: 2px solid var(--epp-blue);
  height: 6px;
}

/* ---------- Applications we serve --------------------------------------- */
.epp-apps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.epp-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 128px;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid var(--epp-blue);
  border-radius: 4px;
  color: var(--epp-blue);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.epp-app:hover,
.epp-app:focus {
  color: var(--epp-blue-dark);
  box-shadow: 0 4px 12px rgba(17,58,140,.22);
  transform: translateY(-2px);
  text-decoration: none;
}
.epp-app img { flex: 0 0 auto; height: 52px; width: auto; max-width: 100%; object-fit: contain; }
/* Icons are SVG: crisp at any size / pixel density. */
.epp-app span { flex: 0 0 auto; }

/* ---------- Featured manufacturers -------------------------------------- */
.epp-mfr {
  background: linear-gradient(#0d43ad, #062885 55%, #041d57);
  border: 2px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  padding: 12px 14px;
}
.epp-mfr-strip {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
}
.epp-mfr-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 5px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.epp-mfr-strip a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
/* Brands whose logo is drawn for dark backgrounds get a dark plate. */
.epp-mfr-strip a.is-dark { background: #14181c; }
.epp-mfr-strip img {
  display: block;
  width: auto;
  height: auto;
  max-height: 38px;
  max-width: 100%;
}
.epp-mfr-all {
  margin: 12px 0 0;
  text-align: center;
  font-size: 17px;
}
.epp-mfr-all a {
  color: var(--epp-blue);
  font-weight: 700;
  text-decoration: underline;
}
.epp-mfr-all a:hover { color: var(--epp-blue-dark); }

/* ---------- Footer ------------------------------------------------------ */
.epp-footer {
  background: var(--epp-blue);
  color: #fff;
  padding: 12px 15px;
  text-align: center;
  font-size: 15px;
}
.epp-footer a { color: #fff; text-decoration: none; }
.epp-footer a:hover { text-decoration: underline; }
.epp-footer .epp-sep { opacity: .55; margin: 0 14px; }
.epp-legal {
  background: var(--epp-blue-dark);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 13px;
  padding: 8px 15px;
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 991px) {
  .epp-grid { grid-template-columns: 1fr; }
  .epp-login { max-width: 420px; margin: 0 auto; }
  .epp-apps { grid-template-columns: repeat(3, 1fr); }
  .epp-mfr-strip { grid-template-columns: repeat(6, 1fr); }
  .epp-tagline { font-size: 20px; }
  .epp-logo img { height: 68px; }
}
@media (max-width: 767px) {
  .epp-nav-toggle { display: block; }
  .epp-nav ul { display: none; flex-direction: column; }
  .epp-nav.is-open ul { display: flex; }
  .epp-nav ul { gap: 0; }
  .epp-nav a { text-align: center; border-top: 1px solid var(--epp-border); }
  .epp-apps { grid-template-columns: repeat(2, 1fr); }
  .epp-mfr-strip { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .epp-mfr-strip a { min-height: 44px; }
  .epp-mfr-strip img { max-height: 30px; }
  .epp-section-head h2 { white-space: normal; font-size: 20px; }
  .epp-utility .epp-sep { display: block; height: 0; overflow: hidden; margin: 4px 0; }
  .epp-tagline { font-size: 17px; }
  .epp-tagline::before, .epp-tagline::after { width: 34px; }
}
