/* ═══════════════════════════════════════════════════════════
   MOMMENTOS — FORNECEDORES (directório + perfil)
   ═══════════════════════════════════════════════════════════ */

.fo {
  padding-bottom: clamp(72px, 10vw, 140px);
}

/* ── Herói ───────────────────────────────────────────────── */
.fo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.fo-hero-text {
  min-width: 0;
}

.fo-title {
  margin-top: 16px;
  font-size: clamp(2.5rem, 1.3rem + 4.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 14ch;
  text-wrap: balance;
}

.fo-sub {
  margin-top: 20px;
  max-width: 50ch;
  font-size: var(--fs-md);
  color: var(--ink-3);
}

.fo-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  margin-top: 32px;
}

.fo-search > svg {
  position: absolute;
  left: 22px;
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  pointer-events: none;
}

.fo-search input {
  width: 100%;
  height: 60px;
  padding: 0 64px 0 54px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  box-shadow: var(--shadow);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}

.fo-search input::-webkit-search-cancel-button {
  display: none;
}

.fo-search input::placeholder {
  color: var(--ink-3);
}

.fo-search input:focus {
  border-color: var(--purple);
  box-shadow: var(--ring), var(--shadow);
}

.fo-search-go {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  transition: transform 0.35s var(--ease-spring);
}

.fo-search-go:hover {
  transform: scale(1.06);
}

.fo-search-go svg {
  width: 18px;
  height: 18px;
}

.fo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
  margin-top: 36px;
}

.fo-stats > div {
  min-width: 0;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.fo-stats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.fo-stats dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fo-stats dd small {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: 0;
  color: var(--ink-3);
}

/* Composição decorativa (3 fornecedores reais) */
.fo-hero-art {
  position: relative;
  height: 500px;
  min-width: 0;
  isolation: isolate;
}

.fo-art-ring {
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 35% 40%, var(--aurora-1), transparent),
    radial-gradient(closest-side at 70% 65%, var(--aurora-2), transparent);
  filter: blur(30px);
}

.fo-art-card {
  position: absolute;
  width: min(280px, 72%);
  padding: 8px 8px 12px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: fo-float 7s ease-in-out infinite;
}

.fo-art-0 { top: 0; left: 0; --r: -6deg; z-index: 1; }
.fo-art-1 { top: 31%; right: 0; --r: 5deg; z-index: 3; animation-delay: -2.4s; }
.fo-art-2 { bottom: 0; left: 14%; --r: -2deg; z-index: 2; animation-delay: -4.6s; }

@keyframes fo-float {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-12px); }
}

.fo-art-cover {
  height: 130px;
  min-height: 0;
  border-radius: 19px !important;
}

.fo-art-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 6px 0;
  min-width: 0;
}

.fo-art-av {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.fo-art-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.fo-art-txt strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--ink);
}

.fo-art-txt small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ink-3);
}

/* ── Directório ──────────────────────────────────────────── */
.fo-dir {
  padding-top: clamp(56px, 8vw, 104px);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.fo-toolbar {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(20px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.fo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.fo-chips .chip,
.fo-favchip,
.fo-maxchip {
  height: 40px;
}

.fo-chips .chip small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.55;
}

.fo-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.fo-favchip svg,
.fo-maxchip svg {
  width: 16px;
  height: 16px;
}

.fo-favchip b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--purple-soft);
  color: var(--purple-ink);
  font-size: 11px;
}

.fo-favchip[aria-pressed='true'] b {
  background: var(--grad-brand);
  color: #fff;
}

.fo-maxchip {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.fo-maxchip:hover {
  border-color: var(--gold);
  color: var(--gold-ink);
}

.fo-count {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.fo-count b {
  font-family: var(--font-display);
  color: var(--ink);
}

.fo-sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fo-sort > svg {
  position: absolute;
  left: 16px;
  width: 15px;
  height: 15px;
  color: var(--ink-3);
  pointer-events: none;
}

.fo-sort .select {
  min-height: 44px;
  height: 44px;
  padding: 0 40px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.fo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(24px, 3vw, 40px);
}

.fo-cell {
  position: relative;
  display: flex;
  min-width: 0;
}

.fo-cell > .fcard {
  flex: 1;
}

.fo-cell[hidden] {
  display: none;
}

.fcard-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 9, 16, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease-spring), background var(--t-fast), color var(--t-fast);
}

.fcard-fav:hover {
  transform: scale(1.08);
}

.fcard-fav svg {
  width: 19px;
  height: 19px;
}

.fcard-fav[aria-pressed='true'] {
  background: #fff;
  color: #e11d48;
  border-color: #fff;
}

.fcard-fav[aria-pressed='true'] svg {
  fill: currentColor;
  animation: fo-pop 0.45s var(--ease-spring);
}

@keyframes fo-pop {
  from { transform: scale(0.3); }
}

.fo-empty {
  margin-top: clamp(24px, 3vw, 40px);
  padding-block: clamp(56px, 8vw, 96px);
}

.fo-empty-ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
}

.fo-empty-ico svg {
  width: 26px;
  height: 26px;
}

.fo-empty p {
  max-width: 44ch;
}

.fo-empty .btn {
  margin-top: 8px;
}

/* ── Porquê ──────────────────────────────────────────────── */
.fo-why {
  padding-top: clamp(80px, 10vw, 140px);
}

.fo-why-head {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.fo-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.fo-why-item {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.fo-why-item::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}

.fo-why-item:hover::before {
  transform: scaleX(1);
}

.fo-why-num {
  position: absolute;
  top: 14px;
  right: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--line-strong);
}

.fo-why-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid var(--gold-line);
}

.fo-why-ico svg {
  width: 22px;
  height: 22px;
}

.fo-why-item h3 {
  margin-top: 22px;
  font-size: var(--fs-lg);
}

.fo-why-item p {
  margin-top: 10px;
  color: var(--ink-3);
}

/* ── CTA fornecedores ────────────────────────────────────── */
.fo-join-wrap {
  margin-top: clamp(64px, 8vw, 112px);
}

.fo-join {
  border-radius: clamp(24px, 3vw, 36px) !important;
  box-shadow: var(--shadow-lg);
}

.fo-join .cover-glyph {
  font-size: clamp(200px, 30cqi, 380px);
}

.fo-join > .cover-content {
  padding: clamp(28px, 5vw, 64px);
}

.fo-join-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.fo-join-eyebrow {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f3d48a;
}

.fo-join-title {
  margin-top: 14px;
  max-width: 20ch;
  font-size: var(--fs-2xl);
  color: #fff;
  text-wrap: balance;
}

.fo-join-title em {
  color: #f3d48a;
}

.fo-join-sub {
  margin-top: 14px;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.8);
}

.fo-join-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.fo-btn-white {
  background: #fff;
  color: #17121f;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6);
}

.fo-btn-white:hover {
  transform: translateY(-2px);
  color: #17121f;
}

.fo-btn-white svg {
  transition: transform var(--t);
}

.fo-btn-white:hover svg {
  transform: translateX(4px);
}

.fo-join-note {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   PERFIL DO FORNECEDOR (Detalhe)
   ═══════════════════════════════════════════════════════════ */
.fp {
  padding-bottom: clamp(72px, 10vw, 140px);
}

.fp-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.fp-banner {
  height: clamp(150px, 22vw, 240px);
  min-height: 0;
}

.fp-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 24px;
  padding: 20px clamp(20px, 3.4vw, 36px) clamp(22px, 3vw, 32px);
}

.fp-avatar {
  display: grid;
  place-items: center;
  width: clamp(92px, 12vw, 124px);
  height: clamp(92px, 12vw, 124px);
  margin-top: calc(clamp(92px, 12vw, 124px) / -2);
  border-radius: 32px;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 5px var(--surface), var(--shadow);
  position: relative;
  z-index: 1;
}

.fp-id {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fp-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.fp-name {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.fp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.fp-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fp-meta svg {
  width: 15px;
  height: 15px;
}

.fp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.fp-kpi {
  padding: 18px clamp(16px, 3vw, 32px);
  min-width: 0;
}

.fp-kpi + .fp-kpi {
  border-left: 1px solid var(--line);
}

.fp-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fp-kpi span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(32px, 5vw, 56px);
  align-items: start;
}

.fp-main {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  min-width: 0;
}

.fp-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.fp-sec-head h2 {
  font-size: var(--fs-xl);
}

.fp-sec-head .badge {
  flex-shrink: 0;
}

.fp-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.fp-svc {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.fp-svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-line);
}

.fp-svc-cover {
  height: 150px;
  min-height: 0;
}

.fp-svc-cover > .cover-content {
  padding: 12px;
}

.fp-svc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 18px 18px;
}

.fp-svc-name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.fp-svc-desc {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-svc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fp-svc-price {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.fp-reviews {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.fp-side {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: grid;
  gap: 16px;
  min-width: 0;
}

.fp-card {
  padding: 22px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 0;
}

.fp-card h3 {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-body);
  font-style: normal;
}

.fp-contacts {
  display: grid;
  gap: 8px;
  list-style: none;
}

.fp-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  min-width: 0;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.fp-contact:hover {
  border-color: var(--purple-line);
  background: var(--purple-soft);
}

.fp-contact-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--purple-soft);
  color: var(--purple);
}

.fp-contact-ico svg {
  width: 17px;
  height: 17px;
}

.fp-contact-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.fp-contact-txt small {
  font-size: 11.5px;
  color: var(--ink-3);
}

.fp-contact-txt strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-sm);
  font-weight: 600;
}

.fp-facts {
  display: grid;
  gap: 10px;
  font-size: var(--fs-sm);
}

.fp-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
}

.fp-facts dd {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .fo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .fp-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .fp-side {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .fo-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .fo-hero-art {
    display: none;
  }

  .fo-why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fo-join-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .fp-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 760px) {
  .fo-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 4px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }

  .fo-chips::-webkit-scrollbar {
    display: none;
  }

  .fo-chips .chip,
  .fo-favchip,
  .fo-maxchip {
    height: 44px;
    flex-shrink: 0;
  }

  .fo-sort {
    flex: 1 1 100%;
    order: 3;
  }

  .fo-sort .select {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .fo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fo-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .fo-stats > div {
    padding-left: 10px;
  }

  .fo-stats dt {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .fo-search input {
    height: 56px;
  }

  .fp-actions .btn {
    flex: 1 1 auto;
  }

  .fp-kpi {
    padding: 14px 12px;
  }

  .fp-kpi span {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fo-art-card {
    animation: none;
    transform: rotate(var(--r));
  }

  .fp-svc:hover {
    transform: none;
  }
}

/* O coração acompanha o cartão ao subir */
.fo-cell:hover .fcard-fav {
  translate: 0 -5px;
}

.fp-actions .fcard-fav {
  position: static;
  color: var(--ink);
  background: var(--surface-sunken);
  border-color: var(--line);
  backdrop-filter: none;
}

.fp-actions .fcard-fav[aria-pressed='true'] {
  background: var(--danger-soft);
  color: #e11d48;
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .fo-cell:hover .fcard-fav {
    translate: none;
  }
}
