/* ============================================================
   SOFEMA CONCIERGE — HOMEPAGE ROUND 2 POLISH
   Load AFTER concierge.css. These are targeted overrides.
   ============================================================ */

/* ————————————————————————————————————————————
   1. HERO — Tighter, more confident copy spacing
   ———————————————————————————————————————————— */
.hero__badge {
  padding: 6px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  gap: 8px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.hero__title {
  margin: 20px 0 12px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero__subtitle {
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.65;
  color: var(--concierge-navy-700);
}

.hero {
  padding-bottom: 120px;
}

/* ————————————————————————————————————————————
   2. SEARCH — Bigger, more magnetic
   ———————————————————————————————————————————— */
.search__input-wrapper {
  min-height: 62px;
  border-radius: 22px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 4px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.85);
}

.search__input-wrapper:focus-within {
  box-shadow:
    0 12px 40px rgba(14, 165, 233, 0.12),
    0 0 0 2px rgba(56, 189, 248, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.search__input {
  font-size: 1.05rem;
  padding: 16px 0;
}

/* ————————————————————————————————————————————
   3. SEARCH DROPDOWN — Clean up raw URLs
   ———————————————————————————————————————————— */
.search__suggestion-path {
  display: none !important;
}

.search__suggestion {
  padding: 12px;
  border-radius: 12px;
  gap: 10px;
}

.search__suggestion-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
}

.search__suggestion-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.search__pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(224, 242, 254, 0.9);
  color: var(--concierge-sky-700);
  letter-spacing: 0.02em;
}

.search__dropdown {
  inset: calc(100% + 10px) 0 auto;
  border-radius: 18px;
  padding: 10px;
  z-index: 150;
  max-height: 380px;
  overflow-y: auto;
  box-shadow:
    0 20px 50px rgba(10, 22, 40, 0.14),
    0 8px 20px rgba(10, 22, 40, 0.06);
}

/* Keep the open search layer above the chips row and the floating stats bar. */
.hero__content {
  z-index: 3;
}

.search {
  z-index: 4;
}

.search--expanded {
  margin-bottom: var(--search-dropdown-space, 0px);
}

.search__chips {
  position: relative;
  z-index: 1;
}

.stats {
  z-index: 1;
}

/* ————————————————————————————————————————————
   4. CATEGORY CHIPS — Single scrollable row
   ———————————————————————————————————————————— */
.search__chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.search__chips::-webkit-scrollbar {
  display: none;
}

.search__chip {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 999px;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.search__chip-icon {
  font-size: 0.92rem;
}

.search__chip--active {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
  color: var(--concierge-sky-700) !important;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.12) !important;
}

/* ————————————————————————————————————————————
   5. STATS BAR — Overlap hero/content boundary
   ———————————————————————————————————————————— */
.stats {
  margin-top: -56px;
  gap: 0;
  max-width: 660px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 12px 32px rgba(10, 22, 40, 0.08),
    0 2px 6px rgba(10, 22, 40, 0.04);
}

.stats__card {
  padding: 20px 16px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(226, 232, 240, 0.6);
}

.stats__card:last-child {
  border-right: none;
}

.stats__card,
.stats__card:first-child,
.stats__card:last-child {
  border-radius: 0;
  box-shadow: none;
}

.stats__icon {
  width: 26px;
  height: 26px;
  color: var(--concierge-sky-500);
  opacity: 0.8;
}

.stats__number {
  font-family: var(--concierge-font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--concierge-navy-900);
}

.stats__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--concierge-slate-500);
}

/* ————————————————————————————————————————————
   6. FEATURED SECTION — Polish header + cards
   ———————————————————————————————————————————— */
.main {
  padding-top: 56px;
}

.section-header {
  margin-bottom: 24px;
}

.section-header__title {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-header__subtitle {
  font-size: 0.9rem;
  color: var(--concierge-slate-500);
  margin-top: 4px;
}

/* ————————————————————————————————————————————
   7. CARDS — Tighter, more premium
   ———————————————————————————————————————————— */
.card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card::before {
  opacity: 0.35;
  width: 3px;
  top: 14px;
  bottom: 14px;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.6);
  box-shadow:
    0 16px 40px rgba(14, 165, 233, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.04);
}

.card__title {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.card__excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--concierge-slate-600);
  -webkit-line-clamp: 2;
}

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.card__icon svg {
  width: 18px;
  height: 18px;
}

.card__footer {
  margin-top: 18px;
  padding-top: 14px;
}

.card__tag {
  font-size: 0.66rem;
  padding: 3px 7px;
}

.card__cta {
  font-size: 0.88rem;
  font-weight: 700;
  gap: 6px;
}

.card__source-badge {
  font-size: 0.66rem;
  padding: 3px 8px;
  gap: 4px;
}

/* ————————————————————————————————————————————
   8. TOPICS ROW — Tighter cards
   ———————————————————————————————————————————— */
.topics {
  padding-top: 20px;
}

.topic-card {
  flex: 0 0 175px;
  padding: 18px 16px;
  border-radius: 16px;
}

.topic-card__icon {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.topic-card__name {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.topic-card__count {
  font-size: 0.78rem;
}

/* ————————————————————————————————————————————
   9. FOOTER — Tighter disclaimer
   ———————————————————————————————————————————— */
.footer__disclaimer {
  font-size: 0.88rem;
  padding: 14px 18px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.footer__disclaimer strong {
  font-weight: 700;
  display: inline;
}

.footer__grid {
  gap: 24px;
  margin-bottom: 36px;
}

.footer__brand-desc {
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.65;
}

.footer__bottom {
  padding-top: 16px;
}

/* ————————————————————————————————————————————
   10. COMMAND PALETTE — Cleaner items
   ———————————————————————————————————————————— */
.cmdk__item-desc .search__suggestion-path,
.cmdk__item .search__suggestion-path {
  display: none !important;
}

.cmdk {
  border-radius: 22px;
}

.cmdk__item {
  padding: 10px;
  border-radius: 14px;
}

.cmdk__item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

/* ————————————————————————————————————————————
   11. MOBILE REFINEMENTS
   ———————————————————————————————————————————— */
@media (max-width: 768px) {
  .hero {
    padding-bottom: 100px;
  }

  .hero__title {
    font-size: 2.2rem;
    line-height: 1.05;
  }

  .stats {
    margin-top: -44px;
    flex-direction: row;
    overflow-x: auto;
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stats::-webkit-scrollbar {
    display: none;
  }

  .stats__card {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 16px 14px;
    flex-direction: column;
    text-align: center;
  }

  .search__chips {
    justify-content: flex-start;
    padding-left: 4px;
  }

  .card {
    padding: 18px;
  }

  .card__title {
    font-size: 1.12rem;
  }
}

@media (max-width: 479px) {
  .hero__title {
    font-size: 1.95rem;
  }

  .stats {
    gap: 0;
  }

  .stats__card {
    min-width: 120px;
    padding: 14px 12px;
  }

  .stats__number {
    font-size: 1.35rem;
  }

  .stats__label {
    font-size: 0.64rem;
  }
}

/* ————————————————————————————————————————————
   12. ANIMATION REFINEMENT
   ———————————————————————————————————————————— */
.card.is-visible,
.topic-card.is-visible {
  transition: opacity 450ms ease-out, transform 450ms ease-out;
}

.stats {
  animation: concierge-fade-up 600ms 420ms ease-out both;
}

@keyframes search-ambient {
  0%,
  100% {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.06),
      0 2px 4px rgba(0, 0, 0, 0.03),
      0 0 0 1px rgba(255, 255, 255, 0.85);
  }
  50% {
    box-shadow:
      0 10px 36px rgba(14, 165, 233, 0.08),
      0 2px 4px rgba(0, 0, 0, 0.03),
      0 0 0 1px rgba(255, 255, 255, 0.9);
  }
}

.search__input-wrapper:not(:focus-within) {
  animation: search-ambient 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .search__input-wrapper:not(:focus-within) {
    animation: none;
  }
}
