/**
 * Nine Squares Estate (NiSE) - Core UI Stylesheet
 * File: assets/css/nise-core.css
 */

:root {
  /* Brand Palette */
  --ni-gold: #d4af37;
  --ni-gold-light: #f5e7a9;
  --ni-gold-dark: #4a3b12;
  --slate-dark: #0f172a;
  --slate-deep: #080c14;
  --slate-blue: #162032;
  --wooden-brown: #5d4037;
  --wooden-dark: #3e2723;
  --body-text: #334155;
  --bg-light: #f8fafc;
}

/* ============================================================
   TYPOGRAPHY & ACCENTS
   ============================================================ */
.playfair {
  font-family: 'Playfair Display', serif;
}
.cinzel {
  font-family: 'Cinzel', serif;
}
.text-gold {
  color: var(--ni-gold) !important;
}
.text-gold-dark {
  color: var(--ni-gold-dark) !important;
}
.bg-slate-dark {
  background-color: var(--slate-dark) !important;
}

/* ============================================================
   COMPONENTS: STATS & FLOATING RIBBONS
   ============================================================ */
.stats-ribbon {
  background: #0d1522 !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  border-top: 3px solid var(--ni-gold) !important;
  border-bottom: 5px solid var(--wooden-brown) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3) !important;
  margin-top: -60px !important;
  position: relative;
  z-index: 25;
  color: #ffffff !important;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ni-gold) !important;
  line-height: 1.2;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8 !important;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  display: block;
}

/* Clear external top/divider glitches */
.stats-ribbon .col-6,
.stats-ribbon .col-md-3 {
  border: none !important;
}
.stats-ribbon .col-6::before,
.stats-ribbon .col-6::after,
.stats-ribbon .col-md-3::before,
.stats-ribbon .col-md-3::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 767px) {
  .stats-ribbon {
    margin-top: -35px !important;
    padding: 22px 14px !important;
    border-radius: 14px !important;
  }
  .stat-number {
    font-size: 1.65rem;
  }
  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }
}

/* ============================================================
   COMPONENTS: BUTTONS
   ============================================================ */
.btn-nise-gold {
  background: linear-gradient(135deg, var(--ni-gold) 0%, #b8911e 100%);
  color: var(--slate-deep) !important;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 14px 28px;
  border: none;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.btn-nise-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
  color: #000000 !important;
}

.btn-nise-outline {
  border: 2px solid var(--slate-dark);
  color: var(--slate-dark);
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-nise-outline:hover {
  background: var(--slate-dark);
  color: #ffffff;
}

.btn-nise-premium {
  position: relative;
  background: linear-gradient(135deg, #1e1b18 0%, #0f172a 100%) !important;
  color: var(--ni-gold) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 18px 45px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-bottom: 5px solid #8b5a2b !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
  display: inline-block;
  text-decoration: none;
  z-index: 1;
}

.btn-nise-premium:hover {
  transform: translateY(-5px);
  border-color: #8b5a2b;
  color: #1e1b18 !important;
  background: var(--ni-gold) !important;
}

/* ============================================================
   COMPONENTS: BADGES, PILLS & TAGS
   ============================================================ */
.feature-tag {
  background: #f1f5f9;
  color: var(--slate-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
}

.highlight-pill {
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.1);
  color: var(--ni-gold);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}