/* vars: --c-bg-alt,--c-border,--c-primary,--c-dark,--c-text,--radius */

/* brands.css — brands logo grid, brand tiles, responsive */

.brands { }
.brands h2, .brands h3 { text-align: center; margin-bottom: 1.5rem; }

/* Logo grid */
.brands_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 180px));
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.brands_logo_item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1rem;
  aspect-ratio: 3/2;
  transition: box-shadow .2s, transform .2s;
}
.brands_logo_item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.brands_logo_item img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .7;
  transition: filter .2s, opacity .2s;
}
.brands_logo_item:hover img { filter: none; opacity: 1; }

/* Brand hero section (brand detail page) */
.brand-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.brand-hero_img { width: 100%; height: auto; border-radius: 8px; }
.brand-hero_text h1 { margin-bottom: .75rem; }

/* Brand CTAs */
.brands_ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

/* Brand list links (wrz / elektro) */
.brands_links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: space-around;
  margin-top: 1.5rem;
}
.brands_links a {
  display: inline-block;
  padding: .4rem 1rem;
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--radius);
  font-size: .875rem;
  text-decoration: none;
  transition: background .2s, opacity 0s;
}
.brands_links a:hover { background: var(--c-primary); }

@media (max-width: 768px) {
  .brand-hero { grid-template-columns: 1fr; }
  .brands_grid { grid-template-columns: repeat(auto-fit, minmax(100px, 140px)); }
}

/* Brand detail page */
.brand__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
.brand__split img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.brand__process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.timeline__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}
.timeline__content h4 { margin: 0 0 .25rem; font-size: 1rem; }
.timeline__content ul { margin: 0; padding-left: 1rem; }
.timeline__content li { font-size: .9rem; line-height: 1.6; }

/* Brand process images */
.brand__imgs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.brand__imgs img { width: 100%; height: auto; border-radius: 4px; }

/* Differences comparison table */
.fumak-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: .95rem;
}
.fumak-table th {
  background: var(--c-dark);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.fumak-table td {
  padding: .65rem 1rem;
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.fumak-table tr:nth-child(even) td { background: rgba(0,0,0,.03); }

/* Image gallery grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Img wrapper (click-to-zoom card) */
.img-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  transition: box-shadow .3s, transform .3s;
}
.img-wrapper:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.img-wrapper:hover img { transform: scale(1.05); }
.image-grid .img-wrapper img { width: 100%; height: auto; border-radius: 4px; cursor: zoom-in; }

@media (max-width: 768px) {
  .brand__split { grid-template-columns: 1fr; }
  .brand__process { grid-template-columns: 1fr; }
  .fumak-table { font-size: .85rem; }
  .fumak-table th, .fumak-table td { padding: .5rem .6rem; }
  .image-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem; }
}
@media (max-width: 480px) {
  .image-grid { grid-template-columns: repeat(2, 1fr) !important; gap: .5rem; }
}
