/* Portal Enhancement Flyer (news template) — scoped under .epic-flyer only. */

/* Cooper Hewitt: Empire branding-guide typeface. TTFs sourced from the
   marketing site (empireautoparts.com/fonts). Weights available: Book (400),
   Semibold (600), Heavy (800) — flyer rules use exactly these weights. */
@font-face {
  font-family: "Cooper Hewitt";
  src: url("/assets/CooperHewitt-Book-02b30029.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cooper Hewitt";
  src: url("/assets/CooperHewitt-Semibold-f9533fd5.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cooper Hewitt";
  src: url("/assets/CooperHewitt-Heavy-00f9c34d.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.epic-flyer {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  font-family: "Cooper Hewitt", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}
/* The design system sets font-family on heading elements directly, which
   beats inheritance from the container — pin flyer headings to the brand
   typeface explicitly. */
.epic-flyer h1,
.epic-flyer h2,
.epic-flyer h3,
.epic-flyer h4 {
  font-family: inherit;
}

.epic-flyer .ef-gold { color: #f5b31c; }

.epic-flyer .ef-header {
  background: #0e2340;
  color: #fff;
  text-align: center;
  padding: 2.5rem 2rem 1.75rem;
}
.epic-flyer .ef-logo {
  width: 190px;
  max-width: 60%;
  height: auto;
  margin-bottom: 1.25rem;
}
.epic-flyer .ef-header h1 {
  font-weight: 800;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .epic-flyer .ef-header h1 { white-space: normal; }
}
.epic-flyer .ef-subtitle { font-size: 1.05rem; margin: 0; color: #e8edf5; }

.epic-flyer .ef-intro {
  background: #e9eaec;
  text-align: center;
  padding: 1.5rem 3rem;
}
.epic-flyer .ef-intro p { margin: 0; color: #333; }

.epic-flyer .ef-body { padding: 1.5rem 2.5rem 0; }

.epic-flyer .ef-section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.epic-flyer .ef-section-label span {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.epic-flyer .ef-section-label hr {
  flex: 1;
  border-top: 1px solid #9aa3af;
  margin: 0;
  opacity: 1;
}

.epic-flyer .ef-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.epic-flyer .ef-card {
  background: #e8edf5;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}
.epic-flyer .ef-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.epic-flyer .ef-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: #f5b31c;
  color: #0e2340;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.epic-flyer .ef-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0e2340;
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #3f7ec1;
}
.epic-flyer .ef-card p { margin: 0; font-size: 0.95rem; color: #333; }

.epic-flyer .ef-cta {
  background: #3f7ec1;
  color: #fff;
  text-align: center;
  padding: 1.25rem 2rem;
}
.epic-flyer .ef-cta-lead {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.epic-flyer .ef-cta p:last-child { margin: 0; }

.epic-flyer .ef-locations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
}
.epic-flyer .ef-location {
  background: #e8edf5;
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
}
.epic-flyer .ef-location h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.epic-flyer .ef-location p { margin: 0; color: #555; line-height: 1.45; }
.epic-flyer .ef-location a {
  color: #3f7ec1;
  text-decoration: none;
  word-break: break-all;
}

.epic-flyer .ef-footer {
  background: #0e2340;
  color: #fff;
  padding: 2rem 2.5rem 2.5rem;
}
.epic-flyer .ef-footer h2 {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 1rem;
}
.epic-flyer .ef-footer p { margin: 0 0 0.25rem; color: #e8edf5; }

@media (max-width: 900px) {
  .epic-flyer .ef-locations { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .epic-flyer .ef-cards { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .epic-flyer .ef-locations { grid-template-columns: 1fr; }
  .epic-flyer .ef-body { padding: 1.25rem 1.25rem 0; }
}
