/* ==========================================================
   NLBJJA — Next Level Brazilian Jiu-Jitsu Association
   Redesign 2026 — keeps brand identity, modernizes everything
   ========================================================== */

:root {
  --ink: #0d0e11;          /* near-black */
  --ink-2: #15171c;        /* charcoal panel */
  --ink-3: #1e2128;        /* raised panel */
  --line: rgba(255,255,255,.08);
  --paper: #f6f5f2;        /* warm off-white */
  --paper-2: #ffffff;
  --txt: #e9e8e4;
  --txt-dim: #999da6;
  --accent: #c8102e;       /* NL red */
  --accent-2: #e2c044;     /* belt gold, used sparingly */
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--txt);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.12;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.section-title { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 18px; }
.lead { color: var(--txt-dim); max-width: 720px; font-size: 18px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,14,17,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--display);
  font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt-dim); transition: color .2s;
  padding: 6px 0; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.nav-cta {
  border: 1px solid var(--accent); color: #fff !important;
  padding: 9px 18px !important; border-radius: 999px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 0; color: #fff;
  font-size: 26px; cursor: pointer; line-height: 1;
}

/* dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px;
  min-width: 230px; padding: 8px; display: none; box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
.drop a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 12.5px !important; white-space: nowrap;
}
.drop a:hover { background: rgba(255,255,255,.06); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 86vh; display: flex; align-items: center;
  background:
    linear-gradient(100deg, rgba(13,14,17,.96) 34%, rgba(13,14,17,.55) 70%, rgba(13,14,17,.35)),
    url("/wp-content/uploads/2020/08/next-level-home-pic.png") right center / cover no-repeat;
}
.hero::after { /* mountain watermark */
  content: ""; position: absolute; right: -60px; bottom: -40px;
  width: 520px; height: 520px; opacity: .07; pointer-events: none;
  background: url("/wp-content/uploads/2020/10/mountain.png") center / contain no-repeat;
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0; }
.hero .welcome {
  font-family: var(--display); letter-spacing: .4em; text-transform: uppercase;
  color: var(--txt-dim); font-size: 14px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(46px, 7.6vw, 92px);
  line-height: .98; margin-bottom: 10px;
}
.hero h1 .red { color: var(--accent); }
.hero .sub {
  font-family: var(--display); font-size: clamp(16px, 2.2vw, 24px);
  letter-spacing: .24em; color: var(--txt-dim); margin-bottom: 26px;
}
.hero p.mission { max-width: 620px; color: var(--txt-dim); font-size: 18px; margin-bottom: 36px; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .14em;
  font-size: 14px; padding: 15px 30px; border-radius: 999px; display: inline-block;
  transition: transform .15s, background .2s, color .2s; cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e01636; }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.hero-quote {
  margin-top: 60px; padding-left: 18px; border-left: 3px solid var(--accent);
  color: var(--txt-dim); font-style: italic; max-width: 520px; font-size: 15.5px;
}
.hero-quote b { color: var(--txt); font-style: normal; }

/* ---------- stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto;
}
.stat { padding: 34px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--display); font-size: 40px; font-weight: 600; color: #fff; }
.stat .num span { color: var(--accent); }
.stat .lbl { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--txt-dim); }

/* ---------- sections ---------- */
section.block { padding: 96px 0; }
section.block.tight { padding: 72px 0; }
.alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.two-col .media img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.45); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.pillar {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: transform .2s, border-color .2s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(200,16,46,.5); }
.pillar .ico {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(200,16,46,.14);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.pillar h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: .06em; }
.pillar p { color: var(--txt-dim); font-size: 15px; }

/* ---------- cards (instructors) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 48px; }
.person {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s; position: relative;
}
.person:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); }
.person .ph {
  aspect-ratio: 1 / 1.05; background: linear-gradient(160deg, #23262e, #15171c);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.person .ph .initials {
  font-family: var(--display); font-size: 52px; color: rgba(255,255,255,.14); letter-spacing: .06em;
}
.person .info { padding: 18px 20px 22px; }
.person h3 { font-size: 18px; letter-spacing: .05em; margin-bottom: 4px; }
.person .where { color: var(--txt-dim); font-size: 13.5px; margin-bottom: 12px; min-height: 38px; }
.belt {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.belt-black { background: #000; border: 1px solid #3a3d45; color: #fff; }
.belt-black i { width: 16px; height: 8px; background: var(--accent); border-radius: 2px; font-style: normal; }
.belt-brown { background: #4a2c17; border: 1px solid #6b4423; color: #f0e0d0; }
.belt-brown i { width: 16px; height: 8px; background: #2a1a0d; border-radius: 2px; }
.degree { color: var(--accent-2); }

/* ---------- affiliates ---------- */
.affil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-top: 48px; }
.affil {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 26px 24px; transition: transform .2s, border-color .2s;
  display: flex; flex-direction: column; gap: 6px;
}
.affil:hover { transform: translateY(-4px); border-color: rgba(200,16,46,.45); }
.affil .flag { font-size: 26px; line-height: 1; }
.affil .country {
  font-family: var(--display); font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--accent); margin: 10px 0 2px;
}
.affil h3 { font-size: 19px; letter-spacing: .04em; margin-bottom: 6px; }
.affil .meta { color: var(--txt-dim); font-size: 14px; }
.affil .meta b { color: var(--txt); font-weight: 600; }
.affil .contact { margin-top: auto; padding-top: 14px; }
.affil .contact a { color: var(--accent-2); font-size: 14px; word-break: break-all; }
.affil .contact a:hover { text-decoration: underline; }

/* region tabs / filter pills */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.pill {
  font-family: var(--display); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--txt-dim); cursor: pointer; background: none; transition: all .2s;
}
.pill:hover { color: #fff; border-color: rgba(255,255,255,.35); }
.pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- shop ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin-top: 48px; }
.prod {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s; display: flex; flex-direction: column;
}
.prod:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.22); }
.prod .ph {
  aspect-ratio: 1; background: linear-gradient(160deg, #22252d, #14161b);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.prod .ph img { width: 100%; height: 100%; object-fit: cover; }
.prod .ph .glyph { font-size: 54px; opacity: .18; }
.prod .tag {
  position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-family: var(--display);
  letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.tag-in { background: rgba(52,199,89,.16); color: #58d97c; border: 1px solid rgba(52,199,89,.35); }
.tag-back { background: rgba(226,192,68,.14); color: var(--accent-2); border: 1px solid rgba(226,192,68,.35); }
.tag-out { background: rgba(255,255,255,.08); color: var(--txt-dim); border: 1px solid var(--line); }
.prod .info { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod h3 { font-size: 16.5px; letter-spacing: .05em; }
.prod .price { font-family: var(--display); font-size: 22px; color: var(--accent-2); margin-top: auto; }
.prod .buy { font-size: 13px; color: var(--txt-dim); }
.prod .buy a { color: var(--accent); }

/* ---------- events ---------- */
.timeline { margin-top: 56px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--accent), rgba(200,16,46,.05));
}
.event { position: relative; padding: 0 0 46px 44px; }
.event::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--accent);
}
.event .date {
  font-family: var(--display); color: var(--accent); letter-spacing: .18em;
  text-transform: uppercase; font-size: 13px; margin-bottom: 8px;
}
.event h3 { font-size: 24px; margin-bottom: 8px; }
.event .venue { color: var(--txt-dim); font-size: 14.5px; margin-bottom: 14px; }
.event .venue b { color: var(--txt); }
.event p.desc { color: var(--txt-dim); max-width: 700px; margin-bottom: 16px; }
.event .ev-body { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.event img.ev-img { border-radius: 10px; max-width: 420px; margin-top: 6px; }
.event.past { opacity: .62; }
.event.past:hover { opacity: 1; }
.badge-next {
  display: inline-block; background: var(--accent); color: #fff; font-family: var(--display);
  font-size: 11px; letter-spacing: .18em; padding: 4px 12px; border-radius: 999px; margin-left: 10px;
  vertical-align: middle; text-transform: uppercase;
}

/* ---------- forms / contact / portal ---------- */
.form-card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; max-width: 560px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--display); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--txt-dim); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  color: #fff; padding: 13px 16px; font-family: var(--body); font-size: 15.5px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.ci { display: flex; gap: 18px; align-items: flex-start; }
.ci .ico {
  width: 46px; height: 46px; flex: none; border-radius: 12px; background: rgba(200,16,46,.14);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.ci h4 { font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-size: 14px; margin-bottom: 3px; }
.ci p, .ci a { color: var(--txt-dim); font-size: 15px; }
.ci a:hover { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #1a0509, #0d0e11 60%),
              radial-gradient(circle at 80% 20%, rgba(200,16,46,.25), transparent 55%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 84px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background: url("/wp-content/uploads/2020/10/mountain.png") center / 420px no-repeat;
}
.cta-band h2 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--txt-dim); max-width: 560px; margin: 0 auto 34px; position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 88px 0 64px; position: relative; overflow: hidden;
  background: var(--ink-2); border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 380px; height: 380px; opacity: .06;
  background: url("/wp-content/uploads/2020/10/mountain.png") center / contain no-repeat;
}
.page-hero h1 { font-size: clamp(38px, 5.6vw, 64px); }
.page-hero .lead { margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #0a0b0d; padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 54px; }
.foot-grid img.flogo { height: 54px; margin-bottom: 18px; }
.foot-grid p { color: var(--txt-dim); font-size: 14px; max-width: 300px; }
.foot-grid h4 {
  font-family: var(--display); font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; margin-bottom: 18px; color: #fff;
}
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-grid ul a { color: var(--txt-dim); font-size: 14px; transition: color .2s; }
.foot-grid ul a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  color: var(--txt-dim); transition: all .2s;
}
.socials a:hover { border-color: var(--accent); color: #fff; background: rgba(200,16,46,.15); }
.foot-bottom {
  border-top: 1px solid var(--line); padding: 22px 0; text-align: center;
  color: var(--txt-dim); font-size: 13px;
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--txt-dim); font-family: var(--display); font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; padding: 8px 16px;
  cursor: pointer; transition: all .2s; margin-left: 10px;
}
.theme-toggle:hover { color: var(--txt); border-color: var(--accent); }

/* ---------- LIGHT THEME ---------- */
body.light {
  --ink: #f7f6f3;
  --ink-2: #efede7;
  --ink-3: #ffffff;
  --line: rgba(22, 24, 30, .11);
  --txt: #23252b;
  --txt-dim: #5d626e;
  --accent-2: #9a7b1e; /* darker gold for contrast on white */
}
body.light .site-header { background: rgba(247,246,243,.88); }
body.light .nav-links a:hover, body.light .nav-links a.active { color: #101216; }
body.light .nav-cta { color: #23252b !important; }
body.light .nav-cta:hover { color: #fff !important; }
body.light .nav-toggle { color: #23252b; }
body.light .drop { box-shadow: 0 18px 50px rgba(30,32,40,.18); }
body.light .drop a:hover { background: rgba(0,0,0,.05); }

body.light .hero {
  background:
    linear-gradient(100deg, rgba(247,246,243,.97) 34%, rgba(247,246,243,.78) 70%, rgba(247,246,243,.5)),
    url("/wp-content/uploads/2020/08/next-level-home-pic.png") right center / cover no-repeat;
}
body.light .hero::after { opacity: .09; }
body.light .btn-ghost { border-color: rgba(0,0,0,.35); color: #23252b; }
body.light .btn-ghost:hover { border-color: #000; }

body.light .stat .num { color: #16181d; }
body.light .stats { background: #fdfdfb; }

body.light .pillar:hover { border-color: rgba(200,16,46,.4); }
body.light .pillar, body.light .person, body.light .affil, body.light .prod,
body.light .event .ev-body, body.light .form-card {
  box-shadow: 0 4px 22px rgba(30,32,40,.06);
}
body.light .person:hover, body.light .prod:hover { border-color: rgba(0,0,0,.28); }
body.light .person .ph, body.light .prod .ph { background: linear-gradient(160deg, #eceae4, #f7f6f3); }
body.light .person .ph .initials { color: rgba(0,0,0,.13); }

body.light .pill:hover { color: #101216; border-color: rgba(0,0,0,.4); }
body.light .socials a:hover { color: var(--accent); }
body.light .foot-grid h4 { color: #16181d; }
body.light .site-footer { background: #eceae4; }
body.light .field input, body.light .field textarea, body.light .field select {
  background: #fff; color: #16181d;
}
body.light .event::before { background: var(--ink); }
body.light .tag-in { background: rgba(28,140,60,.1); color: #1e7d3c; border-color: rgba(28,140,60,.3); }
body.light .tag-back { background: rgba(154,123,30,.1); color: #8a6d15; border-color: rgba(154,123,30,.32); }
body.light .tag-out { background: rgba(0,0,0,.05); color: var(--txt-dim); }

body.light .cta-band {
  background: linear-gradient(120deg, #ffffff, #f0eee8 60%),
              radial-gradient(circle at 80% 20%, rgba(200,16,46,.08), transparent 55%);
}
body.light .cta-band::before { opacity: .07; }
body.light .two-col .media img { box-shadow: 0 20px 48px rgba(30,32,40,.16); }

/* ---------- reveal animation ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; background: var(--ink-2);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 14px 24px 24px; border-bottom: 1px solid var(--line);
    display: none; z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; font-size: 15px; }
  .nav-toggle { display: block; }
  .drop { position: static; transform: none; display: block; box-shadow: none; border: 0; background: none; padding: 0 0 0 18px; min-width: 0; }
  .hero { min-height: 72vh; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  section.block { padding: 64px 0; }
}
