/* All brands page — colorful, lively layout */

.gh-brands-page {
  background: var(--gh-bg);
}

/* ── Hero ── */
.gh-brands-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0 2.5rem;
  color: #fff;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #4f46e5 65%, #7c3aed 100%);
}

.gh-brands-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gh-brands-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.gh-brands-hero__orb--1 {
  width: 340px;
  height: 340px;
  top: -80px;
  right: 6%;
  background: #fbbf24;
}

.gh-brands-hero__orb--2 {
  width: 260px;
  height: 260px;
  bottom: -60px;
  left: 4%;
  background: #22d3ee;
}

.gh-brands-hero__orb--3 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 40%;
  background: #f472b6;
  opacity: 0.35;
}

.gh-brands-hero .gh-container {
  position: relative;
  z-index: 1;
}

.gh-brands-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.8rem;
}

.gh-brands-hero__crumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
}

.gh-brands-hero__crumb li + li::before {
  content: '/';
  color: rgba(255, 255, 255, 0.4);
  margin-right: 0.15rem;
}

.gh-brands-hero__crumb a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
}

.gh-brands-hero__crumb a:hover {
  color: #fff;
}

.gh-brands-hero__crumb li.is-active {
  color: #fff;
  font-weight: 600;
}

.gh-brands-hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.gh-brands-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.95rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.gh-brands-hero__badge i {
  color: #fde68a;
}

.gh-brands-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.gh-brands-hero__desc {
  margin: 0 0 1.15rem;
  font-size: 0.975rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.gh-brands-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gh-brands-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.92);
}

.gh-brands-hero__stat strong {
  font-weight: 800;
}

.gh-brands-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.gh-brands-hero__ring {
  position: absolute;
  width: min(260px, 75%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  animation: gh-brands-spin 28s linear infinite;
}

@keyframes gh-brands-spin {
  to { transform: rotate(360deg); }
}

.gh-brands-hero__logo-stack {
  position: relative;
  width: 220px;
  height: 220px;
}

.gh-brands-hero__logo-chip {
  position: absolute;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  animation: gh-brands-float 6s ease-in-out infinite;
}

.gh-brands-hero__logo-chip img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gh-brands-hero__logo-chip i {
  font-size: 1.75rem;
  color: #4f46e5;
}

.gh-brands-hero__logo-chip--1 { top: 0; left: calc(50% - 44px); }
.gh-brands-hero__logo-chip--2 { bottom: 10px; left: 0; animation-delay: 0.8s; }
.gh-brands-hero__logo-chip--3 { bottom: 10px; right: 0; animation-delay: 1.6s; }
.gh-brands-hero__logo-chip--4 { top: calc(50% - 36px); left: calc(50% - 36px); width: 72px; height: 72px; animation-delay: 2.4s; z-index: 2; }

@keyframes gh-brands-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Trust strip ── */
.gh-brands-trust {
  padding: 1.25rem 0 0;
  margin-top: -0.75rem;
  position: relative;
  z-index: 2;
}

.gh-brands-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.gh-brands-trust__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: var(--gh-radius);
  padding: 0.95rem 1rem;
  border: 1px solid var(--gh-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gh-brands-trust__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.gh-brands-trust__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.gh-brands-trust__item--blue .gh-brands-trust__icon { background: #dbeafe; color: #2563eb; }
.gh-brands-trust__item--purple .gh-brands-trust__icon { background: #ede9fe; color: #7c3aed; }
.gh-brands-trust__item--green .gh-brands-trust__icon { background: #d1fae5; color: #059669; }
.gh-brands-trust__item--orange .gh-brands-trust__icon { background: #ffedd5; color: #ea580c; }

.gh-brands-trust__item strong {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--gh-text);
  line-height: 1.25;
}

.gh-brands-trust__item span {
  font-size: 0.75rem;
  color: var(--gh-muted);
}

/* ── Brand grid ── */
.gh-brands-main {
  padding: 2rem 0 3rem;
}

.gh-brands-main__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.gh-brands-main__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gh-text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.gh-brands-main__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gh-muted);
}

.gh-brands-main__count {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4f46e5;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.gh-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.15rem;
}

.gh-brand-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: calc(var(--gh-radius) + 2px);
  border: 2px solid var(--gh-border);
  overflow: hidden;
  padding: 0 0 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.gh-brand-tile__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
  z-index: 2;
}

.gh-brand-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(79, 70, 229, 0.14);
}

.gh-brand-tile:hover .gh-brand-tile__shine {
  transform: translateX(120%);
}

.gh-brand-tile__logo {
  width: 100%;
  aspect-ratio: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1.15rem;
  margin-bottom: 0.65rem;
}

.gh-brand-tile__logo img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(15%);
}

.gh-brand-tile:hover .gh-brand-tile__logo img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

.gh-brand-tile__fallback {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.gh-brand-tile__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gh-text);
  text-align: center;
  padding: 0 0.75rem;
  line-height: 1.3;
}

.gh-brand-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gh-primary);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, gap 0.2s ease;
}

.gh-brand-tile:hover .gh-brand-tile__cta {
  opacity: 1;
  transform: translateY(0);
  gap: 0.45rem;
}

.gh-brand-tile--blue { border-color: #bfdbfe; }
.gh-brand-tile--blue .gh-brand-tile__logo { background: linear-gradient(180deg, #eff6ff, #fff); }
.gh-brand-tile--blue:hover { border-color: #93c5fd; }

.gh-brand-tile--purple { border-color: #ddd6fe; }
.gh-brand-tile--purple .gh-brand-tile__logo { background: linear-gradient(180deg, #f5f3ff, #fff); }
.gh-brand-tile--purple:hover { border-color: #c4b5fd; }

.gh-brand-tile--green { border-color: #bbf7d0; }
.gh-brand-tile--green .gh-brand-tile__logo { background: linear-gradient(180deg, #ecfdf5, #fff); }
.gh-brand-tile--green:hover { border-color: #86efac; }

.gh-brand-tile--teal { border-color: #a5f3fc; }
.gh-brand-tile--teal .gh-brand-tile__logo { background: linear-gradient(180deg, #ecfeff, #fff); }
.gh-brand-tile--teal:hover { border-color: #67e8f9; }

.gh-brand-tile--amber { border-color: #fde68a; }
.gh-brand-tile--amber .gh-brand-tile__logo { background: linear-gradient(180deg, #fffbeb, #fff); }
.gh-brand-tile--amber:hover { border-color: #fcd34d; }

.gh-brand-tile--pink { border-color: #fbcfe8; }
.gh-brand-tile--pink .gh-brand-tile__logo { background: linear-gradient(180deg, #fdf2f8, #fff); }
.gh-brand-tile--pink:hover { border-color: #f9a8d4; }

.gh-brand-tile--indigo { border-color: #c7d2fe; }
.gh-brand-tile--indigo .gh-brand-tile__logo { background: linear-gradient(180deg, #eef2ff, #fff); }
.gh-brand-tile--indigo:hover { border-color: #a5b4fc; }

.gh-brand-tile--orange { border-color: #fed7aa; }
.gh-brand-tile--orange .gh-brand-tile__logo { background: linear-gradient(180deg, #fff7ed, #fff); }
.gh-brand-tile--orange:hover { border-color: #fdba74; }

/* ── Empty state ── */
.gh-brands-empty {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: var(--gh-radius);
  background: #fff;
  border: 1px solid var(--gh-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.gh-brands-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #a78bfa);
}

.gh-brands-empty h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--gh-text);
}

.gh-brands-empty p {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  color: var(--gh-muted);
  font-size: 0.925rem;
  line-height: 1.55;
}

.gh-brands-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* ── Explore categories ── */
.gh-brands-explore {
  padding: 0 0 3.5rem;
}

.gh-brands-explore__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.gh-brands-explore__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--gh-text);
}

.gh-brands-explore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
}

.gh-brands-explore__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border-radius: var(--gh-radius);
  border: 1px solid var(--gh-border);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gh-brands-explore__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.gh-brands-explore__card-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  font-size: 2rem;
}

.gh-brands-explore__card--blue .gh-brands-explore__card-img { background: linear-gradient(180deg, #eff6ff, #fff); color: #2563eb; }
.gh-brands-explore__card--purple .gh-brands-explore__card-img { background: linear-gradient(180deg, #f5f3ff, #fff); color: #7c3aed; }
.gh-brands-explore__card--green .gh-brands-explore__card-img { background: linear-gradient(180deg, #ecfdf5, #fff); color: #059669; }
.gh-brands-explore__card--teal .gh-brands-explore__card-img { background: linear-gradient(180deg, #ecfeff, #fff); color: #0891b2; }
.gh-brands-explore__card--amber .gh-brands-explore__card-img { background: linear-gradient(180deg, #fffbeb, #fff); color: #ea580c; }
.gh-brands-explore__card--pink .gh-brands-explore__card-img { background: linear-gradient(180deg, #fdf2f8, #fff); color: #db2777; }
.gh-brands-explore__card--indigo .gh-brands-explore__card-img { background: linear-gradient(180deg, #eef2ff, #fff); color: #4f46e5; }
.gh-brands-explore__card--orange .gh-brands-explore__card-img { background: linear-gradient(180deg, #fff7ed, #fff); color: #ea580c; }

.gh-brands-explore__card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gh-brands-explore__card:hover .gh-brands-explore__card-img img {
  transform: scale(1.06);
}

.gh-brands-explore__card-name {
  padding: 0.65rem 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gh-text);
  text-align: center;
  line-height: 1.25;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .gh-brands-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gh-brands-hero__visual {
    min-height: 180px;
    order: -1;
  }

  .gh-brands-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .gh-brands-hero {
    padding: 1.25rem 0 2rem;
  }

  .gh-brands-hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .gh-brands-trust {
    margin-top: 0;
    padding-top: 1rem;
  }

  .gh-brands-trust__grid {
    grid-template-columns: 1fr;
  }

  .gh-brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .gh-brand-tile__cta {
    opacity: 1;
    transform: none;
  }

  .gh-brands-explore__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh-brands-hero__ring,
  .gh-brands-hero__logo-chip {
    animation: none !important;
  }
}
