/* Busca soluções — visual alinhado ao catálogo / Qual Unidade / locação. */

@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800&family=Exo+2:wght@700;900&display=swap");

.ecox-busca-solucoes {
  --ecox-bs-red: #c8102e;
  --ecox-bs-black: #111111;
  --ecox-bs-mid: #4a4a4a;
  --ecox-bs-muted: #888888;
  --ecox-bs-white: #ffffff;
  --ecox-bs-bg: #fafafa;
  --ecox-bs-rule: #e0e0e0;
  --ecox-bs-font-display: "Exo 2", system-ui, sans-serif;
  --ecox-bs-font-text: "Barlow", system-ui, sans-serif;
  --ecox-bs-dur: 0.2s;
  --ecox-bs-dur-slow: 0.35s;
  --ecox-bs-dur-img: 0.4s;
  --ecox-bs-tracking-ui: 0.06em;
  margin: 0;
  padding: 0;
  background: var(--ecox-bs-bg);
  font-family: var(--ecox-bs-font-text);
  color: var(--ecox-bs-mid);
}

.ecox-busca-solucoes__inner {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.ecox-busca-solucoes__head {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ecox-bs-rule);
}

.ecox-busca-solucoes__head--bare {
  margin-bottom: 20px;
  padding-bottom: 0;
  border-bottom: 0;
}

.ecox-busca-solucoes__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ecox-busca-solucoes__brand-rule {
  flex-shrink: 0;
  width: 3px;
  height: 22px;
  background: var(--ecox-bs-red);
}

.ecox-busca-solucoes__eyebrow {
  font-size: 0.6rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: var(--ecox-bs-tracking-ui);
  line-height: 1.35;
}

.ecox-busca-solucoes__title {
  margin: 0 0 10px;
  font-family: var(--ecox-bs-font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ecox-bs-black);
}

.ecox-busca-solucoes__subtitle {
  margin: 0 0 22px;
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ecox-bs-muted);
}

.ecox-busca-solucoes__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  border: 2px solid var(--ecox-bs-red);
  background: var(--ecox-bs-white);
  transition: border-color var(--ecox-bs-dur), box-shadow var(--ecox-bs-dur);
}

.ecox-busca-solucoes__input-wrap:focus-within {
  border-color: var(--ecox-bs-red);
  box-shadow: 0 0 0 1px var(--ecox-bs-red);
}

.ecox-busca-solucoes__icon {
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--ecox-bs-muted);
}

.ecox-busca-solucoes__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px 14px;
  border: 0;
  background: transparent;
  font-family: var(--ecox-bs-font-text);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ecox-bs-black);
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.ecox-busca-solucoes__input::placeholder {
  color: var(--ecox-bs-muted);
}

.ecox-busca-solucoes__clear {
  flex-shrink: 0;
  margin-right: 10px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--ecox-bs-muted);
  cursor: pointer;
  transition: color var(--ecox-bs-dur);
}

.ecox-busca-solucoes__clear:hover,
.ecox-busca-solucoes__clear:focus-visible {
  color: var(--ecox-bs-red);
  outline: none;
}

.ecox-busca-solucoes__message {
  margin: 0;
  padding: 28px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ecox-bs-muted);
}

.ecox-busca-solucoes__message--error {
  color: var(--ecox-bs-red);
}

.ecox-busca-solucoes__section {
  margin-top: 28px;
}

.ecox-busca-solucoes__section:first-child {
  margin-top: 0;
}

.ecox-busca-solucoes__section-title {
  margin: 0 0 14px;
  font-family: var(--ecox-bs-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--ecox-bs-tracking-ui);
  text-transform: uppercase;
  color: var(--ecox-bs-muted);
}

.ecox-busca-solucoes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--ecox-bs-rule);
}

.ecox-busca-solucoes__grid--segmentos {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.ecox-busca-solucoes__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  overflow: hidden;
  background: var(--ecox-bs-white);
  text-decoration: none;
  color: inherit;
  transition: background var(--ecox-bs-dur);
}

.ecox-busca-solucoes__card:hover,
.ecox-busca-solucoes__card:focus-visible {
  background: var(--ecox-bs-bg);
  outline: none;
}

.ecox-busca-solucoes__card-rule {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--ecox-bs-rule);
  transition: background var(--ecox-bs-dur-slow);
}

.ecox-busca-solucoes__card:hover .ecox-busca-solucoes__card-rule,
.ecox-busca-solucoes__card:focus-visible .ecox-busca-solucoes__card-rule {
  background: var(--ecox-bs-red);
}

.ecox-busca-solucoes__media {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
}

.ecox-busca-solucoes__media img,
.ecox-busca-solucoes__placeholder {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.ecox-busca-solucoes__media img {
  filter: grayscale(15%);
  transition: filter var(--ecox-bs-dur-slow), transform var(--ecox-bs-dur-img);
}

.ecox-busca-solucoes__card:hover .ecox-busca-solucoes__media img,
.ecox-busca-solucoes__card:focus-visible .ecox-busca-solucoes__media img {
  filter: grayscale(0);
  transform: scale(1.03);
}

.ecox-busca-solucoes__placeholder {
  background: linear-gradient(135deg, #f3f3f3 0%, #ebebeb 100%);
}

.ecox-busca-solucoes__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: var(--ecox-bs-tracking-ui);
  text-transform: uppercase;
  color: var(--ecox-bs-red);
}

.ecox-busca-solucoes__card-title {
  margin: 0;
  font-family: var(--ecox-bs-font-text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ecox-bs-black);
}

.ecox-busca-solucoes__card-subtitle {
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ecox-bs-mid);
}

.ecox-busca-solucoes__card-spec {
  margin: 10px 0 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ecox-bs-muted);
}

.ecox-busca-solucoes__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ecox-bs-rule);
}

.ecox-busca-solucoes__card-link {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: var(--ecox-bs-tracking-ui);
  text-transform: uppercase;
  color: var(--ecox-bs-red);
}

/* Segmentos compactos — mais itens por linha. */
.ecox-busca-solucoes__card--segmento {
  padding: 14px 12px 16px;
}

.ecox-busca-solucoes__media--compact {
  margin-bottom: 10px;
}

.ecox-busca-solucoes__media--compact img,
.ecox-busca-solucoes__media--compact .ecox-busca-solucoes__placeholder {
  height: 88px;
}

.ecox-busca-solucoes__card-kicker {
  margin: 0 0 4px;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: var(--ecox-bs-tracking-ui);
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ecox-bs-muted);
}

.ecox-busca-solucoes__card-title--sm,
.ecox-busca-solucoes__card--segmento .ecox-busca-solucoes__card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: none;
}

@media (max-width: 640px) {
  .ecox-busca-solucoes__head {
    margin-bottom: 22px;
    padding-bottom: 20px;
  }

  .ecox-busca-solucoes__head--bare {
    margin-bottom: 16px;
    padding-bottom: 0;
  }

  .ecox-busca-solucoes__card {
    padding: 24px 20px;
  }

  .ecox-busca-solucoes__card--segmento {
    padding: 12px 10px 14px;
  }

  .ecox-busca-solucoes__media img,
  .ecox-busca-solucoes__placeholder {
    height: 150px;
  }

  .ecox-busca-solucoes__media--compact img,
  .ecox-busca-solucoes__media--compact .ecox-busca-solucoes__placeholder {
    height: 72px;
  }

  .ecox-busca-solucoes__grid--segmentos {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

.ecox-busca-solucoes .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
