/* =========================================================
   Detter GmbH — brand layer
   Logo lockup, hero with product photography, image category
   cards and a denser catalogue grid.
   ========================================================= */

/* ---------- Logo ---------- */
.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }

.brand .brand-word,
.brand-lockup .brand-word {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}
.brand-lockup .brand-word__name {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--forest-3);
}
.brand-lockup .brand-word__suffix {
  font-size: 0.58rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}
.brand-word--light .brand-word__name { color: var(--cream); }
.brand-word--light .brand-word__suffix { color: var(--sand); }
.brand-word--light .brand-mark { --mark-bg: #f2efe9; --mark-ink: #14170f; --mark-accent: #c2410c; }
.site-footer .brand-lockup .brand-word__name { font-size: 1.7rem; }

/* ---------- Hero with product photo ---------- */
.d-hero__grid {
  grid-template-columns: 1.04fr 0.96fr;
  align-items: stretch;
  gap: 44px;
}
.d-hero__copy { align-self: center; }

.d-hero__media {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1d211b;
  isolation: isolate;
}
.d-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.d-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 15, 0) 45%, rgba(20, 23, 15, 0.72) 100%);
}
.d-hero__badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: rgba(20, 23, 15, 0.78);
  border: 1px solid rgba(242, 239, 233, 0.22);
  color: #f2efe9;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.d-hero__badge span { width: 7px; height: 7px; background: #e9a37a; border-radius: 50%; }

.d-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px 22px;
  margin-top: 8px;
}
.d-panel__title { margin: 0; }
.d-panel__stats {
  display: flex;
  grid-template-columns: none;
  background: none;
  gap: 0;
}
.d-stat {
  background: none;
  padding: 0 26px;
  border-left: 1px solid rgba(242, 239, 233, 0.18);
}
.d-stat:first-child { border-left: 0; padding-left: 0; }
.d-stat strong { font-size: 1.7rem; display: inline; margin-right: 8px; }
.d-stat span { display: inline; margin-top: 0; font-size: 0.68rem; }
.d-panel__note { margin: 0; max-width: 30ch; text-align: right; }

/* ---------- Category cards with product images ---------- */
.d-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  border-top: 0;
}
.d-cat {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.d-cat:hover {
  background: #fff;
  padding-left: 0;
  transform: translateY(-3px);
  border-color: var(--forest-3);
  box-shadow: 0 18px 32px -24px rgba(20, 23, 15, 0.6);
}
.d-cat__thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line-soft);
}
.d-cat__text { padding: 14px 16px 4px; }
.d-cat__text strong { font-size: 1.02rem; }
.d-cat__text span { font-size: 0.78rem; line-height: 1.45; }
.d-cat__num {
  display: block;
  padding: 12px 16px 0;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
}
.d-cat__meta {
  padding: 6px 16px 16px;
  font-size: 0.64rem;
}
.d-cat__meta::before { content: "— "; color: var(--clay); }

/* ---------- Denser catalogue ---------- */
.woocommerce ul.products.columns-4 > li { width: 23.5%; }
.woocommerce ul.products { gap: 0; }

@media (max-width: 1080px) {
  .d-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-panel { grid-template-columns: 1fr; gap: 14px; }
  .d-panel__stats { flex-wrap: wrap; }
  .d-panel__note { text-align: left; max-width: none; }
}

@media (max-width: 860px) {
  .d-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .d-hero__media { min-height: 300px; order: -1; }
  .d-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-stat { padding: 0 16px; }
  .woocommerce ul.products.columns-4 > li { width: 48%; }
}

@media (max-width: 520px) {
  .d-cats { grid-template-columns: 1fr; }
  .woocommerce ul.products.columns-4 > li { width: 100%; }
}
