/**
 * Brand Overview Page Styles
 */
/* Ensure parent containers don't clip the hero image */
.brands-page {
  overflow: visible;
}

/* Hero Section */
.brands-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(178deg, rgba(255, 241, 211, 0.30) -3.2%, rgba(151, 129, 104, 0.12) 89.52%), var(--background-default-secondary, #F8F7FA);
  padding: 0 20px 80px;
  overflow: visible;
}

.brands-hero-image {
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  z-index: 1;
  pointer-events: none;
}

.brands-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
}

.brands-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  margin: 0 auto;
  padding-top: 270px;
}

.brands-page .trusted .media p {
  color: white;
}

.brands-page .trusted .media .btn.primary {
  background: var(--background-brand-inverted-primary-default);
  color: var(--text-default-primary);
}

.brands-hero-label {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.brands-hero-title {
  font-size: 72px;
  line-height: 76px;
  font-weight: 550;
  font-family: var(--font-family-title);
  margin-bottom: 24px;
  margin: 0;
}

.brands-hero-title br {
  display: block;
}

.brands-hero-title span {
  color: var(--text-default-gold-headings);
}

.brands-hero-description {
  font-size: 18px;
  margin-bottom: 48px;
  line-height: 24px;
  margin-top: 24px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.press-releases .press-grid {
  gap: 24px;
}

/* Tab Navigation */
.brands-tabs {
  background: #fff;
  z-index: 100;
  transition: all 0.3s ease;
  padding: 40px 0 24px;
}

.brands-tabs.is-sticky {
  position: fixed;
  top: 128px;
  /* header height */
  left: 0;
  right: 0;
  padding: 8px 0;
}

.brands-tabs-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
}

.brands-tabs-list::-webkit-scrollbar {
  display: none;
}

.brands-tab-item {
  flex-shrink: 0;
}

.brands-tab-link {
  display: block;
  padding: 10px 0px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.brands-tab-link:hover {
  color: #000;
}

.brands-tab-link.active {
  border-bottom: var(--border-default-brand);
  font-weight: 600;
}

/* Content Sections */
.brands-content {
  background: #fff;
}

.brands-section {
  padding: 80px 20px;
}

.brands-section:last-child {
  border-bottom: none;
}

.brands-section-header {
  margin: 0 auto 32px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family-title);
}

.brands-section-title {
  font-size: 54px;
  font-weight: 550;
  margin: 0 0 32px 0;
}

.brands-section-description {
  font-size: 16px;
  line-height: 1.8;
}

.brands-section-description p {
  margin-bottom: 16px;
}

.brands-section-description p:last-child {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  max-width: 532px;
  text-align: left;
}

/* Section Media (Images & Videos) */
.brands-section-media {
  position: relative;
  margin: 0 auto 64px;
  overflow: hidden;
}

.brands-section-image {
  width: 100%;
  height: auto;
  display: block;
}

.brands-page .section.trusted {
  margin-top: 56px;
}

/* Video Embeds */
.brands-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.brands-video-embed iframe,
.brands-video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.brands-video-embed--html5 {
  padding-bottom: 0;
  height: auto;
}

.brands-video-embed--html5 video {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.brands-video-embed--oembed {
  position: relative;
}

.brands-video-embed--oembed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.brands-video-fallback {
  padding: 40px;
  text-align: center;
  background: #f5f5f5;
  border-radius: 8px;
}

.brands-video-fallback p {
  margin: 0;
  color: #666;
}

.brands-video-fallback a {
  color: #c9924e;
  text-decoration: none;
  word-break: break-all;
}

.brands-video-fallback a:hover {
  text-decoration: underline;
}

/* Brand Grid */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: transform 0.2s ease;
}

.brand-card-link:hover {
  transform: translateY(-4px);
}

.brand-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand-card-link:hover .brand-card-image {
  background: var(--background-default-tertiary);
}

.brand-card-image {
  height: 313px;
  width: 100%;
  background: var(--background-default-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-card-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--background-default-primary);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
  z-index: 10;
}

.brand-card-badge-mobile {
  display: none;
}

.brand-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand-card-title {
  font-size: 18px;
  font-family: var(--font-family-title);
  font-size: 20px;
  font-weight: 550;
  margin: 0;
}

.brand-card-logo {
  margin-bottom: 16px;
  max-width: 200px;
}

.brand-card-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-card-excerpt,
.brand-card-description {
  margin: 0 0 auto;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.brand-card-excerpt p,
.brand-card-description p {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.brand-card-excerpt p:last-child,
.brand-card-description p:last-child {
  margin-bottom: 0;
}

.brand-card-link-text {
  display: block;
  text-decoration: none;
  font-weight: 550;
  font-size: 16px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  opacity: 0;
  padding: 12px 0;
  font-family: var(--font-family-title);
}

.brand-card-link:hover .brand-card-link-text {
  opacity: 1;
}

.brand-card-arrow {
  font-size: 16px;
  line-height: 1;
}

/* Small Display Type (Gray Background) */
.brand-card--small {
  background: #f5f5f5;
  border: none;
}

.brand-card--small .brand-card-image {
  height: 120px;
  padding: 20px;
  background: transparent;
}

.brand-card--small .brand-card-content {
  padding: 16px 20px 20px;
}

.brand-card--small .brand-card-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.brand-card--small .brand-card-excerpt,
.brand-card--small .brand-card-description {
  font-size: 13px;
  margin-bottom: 12px;
}

.brand-card--small:hover {
  background: #ebebeb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Horizontal Layout (Layout 2 & 3) */
.brand-card--horizontal {
  flex-direction: row;
  align-items: stretch;
}

.brand-card--horizontal .brand-card-image {
  width: 200px;
  height: auto;
  min-height: 150px;
  flex-shrink: 0;
}

.brand-card--horizontal .brand-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image on Right (Layout 3) */
.brand-card--horizontal.brand-card--image-right {
  flex-direction: row-reverse;
}

/* Grid layouts for horizontal cards */
.brands-grid--layout-2,
.brands-grid--layout-3 {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Layout 2 & 3 Section Wrapper with Media */
.brands-section--layout-2,
.brands-section--layout-3 {
  background: var(--background-default-secondary);
}

.brands-section--layout-2 .brand-card-image,
.brands-section--layout-3 .brand-card-image {
  background: white;
}

.brands-section--layout-2 .brands-section-content,
.brands-section--layout-3 .brands-section-content {
  display: grid;
  grid-template-columns: 532px 1fr;
  gap: 126px;
  align-items: start;
}

.brands-section--layout-2 .brands-section-media,
.brands-section--layout-3 .brands-section-media {
  margin-bottom: 0;
  width: 532px;
  height: 660px;
}

.brands-section--layout-2 .brands-section-image,
.brands-section--layout-3 .brands-section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brands-section--layout-2 .brands-section-header,
.brands-section--layout-3 .brands-section-header {
  flex-direction: column;
  align-items: flex-start;
}

/* Layout 3 - Media on Right */
.brands-section--layout-3 .brands-section-content {
  grid-template-columns: 1fr 532px;
}

.brands-section--layout-2 .brands-section-content > div:not(.brands-section-media) .brands-section-media,
.brands-section--layout-3 .brands-section-content > div:not(.brands-section-media) .brands-section-media {
  display: none;
}

/* Responsive Design */
@media screen and (max-width: 1040px) {
  .brands-hero {
    padding: 0 0 52px;
  }

  .brands-hero-label {
    font-size: 16px;
    font-weight: 550;
    margin-bottom: 4px;
  }

  .brands-hero-title {
    font-size: 34px;
    line-height: 40px;
  }

  .brands-hero-description {
    margin: 20px 0 40px 0;
    max-width: 512px;
    font-size: 15px;
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 52px 20px;
  }

  .brands-tabs-list {
    justify-content: flex-start;
    padding: 0 24px;
    gap: 28px;
    scroll-padding-left: 24px;
  }

  .brands-tabs .container {
    padding: 0;
  }

  .brands-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .brand-card-link-text {
    opacity: 1;
  }

  .brands-section-description p:last-child {
    font-size: 15px !important;
    line-height: 24px !important;
  }

  .brands-section-title {
    margin: 0;
    font-size: 34px;
    line-height: 40px;
  }

  .brands-section {
    padding: 48px 0 20px;
  }

  .brands-tab-link {
    font-size: 16px;
  }

  .brands-tabs {
    padding: 36px 0 20px;
  }

  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* Stack layout 2/3 sections on tablet - order: Header, Media, Brands */
  .brands-section--layout-2 .brands-section-content,
  .brands-section--layout-3 .brands-section-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px;
  }

  /* The wrapper div that contains header + brands */
  .brands-section--layout-2 .brands-section-content > div:not(.brands-section-media),
  .brands-section--layout-3 .brands-section-content > div:not(.brands-section-media) {
    display: contents;
  }

  .brands-section--layout-2 .brands-section-header,
  .brands-section--layout-3 .brands-section-header {
    margin: 0;
    order: 1;
    width: 100%;
  }

  .brands-section--layout-2 .brands-section-description p:last-child,
  .brands-section--layout-3 .brands-section-description p:last-child {
    max-width: unset;
  }

  .brands-section--layout-2 .brands-section-media,
  .brands-section--layout-3 .brands-section-media {
    order: 2;
    position: relative;
    top: auto;
    margin: 0 auto;
    width: 100%;
    height: auto;
  }

  .brands-section--layout-2 .brands-grid,
  .brands-section--layout-3 .brands-grid {
    order: 3;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    width: 100%;
  }

  /* Stack horizontal cards on tablet */
  .brand-card--horizontal {
    flex-direction: column;
  }

  .brand-card--horizontal.brand-card--image-right {
    flex-direction: column;
  }

  .brand-card--horizontal .brand-card-image {
    width: 100%;
    height: 120px;
  }
}

@media (max-width: 640px) {
  .brands-tabs.is-sticky {
    top: 90px;
  }

  .brands-hero {
    min-height: 500px;
  }

  .brands-hero-image {
    max-width: 600px;
    top: -30px;
  }

  .brands-hero-content {
    padding-top: 150px;
  }

  .brands-hero-title {
    font-size: 28px;
  }

  .brands-hero-description {
    font-size: 16px;
  }

  .brands-hero-cta {
    padding: 12px 36px;
    font-size: 13px;
  }

  .brands-tabs-list {
    gap: 16px;
  }

  .brands-section {}

  .brands-section-title {
    font-size: 24px;
  }

  .brand-card-content {}

  .brand-card {
    flex-direction: row;
  }

  .brand-card-content {
    display: flex;
    flex-direction: column;
  }

  .brand-card-image .brand-card-badge {
    display: none;
  }

  .brand-card-badge-mobile {
    display: block;
    background: var(--background-default-secondary);
    color: var(--text-default-primary);
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    width: fit-content;
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .brands-section--layout-2 .brands-grid,
  .brands-section--layout-3 .brands-grid {
    grid-template-columns: 1fr;
  }

  .brand-card-image {
    height: 110px;
    width: 110px;
  }

  .brand-card-title {
    font-size: 18px;
    line-height: 28px
  }

  .brand-card-excerpt p:last-child,
  .brand-card-description p:last-child {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 14px;
  }

  .brand-card-link {
    padding: 24px 0;
    border-bottom: 1px solid #CBC9D1;
  }

  .brand-card-link:last-child {
    border-bottom: none;
  }

  .brands-grid {
    gap: 0;
  }
}

/* Smooth scroll offset for sticky tabs */
html {
  scroll-behavior: smooth;
}