/* ═══════════════════════════════════════
   OUR BRANDS PAGE — CUSTOM STYLES
   ═══════════════════════════════════════ */

/* ── Brand Showcase Grid (side panel) ── */
.brands-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.bsg-item {
  overflow: hidden;
  border-radius: 2px;
}
.bsg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.bsg-item:hover img {
  transform: scale(1.06);
}
.bsg-item-lg {
  grid-row: span 2;
}
.bsg-item-lg img {
  height: 100%;
  min-height: 380px;
}

/* ── Gallery Cards ── */
.brand-gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.brand-gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}
.brand-gallery-card:hover img {
  transform: scale(1.08);
}
.brand-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 15, 43, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.brand-gallery-card:hover .brand-gallery-overlay {
  opacity: 1;
}
.brand-gallery-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  font-family: "Jost", sans-serif;
}
.brand-gallery-info {
  padding: 1rem 0.5rem;
  background: var(--white);
  border-left: 1px solid rgba(0,0,0,0.06);
  border-right: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.brand-gallery-info strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.brand-gallery-info span {
  display: block;
  font-size: 0.72rem;
  color: var(--grey);
  line-height: 1.4;
}

/* ── Brand Detail Modal ── */
.brand-modal .modal-content {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 3rem 2rem 2.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.8rem;
  opacity: 1;
  transition: background 0.3s ease;
  z-index: 2;
}
.modal-close-btn:hover {
  background: var(--charcoal);
  color: #fff;
}
.brand-modal-logo-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 8px 25px rgba(180, 150, 80, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex-shrink: 0;
}
.brand-modal-logo {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.brand-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.brand-modal-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.25rem;
}
.brand-modal-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey);
  max-width: 480px;
  margin: 0 auto;
}
.brand-modal .modal-dialog {
  max-width: 520px;
}
@media (max-width: 576px) {
  .brand-modal .modal-content {
    padding: 2rem 1.25rem 1.75rem;
  }
  .brand-modal-title {
    font-size: 1.3rem;
  }
  .brand-modal-logo-wrap {
    width: 80px;
    height: 80px;
  }
}

/* ── Mobile tweaks ── */
@media (max-width: 768px) {
  .bsg-item-lg img {
    min-height: 250px;
  }
  .brand-gallery-card img {
    aspect-ratio: 1/1;
  }
}
@media (max-width: 576px) {
  .brands-showcase-grid {
    gap: 8px;
  }
  .bsg-item-lg img {
    min-height: 200px;
  }
}
