/*! Empório Portugal — Home premium redes sociais v1 | escopo .eph- / body.ep-home */
/* Prefixo exclusivo .eph- — não altera páginas internas */

.eph-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Topbar: e-mail + redes ——— */
body.ep-home .topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

body.ep-home .eph-topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}

body.ep-home .eph-topbar-email {
  color: #f4efe3;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
}

body.ep-home .eph-topbar-email:hover {
  color: #fff8ea;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.ep-home .eph-topbar-email:focus-visible {
  outline: 2px solid #c9a35a;
  outline-offset: 3px;
  border-radius: 2px;
}

body.ep-home .eph-topbar-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, transparent, #c9a35a, transparent);
  opacity: 0.75;
  flex-shrink: 0;
}

body.ep-home .eph-social-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.ep-home .eph-social-topbar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(201, 163, 90, 0.35);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body.ep-home .eph-social-topbar__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

body.ep-home .eph-social-topbar__link:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 163, 90, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

body.ep-home .eph-social-topbar__link:focus-visible {
  outline: 2px solid #e8d5a8;
  outline-offset: 2px;
}

/* ——— Banner institucional ——— */
body.ep-home .eph-brand-banner {
  padding-block: 1.25rem 0.5rem;
}

body.ep-home .eph-brand-banner__frame {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  background: #f7f0df;
  border: 1px solid rgba(201, 163, 90, 0.45);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(6, 61, 49, 0.1);
  overflow: hidden;
  padding: 0.65rem 0.75rem;
}

body.ep-home .eph-brand-banner__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* ——— Seção social ——— */
body.ep-home .eph-social-section {
  padding-block: 1.75rem 1.25rem;
}

body.ep-home .eph-social-section .ep-section-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

body.ep-home .eph-social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

body.ep-home .eph-social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f0df;
  border: 1px solid rgba(201, 163, 90, 0.4);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(6, 61, 49, 0.08);
  padding: 0.65rem;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

body.ep-home .eph-social-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

body.ep-home .eph-social-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 163, 90, 0.85);
  box-shadow: 0 8px 22px rgba(6, 61, 49, 0.14);
}

body.ep-home .eph-social-card:focus-visible {
  outline: 2px solid #c9a35a;
  outline-offset: 3px;
}

/* ——— Selo do Galo no rodapé ——— */
body.ep-home .eph-footer-seal-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

body.ep-home .eph-footer-seal {
  width: 92px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ——— Responsivo ——— */
@media (max-width: 1200px) {
  body.ep-home .eph-social-topbar__link {
    width: 34px;
    height: 34px;
  }

  body.ep-home .eph-social-topbar__icon {
    width: 21px;
    height: 21px;
  }

  body.ep-home .eph-footer-seal {
    width: 80px;
  }
}

@media (max-width: 768px) {
  body.ep-home .topbar__inner > span:first-child {
    display: none;
  }

  body.ep-home .topbar__inner {
    justify-content: center;
  }

  body.ep-home .eph-topbar-contact {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }

  body.ep-home .eph-social-topbar__link {
    width: 36px;
    height: 36px;
  }

  body.ep-home .eph-social-topbar__icon {
    width: 22px;
    height: 22px;
  }

  body.ep-home .eph-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 420px;
  }

  body.ep-home .eph-social-card img {
    max-height: 180px;
  }

  body.ep-home .eph-brand-banner__frame {
    border-radius: 18px;
    padding: 0.5rem;
  }

  body.ep-home .eph-footer-seal {
    width: 72px;
  }
}

@media (max-width: 420px) {
  body.ep-home .eph-topbar-contact {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  body.ep-home .eph-topbar-divider {
    display: none;
  }

  body.ep-home .eph-topbar-email {
    white-space: normal;
    text-align: center;
    font-size: 0.875rem;
  }

  body.ep-home .eph-social-topbar {
    gap: 7px;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  body.ep-home .eph-social-grid {
    grid-template-columns: 1fr;
    max-width: 220px;
  }
}
