/* Homepage-only refinements; other pages continue using the shared site stylesheet. */
#main > .homepage-company {
  margin: 1.5rem auto 3.5rem;
}

#main > .homepage-company .section-header-block {
  margin: 0 auto 2.25rem;
  max-width: 84ch;
}

.homepage-factory-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.homepage-factory-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.homepage-factory-photo figcaption {
  padding: .85rem 1rem;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.homepage-company-cta { align-self: flex-start; margin-top: .25rem; }

.trust-bar .trust-inner > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .65rem 1.1rem;
  border: 1px solid var(--brand-orange-500);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--brand-orange-600);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.trust-bar .trust-inner > a:hover {
  background: var(--brand-orange-500);
  color: #fff;
  transform: translateY(-1px);
}

#catalog-section .homepage-catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: stretch;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

#catalog-section .homepage-catalog-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

#catalog-section .homepage-catalog-link:visited { color: inherit; }
#catalog-section .homepage-catalog-link .cat-media-wrap { display: block; flex: none; }
#catalog-section .homepage-catalog-link .cat-media-wrap img { display: block; }
#catalog-section .homepage-catalog-link .cat-body { flex: 1; }
#catalog-section .homepage-catalog-link .cat-title { display: block; text-decoration: none; }
#catalog-section .homepage-catalog-link .cat-summary { display: block; }

#catalog-section .homepage-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .85rem;
  border-top: 1px solid var(--warm-border);
  color: var(--brand-orange-600);
  font-size: .85rem;
  font-weight: 750;
}

#catalog-section .cat-card:hover .homepage-card-cta { color: var(--brand-orange-500); }
#catalog-section .homepage-catalog-footer { margin: 1.5rem 0 0; text-align: center; }

.swatch-box-banner { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); }

.homepage-sample-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(234, 88, 12, .18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 22px rgba(100, 62, 12, .07);
}

.homepage-panel-kicker {
  color: var(--brand-orange-600);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.homepage-sample-panel h4 {
  margin: .55rem 0 .8rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.homepage-sample-panel ul { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--text-secondary); line-height: 1.8; }
.homepage-sample-panel a { color: var(--brand-orange-600); font-weight: 750; text-decoration: none; }
.homepage-sample-panel a:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .swatch-box-banner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 640px) {
  #main > .homepage-company { margin: 1rem auto 2.5rem; }
  #catalog-section .homepage-catalog-grid { grid-template-columns: 1fr; }
  .homepage-factory-photo img { aspect-ratio: 16 / 10; }
}
