/* ==================================================================
   NUMBO COLLECTIONS PAGE — assets/collections.css
   Visual category grid for /collections/ landing page
   Conditionally loaded via functions.php enqueue
   All selectors scoped to .numbo-collections to prevent bleed
   ================================================================== */

/* ---------- GP Layout Reset ---------- */
body.page-template-page-collections-php .site-content,
body.page-template-page-collections-php .site-main {
  padding: 0;
  margin: 0;
}
body.page-template-page-collections-php #page {
  background: transparent;
}

/* --- Design Tokens (scoped to page wrapper) --- */
.numbo-collections {
  --brand: #8b7355;
  --brand-dark: #6d5a43;
  --bg: #faf9f7;
  --surface: #fff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e5e0db;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

/* --- Reset --- */
.numbo-collections,
.numbo-collections * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.numbo-collections {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* --- Container --- */
.numbo-collections .numbo-col-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================================================================
   HERO SECTION
   ================================================================== */
.numbo-col-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.numbo-col-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/hero-pendant.webp') center/cover no-repeat;
  filter: brightness(0.35);
  z-index: 0;
}

.numbo-col-hero .numbo-col-container {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 60px;
}

.numbo-col-breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  opacity: 0.7;
}
.numbo-col-breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.numbo-col-breadcrumb a:hover {
  text-decoration: underline;
}
.numbo-col-breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}
.numbo-col-breadcrumb .current {
  opacity: 0.9;
}

.numbo-col-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.numbo-col-hero-sub {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.85;
}

/* --- Hero Stats --- */
.numbo-col-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.numbo-col-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.numbo-col-stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.numbo-col-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.numbo-col-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
}

/* ==================================================================
   INTRO TEXT SECTION
   ================================================================== */
.numbo-col-intro {
  padding: 60px 0 0;
}

.numbo-col-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.numbo-col-intro p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

/* ==================================================================
   CATEGORY GRID
   ================================================================== */
.numbo-col-grid-section {
  padding: 80px 0;
}

.numbo-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Card --- */
.numbo-col-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  min-height: 320px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.numbo-col-card:hover {
  transform: translateY(-6px);
}

.numbo-col-card--tall {
  min-height: 400px;
}

/* Card Image */
.numbo-col-card-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.numbo-col-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.numbo-col-card:hover .numbo-col-card-img img {
  transform: scale(1.06);
}

/* Card Gradient Overlay — deepens on hover for text readability */
.numbo-col-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
  transition: background 0.35s ease;
}

.numbo-col-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.65) 40%,
    rgba(0, 0, 0, 0.30) 100%
  );
}

/* Card Hover Overlay */
.numbo-col-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.numbo-col-card:hover .numbo-col-card-overlay {
  opacity: 1;
}

.numbo-col-card-content {
  width: 100%;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.numbo-col-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 12px;
}

.numbo-col-card-cta {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brand);
  background: #fff;
  padding: 6px 16px;
  border-radius: 4px;
  display: inline-block;
}

/* Card Info (always visible) */
.numbo-col-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transition: opacity 0.35s ease;
}

.numbo-col-card:hover .numbo-col-card-info {
  opacity: 0;
}

/* --- Card Title (H3) --- */
.numbo-col-card-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.numbo-col-card-count {
  font-size: 13px;
  opacity: 0.75;
  white-space: nowrap;
}

/* ==================================================================
   CTA SECTION
   ================================================================== */
.numbo-col-cta {
  padding: 80px 0 100px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.numbo-col-cta h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 16px;
}

.numbo-col-cta p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.numbo-col-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons (reuse existing) --- */
.numbo-collections .numbo-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.numbo-collections .numbo-btn-primary {
  background: var(--brand);
  color: #fff;
}
.numbo-collections .numbo-btn-primary:hover {
  background: var(--brand-dark);
}

.numbo-collections .numbo-btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.numbo-collections .numbo-btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1024px) {
  .numbo-col-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .numbo-col-card {
    min-height: 280px;
  }
  .numbo-col-card--tall {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .numbo-col-hero {
    min-height: 45vh;
  }
  .numbo-col-hero .numbo-col-container {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .numbo-col-hero h1 {
    font-size: 2rem;
  }
  .numbo-col-hero-sub {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .numbo-col-hero-stats {
    gap: 20px;
  }
  .numbo-col-stat-num {
    font-size: 1.5rem;
  }
  .numbo-col-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .numbo-col-card,
  .numbo-col-card--tall {
    min-height: 240px;
  }
  .numbo-col-card-title {
    font-size: 1.2rem;
  }
  .numbo-col-intro {
    padding: 40px 0 0;
  }
  .numbo-col-intro p {
    font-size: 14px;
  }
  .numbo-col-grid-section {
    padding: 48px 0;
  }
  .numbo-col-cta {
    padding: 60px 0 80px;
  }
  .numbo-col-cta h2 {
    font-size: 1.6rem;
  }
}

/* --- CTA Inline Links --- */
.numbo-col-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.numbo-col-cta-inline {
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.numbo-col-cta-inline:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.numbo-col-cta-sep {
  color: var(--border);
  font-size: 14px;
}
