/* HORIZON MATERIALS PRIVATE LIMITED — Honeycomb Grove catalog (Neon Grove creative) */

@keyframes a36-comb-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

.page-catalog-comb.a36-catalog-creative {
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --comb-ink: #0B1320;
  --comb-panel: #121B2E;
  --comb-surface: #F4F0E8;
  --comb-muted: #5C6778;
  --comb-line: rgba(11, 19, 32, 0.1);
  --comb-mint: #4ECDC4;
  --comb-mango: #FF9F1C;
  --comb-berry: #E63946;
  --comb-violet: #5A189A;
  --comb-sky: #5A9FD4;
  background:
    radial-gradient(circle at 100% 0%, rgba(90, 24, 154, 0.05) 0%, transparent 40%),
    var(--comb-surface);
}

.a36-comb {
  padding: 0 0 3.75rem;
}

/* ── Hero ── */
.a36-comb-hero {
  position: relative;
  padding: 2.5rem 0 2.25rem;
  overflow: hidden;
  background: var(--comb-panel);
  color: #fff;
  margin-bottom: 0.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.a36-comb-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  pointer-events: none;
}

.a36-comb-hex-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 159, 28, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.08) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z' fill='none' stroke='rgba(78,205,196,0.12)' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 56px 100px;
  pointer-events: none;
}

.a36-comb-hero-arch {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--comb-mango), var(--comb-mint), var(--comb-berry));
  opacity: 0.85;
  pointer-events: none;
}

.a36-comb-watermark {
  position: absolute;
  top: 0.5rem;
  right: 3%;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.a36-comb-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.a36-comb-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.a36-comb-crumb a {
  color: var(--comb-mint);
  text-decoration: none !important;
}

.a36-comb-crumb a:hover {
  color: var(--comb-mango);
}

.a36-comb-crumb span:last-child {
  color: rgba(255, 255, 255, 0.45);
}

.a36-comb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--comb-mint);
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.22);
}

.a36-comb-kicker::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--comb-mango);
  box-shadow: 0 0 8px rgba(255, 159, 28, 0.45);
  animation: a36-comb-glow 2.5s ease-in-out infinite;
}

.a36-comb-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.a36-comb-hero h1 em {
  font-style: normal;
  color: var(--comb-mango);
  position: relative;
}

.a36-comb-hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: rgba(255, 159, 28, 0.22);
  z-index: -1;
  transform: skewX(-6deg);
}

.a36-comb-lede {
  margin: 0;
  max-width: 50ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.a36-comb-totals {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}

.a36-comb-total {
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  min-width: 5rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.a36-comb-total-main {
  border-color: rgba(255, 159, 28, 0.35);
  background: rgba(255, 159, 28, 0.08);
}

.a36-comb-total strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--comb-mango);
  line-height: 1;
}

.a36-comb-total span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.a36-comb-total-ref {
  width: 100%;
  text-align: right;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--comb-mint);
}

/* ── Buttons ── */
.a36-comb-btn {
  display: inline-block;
  padding: 0.62rem 1.1rem;
  border: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, background 0.2s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.a36-comb-btn--primary {
  background: var(--comb-mango);
  color: var(--comb-ink);
}

.a36-comb-btn--primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.a36-comb-btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.62rem;
}

/* ── Stage ── */
.a36-comb-stage {
  padding-top: 1.25rem;
}

.a36-comb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--comb-line);
}

.a36-comb-toolbar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--comb-ink);
}

/* Honeycomb grid */
.a36-comb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
  align-items: start;
}

.a36-comb-grid .a36-comb-cell:nth-child(even) {
  transform: translateY(1.25rem);
}

/* Hex cell card */
.a36-comb-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1rem;
  background: #fff;
  border: 1px solid var(--comb-line);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 12px 32px rgba(11, 19, 32, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.a36-comb-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(11, 19, 32, 0.12);
}

.a36-comb-grid .a36-comb-cell:nth-child(even):hover {
  transform: translateY(calc(1.25rem - 4px));
}

.a36-comb-cell-hex {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 88px;
  height: 88px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.15;
  pointer-events: none;
}

.a36-comb-cell-tone-1 .a36-comb-cell-hex { background: var(--comb-mango); }
.a36-comb-cell-tone-1 { border-top: 3px solid var(--comb-mango); }
.a36-comb-cell-tone-1 .a36-comb-cell-num { color: var(--comb-mango); }

.a36-comb-cell-tone-2 .a36-comb-cell-hex { background: var(--comb-mint); }
.a36-comb-cell-tone-2 { border-top: 3px solid var(--comb-mint); }
.a36-comb-cell-tone-2 .a36-comb-cell-num { color: #0d4a45; }

.a36-comb-cell-tone-3 .a36-comb-cell-hex { background: var(--comb-sky); }
.a36-comb-cell-tone-3 { border-top: 3px solid var(--comb-sky); }
.a36-comb-cell-tone-3 .a36-comb-cell-num { color: var(--comb-sky); }

.a36-comb-cell-tone-4 .a36-comb-cell-hex { background: var(--comb-violet); }
.a36-comb-cell-tone-4 { border-top: 3px solid var(--comb-violet); }
.a36-comb-cell-tone-4 .a36-comb-cell-num { color: var(--comb-violet); }

.a36-comb-cell-tone-5 .a36-comb-cell-hex { background: var(--comb-berry); }
.a36-comb-cell-tone-5 { border-top: 3px solid var(--comb-berry); }
.a36-comb-cell-tone-5 .a36-comb-cell-num { color: var(--comb-berry); }

.a36-comb-cell-head {
  margin-bottom: 0.85rem;
}

.a36-comb-cell-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.a36-comb-cell-head h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.a36-comb-cell-head h3 a {
  color: var(--comb-ink);
  text-decoration: none !important;
}

.a36-comb-cell-head h3 a:hover {
  color: var(--comb-mango);
}

.a36-comb-cell-count {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--comb-muted);
}

.a36-comb-cell-img {
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  padding: 0.85rem;
  background: var(--comb-surface);
  border: 1px solid var(--comb-line);
  clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
  min-height: 130px;
  transition: background 0.2s, border-color 0.2s;
}

.a36-comb-cell:hover .a36-comb-cell-img {
  background: #fff;
  border-color: rgba(78, 205, 196, 0.35);
}

.a36-comb-cell-img img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}

.a36-comb-cell-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px dashed var(--comb-line);
  display: grid;
  gap: 0.3rem;
  font-size: 0.74rem;
  line-height: 1.45;
}

.a36-comb-cell-list a {
  color: var(--comb-muted);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.a36-comb-cell-list a:hover {
  color: var(--comb-mango);
}

.a36-comb-cell-list a::before {
  content: '◆ ';
  color: var(--comb-mint);
  font-size: 0.55rem;
}

.a36-comb-cell-foot {
  margin-top: auto;
}

.a36-comb-cell-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--comb-ink);
  text-decoration: none !important;
  padding: 0.4rem 0.7rem;
  background: rgba(78, 205, 196, 0.12);
  border: 1px solid rgba(78, 205, 196, 0.28);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.a36-comb-cell-cta:hover {
  background: var(--comb-mango);
  border-color: var(--comb-mango);
  color: var(--comb-ink);
  transform: translateX(3px);
}

/* Footer */
.a36-comb-foot {
  margin-top: 2.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--comb-panel);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(78, 205, 196, 0.12);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(11, 19, 32, 0.18);
  position: relative;
}

.a36-comb-foot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--comb-mango), var(--comb-mint));
}

.a36-comb-foot strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 0.2rem;
}

.a36-comb-foot p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .a36-comb-hero {
    clip-path: none;
  }

  .a36-comb-hero-inner {
    grid-template-columns: 1fr;
  }

  .a36-comb-grid .a36-comb-cell:nth-child(even) {
    transform: none;
  }

  .a36-comb-grid .a36-comb-cell:nth-child(even):hover {
    transform: translateY(-4px);
  }

  .a36-comb-cell {
    clip-path: none;
  }

  .a36-comb-foot {
    clip-path: none;
  }
}

@media (max-width: 560px) {
  .a36-comb-grid {
    grid-template-columns: 1fr;
  }

  .a36-comb-foot {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .a36-comb-foot .a36-comb-btn {
    width: 100%;
  }

  .a36-comb-watermark {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a36-comb-kicker::before,
  .a36-comb-cell,
  .a36-comb-grid .a36-comb-cell:nth-child(even):hover {
    animation: none;
    transition: none;
  }
}
