/* EP-HOME-V2-001 - homepage sections (1 Dec 2026). Front page only. */

/* Facts slider (Sectiunea 3) */
.ep-facts-band {
  background: #fff6ef;
  border-top: 1px solid #f6e3d6;
  border-bottom: 1px solid #f6e3d6;
  padding: 14px 0 8px;
}
.ep-facts-band .ep-pc.ep-facts { position: relative; margin: 0; padding: 0; }
.ep-facts .ep-pc-header { margin: 0; padding: 0; height: 0; min-height: 0; }
.ep-facts .ep-pc-nav {
  position: absolute;
  top: calc(50% - 30px);
  left: -12px;
  right: -12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.ep-facts .ep-pc-arrow { pointer-events: auto; }
.ep-facts .ep-pc-list { gap: 12px; padding: 2px; }
.ep-facts .ep-pc-card.ep-fact {
  flex: 0 0 calc((100% - 36px) / 4);
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px #f2e2d5;
  font-size: 13px;
  line-height: 1.45;
  color: #4a4f57;
}
.ep-facts .ep-pc-card.ep-fact:hover {
  transform: none;
  box-shadow: 0 0 0 1px #f2e2d5;
}
.ep-fact__ic {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #ffe3d0;
  color: #c94200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-fact__ic svg { width: 16px; height: 16px; }
.ep-fact__tx strong {
  display: block;
  margin-bottom: 2px;
  color: #0e1116;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}
.ep-fact__tx a { color: #b33a00; text-decoration: underline; }
.ep-facts .ep-pc-dots { margin-top: 10px; }

/* H1 + intro (Sectiunea 2) */
.ep-home-v2-intro { padding-top: 26px; padding-bottom: 4px; }
.ep-home-v2-h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0e1116;
}

/* Category tiles (Sectiunea 4): fixed grid from 769px, slider below */
@media (min-width: 769px) {
  .ep-home-cats .ep-pc-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  .ep-home-cats .ep-pc-card { flex: none; width: auto; min-width: 0; }
  .ep-home-cats .ep-pc-nav,
  .ep-home-cats .ep-pc-dots { display: none !important; }
}
/* Tile name is plain text in the link now (no H3), same look */
.ep-home-cats .ep-pc-title { margin: 0; }
.ep-home-cats .ep-tile-name { font: inherit; }
@media (min-width: 1025px) {
  .ep-home-cats .ep-pc-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Brands (Sectiunea 8a) */
.ep-home-brands { padding: 32px 0 8px; }
.ep-home-brands__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.ep-home-brands__list li { margin: 0; }
.ep-home-brands__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 18px 8px 8px;
  border: 1px solid #eee9e3;
  border-radius: 14px;
  background: #fff;
  color: #0e1116;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ep-home-brands__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 17, 22, .08);
  color: #0e1116;
}
.ep-home-brands__logo {
  width: 96px;
  height: 56px;
  border-radius: 10px;
  background: #f7f4f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ep-home-brands__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Own liquids (Sectiunea 9): dark band */
.ep-own {
  background: #0e1116;
  color: #b8bec7;
  padding: 44px 0;
  margin-top: 32px;
}
.ep-own .ep-pc-heading { color: #fff; margin: 0 0 10px; }
.ep-own__lede {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #aeb4bd;
}
.ep-own-brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ep-own-brands li {
  margin: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: #171b22;
  box-shadow: inset 0 0 0 1px #242a33;
  font-size: 14px;
  line-height: 1.55;
}
.ep-own-brands li:first-child {
  grid-column: 1 / -1;
  padding: 22px 24px;
  font-size: 15px;
  color: #d6c3b6;
  background: linear-gradient(135deg, #2a1408 0%, #171b22 60%);
  box-shadow: inset 0 0 0 1px #5a2a10;
}
.ep-own-brands strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 15.5px;
}
.ep-own-brands li:first-child strong { font-size: 19px; }
.ep-own-brands strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: #c94200;
  box-shadow: 0 0 0 4px rgba(201, 66, 0, .22);
  vertical-align: 2px;
}
.ep-own-brands a { color: #ff9a62; text-decoration: underline; }
.ep-own-brands a:hover { color: #ffb98f; }

/* Guides (Sectiunea 10) */
.ep-guides-sec { padding: 40px 0 48px; }
.ep-guides {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ep-guide {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eee9e3;
  border-radius: 16px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.ep-guide:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 17, 22, .09);
}
.ep-guide__link {
  display: flex;
  flex-direction: column;
  color: #0e1116;
  text-decoration: none;
}
.ep-guide__link::after { content: ""; position: absolute; inset: 0; }
.ep-guide__img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f7f4f0;
}
.ep-guide__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.ep-guide:hover .ep-guide__img img { transform: scale(1.03); }
.ep-guide__title {
  display: block;
  padding: 14px 16px 4px;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 700;
}
.ep-guide__text {
  display: block;
  padding: 0 16px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a4f57;
}

/* Focus */
.ep-home-brands__link:focus-visible,
.ep-guide__link:focus-visible,
.ep-own-brands a:focus-visible,
.ep-fact__tx a:focus-visible {
  outline: 2px solid #c94200;
  outline-offset: 3px;
  border-radius: 8px;
}

/* Tablet */
@media (max-width: 1024px) {
  .ep-facts .ep-pc-card.ep-fact { flex-basis: calc((100% - 12px) / 2); }
  .ep-own-brands,
  .ep-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone */
@media (max-width: 768px) {
  .ep-facts .ep-pc-card.ep-fact { flex-basis: 80%; }
  .ep-facts .ep-pc-nav { display: none; }
  .ep-home-v2-h1 { font-size: 23px; }
  .ep-own { padding: 32px 0; }
  .ep-own-brands { grid-template-columns: 1fr; }
  .ep-guides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .ep-guides::-webkit-scrollbar { display: none; }
  .ep-guide { flex: 0 0 78%; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .ep-guide,
  .ep-guide__img img,
  .ep-home-brands__link { transition: none; }
  .ep-guide:hover,
  .ep-home-brands__link:hover,
  .ep-guide:hover .ep-guide__img img { transform: none; }
}
