/* ===================================================
   NBA UNGOGO – SHARED STYLESHEET
   "The Legacy Bar" Professional Design System
=================================================== */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --green-dark:   #0A2216;
  --green-mid:    #143D28;
  --green-accent: #1E6B43;
  --gold:         #C9A03D;
  --gold-light:   #E8C86A;
  --cream:        #F8F6F0;
  --paper:        #FEFCF7;
  --border:       #E4DDD0;
  --text-dark:    #1C1C1A;
  --text-mid:     #4A4740;
  --text-light:   #7A7570;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--paper);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,.7);
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 2rem; font-size: .78rem; flex-wrap: wrap; gap: .5rem;
  border-bottom: 2px solid var(--gold);
}
.topbar-left { display:flex; gap:1.5rem; flex-wrap:wrap; align-items:center; }
.topbar-left span { display:flex; align-items:center; gap:.4rem; }
.topbar-left i { color: var(--gold); }
.topbar-right { display:flex; gap:1rem; }
.topbar-right a { color: rgba(255,255,255,.55); transition:.2s; font-size:.9rem; }
.topbar-right a:hover { color: var(--gold); }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: .9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.nav-logo {
  font-family: 'EB Garamond', serif;
  font-size: 1.55rem; font-weight: 700;
  color: var(--green-dark); text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
}
.nav-logo i { color: var(--green-accent); font-size: 1.2rem; }
.nav-logo span { color: var(--gold); }
.nav-menu {
  display: flex; gap: .2rem; list-style: none; align-items: center;
}
.nav-menu a {
  font-size: .88rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; padding: .5rem .8rem; border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--green-dark); background: rgba(10,34,22,.06);
}
.nav-portal {
  background: var(--green-dark) !important; color: #fff !important;
  border-radius: 8px !important; padding: .5rem 1rem !important;
}
.nav-portal:hover { background: var(--green-accent) !important; }
.nav-toggle {
  display: none; background: none; border: none;
  font-size: 1.4rem; color: var(--green-dark); cursor: pointer; padding: .3rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.8rem; border-radius: 8px;
  font-family: 'Outfit',sans-serif; font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: all .22s; cursor: pointer; border: 2px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-green { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.btn-green:hover { background: var(--green-mid); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: #fff; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(140deg, var(--green-dark) 0%, var(--green-mid) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center; position: relative; overflow: hidden;
  border-bottom: 3px solid var(--gold);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A03D' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .section-label { color: var(--gold); }
.page-hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff; margin: .5rem 0 1rem; line-height: 1.2;
  position: relative;
}
.page-hero p { color: rgba(255,255,255,.65); max-width: 580px; margin: 0 auto; position: relative; }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }

.section-header { margin-bottom: 2.5rem; }
.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--green-accent); margin-bottom: .5rem;
}
.section-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--green-dark); line-height: 1.25; margin-bottom: .6rem;
}
.section-sub { color: var(--text-light); max-width: 540px; }
.section-divider { width: 48px; height: 3px; background: var(--gold); margin: 1rem 0 2rem; border-radius: 2px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-divider { margin: 1rem auto 2rem; }
.section-header.centered .section-sub { margin: 0 auto; }

/* ── CONTAINER ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }

/* ── CARDS ── */
.card {
  background: #fff; border-radius: 16px;
  padding: 2rem; border: 1px solid var(--border);
  transition: box-shadow .25s;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.07); }
.card-icon {
  width: 52px; height: 52px;
  background: rgba(10,34,22,.06); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--green-accent); margin-bottom: 1rem;
}
.card h3 { font-family: 'EB Garamond',serif; font-size: 1.25rem; color: var(--green-dark); margin-bottom: .5rem; }
.card p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.pro-table { width: 100%; border-collapse: collapse; background: #fff; }
.pro-table thead { background: var(--green-dark); }
.pro-table th { padding: 1rem 1.2rem; text-align: left; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.8); }
.pro-table th:first-child { border-radius: 0; }
.pro-table td { padding: .9rem 1.2rem; font-size: .9rem; color: var(--text-mid); border-bottom: 1px solid var(--border); }
.pro-table tr:last-child td { border-bottom: none; }
.pro-table tr:hover td { background: var(--cream); }
.pro-table .current-row td { font-weight: 600; color: var(--green-dark); }
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(201,160,61,.1); color: #956E1A;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: .2rem .7rem; border-radius: 20px;
  border: 1px solid rgba(201,160,61,.3);
}

/* ── BLOCKQUOTE ── */
.pull-quote {
  background: var(--green-dark); border-radius: 16px;
  padding: 2.5rem; position: relative; overflow: hidden;
}
.pull-quote::before {
  content: '\201C';
  font-family: 'EB Garamond',serif; font-size: 8rem; color: rgba(201,160,61,.12);
  position: absolute; top: -1rem; left: 1.5rem; line-height: 1;
}
.pull-quote p { font-family: 'EB Garamond',serif; font-size: 1.25rem; color: rgba(255,255,255,.88); line-height: 1.7; position: relative; }
.pull-quote cite { display:block; margin-top: 1.2rem; font-size: .82rem; color: var(--gold); font-style: normal; font-weight: 600; }

/* ── FOOTER ── */
.footer { background: var(--green-dark); color: rgba(255,255,255,.65); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(201,160,61,.15); }
.footer-logo { font-family: 'EB Garamond',serif; font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.footer-logo i { color: var(--gold); }
.footer-logo span { color: var(--gold); }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-socials a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); text-decoration: none; transition: .2s; font-size: .88rem; }
.footer-socials a:hover { background: var(--gold); color: var(--green-dark); }
.footer-heading { font-family: 'EB Garamond',serif; font-size: 1.1rem; color: #fff; margin-bottom: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.55); text-decoration: none; font-size: .87rem; transition: .2s; display: flex; align-items: center; gap: .5rem; }
.footer-links a i { font-size: .65rem; color: var(--gold); }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; font-size: .87rem; }
.footer-contact i { color: var(--gold); margin-top: .15rem; min-width: 14px; }
.footer-bottom { text-align: center; padding: 1.5rem; font-size: .78rem; color: rgba(255,255,255,.3); }
.footer-bottom p + p { margin-top: .3rem; }

/* ── UTILITIES ── */
.text-gold { color: var(--gold); }
.text-green { color: var(--green-accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.flex-center { display: flex; justify-content: center; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 2px solid var(--border);
    padding: 1rem; box-shadow: 0 12px 30px rgba(0,0,0,.1);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .7rem 1rem; border-radius: 8px; }
  .nav-portal { margin-top: .5rem; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .topbar { font-size: .72rem; padding: .5rem 1rem; }
  .topbar-left { gap: .8rem; }
  .navbar { padding: .8rem 1rem; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .topbar-left span:nth-child(2) { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn { padding: .65rem 1.4rem; font-size: .85rem; }
}
