/* =====================================================================
   NFTFI - Global Stylesheet
   Brand palette: Deep maroon/red (#a8232f) + Gold (#d4af37) + Charcoal
===================================================================== */

:root {
  --brand-primary: #a8232f;
  --brand-primary-dark: #7c1a24;
  --brand-gold: #d4af37;
  --brand-dark: #17151a;
  --brand-light: #f8f6f3;
  --text-muted: #6c6a72;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: #2b2930;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading { font-family: var(--font-heading); }

a { text-decoration: none; transition: all .2s ease; }

.text-light-50 { color: rgba(255,255,255,.65); }

/* ---------- Buttons ---------- */
.btn-brand {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 50px;
  padding: .6rem 1.4rem;
  box-shadow: 0 6px 18px rgba(168,35,47,.35);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(168,35,47,.45); }

.btn-gold {
  background: linear-gradient(135deg, var(--brand-gold), #b5892a);
  color: #241f10;
  border: none;
  font-weight: 700;
  border-radius: 50px;
  padding: .6rem 1.4rem;
}
.btn-gold:hover { color: #241f10; transform: translateY(-2px); }

.btn-outline-brand {
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
  border-radius: 50px;
  font-weight: 600;
  padding: .55rem 1.4rem;
}
.btn-outline-brand:hover { background: var(--brand-primary); color: #fff; }

/* ---------- Top bar / Navbar ---------- */
.top-bar {
  background: var(--brand-dark);
  color: #fff;
}
.main-navbar { padding: .5rem 0; }
.brand-text { font-family: var(--font-heading); font-weight: 800; color: var(--brand-primary); line-height: 1.1; font-size: 1.4rem; }
.brand-text small { font-family: var(--font-body); font-size: .62rem; letter-spacing: 1px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; }
.navbar .nav-link { font-weight: 500; color: #333; margin: 0 .35rem; position: relative; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--brand-primary); }

/* ---------- Hero ---------- */
.hero-banner {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(23,21,26,.88), rgba(124,26,36,.75)), url('../img/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(212,175,55,.18), transparent 45%);
}
.hero-banner .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; background: rgba(212,175,55,.15); border: 1px solid var(--brand-gold);
  color: var(--brand-gold); padding: .35rem 1rem; border-radius: 50px; font-size: .8rem; font-weight: 600; letter-spacing: 1px;
}
.hero-banner h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; }
.hero-banner p.lead { color: rgba(255,255,255,.85); max-width: 620px; }
.hero-stats { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; }
.hero-stats .num { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--brand-gold); }
.hero-stats .lbl { font-size: .82rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Section utilities ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title-tag {
  color: var(--brand-primary); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem;
}
.section-title { font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: .4rem; }
.bg-light-soft { background: var(--brand-light); }
.bg-dark-section { background: var(--brand-dark); color: #fff; }
.divider-gold { width: 60px; height: 4px; background: var(--brand-gold); border-radius: 2px; margin: 1rem 0 1.5rem; }

/* ---------- Cards ---------- */
.card-elevated {
  border: none; border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; background: #fff;
  transition: transform .25s ease, box-shadow .25s ease; height: 100%;
}
.card-elevated:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.12); }

.value-card {
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); padding: 2rem 1.5rem; height: 100%; text-align: center;
  border-top: 4px solid var(--brand-gold);
}
.value-card .icon-circle {
  width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; color: #fff;
}

.benefit-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.3rem; }
.benefit-item .icon-box { width: 46px; height: 46px; min-width: 46px; border-radius: 12px; background: rgba(168,35,47,.1); color: var(--brand-primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

.project-card img, .gallery-item img, .news-card img { height: 230px; object-fit: cover; width: 100%; }
.project-card .badge-type { position: absolute; top: 14px; left: 14px; }

.founder-photo { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.founder-quote { font-family: var(--font-heading); font-style: italic; font-size: 1.25rem; color: #3a3740; border-left: 4px solid var(--brand-gold); padding-left: 1.2rem; }

/* ---------- Progress / crowdfunding ---------- */
.fund-progress { height: 10px; border-radius: 50px; background: #eee; }
.fund-progress .progress-bar { background: linear-gradient(90deg, var(--brand-gold), var(--brand-primary)); }

/* ---------- Timeline / events ---------- */
.news-card .date-badge {
  position: absolute; top: 14px; right: 14px; background: #fff; border-radius: 10px; padding: .4rem .6rem; text-align: center; box-shadow: var(--shadow-soft);
  font-weight: 700; color: var(--brand-primary); font-size: .8rem; line-height: 1.1;
}

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; padding: .65rem .9rem; border: 1px solid #e2e0e6; }
.form-control:focus, .form-select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 .2rem rgba(168,35,47,.12); }
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 2.5rem; }
label.form-label { font-weight: 600; font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.65); }
.footer-links a:hover { color: var(--brand-gold); padding-left: 4px; }
.footer-social { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center; }
.footer-social:hover { background: var(--brand-gold); color: var(--brand-dark); }
.footer-bottom { background: #0e0c10; color: rgba(255,255,255,.55); }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; background: #25d366; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 999;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Dashboard / Admin shared ---------- */
.dash-sidebar { background: var(--brand-dark); min-height: 100vh; color: #fff; }
.dash-sidebar .nav-link { color: rgba(255,255,255,.7); border-radius: 10px; margin-bottom: .3rem; padding: .6rem .9rem; }
.dash-sidebar .nav-link.active, .dash-sidebar .nav-link:hover { background: var(--brand-primary); color: #fff; }
.dash-stat-card { border-radius: var(--radius); padding: 1.5rem; color: #fff; box-shadow: var(--shadow-soft); }
.dash-stat-card .stat-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }

/* ---------- Artist Card / Certificate ---------- */
.artist-card {
  width: 380px; border-radius: 18px; background: linear-gradient(145deg, #1b1720, #3a1d24 60%, var(--brand-primary));
  color: #fff; padding: 1.6rem; position: relative; overflow: hidden; box-shadow: 0 20px 45px rgba(0,0,0,.35);
}
.artist-card::before {
  content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(212,175,55,.35), transparent 55%);
}
.artist-card .card-photo { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; border: 3px solid var(--brand-gold); }
.artist-card .card-qr { background: #fff; padding: 6px; border-radius: 10px; }

.certificate-frame {
  border: 10px solid var(--brand-gold); padding: 2.5rem; background: #fffdf7; position: relative; border-radius: 6px;
}
.certificate-frame::before {
  content: ''; position: absolute; inset: 10px; border: 2px solid var(--brand-primary); pointer-events: none;
}

/* ---------- Misc ---------- */
.badge-soft-brand { background: rgba(168,35,47,.1); color: var(--brand-primary); font-weight: 600; }
.avatar-sm { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.table-nftfi thead { background: var(--brand-light); }

@media (max-width: 767px) {
  .hero-banner { min-height: 75vh; text-align: center; }
  .hero-stats { text-align: center; }
  .form-card { padding: 1.5rem; }
}
