/* ══════════════════════════════════════════
   EMPREENDIMENTOS PAGE — mobile-first
   ══════════════════════════════════════════ */

/* ── Header section ── */
.emp-header {
  background: #fff;
  padding-top: 75px; /* menu height */
}

.emp-header__inner {
  padding-top: 48px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.emp-header__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emp-header__heading h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2f2f2f;
  margin: 0;
  line-height: 1.3;
}

.emp-header__sub {
  font-size: 18px;
  font-weight: 500;
  color: #626261;
  margin: 0;
}

/* ── Filtros ── */
.emp-filters {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  margin-top: 8px;
}

.emp-filters__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.filter-btn {
  background: transparent;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #626261;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.filter-btn:hover:not(.filter-btn--active) {
  border-color: var(--red, #e73c38);
  color: var(--red, #e73c38);
}

.filter-btn--active {
  background: var(--red, #e73c38);
  border-color: var(--red, #e73c38);
  color: #fff;
}

.filter-btn--active:hover {
  background: var(--red, #e73c38);
  color: #fff;
}

.emp-subfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 32px;
}

/* ── Grid de cards ── */
.emp-grid-section {
  background: #fff;
}

.emp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* ── Card empreendimento ── */
.card-emp {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  overflow: hidden;
  height: 420px;
  border-bottom: 8px solid var(--red, #e73c38);
  box-shadow: 0 60px 40px -35px rgba(0,0,0,.25);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s;
}

.card-emp:hover {
  transform: translateY(-4px);
}

.card-emp__bg {
  position: absolute;
  inset: 0;
}

.card-emp__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-emp__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,.82) 100%);
}

.card-emp__logo {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  z-index: 2;
}

.card-emp__content {
  position: relative;
  z-index: 2;
  padding: 24px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-emp__info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffb786;
  text-transform: uppercase;
  margin: 0 0 2px;
  line-height: 1.2;
}

.card-emp__info p {
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
}

/* ── Feature ghost style (inside dark cards) ── */
.feature__icon--ghost {
  backdrop-filter: blur(8px);
  background: rgba(247,247,247,.08);
  border: 1px solid #ce2723;
  border-radius: 4px;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.feature__icon--ghost img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* hide filter on card-emp since features already has styles */
.card-emp .feature__label {
  opacity: .8;
  font-size: 12px;
  color: #e7e7e7;
}

.card-emp .feature__value {
  font-size: 12px;
  font-weight: 700;
  color: #e7e7e7;
  text-transform: uppercase;
}

/* hidden state for filter */
.card-emp.is-hidden {
  display: none;
}

/* ── Category sections ── */
.emp-category {
  padding-top: 48px;
  padding-bottom: 64px;
}

.emp-category--alt {
  background: #f7f7f7;
}

.emp-category__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.emp-category__tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red, #e73c38);
  background: rgba(231,60,56,.08);
  border: 1px solid rgba(231,60,56,.25);
  border-radius: 4px;
  padding: 6px 14px;
  white-space: nowrap;
}

.emp-category__line {
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

/* ── Placeholder card (no photo) ── */
.card-emp--placeholder {
  background: linear-gradient(160deg, #26384d 0%, #1e2a3a 100%);
}

.card-emp--placeholder .card-emp__overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
}

.card-emp__placeholder-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-emp__placeholder-icon img {
  width: 96px;
  height: 96px;
  opacity: .18;
  filter: brightness(0) invert(1);
}

/* ── Date on card ── */
.card-emp__date {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin: 2px 0 0;
  font-weight: 400;
}

/* ── Status badge ── */
.emp-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.emp-badge--entregue {
  background: rgba(46,158,91,.15);
  color: #5cd896;
  border: 1px solid rgba(92,216,150,.35);
}

/* ══════════════════════════════════════════
   TABLET  ≥ 768px
   ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .emp-header__heading h1 {
    font-size: 32px;
  }

  .emp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .card-emp {
    height: 460px;
  }
}

/* ══════════════════════════════════════════
   DESKTOP  ≥ 1024px
   ══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .emp-header__inner {
    padding-top: 60px;
    padding-bottom: 32px;
  }

  .emp-header__heading h1 {
    font-size: 36px;
  }

  .emp-header__sub {
    font-size: 20px;
  }

  .emp-filters {
    padding-top: 0;
  }

  .emp-filters__inner {
    padding-bottom: 40px;
    gap: 16px;
  }

  .filter-btn {
    padding: 12px 28px;
    font-size: 15px;
  }

  .emp-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .card-emp {
    height: 500px;
  }

  .card-emp__content {
    padding: 28px 30px 10px;
  }

  .card-emp__logo {
    height: 50px;
    top: 36px;
  }

  .card-emp__info h3 {
    font-size: 22px;
  }
}

/* ══════════════════════════════════════════
   WIDE  ≥ 1280px
   ══════════════════════════════════════════ */
@media (min-width: 1280px) {
  .emp-header__heading h1 {
    font-size: 40px;
  }

  .card-emp {
    height: 560px;
  }

  .card-emp__info h3 {
    font-size: 24px;
  }

  .card-emp__logo {
    height: 56px;
    top: 40px;
  }

  .emp-category {
    padding-top: 64px;
    padding-bottom: 80px;
  }
}
