:root {
  --background: 0 0% 97%;
  --foreground: 222.2 47.4% 11.2%;

  --card: 0 0% 98%;
  --card-foreground: 222.2 47.4% 11.2%;

  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;

  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;

  --radius: 0.5rem;
}
html,
body {
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: system-ui, Roboto, -apple-system, Segoe UI, sans-serif;
  margin: 0;
  padding: 24px;
  background: hsl(var(--background));
  width: 80%;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* ---------- Brand Tabs ---------- */
.brand-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 60px;
  font-size: 20px;
}

.brand-tab {
  cursor: pointer;
  padding: 8px 16px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
}
.brand-tab.active:nth-child(1) {
  border-bottom-color: #000000;
  background: rgb(91 17 15 / 10%); /* #5b110f */
}
.brand-tab.active:nth-child(2) {
  border-bottom-color: #5b110f;
  background: rgb(91 17 15 / 20%); /* #5b110f */
}
.brand-tab.active:nth-child(3) {
  border-bottom-color: #003c50;
  background: rgb(0 60 80 / 20%); /* #003c50 */
}
.brand-tab.active:nth-child(4) {
  border-bottom-color: #fb4b3f;
  background: rgb(251 75 63 / 20%); /* #fb4b3f */
}
.brand-tab.active:nth-child(5) {
  border-bottom-color: #9800de;
  background: rgb(152 0 222 / 20%); /* #9800de */
}

/* ---------- Brand Select Hover Styles ---------- */

.brand-option {
  position: relative;
}

/* Default hover reset */
.brand-option:hover {
  background: transparent;
}

/* Brand-specific hover states */
.brand-option:nth-child(1):hover {
  background: rgb(0 0 0 / 20%);
}

.brand-option:nth-child(2):hover {
  background: rgb(91 17 15 / 20%);
  color: #5b110f;
}

.brand-option:nth-child(3):hover {
  background: rgb(0 60 80 / 20%);
  color: #003c50;
}

.brand-option:nth-child(4):hover {
  background: rgb(251 75 63 / 20%);
  color: #fb4b3f;
}

.brand-option:nth-child(5):hover {
  background: rgb(152 0 222 / 20%);
  color: #9800de;
}

.section h2 {
  margin-bottom: 12px;
  font-weight: 600;
}

/* ---------- Carousel ---------- */
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  max-width: 100%;
  margin: 0 auto;
}

.carousel::-webkit-scrollbar {
  height: 8px;
}

.carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.card {
  min-width: 220px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  color: hsl(var(--card-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  box-shadow: 0 1px 2px hsl(0 0% 0% / 0.05), 0 4px 12px hsl(0 0% 0% / 0.08),
    0 0 0 1px hsl(var(--border));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-1px);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.card-title {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: hsl(var(--foreground));
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.card-image {
  width: 100%;
  max-width: 300px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}

.card-image.logo {
  background: hsl(var(--background));
}

.card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  margin: 12px;
  border: 1px dashed hsl(var(--border));
  border-radius: 6px;
  color: hsl(var(--muted-foreground));
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Section Accordion ---------- */

.section {
  border-bottom: 1px solid hsl(var(--border));
  max-width: 80%;
  margin: 0 auto;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.section-header h2 {
  margin: 0;
}
.section-content {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  max-height: 2000px; /* safely larger than any carousel */
  opacity: 1;
  padding-top: 18px;
}

.section.collapsed .section-content {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Chevron ---------- */

.chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg); /* down */
  transition: transform 0.2s ease;
  margin-left: 12px;
  justify-content: left;
}

.section.collapsed .chevron {
  transform: rotate(-45deg); /* right */
}

.section-count {
  font-size: 14px;
  color: #b9bdc4; /* light grey */
  font-weight: 400;
}

.section.empty .section-title {
  opacity: 0.45;
}

.section.empty .chevron {
  opacity: 0.25;
}
.brand-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 12px 0;
  margin-top: 32px;

  /* subtle separation, not a hard bar */
  background: linear-gradient(to top, hsl(var(--background)) 70%, transparent);

  pointer-events: none;
}
.brand-footer img {
  height: 60px;
  width: auto;
  opacity: 0.75;
}
@media (min-width: 1000px) {
  .brand-footer img {
    height: 80px;
    opacity: 0.85;
  }
}

/* ---------- Brand Select (Mobile) ---------- */

.brand-select {
  display: none;
  position: relative;
  margin-bottom: 24px;
}

.brand-select-trigger {
  width: 100%;
  max-width: max-content;
  margin: auto;
  padding: 12px 14px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.brand-option {
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 500;
}

.brand-option:hover {
  background: hsl(var(--muted));
}
.brand-select.open .brand-select-menu {
  display: block;
  max-width: max-content;
  margin: auto;
}

.brand-select.open .brand-select-chevron {
  transform: rotate(-135deg);
}
.brand-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 4px 12px hsl(0 0% 0% / 0.08);
  display: none;
  z-index: 20;
}

.brand-select-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 10px;
}

@media (max-width: 1320px) {
  body {
    width: 100%;
    padding: 16px;
  }

  .brand-tabs {
    gap: 16px;
    font-size: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .brand-tab {
    padding: 6px 10px;
  }

  h2 {
    font-size: 36px;
  }
}
/* Desktop: show tabs */
@media (min-width: 769px) {
  .brand-tabs {
    display: flex;
  }
}

@media (max-width: 768px) {
  body {
    width: 100%;
    padding: 12px;
  }

  .carousel {
    margin: 0;
    padding-bottom: 12px;
  }

  .card {
    min-width: 120px;
  }

  .section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    max-width: 90%;
  }

  .card-image {
    max-width: 200px;
  }
  .section-content {
    padding-top: 12px;
  }

  .section-header {
    padding: 8px 0;
  }
  .brand-tabs {
    display: none;
  }

  .brand-select {
    display: block;
  }
}
@media (min-width: 769px) and (max-width: 1000px) {
  body {
    width: 100%;
    padding: 16px;
  }

  .brand-tabs {
    gap: 16px;
    font-size: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .brand-tab {
    padding: 6px 10px;
  }
}

svg {
  perspective: 200px;
  max-width: 120px;
  margin: auto;
}

#guy {
  transform-box: fill-box;
  transform-origin: center;
  animation: guyFlip 5s ease-in-out infinite;
  fill: #000;
}

@keyframes guyFlip {
  /* idle (black) */
  0% {
    transform: rotateY(0deg);
    fill: #000;
  }

  /* flip forward (0.5s) */
  10% {
    transform: rotateY(180deg);
    fill: #6a00ff;
  }

  /* pause on purple (1s) */
  30% {
    transform: rotateY(180deg);
    fill: #6a00ff;
  }

  /* flip back (0.5s) */
  40% {
    transform: rotateY(0deg);
    fill: #000;
  }

  /* idle */
  100% {
    transform: rotateY(0deg);
    fill: #000;
  }
}
